Archived
装配(app 是唯一组装层): - wiring/engines.ts:skill/flow/loop/task/process/trigger 六个模块经端口接起来; 两个范式引擎按统一 ParadigmEngine 契约暴露给 task —— 对上层不可区分 - agent-runner.ts:loop 的 Agent 回路经 ModelGateway(两缝之一,回放审看得见); 出参过 schema 框住三型行动,不合规退化为「等人」而不是乱动世界 - container:interaction / human-tool / activity-registry / release 全部接上; event 的 TriggerMatcher 与 org 的 InFlightWorkProbe 以延迟绑定解环,端口不变 - workers/consumers.ts:派发器的两个消费者(任务监听推进旧单 / 触发器开新单,独立判定) - tools/first-party.ts:查历史价(录制回放替身)+ 三分类打标(纯工具,DMN 确定性求值) - seed-quote.ts:治理台四件事一次做完 —— 绑 LLM / 注册工具两审 / 经安装通道装活动包 / 发布流程包(闭合校验通过)+ 配触发器与邮件通道 已验证(真机): 1. 治理台配置全过;活动包静态审 0 条提示、流程包闭合校验通过 2. 一封 RFQ 邮件入站 → 归属解析 → 触发器命中 1 → 起一条工作流 → A1 任务按岗位唯一人解析落到 BD 冯兵,runtime=running 修复:zod 判别式重复值(周期触发两型展开为 periodic-calendar / periodic-data, triggerKindOf 对回三类分类学);活动构建脚本移出 activities(它要用 fs, 而活动包零环境能力 —— depcruise 拦下后按边界搬家) 358 个测试通过,门禁五道全绿 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KeDBx2PHLavbURXB8LJJ7m
1264 lines
49 KiB
TypeScript
1264 lines
49 KiB
TypeScript
/**
|
|
* 活动包清单六区与资产形状(编码规范 §8.1;语义出处 OS 11.1,AM 11)。
|
|
*
|
|
* 清单机器可读,系统**不执行代码即知包为何物** —— 导入登记、安装静态审、编排装配读的都是清单。
|
|
* 资产与包分离版本化(OS 11.3):包版本管代码 / 契约 / 交互模版 / Harness;
|
|
* 资产版本管业务模型 / DMN / 技能 —— 包只携初始版,此后由进化管线在系统内产生。
|
|
*/
|
|
import { z } from 'zod';
|
|
/** 范式只存在于**引擎层**;交互层不可区分(编码规范 §9 双层边界) */
|
|
export declare const PARADIGMS: readonly ["loop", "flow"];
|
|
export declare const paradigmSchema: z.ZodEnum<{
|
|
loop: "loop";
|
|
flow: "flow";
|
|
}>;
|
|
export type Paradigm = z.infer<typeof paradigmSchema>;
|
|
/** 活动类型两维分类之一(治理台活动库):标准活动 = flow,案例活动 = loop */
|
|
export declare const ACTIVITY_TYPE_LABEL: Readonly<Record<Paradigm, string>>;
|
|
export declare const manifestIdentitySchema: z.ZodObject<{
|
|
activityId: z.core.$ZodBranded<z.ZodString, "ActivityId", "out">;
|
|
name: z.ZodString;
|
|
packageVersion: z.ZodString;
|
|
category: z.ZodString;
|
|
paradigm: z.ZodEnum<{
|
|
loop: "loop";
|
|
flow: "flow";
|
|
}>;
|
|
sdkVersion: z.ZodString;
|
|
checksum: z.ZodString;
|
|
signature: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>;
|
|
export type ManifestIdentity = z.infer<typeof manifestIdentitySchema>;
|
|
export declare const harnessConfigSchema: z.ZodObject<{
|
|
memoryWindow: z.ZodDefault<z.ZodNumber>;
|
|
stallAfter: z.ZodDefault<z.ZodString>;
|
|
nudge: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
after: z.ZodString;
|
|
action: z.ZodEnum<{
|
|
nudge: "nudge";
|
|
escalate: "escalate";
|
|
}>;
|
|
}, z.core.$strip>>>;
|
|
retry: z.ZodDefault<z.ZodObject<{
|
|
times: z.ZodDefault<z.ZodNumber>;
|
|
backoff: z.ZodDefault<z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
}, z.core.$strip>;
|
|
export type HarnessConfig = z.infer<typeof harnessConfigSchema>;
|
|
export declare const manifestDeclarationsSchema: z.ZodObject<{
|
|
models: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
version: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>>>;
|
|
ledger: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
label: z.ZodOptional<z.ZodString>;
|
|
fields: z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
type: z.ZodEnum<{
|
|
number: "number";
|
|
boolean: "boolean";
|
|
json: "json";
|
|
text: "text";
|
|
date: "date";
|
|
integer: "integer";
|
|
timestamp: "timestamp";
|
|
}>;
|
|
label: z.ZodOptional<z.ZodString>;
|
|
primaryKey: z.ZodDefault<z.ZodBoolean>;
|
|
masked: z.ZodDefault<z.ZodBoolean>;
|
|
}, z.core.$strip>>;
|
|
}, z.core.$strip>>>;
|
|
listeners: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
origin: z.ZodEnum<{
|
|
static: "static";
|
|
dynamic: "dynamic";
|
|
}>;
|
|
eventType: z.ZodEnum<{
|
|
human: "human";
|
|
data: "data";
|
|
time: "time";
|
|
control: "control";
|
|
}>;
|
|
keyFilter: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
condition: z.ZodOptional<z.ZodString>;
|
|
semantic: z.ZodEnum<{
|
|
observe: "observe";
|
|
"complete-step": "complete-step";
|
|
}>;
|
|
deadline: z.ZodString;
|
|
escalation: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
nudge: "nudge";
|
|
reroute: "reroute";
|
|
escalate: "escalate";
|
|
}>>>;
|
|
}, z.core.$strip>>>;
|
|
harness: z.ZodObject<{
|
|
memoryWindow: z.ZodDefault<z.ZodNumber>;
|
|
stallAfter: z.ZodDefault<z.ZodString>;
|
|
nudge: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
after: z.ZodString;
|
|
action: z.ZodEnum<{
|
|
nudge: "nudge";
|
|
escalate: "escalate";
|
|
}>;
|
|
}, z.core.$strip>>>;
|
|
retry: z.ZodDefault<z.ZodObject<{
|
|
times: z.ZodDefault<z.ZodNumber>;
|
|
backoff: z.ZodDefault<z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>;
|
|
export type ManifestDeclarations = z.infer<typeof manifestDeclarationsSchema>;
|
|
export declare const STEP_KINDS: readonly ["tool", "llm", "human", "pure-tool"];
|
|
export declare const stepKindSchema: z.ZodEnum<{
|
|
human: "human";
|
|
tool: "tool";
|
|
llm: "llm";
|
|
"pure-tool": "pure-tool";
|
|
}>;
|
|
export type StepKind = z.infer<typeof stepKindSchema>;
|
|
/** 失败策略:声明给定,不临场(AM 5.3) */
|
|
export declare const stepFailurePolicySchema: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
export type StepFailurePolicy = z.infer<typeof stepFailurePolicySchema>;
|
|
export declare const flowStepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"tool">;
|
|
tool: z.ZodString;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"llm">;
|
|
model: z.ZodString;
|
|
template: z.ZodString;
|
|
outputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
card: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
deadline: z.ZodString;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"pure-tool">;
|
|
tool: z.ZodString;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>], "kind">;
|
|
export type FlowStep = z.infer<typeof flowStepSchema>;
|
|
export declare const flowModelSchema: z.ZodObject<{
|
|
paradigm: z.ZodLiteral<"flow">;
|
|
steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"tool">;
|
|
tool: z.ZodString;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"llm">;
|
|
model: z.ZodString;
|
|
template: z.ZodString;
|
|
outputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
card: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
deadline: z.ZodString;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"pure-tool">;
|
|
tool: z.ZodString;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>], "kind">>;
|
|
parallelGroups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
steps: z.ZodArray<z.ZodString>;
|
|
}, z.core.$strip>>>;
|
|
}, z.core.$strip>;
|
|
export type FlowModel = z.infer<typeof flowModelSchema>;
|
|
export declare const dmnDecisionTableSchema: z.ZodObject<{
|
|
id: z.ZodString;
|
|
label: z.ZodString;
|
|
hitPolicy: z.ZodDefault<z.ZodEnum<{
|
|
UNIQUE: "UNIQUE";
|
|
FIRST: "FIRST";
|
|
PRIORITY: "PRIORITY";
|
|
COLLECT: "COLLECT";
|
|
}>>;
|
|
inputs: z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
expression: z.ZodString;
|
|
}, z.core.$strip>>;
|
|
outputs: z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
}, z.core.$strip>>;
|
|
rules: z.ZodArray<z.ZodObject<{
|
|
id: z.ZodString;
|
|
when: z.ZodArray<z.ZodString>;
|
|
then: z.ZodArray<z.ZodUnknown>;
|
|
annotation: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
}, z.core.$strip>;
|
|
export type DmnDecisionTable = z.infer<typeof dmnDecisionTableSchema>;
|
|
export declare const dmnModelSchema: z.ZodObject<{
|
|
drd: z.ZodArray<z.ZodObject<{
|
|
decision: z.ZodString;
|
|
requires: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
inputs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
}, z.core.$strip>>;
|
|
tables: z.ZodArray<z.ZodObject<{
|
|
id: z.ZodString;
|
|
label: z.ZodString;
|
|
hitPolicy: z.ZodDefault<z.ZodEnum<{
|
|
UNIQUE: "UNIQUE";
|
|
FIRST: "FIRST";
|
|
PRIORITY: "PRIORITY";
|
|
COLLECT: "COLLECT";
|
|
}>>;
|
|
inputs: z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
expression: z.ZodString;
|
|
}, z.core.$strip>>;
|
|
outputs: z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
}, z.core.$strip>>;
|
|
rules: z.ZodArray<z.ZodObject<{
|
|
id: z.ZodString;
|
|
when: z.ZodArray<z.ZodString>;
|
|
then: z.ZodArray<z.ZodUnknown>;
|
|
annotation: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
}, z.core.$strip>>;
|
|
}, z.core.$strip>;
|
|
export type DmnModel = z.infer<typeof dmnModelSchema>;
|
|
export declare const loopModelSchema: z.ZodObject<{
|
|
paradigm: z.ZodLiteral<"loop">;
|
|
cmmnXml: z.ZodString;
|
|
narrative: z.ZodString;
|
|
dmn: z.ZodObject<{
|
|
drd: z.ZodArray<z.ZodObject<{
|
|
decision: z.ZodString;
|
|
requires: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
inputs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
}, z.core.$strip>>;
|
|
tables: z.ZodArray<z.ZodObject<{
|
|
id: z.ZodString;
|
|
label: z.ZodString;
|
|
hitPolicy: z.ZodDefault<z.ZodEnum<{
|
|
UNIQUE: "UNIQUE";
|
|
FIRST: "FIRST";
|
|
PRIORITY: "PRIORITY";
|
|
COLLECT: "COLLECT";
|
|
}>>;
|
|
inputs: z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
expression: z.ZodString;
|
|
}, z.core.$strip>>;
|
|
outputs: z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
}, z.core.$strip>>;
|
|
rules: z.ZodArray<z.ZodObject<{
|
|
id: z.ZodString;
|
|
when: z.ZodArray<z.ZodString>;
|
|
then: z.ZodArray<z.ZodUnknown>;
|
|
annotation: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
}, z.core.$strip>>;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>;
|
|
export type LoopModel = z.infer<typeof loopModelSchema>;
|
|
export declare const businessModelSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
paradigm: z.ZodLiteral<"loop">;
|
|
cmmnXml: z.ZodString;
|
|
narrative: z.ZodString;
|
|
dmn: z.ZodObject<{
|
|
drd: z.ZodArray<z.ZodObject<{
|
|
decision: z.ZodString;
|
|
requires: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
inputs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
}, z.core.$strip>>;
|
|
tables: z.ZodArray<z.ZodObject<{
|
|
id: z.ZodString;
|
|
label: z.ZodString;
|
|
hitPolicy: z.ZodDefault<z.ZodEnum<{
|
|
UNIQUE: "UNIQUE";
|
|
FIRST: "FIRST";
|
|
PRIORITY: "PRIORITY";
|
|
COLLECT: "COLLECT";
|
|
}>>;
|
|
inputs: z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
expression: z.ZodString;
|
|
}, z.core.$strip>>;
|
|
outputs: z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
}, z.core.$strip>>;
|
|
rules: z.ZodArray<z.ZodObject<{
|
|
id: z.ZodString;
|
|
when: z.ZodArray<z.ZodString>;
|
|
then: z.ZodArray<z.ZodUnknown>;
|
|
annotation: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
}, z.core.$strip>>;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
paradigm: z.ZodLiteral<"flow">;
|
|
steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"tool">;
|
|
tool: z.ZodString;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"llm">;
|
|
model: z.ZodString;
|
|
template: z.ZodString;
|
|
outputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
card: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
deadline: z.ZodString;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"pure-tool">;
|
|
tool: z.ZodString;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>], "kind">>;
|
|
parallelGroups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
steps: z.ZodArray<z.ZodString>;
|
|
}, z.core.$strip>>>;
|
|
}, z.core.$strip>], "paradigm">;
|
|
export type BusinessModel = z.infer<typeof businessModelSchema>;
|
|
export declare const skillSchema: z.ZodObject<{
|
|
id: z.core.$ZodBranded<z.ZodString, "SkillId", "out">;
|
|
label: z.ZodString;
|
|
applicability: z.ZodString;
|
|
method: z.ZodString;
|
|
crystallized: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
tool: z.ZodString;
|
|
input: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>>;
|
|
knowledgeRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
version: z.ZodString;
|
|
}, z.core.$strip>;
|
|
export type Skill = z.infer<typeof skillSchema>;
|
|
export declare const manifestAssetsSchema: z.ZodObject<{
|
|
businessModel: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
paradigm: z.ZodLiteral<"loop">;
|
|
cmmnXml: z.ZodString;
|
|
narrative: z.ZodString;
|
|
dmn: z.ZodObject<{
|
|
drd: z.ZodArray<z.ZodObject<{
|
|
decision: z.ZodString;
|
|
requires: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
inputs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
}, z.core.$strip>>;
|
|
tables: z.ZodArray<z.ZodObject<{
|
|
id: z.ZodString;
|
|
label: z.ZodString;
|
|
hitPolicy: z.ZodDefault<z.ZodEnum<{
|
|
UNIQUE: "UNIQUE";
|
|
FIRST: "FIRST";
|
|
PRIORITY: "PRIORITY";
|
|
COLLECT: "COLLECT";
|
|
}>>;
|
|
inputs: z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
expression: z.ZodString;
|
|
}, z.core.$strip>>;
|
|
outputs: z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
}, z.core.$strip>>;
|
|
rules: z.ZodArray<z.ZodObject<{
|
|
id: z.ZodString;
|
|
when: z.ZodArray<z.ZodString>;
|
|
then: z.ZodArray<z.ZodUnknown>;
|
|
annotation: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
}, z.core.$strip>>;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
paradigm: z.ZodLiteral<"flow">;
|
|
steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"tool">;
|
|
tool: z.ZodString;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"llm">;
|
|
model: z.ZodString;
|
|
template: z.ZodString;
|
|
outputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
card: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
deadline: z.ZodString;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"pure-tool">;
|
|
tool: z.ZodString;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>], "kind">>;
|
|
parallelGroups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
steps: z.ZodArray<z.ZodString>;
|
|
}, z.core.$strip>>>;
|
|
}, z.core.$strip>], "paradigm">;
|
|
skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
id: z.core.$ZodBranded<z.ZodString, "SkillId", "out">;
|
|
label: z.ZodString;
|
|
applicability: z.ZodString;
|
|
method: z.ZodString;
|
|
crystallized: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
tool: z.ZodString;
|
|
input: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>>;
|
|
knowledgeRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
version: z.ZodString;
|
|
}, z.core.$strip>>>;
|
|
viewTemplates: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
html: z.ZodString;
|
|
}, z.core.$strip>>>;
|
|
cardSchemas: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
distillHooks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
on: z.ZodEnum<{
|
|
terminal: "terminal";
|
|
milestone: "milestone";
|
|
}>;
|
|
milestone: z.ZodOptional<z.ZodString>;
|
|
prompt: z.ZodString;
|
|
}, z.core.$strip>>>;
|
|
}, z.core.$strip>;
|
|
export type ManifestAssets = z.infer<typeof manifestAssetsSchema>;
|
|
export declare const sampleCaseSchema: z.ZodObject<{
|
|
name: z.ZodString;
|
|
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
message: z.ZodOptional<z.ZodString>;
|
|
expect: z.ZodObject<{
|
|
ports: z.ZodArray<z.ZodString>;
|
|
payloadShape: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>;
|
|
export type SampleCase = z.infer<typeof sampleCaseSchema>;
|
|
export declare const activityManifestSchema: z.ZodObject<{
|
|
identity: z.ZodObject<{
|
|
activityId: z.core.$ZodBranded<z.ZodString, "ActivityId", "out">;
|
|
name: z.ZodString;
|
|
packageVersion: z.ZodString;
|
|
category: z.ZodString;
|
|
paradigm: z.ZodEnum<{
|
|
loop: "loop";
|
|
flow: "flow";
|
|
}>;
|
|
sdkVersion: z.ZodString;
|
|
checksum: z.ZodString;
|
|
signature: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>;
|
|
contract: z.ZodObject<{
|
|
activityId: z.core.$ZodBranded<z.ZodString, "ActivityId", "out">;
|
|
version: z.ZodString;
|
|
input: z.ZodObject<{
|
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
messageAllowed: z.ZodDefault<z.ZodBoolean>;
|
|
messageHint: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>;
|
|
output: z.ZodObject<{
|
|
mandatory: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
description: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>>>;
|
|
selective: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
group: z.ZodString;
|
|
ports: z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
description: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
}, z.core.$strip>>>;
|
|
}, z.core.$strip>;
|
|
requiredDeliverables: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
key: z.ZodString;
|
|
label: z.ZodString;
|
|
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
}, z.core.$strip>>>;
|
|
acceptanceCriteria: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
key: z.ZodString;
|
|
label: z.ZodString;
|
|
level: z.ZodEnum<{
|
|
L1: "L1";
|
|
L2: "L2";
|
|
L3: "L3";
|
|
L4: "L4";
|
|
L5: "L5";
|
|
}>;
|
|
predicate: z.ZodOptional<z.ZodString>;
|
|
modelRef: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>>>;
|
|
prohibitions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
key: z.ZodString;
|
|
statement: z.ZodString;
|
|
}, z.core.$strip>>>;
|
|
authorization: z.ZodObject<{
|
|
discretion: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
key: z.ZodString;
|
|
statement: z.ZodString;
|
|
}, z.core.$strip>>>;
|
|
preauthorizedActions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
tool: z.ZodString;
|
|
operation: z.ZodString;
|
|
limit: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>>>;
|
|
humanCallBudget: z.ZodNumber;
|
|
}, z.core.$strip>;
|
|
resources: z.ZodObject<{
|
|
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
version: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>>>;
|
|
skills: z.ZodDefault<z.ZodArray<z.core.$ZodBranded<z.ZodString, "SkillId", "out">>>;
|
|
models: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
roles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
budget: z.ZodObject<{
|
|
steps: z.ZodNumber;
|
|
tokens: z.ZodNumber;
|
|
activeMinutes: z.ZodNumber;
|
|
humanCalls: z.ZodNumber;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>;
|
|
declarations: z.ZodObject<{
|
|
models: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
version: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>>>;
|
|
ledger: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
label: z.ZodOptional<z.ZodString>;
|
|
fields: z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
type: z.ZodEnum<{
|
|
number: "number";
|
|
boolean: "boolean";
|
|
json: "json";
|
|
text: "text";
|
|
date: "date";
|
|
integer: "integer";
|
|
timestamp: "timestamp";
|
|
}>;
|
|
label: z.ZodOptional<z.ZodString>;
|
|
primaryKey: z.ZodDefault<z.ZodBoolean>;
|
|
masked: z.ZodDefault<z.ZodBoolean>;
|
|
}, z.core.$strip>>;
|
|
}, z.core.$strip>>>;
|
|
listeners: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
origin: z.ZodEnum<{
|
|
static: "static";
|
|
dynamic: "dynamic";
|
|
}>;
|
|
eventType: z.ZodEnum<{
|
|
human: "human";
|
|
data: "data";
|
|
time: "time";
|
|
control: "control";
|
|
}>;
|
|
keyFilter: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
condition: z.ZodOptional<z.ZodString>;
|
|
semantic: z.ZodEnum<{
|
|
observe: "observe";
|
|
"complete-step": "complete-step";
|
|
}>;
|
|
deadline: z.ZodString;
|
|
escalation: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
nudge: "nudge";
|
|
reroute: "reroute";
|
|
escalate: "escalate";
|
|
}>>>;
|
|
}, z.core.$strip>>>;
|
|
harness: z.ZodObject<{
|
|
memoryWindow: z.ZodDefault<z.ZodNumber>;
|
|
stallAfter: z.ZodDefault<z.ZodString>;
|
|
nudge: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
after: z.ZodString;
|
|
action: z.ZodEnum<{
|
|
nudge: "nudge";
|
|
escalate: "escalate";
|
|
}>;
|
|
}, z.core.$strip>>>;
|
|
retry: z.ZodDefault<z.ZodObject<{
|
|
times: z.ZodDefault<z.ZodNumber>;
|
|
backoff: z.ZodDefault<z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>;
|
|
assets: z.ZodObject<{
|
|
businessModel: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
paradigm: z.ZodLiteral<"loop">;
|
|
cmmnXml: z.ZodString;
|
|
narrative: z.ZodString;
|
|
dmn: z.ZodObject<{
|
|
drd: z.ZodArray<z.ZodObject<{
|
|
decision: z.ZodString;
|
|
requires: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
inputs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
}, z.core.$strip>>;
|
|
tables: z.ZodArray<z.ZodObject<{
|
|
id: z.ZodString;
|
|
label: z.ZodString;
|
|
hitPolicy: z.ZodDefault<z.ZodEnum<{
|
|
UNIQUE: "UNIQUE";
|
|
FIRST: "FIRST";
|
|
PRIORITY: "PRIORITY";
|
|
COLLECT: "COLLECT";
|
|
}>>;
|
|
inputs: z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
expression: z.ZodString;
|
|
}, z.core.$strip>>;
|
|
outputs: z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
}, z.core.$strip>>;
|
|
rules: z.ZodArray<z.ZodObject<{
|
|
id: z.ZodString;
|
|
when: z.ZodArray<z.ZodString>;
|
|
then: z.ZodArray<z.ZodUnknown>;
|
|
annotation: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
}, z.core.$strip>>;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
paradigm: z.ZodLiteral<"flow">;
|
|
steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"tool">;
|
|
tool: z.ZodString;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"llm">;
|
|
model: z.ZodString;
|
|
template: z.ZodString;
|
|
outputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
card: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
deadline: z.ZodString;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"pure-tool">;
|
|
tool: z.ZodString;
|
|
name: z.ZodString;
|
|
label: z.ZodString;
|
|
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
output: z.ZodOptional<z.ZodObject<{
|
|
domain: z.ZodString;
|
|
object: z.ZodString;
|
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
when: z.ZodOptional<z.ZodString>;
|
|
failure: z.ZodObject<{
|
|
retry: z.ZodObject<{
|
|
times: z.ZodNumber;
|
|
backoff: z.ZodString;
|
|
}, z.core.$strip>;
|
|
fallback: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
kind: z.ZodLiteral<"human">;
|
|
workOrder: z.ZodEnum<{
|
|
execution: "execution";
|
|
acceptance: "acceptance";
|
|
}>;
|
|
}, z.core.$strip>, z.ZodObject<{
|
|
kind: z.ZodLiteral<"blocked">;
|
|
}, z.core.$strip>], "kind">;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>], "kind">>;
|
|
parallelGroups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
steps: z.ZodArray<z.ZodString>;
|
|
}, z.core.$strip>>>;
|
|
}, z.core.$strip>], "paradigm">;
|
|
skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
id: z.core.$ZodBranded<z.ZodString, "SkillId", "out">;
|
|
label: z.ZodString;
|
|
applicability: z.ZodString;
|
|
method: z.ZodString;
|
|
crystallized: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
tool: z.ZodString;
|
|
input: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
}, z.core.$strip>>>;
|
|
knowledgeRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
version: z.ZodString;
|
|
}, z.core.$strip>>>;
|
|
viewTemplates: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
html: z.ZodString;
|
|
}, z.core.$strip>>>;
|
|
cardSchemas: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
distillHooks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
on: z.ZodEnum<{
|
|
terminal: "terminal";
|
|
milestone: "milestone";
|
|
}>;
|
|
milestone: z.ZodOptional<z.ZodString>;
|
|
prompt: z.ZodString;
|
|
}, z.core.$strip>>>;
|
|
}, z.core.$strip>;
|
|
samples: z.ZodArray<z.ZodObject<{
|
|
name: z.ZodString;
|
|
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
message: z.ZodOptional<z.ZodString>;
|
|
expect: z.ZodObject<{
|
|
ports: z.ZodArray<z.ZodString>;
|
|
payloadShape: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>>;
|
|
entry: z.ZodObject<{
|
|
file: z.ZodString;
|
|
checksum: z.ZodString;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>;
|
|
export type ActivityManifest = z.infer<typeof activityManifestSchema>;
|
|
export declare const staticAuditFindingSchema: z.ZodObject<{
|
|
code: z.ZodEnum<{
|
|
"signature-invalid": "signature-invalid";
|
|
"sdk-incompatible": "sdk-incompatible";
|
|
"schema-invalid": "schema-invalid";
|
|
"tool-contract-missing": "tool-contract-missing";
|
|
"model-name-unbound": "model-name-unbound";
|
|
"dangling-listener": "dangling-listener";
|
|
"template-has-script": "template-has-script";
|
|
"environment-capability": "environment-capability";
|
|
"dynamic-eval": "dynamic-eval";
|
|
"ledger-type-conflict": "ledger-type-conflict";
|
|
"acceptance-level-misreported": "acceptance-level-misreported";
|
|
}>;
|
|
severity: z.ZodEnum<{
|
|
error: "error";
|
|
warn: "warn";
|
|
}>;
|
|
message: z.ZodString;
|
|
at: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>;
|
|
export type StaticAuditFinding = z.infer<typeof staticAuditFindingSchema>;
|
|
export declare const replayAuditReportSchema: z.ZodObject<{
|
|
oldPassStillPass: z.ZodBoolean;
|
|
checked: z.ZodNumber;
|
|
regressions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
taskId: z.ZodString;
|
|
detail: z.ZodString;
|
|
}, z.core.$strip>>>;
|
|
newlyBlocked: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
taskId: z.ZodString;
|
|
detail: z.ZodString;
|
|
}, z.core.$strip>>>;
|
|
skippedNoHistory: z.ZodDefault<z.ZodBoolean>;
|
|
}, z.core.$strip>;
|
|
export type ReplayAuditReport = z.infer<typeof replayAuditReportSchema>;
|
|
export declare const installVerdictSchema: z.ZodObject<{
|
|
accepted: z.ZodBoolean;
|
|
staticFindings: z.ZodArray<z.ZodObject<{
|
|
code: z.ZodEnum<{
|
|
"signature-invalid": "signature-invalid";
|
|
"sdk-incompatible": "sdk-incompatible";
|
|
"schema-invalid": "schema-invalid";
|
|
"tool-contract-missing": "tool-contract-missing";
|
|
"model-name-unbound": "model-name-unbound";
|
|
"dangling-listener": "dangling-listener";
|
|
"template-has-script": "template-has-script";
|
|
"environment-capability": "environment-capability";
|
|
"dynamic-eval": "dynamic-eval";
|
|
"ledger-type-conflict": "ledger-type-conflict";
|
|
"acceptance-level-misreported": "acceptance-level-misreported";
|
|
}>;
|
|
severity: z.ZodEnum<{
|
|
error: "error";
|
|
warn: "warn";
|
|
}>;
|
|
message: z.ZodString;
|
|
at: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>>;
|
|
replay: z.ZodObject<{
|
|
oldPassStillPass: z.ZodBoolean;
|
|
checked: z.ZodNumber;
|
|
regressions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
taskId: z.ZodString;
|
|
detail: z.ZodString;
|
|
}, z.core.$strip>>>;
|
|
newlyBlocked: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
taskId: z.ZodString;
|
|
detail: z.ZodString;
|
|
}, z.core.$strip>>>;
|
|
skippedNoHistory: z.ZodDefault<z.ZodBoolean>;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>;
|
|
export type InstallVerdict = z.infer<typeof installVerdictSchema>;
|