@sapiom/cli
Advanced tools
+4
-4
| { | ||
| "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 @@ }); |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
110597
0.62%2347
0.69%- Removed
Updated
Updated