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

@sapiom/agent

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sapiom/agent - npm Package Compare versions

Comparing version
0.9.0
to
0.9.1
+10
-0
CHANGELOG.md
# @sapiom/orchestration
## 0.9.1
### Patch Changes
- 9ba7b75: Fix: authored `description` (on `defineStep` and `defineAgent`) and step `capabilities` were silently dropped during manifest validation.
`agentManifestSchema` is a `z.object()`, which strips keys it doesn't declare. The previous release added `description`/`capabilities` to the TS types and to `buildManifest`'s output, but not to the runtime schema — so `agentManifestSchema.parse()` (which `@sapiom/agent-core`'s `check()` runs on every manifest) discarded them. The result: tooling that reads the validated manifest — the harness canvas — always saw empty descriptions, no matter what the source authored.
Adds `description` (step + workflow) and `capabilities` (step) to the schema as optional fields, so they survive validation and reach consumers. No behavior change for manifests that don't use them.
## 0.9.0

@@ -4,0 +14,0 @@

+3
-0

@@ -58,3 +58,6 @@ import { z } from 'zod/v4';

}, z.core.$strip>]>>;
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strip>>;
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
}, z.core.$strip>;

@@ -16,2 +16,4 @@ "use strict";

transitions: v4_1.z.array(manifestTransitionSchema),
description: v4_1.z.union([v4_1.z.string(), v4_1.z.null()]).optional(),
capabilities: v4_1.z.array(v4_1.z.string()).optional(),
});

@@ -28,2 +30,3 @@ exports.agentManifestSchema = v4_1.z.object({

steps: v4_1.z.record(v4_1.z.string(), workflowStepManifestSchema),
description: v4_1.z.union([v4_1.z.string(), v4_1.z.null()]).optional(),
});

@@ -58,3 +58,6 @@ import { z } from 'zod/v4';

}, z.core.$strip>]>>;
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strip>>;
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
}, z.core.$strip>;

@@ -13,2 +13,4 @@ import { z } from 'zod/v4';

transitions: z.array(manifestTransitionSchema),
description: z.union([z.string(), z.null()]).optional(),
capabilities: z.array(z.string()).optional(),
});

@@ -25,2 +27,3 @@ export const agentManifestSchema = z.object({

steps: z.record(z.string(), workflowStepManifestSchema),
description: z.union([z.string(), z.null()]).optional(),
});
+1
-1
{
"name": "@sapiom/agent",
"version": "0.9.0",
"version": "0.9.1",
"description": "Versioned public contract for authoring Sapiom agents: types, directive constructors/guards, defineAgent, defineStep, InMemoryContextStore. Shared by customer agent definitions, the sandbox step-runner, and the engine.",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet