@wowok/agent-mcp 3.0.2 → 3.0.4
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/LICENSE +0 -3
- package/dist/harness/recover.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/knowledge/account-marks.js +1 -1
- package/dist/knowledge/arbitration-risk.js +1 -1
- package/dist/knowledge/event-semantics.js +1 -1
- package/dist/knowledge/flywheel-loop.d.ts +4 -52
- package/dist/knowledge/flywheel-loop.js +1 -1
- package/dist/knowledge/guard-lint.js +1 -1
- package/dist/knowledge/guard-puzzle.js +1 -1
- package/dist/knowledge/index.d.ts +2 -225
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/machine-risk.js +1 -1
- package/dist/knowledge/machine-translation.js +1 -1
- package/dist/knowledge/onchain-constants.js +1 -1
- package/dist/knowledge/order-ledger.d.ts +2 -2
- package/dist/knowledge/order-ledger.js +1 -1
- package/dist/knowledge/order-puzzle.d.ts +4 -4
- package/dist/knowledge/order-puzzle.js +1 -1
- package/dist/knowledge/order-risk.d.ts +1 -0
- package/dist/knowledge/order-risk.js +1 -1
- package/dist/knowledge/order-templates.d.ts +1 -1
- package/dist/knowledge/order-templates.js +1 -1
- package/dist/knowledge/safety-rules.js +1 -1
- package/dist/knowledge/service-ledger.js +1 -1
- package/dist/knowledge/service-risk.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/workspace-lists.js +1 -1
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/context-assembly.d.ts +3 -1
- package/dist/playbooks/service-build/context-assembly.js +1 -1
- package/dist/playbooks/service-build/machine-nodes.d.ts +2 -0
- package/dist/playbooks/service-build/machine-nodes.js +1 -1
- package/dist/playbooks/service-build/machine-panorama.d.ts +7 -0
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/review/machine.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/call/allocation.d.ts +5 -0
- package/dist/schema/call/arbitration.d.ts +5 -0
- package/dist/schema/call/base.d.ts +17 -3
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +29 -0
- package/dist/schema/call/bridge.js +1 -1
- package/dist/schema/call/contact.d.ts +5 -0
- package/dist/schema/call/demand.d.ts +5 -0
- package/dist/schema/call/error-codes.d.ts +2 -0
- package/dist/schema/call/error-codes.js +1 -0
- package/dist/schema/call/guard.d.ts +19 -4
- package/dist/schema/call/machine.d.ts +10 -0
- package/dist/schema/call/order.d.ts +5 -0
- package/dist/schema/call/payment.d.ts +5 -0
- package/dist/schema/call/permission.d.ts +5 -0
- package/dist/schema/call/personal.d.ts +5 -0
- package/dist/schema/call/progress.d.ts +5 -0
- package/dist/schema/call/proof.d.ts +10 -0
- package/dist/schema/call/repository.d.ts +5 -0
- package/dist/schema/call/reward.d.ts +5 -0
- package/dist/schema/call/semantic.d.ts +9 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +5 -0
- package/dist/schema/call/treasury.d.ts +5 -0
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/goal/index.d.ts +3 -3
- package/dist/schema/goal/planning.d.ts +2 -2
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/index.js +1 -1
- package/dist/schema/industry-pack/index.d.ts +4 -4
- package/dist/schema/industry-pack/modes.d.ts +4 -4
- package/dist/schema/interaction/index.d.ts +34 -0
- package/dist/schema/interaction/index.js +1 -0
- package/dist/schema/local/index.d.ts +558 -0
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/messenger/index.d.ts +31 -25
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +91 -1
- package/dist/schema/operations.js +1 -1
- package/dist/schema/persona/index.d.ts +2 -2
- package/dist/schema/query/bi.d.ts +0 -4
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-query/index.d.ts +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/trust/index.d.ts +3 -3
- package/dist/schema/workspace/index.d.ts +1 -1
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +4 -0
- package/dist/schemas/ask_user.output.json +54 -0
- package/dist/schemas/ask_user.schema.json +78 -0
- package/dist/schemas/bridge_operation.output.json +4 -0
- package/dist/schemas/bridge_operation.schema.json +50 -5
- package/dist/schemas/guard2file.schema.json +10 -1
- package/dist/schemas/index.json +13 -1
- package/dist/schemas/local_history_operation.output.json +1458 -0
- package/dist/schemas/local_history_operation.schema.json +105 -0
- package/dist/schemas/local_info_operation.output.json +4 -0
- package/dist/schemas/local_mark_operation.output.json +4 -0
- package/dist/schemas/machineNode2file.schema.json +10 -1
- package/dist/schemas/messenger_operation.output.json +8 -0
- package/dist/schemas/messenger_operation.schema.json +8 -0
- package/dist/schemas/onchain_events.output.json +2 -2
- package/dist/schemas/onchain_operations.output.json +4 -1
- package/dist/schemas/onchain_operations.schema.json +210 -28
- package/dist/schemas/onchain_operations_allocation.schema.json +10 -1
- package/dist/schemas/onchain_operations_arbitration.schema.json +10 -1
- package/dist/schemas/onchain_operations_contact.schema.json +10 -1
- package/dist/schemas/onchain_operations_demand.schema.json +10 -1
- package/dist/schemas/onchain_operations_gen_passport.schema.json +10 -1
- package/dist/schemas/onchain_operations_gen_proof.schema.json +10 -1
- package/dist/schemas/onchain_operations_guard.schema.json +40 -11
- package/dist/schemas/onchain_operations_machine.schema.json +10 -1
- package/dist/schemas/onchain_operations_order.schema.json +10 -1
- package/dist/schemas/onchain_operations_payment.schema.json +10 -1
- package/dist/schemas/onchain_operations_permission.schema.json +10 -1
- package/dist/schemas/onchain_operations_personal.schema.json +10 -1
- package/dist/schemas/onchain_operations_progress.schema.json +10 -1
- package/dist/schemas/onchain_operations_proof.schema.json +10 -1
- package/dist/schemas/onchain_operations_repository.schema.json +10 -1
- package/dist/schemas/onchain_operations_reward.schema.json +10 -1
- package/dist/schemas/onchain_operations_service.schema.json +10 -1
- package/dist/schemas/onchain_operations_treasury.schema.json +10 -1
- package/dist/schemas/query_toolkit.output.json +17 -16
- package/dist/schemas/query_toolkit.schema.json +1 -1
- package/dist/tools/handlers/ask-user.d.ts +3 -0
- package/dist/tools/handlers/ask-user.js +1 -0
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/local.d.ts +1 -0
- package/dist/tools/handlers/local.js +1 -1
- package/dist/tools/handlers/messenger.js +1 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.js +1 -1
- package/dist/tools/registry/bridge.js +1 -1
- package/dist/tools/registry/business.js +1 -1
- package/dist/tools/registry/interaction.d.ts +2 -0
- package/dist/tools/registry/interaction.js +1 -0
- package/dist/tools/registry/local.js +1 -1
- package/dist/tools/registry/monitor.js +1 -1
- package/dist/tools/registry/onchain.js +1 -1
- package/dist/tools/registry/query.js +1 -1
- package/dist/tools/shared.js +1 -1
- package/dist/tools/types.d.ts +7 -1
- package/dist/tools/wrap.d.ts +3 -3
- package/dist/tools/wrap.js +1 -1
- package/package.json +2 -2
- package/dist/knowledge/allocation-confirm.d.ts +0 -115
- package/dist/knowledge/allocation-confirm.js +0 -1
- package/dist/knowledge/allocation-context.d.ts +0 -58
- package/dist/knowledge/allocation-context.js +0 -1
- package/dist/knowledge/allocation-translation.d.ts +0 -72
- package/dist/knowledge/allocation-translation.js +0 -1
- package/dist/knowledge/arb-confirm.d.ts +0 -28
- package/dist/knowledge/arb-confirm.js +0 -1
- package/dist/knowledge/arb-translation.d.ts +0 -48
- package/dist/knowledge/arb-translation.js +0 -1
- package/dist/knowledge/arbitration-confirm.d.ts +0 -135
- package/dist/knowledge/arbitration-confirm.js +0 -1
- package/dist/knowledge/arbitration-context.d.ts +0 -81
- package/dist/knowledge/arbitration-context.js +0 -1
- package/dist/knowledge/arbitration-translation.d.ts +0 -91
- package/dist/knowledge/arbitration-translation.js +0 -1
- package/dist/knowledge/bridge-confirm.d.ts +0 -26
- package/dist/knowledge/bridge-confirm.js +0 -1
- package/dist/knowledge/bridge-translation.d.ts +0 -37
- package/dist/knowledge/bridge-translation.js +0 -1
- package/dist/knowledge/contact-confirm.d.ts +0 -27
- package/dist/knowledge/contact-confirm.js +0 -1
- package/dist/knowledge/contact-translation.d.ts +0 -39
- package/dist/knowledge/contact-translation.js +0 -1
- package/dist/knowledge/demand-confirm.d.ts +0 -32
- package/dist/knowledge/demand-confirm.js +0 -1
- package/dist/knowledge/demand-context.d.ts +0 -17
- package/dist/knowledge/demand-context.js +0 -1
- package/dist/knowledge/demand-ledger.d.ts +0 -26
- package/dist/knowledge/demand-ledger.js +0 -1
- package/dist/knowledge/demand-puzzle.d.ts +0 -29
- package/dist/knowledge/demand-puzzle.js +0 -1
- package/dist/knowledge/demand-templates.d.ts +0 -12
- package/dist/knowledge/demand-templates.js +0 -1
- package/dist/knowledge/demand-translation.d.ts +0 -55
- package/dist/knowledge/demand-translation.js +0 -1
- package/dist/knowledge/examples-scanner-cli.d.ts +0 -1
- package/dist/knowledge/examples-scanner-cli.js +0 -1
- package/dist/knowledge/examples-scanner.d.ts +0 -121
- package/dist/knowledge/examples-scanner.js +0 -1
- package/dist/knowledge/glossary.d.ts +0 -18
- package/dist/knowledge/glossary.js +0 -1
- package/dist/knowledge/guard-bytecode-spec.d.ts +0 -82
- package/dist/knowledge/guard-bytecode-spec.js +0 -1
- package/dist/knowledge/guard-confirm.d.ts +0 -86
- package/dist/knowledge/guard-confirm.js +0 -1
- package/dist/knowledge/immutability.d.ts +0 -11
- package/dist/knowledge/immutability.js +0 -1
- package/dist/knowledge/machine-confirm.d.ts +0 -102
- package/dist/knowledge/machine-confirm.js +0 -1
- package/dist/knowledge/machine-context.d.ts +0 -160
- package/dist/knowledge/machine-context.js +0 -1
- package/dist/knowledge/machine-render.d.ts +0 -41
- package/dist/knowledge/machine-render.js +0 -1
- package/dist/knowledge/mcp-schema-audit-cli.d.ts +0 -1
- package/dist/knowledge/mcp-schema-audit-cli.js +0 -1
- package/dist/knowledge/mcp-schema-audit.d.ts +0 -91
- package/dist/knowledge/mcp-schema-audit.js +0 -1
- package/dist/knowledge/messenger-guard-guidance.d.ts +0 -17
- package/dist/knowledge/messenger-guard-guidance.js +0 -1
- package/dist/knowledge/order-confirm.d.ts +0 -115
- package/dist/knowledge/order-confirm.js +0 -1
- package/dist/knowledge/order-context.d.ts +0 -66
- package/dist/knowledge/order-context.js +0 -1
- package/dist/knowledge/order-translation.d.ts +0 -78
- package/dist/knowledge/order-translation.js +0 -1
- package/dist/knowledge/overrides-loader.d.ts +0 -13
- package/dist/knowledge/overrides-loader.js +0 -1
- package/dist/knowledge/passport-confirm.d.ts +0 -130
- package/dist/knowledge/passport-confirm.js +0 -1
- package/dist/knowledge/passport-context.d.ts +0 -59
- package/dist/knowledge/passport-context.js +0 -1
- package/dist/knowledge/passport-puzzle.d.ts +0 -108
- package/dist/knowledge/passport-puzzle.js +0 -1
- package/dist/knowledge/passport-risk.d.ts +0 -70
- package/dist/knowledge/passport-risk.js +0 -1
- package/dist/knowledge/passport-translation.d.ts +0 -68
- package/dist/knowledge/passport-translation.js +0 -1
- package/dist/knowledge/payment-confirm.d.ts +0 -26
- package/dist/knowledge/payment-confirm.js +0 -1
- package/dist/knowledge/payment-translation.d.ts +0 -37
- package/dist/knowledge/payment-translation.js +0 -1
- package/dist/knowledge/permission-confirm.d.ts +0 -110
- package/dist/knowledge/permission-confirm.js +0 -1
- package/dist/knowledge/permission-context.d.ts +0 -69
- package/dist/knowledge/permission-context.js +0 -1
- package/dist/knowledge/permission-translation.d.ts +0 -57
- package/dist/knowledge/permission-translation.js +0 -1
- package/dist/knowledge/personal-confirm.d.ts +0 -29
- package/dist/knowledge/personal-confirm.js +0 -1
- package/dist/knowledge/personal-translation.d.ts +0 -37
- package/dist/knowledge/personal-translation.js +0 -1
- package/dist/knowledge/process-model.d.ts +0 -14
- package/dist/knowledge/process-model.js +0 -1
- package/dist/knowledge/progress-confirm.d.ts +0 -108
- package/dist/knowledge/progress-confirm.js +0 -1
- package/dist/knowledge/progress-context.d.ts +0 -123
- package/dist/knowledge/progress-context.js +0 -1
- package/dist/knowledge/progress-translation.d.ts +0 -52
- package/dist/knowledge/progress-translation.js +0 -1
- package/dist/knowledge/proof-confirm.d.ts +0 -31
- package/dist/knowledge/proof-confirm.js +0 -1
- package/dist/knowledge/proof-context.d.ts +0 -17
- package/dist/knowledge/proof-context.js +0 -1
- package/dist/knowledge/proof-ledger.d.ts +0 -34
- package/dist/knowledge/proof-ledger.js +0 -1
- package/dist/knowledge/proof-puzzle.d.ts +0 -35
- package/dist/knowledge/proof-puzzle.js +0 -1
- package/dist/knowledge/proof-templates.d.ts +0 -22
- package/dist/knowledge/proof-templates.js +0 -1
- package/dist/knowledge/proof-translation.d.ts +0 -52
- package/dist/knowledge/proof-translation.js +0 -1
- package/dist/knowledge/registrar-confirm.d.ts +0 -26
- package/dist/knowledge/registrar-confirm.js +0 -1
- package/dist/knowledge/registrar-translation.d.ts +0 -37
- package/dist/knowledge/registrar-translation.js +0 -1
- package/dist/knowledge/repository-confirm.d.ts +0 -40
- package/dist/knowledge/repository-confirm.js +0 -1
- package/dist/knowledge/repository-context.d.ts +0 -12
- package/dist/knowledge/repository-context.js +0 -1
- package/dist/knowledge/repository-ledger.d.ts +0 -25
- package/dist/knowledge/repository-ledger.js +0 -1
- package/dist/knowledge/repository-puzzle.d.ts +0 -30
- package/dist/knowledge/repository-puzzle.js +0 -1
- package/dist/knowledge/repository-templates.d.ts +0 -14
- package/dist/knowledge/repository-templates.js +0 -1
- package/dist/knowledge/repository-translation.d.ts +0 -58
- package/dist/knowledge/repository-translation.js +0 -1
- package/dist/knowledge/resource-confirm.d.ts +0 -25
- package/dist/knowledge/resource-confirm.js +0 -1
- package/dist/knowledge/resource-translation.d.ts +0 -37
- package/dist/knowledge/resource-translation.js +0 -1
- package/dist/knowledge/reward-confirm.d.ts +0 -116
- package/dist/knowledge/reward-confirm.js +0 -1
- package/dist/knowledge/reward-context.d.ts +0 -127
- package/dist/knowledge/reward-context.js +0 -1
- package/dist/knowledge/reward-translation.d.ts +0 -58
- package/dist/knowledge/reward-translation.js +0 -1
- package/dist/knowledge/service-confirm.d.ts +0 -161
- package/dist/knowledge/service-confirm.js +0 -1
- package/dist/knowledge/service-context.d.ts +0 -66
- package/dist/knowledge/service-context.js +0 -1
- package/dist/knowledge/service-translation.d.ts +0 -103
- package/dist/knowledge/service-translation.js +0 -1
- package/dist/knowledge/treasury-confirm.d.ts +0 -133
- package/dist/knowledge/treasury-confirm.js +0 -1
- package/dist/knowledge/treasury-context.d.ts +0 -64
- package/dist/knowledge/treasury-context.js +0 -1
- package/dist/knowledge/treasury-translation.d.ts +0 -78
- package/dist/knowledge/treasury-translation.js +0 -1
- package/dist/knowledge/util-confirm.d.ts +0 -24
- package/dist/knowledge/util-confirm.js +0 -1
- package/dist/knowledge/util-translation.d.ts +0 -39
- package/dist/knowledge/util-translation.js +0 -1
- package/dist/loop-engineering/aggregate.d.ts +0 -50
- package/dist/loop-engineering/aggregate.js +0 -1
- package/dist/loop-engineering/context-collect.d.ts +0 -7
- package/dist/loop-engineering/context-collect.js +0 -1
- package/dist/loop-engineering/diagnose.d.ts +0 -22
- package/dist/loop-engineering/diagnose.js +0 -1
- package/dist/loop-engineering/improve.d.ts +0 -55
- package/dist/loop-engineering/improve.js +0 -1
- package/dist/loop-engineering/index.d.ts +0 -4
- package/dist/loop-engineering/index.js +0 -1
- package/dist/loop-engineering/pipeline.d.ts +0 -17
- package/dist/loop-engineering/pipeline.js +0 -1
- package/dist/schema/utils/object-type-utils.d.ts +0 -12
- package/dist/schema/utils/object-type-utils.js +0 -1
- package/dist/telemetry/index.d.ts +0 -19
- package/dist/telemetry/index.js +0 -1
- package/dist/telemetry/redact.d.ts +0 -2
- package/dist/telemetry/redact.js +0 -1
- package/dist/telemetry/storage.d.ts +0 -8
- package/dist/telemetry/storage.js +0 -1
|
@@ -16,7 +16,6 @@ export declare const ProjectObjectTypeEnum: z.ZodEnum<{
|
|
|
16
16
|
reward: "reward";
|
|
17
17
|
permission: "permission";
|
|
18
18
|
guard: "guard";
|
|
19
|
-
allocation: "allocation";
|
|
20
19
|
order: "order";
|
|
21
20
|
service: "service";
|
|
22
21
|
machine: "machine";
|
|
@@ -25,6 +24,7 @@ export declare const ProjectObjectTypeEnum: z.ZodEnum<{
|
|
|
25
24
|
progress: "progress";
|
|
26
25
|
demand: "demand";
|
|
27
26
|
contact: "contact";
|
|
27
|
+
allocation: "allocation";
|
|
28
28
|
personal: "personal";
|
|
29
29
|
arb: "arb";
|
|
30
30
|
proof: "proof";
|
|
@@ -112,7 +112,6 @@ export declare const PlanningActionMembers: [z.ZodObject<{
|
|
|
112
112
|
reward: "reward";
|
|
113
113
|
permission: "permission";
|
|
114
114
|
guard: "guard";
|
|
115
|
-
allocation: "allocation";
|
|
116
115
|
order: "order";
|
|
117
116
|
service: "service";
|
|
118
117
|
machine: "machine";
|
|
@@ -121,6 +120,7 @@ export declare const PlanningActionMembers: [z.ZodObject<{
|
|
|
121
120
|
progress: "progress";
|
|
122
121
|
demand: "demand";
|
|
123
122
|
contact: "contact";
|
|
123
|
+
allocation: "allocation";
|
|
124
124
|
personal: "personal";
|
|
125
125
|
arb: "arb";
|
|
126
126
|
proof: "proof";
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './persona/index.js';
|
|
|
14
14
|
export * from './intent-radar/index.js';
|
|
15
15
|
export * from './goal/index.js';
|
|
16
16
|
export * from './employee/index.js';
|
|
17
|
+
export * from './interaction/index.js';
|
|
17
18
|
export * from './schema-query/index.js';
|
|
18
19
|
export * from './industry-pack/index.js';
|
|
19
20
|
export * from './workspace/index.js';
|
package/dist/schema/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from'./call/index.js';export*from'./query/index.js';export*from'./local/index.js';export*from'./messenger/index.js';export*from'./common/index.js';export*from'./operations.js';export*from'./utils/guard-parser.js';export*from'./utils/node-parser.js';export*from'./config/index.js';export*from'./trust/index.js';export*from'./evaluation/index.js';export*from'./watch/index.js';export*from'./persona/index.js';export*from'./intent-radar/index.js';export*from'./goal/index.js';export*from'./employee/index.js';export*from'./schema-query/index.js';export*from'./industry-pack/index.js';export*from'./workspace/index.js';export*from'./workflow/index.js';export*from'./permission/index.js';export*from'./keeper/index.js';export{MCP_SCHEMA_VERSION,getSchemaVersions,checkClientSchemaCompatibility,attachSchemaWarning}from'./schema-version.js';
|
|
1
|
+
export*from'./call/index.js';export*from'./query/index.js';export*from'./local/index.js';export*from'./messenger/index.js';export*from'./common/index.js';export*from'./operations.js';export*from'./utils/guard-parser.js';export*from'./utils/node-parser.js';export*from'./config/index.js';export*from'./trust/index.js';export*from'./evaluation/index.js';export*from'./watch/index.js';export*from'./persona/index.js';export*from'./intent-radar/index.js';export*from'./goal/index.js';export*from'./employee/index.js';export*from'./interaction/index.js';export*from'./schema-query/index.js';export*from'./industry-pack/index.js';export*from'./workspace/index.js';export*from'./workflow/index.js';export*from'./permission/index.js';export*from'./keeper/index.js';export{MCP_SCHEMA_VERSION,getSchemaVersions,checkClientSchemaCompatibility,attachSchemaWarning}from'./schema-version.js';
|
|
@@ -212,8 +212,8 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
|
|
|
212
212
|
metrics: z.ZodArray<z.ZodString>;
|
|
213
213
|
levers: z.ZodArray<z.ZodEnum<{
|
|
214
214
|
reward: "reward";
|
|
215
|
-
buy_guard: "buy_guard";
|
|
216
215
|
discount: "discount";
|
|
216
|
+
buy_guard: "buy_guard";
|
|
217
217
|
machine_design: "machine_design";
|
|
218
218
|
}>>;
|
|
219
219
|
target: z.ZodString;
|
|
@@ -221,8 +221,8 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
|
|
|
221
221
|
lever_suggestions: z.ZodArray<z.ZodObject<{
|
|
222
222
|
lever: z.ZodEnum<{
|
|
223
223
|
reward: "reward";
|
|
224
|
-
buy_guard: "buy_guard";
|
|
225
224
|
discount: "discount";
|
|
225
|
+
buy_guard: "buy_guard";
|
|
226
226
|
machine_design: "machine_design";
|
|
227
227
|
}>;
|
|
228
228
|
objective: z.ZodEnum<{
|
|
@@ -249,14 +249,14 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
|
|
|
249
249
|
score: z.ZodNumber;
|
|
250
250
|
matched_levers: z.ZodArray<z.ZodEnum<{
|
|
251
251
|
reward: "reward";
|
|
252
|
-
buy_guard: "buy_guard";
|
|
253
252
|
discount: "discount";
|
|
253
|
+
buy_guard: "buy_guard";
|
|
254
254
|
machine_design: "machine_design";
|
|
255
255
|
}>>;
|
|
256
256
|
missing_levers: z.ZodArray<z.ZodEnum<{
|
|
257
257
|
reward: "reward";
|
|
258
|
-
buy_guard: "buy_guard";
|
|
259
258
|
discount: "discount";
|
|
259
|
+
buy_guard: "buy_guard";
|
|
260
260
|
machine_design: "machine_design";
|
|
261
261
|
}>>;
|
|
262
262
|
}, z.core.$strip>>;
|
|
@@ -75,8 +75,8 @@ export declare const RecommendIndustryResultSchema: z.ZodObject<{
|
|
|
75
75
|
metrics: z.ZodArray<z.ZodString>;
|
|
76
76
|
levers: z.ZodArray<z.ZodEnum<{
|
|
77
77
|
reward: "reward";
|
|
78
|
-
buy_guard: "buy_guard";
|
|
79
78
|
discount: "discount";
|
|
79
|
+
buy_guard: "buy_guard";
|
|
80
80
|
machine_design: "machine_design";
|
|
81
81
|
}>>;
|
|
82
82
|
target: z.ZodString;
|
|
@@ -84,8 +84,8 @@ export declare const RecommendIndustryResultSchema: z.ZodObject<{
|
|
|
84
84
|
lever_suggestions: z.ZodArray<z.ZodObject<{
|
|
85
85
|
lever: z.ZodEnum<{
|
|
86
86
|
reward: "reward";
|
|
87
|
-
buy_guard: "buy_guard";
|
|
88
87
|
discount: "discount";
|
|
88
|
+
buy_guard: "buy_guard";
|
|
89
89
|
machine_design: "machine_design";
|
|
90
90
|
}>;
|
|
91
91
|
objective: z.ZodEnum<{
|
|
@@ -112,14 +112,14 @@ export declare const RecommendIndustryResultSchema: z.ZodObject<{
|
|
|
112
112
|
score: z.ZodNumber;
|
|
113
113
|
matched_levers: z.ZodArray<z.ZodEnum<{
|
|
114
114
|
reward: "reward";
|
|
115
|
-
buy_guard: "buy_guard";
|
|
116
115
|
discount: "discount";
|
|
116
|
+
buy_guard: "buy_guard";
|
|
117
117
|
machine_design: "machine_design";
|
|
118
118
|
}>>;
|
|
119
119
|
missing_levers: z.ZodArray<z.ZodEnum<{
|
|
120
120
|
reward: "reward";
|
|
121
|
-
buy_guard: "buy_guard";
|
|
122
121
|
discount: "discount";
|
|
122
|
+
buy_guard: "buy_guard";
|
|
123
123
|
machine_design: "machine_design";
|
|
124
124
|
}>>;
|
|
125
125
|
}, z.core.$strip>>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const AskOptionIdSchema: z.ZodString;
|
|
3
|
+
export declare const AskUserOptionSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
label: z.ZodString;
|
|
6
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type AskUserOption = z.infer<typeof AskUserOptionSchema>;
|
|
9
|
+
export declare const AskUserInputSchema: z.ZodObject<{
|
|
10
|
+
question: z.ZodString;
|
|
11
|
+
options: z.ZodArray<z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
label: z.ZodString;
|
|
14
|
+
description: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
recommended_id: z.ZodOptional<z.ZodString>;
|
|
17
|
+
multi_select: z.ZodDefault<z.ZodBoolean>;
|
|
18
|
+
allow_freeform: z.ZodDefault<z.ZodBoolean>;
|
|
19
|
+
context: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
export type AskUserInput = z.infer<typeof AskUserInputSchema>;
|
|
22
|
+
export declare const AskUserResultSchema: z.ZodObject<{
|
|
23
|
+
status: z.ZodLiteral<"success">;
|
|
24
|
+
action: z.ZodEnum<{
|
|
25
|
+
accept: "accept";
|
|
26
|
+
decline: "decline";
|
|
27
|
+
cancel: "cancel";
|
|
28
|
+
}>;
|
|
29
|
+
question: z.ZodString;
|
|
30
|
+
selected_ids: z.ZodArray<z.ZodString>;
|
|
31
|
+
selected_labels: z.ZodArray<z.ZodString>;
|
|
32
|
+
freeform_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type AskUserResult = z.infer<typeof AskUserResultSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z}from'zod';export const AskOptionIdSchema=z['string']()['trim']()['min'](0x1)['max'](0x28)['regex'](/^[a-z0-9][a-z0-9_]{0,39}$/i,'Option\x20id\x20must\x20be\x201-40\x20chars:\x20letters,\x20digits,\x20underscore');export const AskUserOptionSchema=z['object']({'id':AskOptionIdSchema['describe']('Stable\x20machine\x20id\x20returned\x20in\x20the\x20result\x20when\x20chosen\x20(e.g.\x20\x27strict_binding\x27).'),'label':z['string']()['trim']()['min'](0x1)['max'](0x78)['describe']('Short\x20user-visible\x20label\x20(a\x20few\x20words).'),'description':z['string']()['trim']()['max'](0x1f4)['optional']()['describe']('Optional\x20one-line\x20explanation\x20of\x20what\x20choosing\x20this\x20means.')});export const AskUserInputSchema=z['object']({'question':z['string']()['trim']()['min'](0x1)['max'](0x3e8)['describe']('The\x20single\x20decision\x20you\x20need\x20from\x20the\x20user.\x20Phrase\x20as\x20a\x20complete\x20question;\x20'+'use\x20the\x20user\x27s\x20language.\x20Do\x20NOT\x20stack\x20multiple\x20questions\x20into\x20one\x20call.'),'options':z['array'](AskUserOptionSchema)['min'](0x2)['max'](0x8)['describe']('Concrete\x20mutually-exclusive\x20choices\x20(or\x20combinable\x20choices\x20with\x20multi_select=true).\x20'+'Each\x20MUST\x20be\x20self-contained\x20—\x20the\x20user\x20decides\x20from\x20these\x20labels\x20alone.'),'recommended_id':AskOptionIdSchema['optional']()['describe']('id\x20of\x20the\x20option\x20you\x20recommend\x20(marked\x20as\x20suggested).\x20Must\x20match\x20one\x20of\x20options[].id.\x20'+'Omit\x20only\x20when\x20you\x20genuinely\x20have\x20no\x20recommendation.'),'multi_select':z['boolean']()['default'](![])['describe']('true\x20when\x20several\x20options\x20may\x20be\x20combined\x20(the\x20result\x20returns\x20an\x20id\x20array).'),'allow_freeform':z['boolean']()['default'](![])['describe']('true\x20to\x20additionally\x20allow\x20a\x20free-text\x20answer\x20not\x20covered\x20by\x20the\x20options.'),'context':z['string']()['trim']()['max'](0x320)['optional']()['describe']('Optional\x20short\x20explanation\x20of\x20WHY\x20this\x20decision\x20is\x20needed\x20and\x20what\x20each\x20path\x20'+'changes\x20—\x20shown\x20under\x20the\x20question,\x20never\x20instead\x20of\x20it.')})['strict']()['describe']('Ask\x20the\x20user\x20to\x20choose\x20between\x20concrete\x20options\x20before\x20continuing.');export const AskUserResultSchema=z['object']({'status':z['literal']('success'),'action':z['enum'](['accept','decline','cancel']),'question':z['string'](),'selected_ids':z['array'](z['string']()),'selected_labels':z['array'](z['string']()),'freeform_text':z['string']()['nullable']()['optional']()});
|