@henryqw/pi-subagent 23.0.0 → 23.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schema.js +2 -2
- package/extensions/workflow.ts +1 -1
- package/package.json +1 -1
package/dist/schema.js
CHANGED
|
@@ -65,7 +65,7 @@ export const ResumeRequestSchema = Type.Union([
|
|
|
65
65
|
Type.Object({ id: IdSchema, action: Type.Literal("retry"), taskId: IdSchema }, { additionalProperties: false }),
|
|
66
66
|
Type.Object({ id: IdSchema, action: Type.Literal("verify"), taskId: IdSchema }, { additionalProperties: false }),
|
|
67
67
|
Type.Object({ id: IdSchema, action: Type.Literal("finalize") }, { additionalProperties: false }),
|
|
68
|
-
]);
|
|
68
|
+
], { type: "object" });
|
|
69
69
|
const AllocationLifecycleFields = {
|
|
70
70
|
generation: Type.Integer({ minimum: 1, maximum: 2 }),
|
|
71
71
|
token: Type.String({ pattern: TOKEN_PATTERN }),
|
|
@@ -167,7 +167,7 @@ export const IntegrationActionSchema = Type.Union([
|
|
|
167
167
|
taskId: Type.Optional(IdSchema),
|
|
168
168
|
attempt: Type.Optional(Type.Integer({ minimum: 1, maximum: 2 })),
|
|
169
169
|
}, { additionalProperties: false }),
|
|
170
|
-
]);
|
|
170
|
+
], { type: "object" });
|
|
171
171
|
export function parseIntegrationAction(value) {
|
|
172
172
|
if (!Check(IntegrationActionSchema, value))
|
|
173
173
|
throw schemaValidationError("subagent_integrate requires an exact generation and tip", Errors(IntegrationActionSchema, value));
|
package/extensions/workflow.ts
CHANGED
|
@@ -42,7 +42,7 @@ export const DirectWorkflowSchema = Type.Object({
|
|
|
42
42
|
chain: Type.Optional(Type.Array(DelegationSchema, { minItems: 1, maxItems: MAX_WORKFLOW_ENTRIES })),
|
|
43
43
|
}, { additionalProperties: false, description: "Direct mode: exactly one compact single, tasks, or chain workflow" });
|
|
44
44
|
|
|
45
|
-
export const DelegateTaskSchema = Type.Union([DirectWorkflowSchema, ExecuteRequestSchema]);
|
|
45
|
+
export const DelegateTaskSchema = Type.Union([DirectWorkflowSchema, ExecuteRequestSchema], { type: "object" });
|
|
46
46
|
export const WorkflowSchema = DirectWorkflowSchema;
|
|
47
47
|
|
|
48
48
|
export type Delegation = Static<typeof DelegationSchema> & { kind: "text" };
|