🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@sapiom/cli

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sapiom/cli - npm Package Compare versions

Comparing version
1.0.1
to
1.0.2
+4
-4
package.json
{
"name": "@sapiom/cli",
"version": "1.0.1",
"version": "1.0.2",
"description": "The Sapiom command-line interface — scaffold, validate, and ship Sapiom orchestrations.",

@@ -33,4 +33,4 @@ "license": "MIT",

"zod": "^3.25.76",
"@sapiom/agent": "^0.8.0",
"@sapiom/agent-core": "^0.9.12",
"@sapiom/agent": "^0.9.0",
"@sapiom/agent-core": "^0.9.13",
"@sapiom/analytics-core": "^0.2.1",

@@ -40,3 +40,3 @@ "@sapiom/sandbox-preview": "^0.1.10"

"peerDependencies": {
"@sapiom/harness": ">=0.2.4"
"@sapiom/harness": ">=0.2.5"
},

@@ -43,0 +43,0 @@ "peerDependenciesMeta": {

import { defineAgent, defineStep, goto, terminate } from '@sapiom/agent';
import { z } from 'zod/v4';
/**
* The entry contract — your agent's PUBLIC API. This schema is what the Sapiom
* dashboard's "Run once" form renders its fields from (one labelled field per
* property, using its `.describe(...)`), and every run's input is validated
* against it before `start` runs. Give a field a `.default(...)` so a zero-input
* run still works and the declared default is the same value the code sees.
* Replace `name` with your agent's real input.
*/
const entryInput = z.object({
name: z
.string()
.default('world')
.describe('Who to greet — the sample field this scaffold ships with.'),
});
const start = defineStep({
name: 'start',
next: ['finish'],
inputSchema: entryInput,
async run(input, ctx) {
ctx.logger.info('starting', { input });
// Sapiom capabilities: ctx.sapiom.sandboxes.create(), ctx.sapiom.repositories.create()
return goto('finish', { greeting: 'hello from Sapiom' });
return goto('finish', { greeting: `hello from Sapiom, ${input.name}` });
},

@@ -11,0 +28,0 @@ });