@wowok/agent-mcp 2.7.10 → 3.0.0
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/extensions/capability-manifest.d.ts +1 -82
- package/dist/extensions/capability-manifest.js +1 -1
- package/dist/extensions/constraint-registry.d.ts +6 -4
- package/dist/extensions/constraint-registry.js +1 -1
- package/dist/extensions/index.d.ts +4 -5
- package/dist/extensions/index.js +1 -1
- package/dist/extensions/industry-pack.js +1 -1
- package/dist/extensions/metric-registry.d.ts +6 -4
- package/dist/extensions/metric-registry.js +1 -1
- package/dist/extensions/mode-evaluator.d.ts +2 -3
- package/dist/extensions/mode-evaluator.js +1 -1
- package/dist/extensions/registry.d.ts +3 -25
- package/dist/extensions/registry.js +1 -1
- package/dist/extensions/types.d.ts +0 -68
- package/dist/goal/GoalEngine.d.ts +36 -1
- package/dist/goal/GoalEngine.js +1 -1
- package/dist/goal/types.d.ts +4 -0
- package/dist/knowledge/account-marks.d.ts +1 -0
- package/dist/knowledge/account-marks.js +1 -1
- package/dist/knowledge/fund-layer.d.ts +13 -9
- package/dist/knowledge/fund-layer.js +1 -1
- package/dist/knowledge/goal-completion.js +1 -1
- package/dist/knowledge/guard-bindings.d.ts +21 -0
- package/dist/knowledge/guard-bindings.js +1 -0
- package/dist/knowledge/index.d.ts +5 -3
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
- package/dist/knowledge/mcp-schema-audit.js +1 -1
- package/dist/knowledge/reward-risk.d.ts +1 -1
- package/dist/knowledge/reward-risk.js +1 -1
- package/dist/knowledge/safety-rules.d.ts +2 -1
- package/dist/knowledge/safety-rules.js +1 -1
- package/dist/knowledge/scenario-topology.d.ts +43 -0
- package/dist/knowledge/scenario-topology.js +1 -0
- package/dist/knowledge/supply-chain.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +35 -0
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/knowledge/workspace-lists.d.ts +1 -0
- package/dist/knowledge/workspace-lists.js +1 -1
- package/dist/monitor/MonitorLoop.d.ts +2 -0
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/monitor/ScopeResolver.js +1 -1
- package/dist/monitor/SuggestionBridge.d.ts +38 -0
- package/dist/monitor/SuggestionBridge.js +1 -0
- package/dist/participation/arbitrator-interest.d.ts +20 -0
- package/dist/participation/arbitrator-interest.js +1 -0
- package/dist/participation/demander-interest.d.ts +23 -0
- package/dist/participation/demander-interest.js +1 -0
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/context-assembly.js +1 -1
- package/dist/playbooks/service-build/machine-nodes.js +1 -1
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.d.ts +20 -0
- package/dist/playbooks/service-build/merchant-guide.js +1 -1
- package/dist/playbooks/service-build/mode-actions.d.ts +30 -6
- package/dist/playbooks/service-build/mode-actions.js +1 -1
- package/dist/playbooks/service-build/object-panorama.js +1 -1
- package/dist/playbooks/service-build/participation-radar.js +1 -1
- package/dist/playbooks/service-build/relationship-profile.d.ts +2 -0
- package/dist/playbooks/service-build/relationship-profile.js +1 -0
- package/dist/playbooks/service-build/semantic-graph.d.ts +5 -1
- package/dist/playbooks/service-build/semantic-graph.js +1 -1
- package/dist/playbooks/service-build/service-panorama.js +1 -1
- package/dist/relationship/derivation.d.ts +88 -0
- package/dist/relationship/derivation.js +1 -0
- package/dist/relationship/incentive.d.ts +38 -0
- package/dist/relationship/incentive.js +1 -0
- package/dist/relationship/index.d.ts +4 -0
- package/dist/relationship/index.js +1 -0
- package/dist/relationship/registry.d.ts +13 -0
- package/dist/relationship/registry.js +1 -0
- package/dist/relationship/types.d.ts +45 -0
- package/dist/relationship/types.js +1 -0
- package/dist/review/progress.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/safety/preview.js +1 -1
- package/dist/schema/call/bridge.d.ts +25 -3
- package/dist/schema/call/bridge.js +1 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/goal/index.d.ts +40 -14
- package/dist/schema/goal/index.js +1 -1
- package/dist/schema/goal/planning.d.ts +6 -6
- package/dist/schema/industry-pack/index.d.ts +58 -0
- package/dist/schema/industry-pack/index.js +1 -1
- package/dist/schema/industry-pack/modes.d.ts +59 -1
- package/dist/schema/industry-pack/modes.js +1 -1
- package/dist/schema/intent-radar/index.d.ts +19 -19
- package/dist/schema/local/index.d.ts +11 -0
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/operations.d.ts +58 -16
- package/dist/schema/persona/index.d.ts +1 -1
- package/dist/schema/query/bi.d.ts +145 -16
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +2 -2
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +29 -0
- package/dist/schemas/account_operation.schema.json +6 -2
- package/dist/schemas/bridge_operation.output.json +24 -1
- package/dist/schemas/bridge_operation.schema.json +73 -1
- package/dist/schemas/goal_operation.schema.json +76 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/industry_pack_operation.output.json +176 -1
- package/dist/schemas/industry_pack_operation.schema.json +19 -0
- package/dist/schemas/onchain_events.output.json +1 -1
- package/dist/schemas/onchain_operations.schema.json +41 -41
- package/dist/schemas/onchain_operations_allocation.schema.json +4 -4
- package/dist/schemas/onchain_operations_arbitration.schema.json +3 -3
- package/dist/schemas/onchain_operations_contact.schema.json +2 -2
- package/dist/schemas/onchain_operations_demand.schema.json +2 -2
- package/dist/schemas/onchain_operations_machine.schema.json +2 -2
- package/dist/schemas/onchain_operations_order.schema.json +2 -2
- package/dist/schemas/onchain_operations_payment.schema.json +1 -1
- package/dist/schemas/onchain_operations_permission.schema.json +2 -2
- package/dist/schemas/onchain_operations_progress.schema.json +2 -2
- package/dist/schemas/onchain_operations_repository.schema.json +2 -2
- package/dist/schemas/onchain_operations_reward.schema.json +6 -6
- package/dist/schemas/onchain_operations_service.schema.json +7 -7
- package/dist/schemas/onchain_operations_treasury.schema.json +6 -6
- package/dist/schemas/onchain_table_data.output.json +53 -0
- package/dist/schemas/query_toolkit.output.json +240 -7
- package/dist/schemas/query_toolkit.schema.json +53 -0
- package/dist/task/ProcessStore.d.ts +18 -1
- package/dist/task/ProcessStore.js +1 -1
- package/dist/task/types.d.ts +24 -0
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/evaluation.js +1 -1
- package/dist/tools/handlers/goal.js +1 -1
- package/dist/tools/handlers/industry-pack.js +1 -1
- package/dist/tools/handlers/local.d.ts +4 -3
- package/dist/tools/handlers/local.js +1 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/permission.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/workflow.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/rules-hook.d.ts +1 -0
- package/dist/tools/rules-hook.js +1 -1
- package/dist/tools/shared.js +1 -1
- package/package.json +2 -2
- package/dist/mode-market/index.d.ts +0 -3
- package/dist/mode-market/index.js +0 -1
- package/dist/mode-market/registry.d.ts +0 -53
- package/dist/mode-market/registry.js +0 -1
- package/dist/mode-market/review.d.ts +0 -27
- package/dist/mode-market/review.js +0 -1
- package/dist/mode-market/submission.d.ts +0 -25
- package/dist/mode-market/submission.js +0 -1
|
@@ -11,8 +11,8 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
11
11
|
conversation_id: z.ZodOptional<z.ZodString>;
|
|
12
12
|
create_process: z.ZodOptional<z.ZodBoolean>;
|
|
13
13
|
network: z.ZodOptional<z.ZodEnum<{
|
|
14
|
-
testnet: "testnet";
|
|
15
14
|
mainnet: "mainnet";
|
|
15
|
+
testnet: "testnet";
|
|
16
16
|
}>>;
|
|
17
17
|
}, z.core.$strict>, z.ZodObject<{
|
|
18
18
|
action: z.ZodLiteral<"list">;
|
|
@@ -32,23 +32,23 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
32
32
|
conversation_id: z.ZodOptional<z.ZodString>;
|
|
33
33
|
include_finished: z.ZodOptional<z.ZodBoolean>;
|
|
34
34
|
network: z.ZodOptional<z.ZodEnum<{
|
|
35
|
-
testnet: "testnet";
|
|
36
35
|
mainnet: "mainnet";
|
|
36
|
+
testnet: "testnet";
|
|
37
37
|
}>>;
|
|
38
38
|
}, z.core.$strict>, z.ZodObject<{
|
|
39
39
|
action: z.ZodLiteral<"get">;
|
|
40
40
|
id: z.ZodString;
|
|
41
41
|
network: z.ZodOptional<z.ZodEnum<{
|
|
42
|
-
testnet: "testnet";
|
|
43
42
|
mainnet: "mainnet";
|
|
43
|
+
testnet: "testnet";
|
|
44
44
|
}>>;
|
|
45
45
|
}, z.core.$strict>, z.ZodObject<{
|
|
46
46
|
action: z.ZodLiteral<"approve">;
|
|
47
47
|
id: z.ZodString;
|
|
48
48
|
note: z.ZodOptional<z.ZodString>;
|
|
49
49
|
network: z.ZodOptional<z.ZodEnum<{
|
|
50
|
-
testnet: "testnet";
|
|
51
50
|
mainnet: "mainnet";
|
|
51
|
+
testnet: "testnet";
|
|
52
52
|
}>>;
|
|
53
53
|
}, z.core.$strict>, z.ZodObject<{
|
|
54
54
|
action: z.ZodLiteral<"bind">;
|
|
@@ -56,8 +56,8 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
56
56
|
account: z.ZodString;
|
|
57
57
|
persona: z.ZodOptional<z.ZodString>;
|
|
58
58
|
network: z.ZodOptional<z.ZodEnum<{
|
|
59
|
-
testnet: "testnet";
|
|
60
59
|
mainnet: "mainnet";
|
|
60
|
+
testnet: "testnet";
|
|
61
61
|
}>>;
|
|
62
62
|
}, z.core.$strict>, z.ZodObject<{
|
|
63
63
|
action: z.ZodLiteral<"advance">;
|
|
@@ -77,15 +77,15 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
77
77
|
object: z.ZodString;
|
|
78
78
|
}, z.core.$strict>>>;
|
|
79
79
|
network: z.ZodOptional<z.ZodEnum<{
|
|
80
|
-
testnet: "testnet";
|
|
81
80
|
mainnet: "mainnet";
|
|
81
|
+
testnet: "testnet";
|
|
82
82
|
}>>;
|
|
83
83
|
}, z.core.$strict>, z.ZodObject<{
|
|
84
84
|
action: z.ZodLiteral<"pause">;
|
|
85
85
|
id: z.ZodString;
|
|
86
86
|
network: z.ZodOptional<z.ZodEnum<{
|
|
87
|
-
testnet: "testnet";
|
|
88
87
|
mainnet: "mainnet";
|
|
88
|
+
testnet: "testnet";
|
|
89
89
|
}>>;
|
|
90
90
|
}, z.core.$strict>, z.ZodObject<{
|
|
91
91
|
action: z.ZodLiteral<"complete">;
|
|
@@ -100,30 +100,52 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
100
100
|
comment: z.ZodString;
|
|
101
101
|
}, z.core.$strict>>;
|
|
102
102
|
network: z.ZodOptional<z.ZodEnum<{
|
|
103
|
-
testnet: "testnet";
|
|
104
103
|
mainnet: "mainnet";
|
|
104
|
+
testnet: "testnet";
|
|
105
105
|
}>>;
|
|
106
106
|
}, z.core.$strict>, z.ZodObject<{
|
|
107
107
|
action: z.ZodLiteral<"abandon">;
|
|
108
108
|
id: z.ZodString;
|
|
109
109
|
reason: z.ZodString;
|
|
110
110
|
network: z.ZodOptional<z.ZodEnum<{
|
|
111
|
-
testnet: "testnet";
|
|
112
111
|
mainnet: "mainnet";
|
|
112
|
+
testnet: "testnet";
|
|
113
113
|
}>>;
|
|
114
114
|
}, z.core.$strict>, z.ZodObject<{
|
|
115
115
|
action: z.ZodLiteral<"delete">;
|
|
116
116
|
id: z.ZodString;
|
|
117
117
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
118
118
|
network: z.ZodOptional<z.ZodEnum<{
|
|
119
|
+
mainnet: "mainnet";
|
|
120
|
+
testnet: "testnet";
|
|
121
|
+
}>>;
|
|
122
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
123
|
+
action: z.ZodLiteral<"suggestions">;
|
|
124
|
+
id: z.ZodString;
|
|
125
|
+
include_resolved: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
network: z.ZodOptional<z.ZodEnum<{
|
|
127
|
+
mainnet: "mainnet";
|
|
119
128
|
testnet: "testnet";
|
|
129
|
+
}>>;
|
|
130
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
131
|
+
action: z.ZodLiteral<"suggestion_resolve">;
|
|
132
|
+
id: z.ZodString;
|
|
133
|
+
suggestion_id: z.ZodString;
|
|
134
|
+
decision: z.ZodEnum<{
|
|
135
|
+
confirm: "confirm";
|
|
136
|
+
dismiss: "dismiss";
|
|
137
|
+
}>;
|
|
138
|
+
apply: z.ZodOptional<z.ZodBoolean>;
|
|
139
|
+
note: z.ZodOptional<z.ZodString>;
|
|
140
|
+
network: z.ZodOptional<z.ZodEnum<{
|
|
120
141
|
mainnet: "mainnet";
|
|
142
|
+
testnet: "testnet";
|
|
121
143
|
}>>;
|
|
122
144
|
}, z.core.$strict>, z.ZodObject<{
|
|
123
145
|
target_objects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
124
146
|
network: z.ZodOptional<z.ZodEnum<{
|
|
125
|
-
testnet: "testnet";
|
|
126
147
|
mainnet: "mainnet";
|
|
148
|
+
testnet: "testnet";
|
|
127
149
|
}>>;
|
|
128
150
|
intent: z.ZodOptional<z.ZodString>;
|
|
129
151
|
project_name: z.ZodOptional<z.ZodString>;
|
|
@@ -164,8 +186,8 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
164
186
|
name: z.ZodOptional<z.ZodString>;
|
|
165
187
|
}, z.core.$strict>>>;
|
|
166
188
|
network: z.ZodOptional<z.ZodEnum<{
|
|
167
|
-
testnet: "testnet";
|
|
168
189
|
mainnet: "mainnet";
|
|
190
|
+
testnet: "testnet";
|
|
169
191
|
}>>;
|
|
170
192
|
intent: z.ZodOptional<z.ZodString>;
|
|
171
193
|
project_name: z.ZodOptional<z.ZodString>;
|
|
@@ -218,8 +240,8 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
218
240
|
entry_id: z.ZodString;
|
|
219
241
|
operation_type: z.ZodString;
|
|
220
242
|
network: z.ZodEnum<{
|
|
221
|
-
testnet: "testnet";
|
|
222
243
|
mainnet: "mainnet";
|
|
244
|
+
testnet: "testnet";
|
|
223
245
|
}>;
|
|
224
246
|
input: z.ZodObject<{
|
|
225
247
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -256,8 +278,8 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
256
278
|
field_path: z.ZodString;
|
|
257
279
|
}, z.core.$strict>>>;
|
|
258
280
|
network: z.ZodOptional<z.ZodEnum<{
|
|
259
|
-
testnet: "testnet";
|
|
260
281
|
mainnet: "mainnet";
|
|
282
|
+
testnet: "testnet";
|
|
261
283
|
}>>;
|
|
262
284
|
}, z.core.$strict>, z.ZodObject<{
|
|
263
285
|
guide_state: z.ZodOptional<z.ZodObject<{
|
|
@@ -278,8 +300,8 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
278
300
|
adopted_module_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
279
301
|
}, z.core.$strict>>;
|
|
280
302
|
network: z.ZodOptional<z.ZodEnum<{
|
|
281
|
-
testnet: "testnet";
|
|
282
303
|
mainnet: "mainnet";
|
|
304
|
+
testnet: "testnet";
|
|
283
305
|
}>>;
|
|
284
306
|
intent: z.ZodOptional<z.ZodString>;
|
|
285
307
|
project_name: z.ZodOptional<z.ZodString>;
|
|
@@ -312,6 +334,10 @@ export declare const GoalProcessSummarySchema: z.ZodObject<{
|
|
|
312
334
|
count: z.ZodNumber;
|
|
313
335
|
top: z.ZodArray<z.ZodString>;
|
|
314
336
|
}, z.core.$loose>;
|
|
337
|
+
pending_suggestions: z.ZodObject<{
|
|
338
|
+
count: z.ZodNumber;
|
|
339
|
+
top: z.ZodArray<z.ZodString>;
|
|
340
|
+
}, z.core.$loose>;
|
|
315
341
|
last_events: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
316
342
|
feedback_count: z.ZodNumber;
|
|
317
343
|
}, z.core.$loose>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';import{GOAL_TYPES}from'../../goal/types.js';import{PlanningActionMembers}from'./planning.js';const NetworkEnum=z['enum'](['mainnet','testnet']),GoalTypeEnum=z['enum'](GOAL_TYPES),AdvanceStageEnum=z['enum'](['recognized','confirmed','bound','planned','approved','acting','monitoring','paused']),ListStageEnum=z['enum'](['recognized','confirmed','bound','planned','approved','acting','monitoring','completed','paused','abandoned']),ObjectRefSchema=z['object']({'type':z['string']()['describe']('Object\x20type\x20name\x20(e.g.\x20\x27Service\x27,\x20\x27Order\x27,\x20\x27Demand\x27,\x20\x27Progress\x27).'),'object':z['string']()['describe']('On-chain\x20object\x20address\x20(0x…).')})['strict']();export const GoalOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('create'),'intent_text':z['string']()['describe']('Raw\x20user\x20intent\x20text.\x20goal_type\x20is\x20classified\x20deterministically\x20unless\x20overridden.'),'title':z['string']()['optional']()['describe']('Short\x20goal\x20title;\x20defaults\x20to\x20the\x20first\x20line\x20of\x20intent_text.'),'goal_type':GoalTypeEnum['optional']()['describe']('Explicit\x20goal_type\x20override\x20(publish_service\x20|\x20fulfill_order\x20|\x20capture_demand\x20|\x20purchase_service\x20|\x20collaborate_flow\x20|\x20supply_suborder\x20|\x20publish_demand\x20|\x20run_arbitration\x20|\x20dispute_resolution\x20|\x20manage_assets).'),'account':z['string']()['optional']()['describe']('BIND\x20station:\x20local\x20account\x20name\x20or\x20address\x20the\x20goal\x20operates\x20with.\x20When\x20given,\x20the\x20goal\x20starts\x20at\x20stage\x20\x27bound\x27\x20(with\x20a\x20local-account\x20preflight).'),'persona':z['string']()['optional']()['describe']('Persona\x20id/name\x20recorded\x20on\x20the\x20binding.'),'conversation_id':z['string']()['optional']()['describe']('Originating\x20chat\x20conversation\x20id\x20(the\x20client\x20injects\x20this\x20automatically;\x20links\x20the\x20goal\x20back\x20to\x20its\x20conversation).'),'create_process':z['boolean']()['optional']()['describe']('TaskProcess\x20creation\x20override.\x20Processes\x20are\x20created\x20BY\x20DEFAULT\x20for\x20goal\x20types\x20with\x20a\x20dedicated\x20playbook\x20(publish_service,\x20fulfill_order,\x20capture_demand,\x20publish_demand,\x20purchase_service);\x20pass\x20true\x20to\x20also\x20attach\x20one\x20to\x20a\x20generic-playbook\x20goal\x20type.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('list'),'stage':ListStageEnum['optional']()['describe']('Filter\x20by\x20stage.'),'account':z['string']()['optional']()['describe']('Filter\x20by\x20bound\x20account.'),'conversation_id':z['string']()['optional']()['describe']('Filter\x20by\x20originating\x20conversation\x20id\x20(the\x20conversation↔goal\x20link).'),'include_finished':z['boolean']()['optional']()['describe']('Include\x20terminal\x20goals\x20(completed/abandoned).\x20Default\x20false.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('get'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('approve'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'note':z['string']()['optional']()['describe']('Human\x20note\x20recorded\x20on\x20the\x20approval\x20audit\x20entry.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('bind'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'account':z['string']()['describe']('Local\x20account\x20name\x20or\x20address\x20to\x20bind\x20(BIND\x20station;\x20runs\x20a\x20local-account\x20preflight).'),'persona':z['string']()['optional']()['describe']('Persona\x20id/name\x20recorded\x20on\x20the\x20binding.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('advance'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'stage':AdvanceStageEnum['optional']()['describe']('Target\x20stage\x20(forward-only\x20along\x20recognized→confirmed→bound→planned→approved→acting→monitoring;\x20\x27paused\x27\x20holds\x20from\x20anywhere;\x20from\x20\x27paused\x27\x20resume\x20anywhere).\x20Entering\x20\x27monitoring\x27\x20auto-binds\x20monitor\x20focus\x20for\x20the\x20goal\x27s\x20objects.'),'objects':z['array'](ObjectRefSchema)['optional']()['describe']('ACT\x20station:\x20objects\x20created/adopted\x20by\x20this\x20goal\x20(deduped\x20by\x20type+address).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('pause'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('complete'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'force':z['boolean']()['optional']()['describe']('Skip\x20on-chain\x20completion-condition\x20verification\x20(audited\x20as\x20outcome.forced).'),'feedback':z['object']({'sentiment':z['enum'](['positive','negative','neutral'])['describe']('Overall\x20sentiment\x20about\x20how\x20the\x20goal\x20went.'),'comment':z['string']()['describe']('Free-form\x20feedback\x20comment.')})['strict']()['optional']()['describe']('User\x20feedback\x20recorded\x20on\x20the\x20goal\x27s\x20TaskProcess\x20(feedback.jsonl)\x20and\x20used\x20as\x20outcome\x20evidence\x20for\x20the\x20experience\x20layer\x20(REFLECT).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('abandon'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'reason':z['string']()['describe']('Why\x20the\x20goal\x20is\x20given\x20up\x20(required,\x20recorded\x20on\x20the\x20outcome).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('delete'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'force':z['boolean']()['optional']()['describe']('Allow\x20deleting\x20a\x20NON-terminal\x20goal.\x20The\x20goal\x27s\x20monitor\x20focus,\x20radar\x20intents\x20and\x20plan\x20approval\x20are\x20torn\x20down\x20first\x20so\x20no\x20bindings\x20are\x20orphaned.\x20Terminal\x20goals\x20(completed/abandoned)\x20never\x20need\x20force.'),'network':NetworkEnum['optional']()})['strict'](),...PlanningActionMembers]);export const GoalProcessSummarySchema=z['object']({'id':z['string']()['describe']('Process\x20id\x20(proc_…).'),'playbook':z['string']()['describe']('Playbook\x20name\x20supplying\x20the\x20stage\x20sequence.'),'current_stage':z['string']()['describe']('Current\x20stage\x20of\x20the\x20process\x20stage\x20machine.'),'stages':z['array'](z['object']({'name':z['string'](),'committed':z['boolean'](),'completion':z['number']()['describe']('Stage\x20completion\x200-100.')})['passthrough']())['describe']('Per-stage\x20progress,\x20in\x20stage-sequence\x20order.'),'open_problems':z['object']({'count':z['number'](),'top':z['array'](z['string']())['describe']('Titles\x20of\x20the\x20most\x20severe\x20open\x20problems\x20(up\x20to\x203).')})['passthrough'](),'last_events':z['array'](z['record'](z['string'](),z['unknown']()))['describe']('Tail\x20(up\x20to\x205)\x20of\x20the\x20process\x20event\x20stream,\x20oldest\x20first.'),'feedback_count':z['number']()})['passthrough']();
|
|
1
|
+
import{z}from'zod';import{GOAL_TYPES}from'../../goal/types.js';import{PlanningActionMembers}from'./planning.js';const NetworkEnum=z['enum'](['mainnet','testnet']),GoalTypeEnum=z['enum'](GOAL_TYPES),AdvanceStageEnum=z['enum'](['recognized','confirmed','bound','planned','approved','acting','monitoring','paused']),ListStageEnum=z['enum'](['recognized','confirmed','bound','planned','approved','acting','monitoring','completed','paused','abandoned']),ObjectRefSchema=z['object']({'type':z['string']()['describe']('Object\x20type\x20name\x20(e.g.\x20\x27Service\x27,\x20\x27Order\x27,\x20\x27Demand\x27,\x20\x27Progress\x27).'),'object':z['string']()['describe']('On-chain\x20object\x20address\x20(0x…).')})['strict']();export const GoalOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('create'),'intent_text':z['string']()['describe']('Raw\x20user\x20intent\x20text.\x20goal_type\x20is\x20classified\x20deterministically\x20unless\x20overridden.'),'title':z['string']()['optional']()['describe']('Short\x20goal\x20title;\x20defaults\x20to\x20the\x20first\x20line\x20of\x20intent_text.'),'goal_type':GoalTypeEnum['optional']()['describe']('Explicit\x20goal_type\x20override\x20(publish_service\x20|\x20fulfill_order\x20|\x20capture_demand\x20|\x20purchase_service\x20|\x20collaborate_flow\x20|\x20supply_suborder\x20|\x20publish_demand\x20|\x20run_arbitration\x20|\x20dispute_resolution\x20|\x20manage_assets).'),'account':z['string']()['optional']()['describe']('BIND\x20station:\x20local\x20account\x20name\x20or\x20address\x20the\x20goal\x20operates\x20with.\x20When\x20given,\x20the\x20goal\x20starts\x20at\x20stage\x20\x27bound\x27\x20(with\x20a\x20local-account\x20preflight).'),'persona':z['string']()['optional']()['describe']('Persona\x20id/name\x20recorded\x20on\x20the\x20binding.'),'conversation_id':z['string']()['optional']()['describe']('Originating\x20chat\x20conversation\x20id\x20(the\x20client\x20injects\x20this\x20automatically;\x20links\x20the\x20goal\x20back\x20to\x20its\x20conversation).'),'create_process':z['boolean']()['optional']()['describe']('TaskProcess\x20creation\x20override.\x20Processes\x20are\x20created\x20BY\x20DEFAULT\x20for\x20goal\x20types\x20with\x20a\x20dedicated\x20playbook\x20(publish_service,\x20fulfill_order,\x20capture_demand,\x20publish_demand,\x20purchase_service);\x20pass\x20true\x20to\x20also\x20attach\x20one\x20to\x20a\x20generic-playbook\x20goal\x20type.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('list'),'stage':ListStageEnum['optional']()['describe']('Filter\x20by\x20stage.'),'account':z['string']()['optional']()['describe']('Filter\x20by\x20bound\x20account.'),'conversation_id':z['string']()['optional']()['describe']('Filter\x20by\x20originating\x20conversation\x20id\x20(the\x20conversation↔goal\x20link).'),'include_finished':z['boolean']()['optional']()['describe']('Include\x20terminal\x20goals\x20(completed/abandoned).\x20Default\x20false.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('get'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('approve'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'note':z['string']()['optional']()['describe']('Human\x20note\x20recorded\x20on\x20the\x20approval\x20audit\x20entry.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('bind'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'account':z['string']()['describe']('Local\x20account\x20name\x20or\x20address\x20to\x20bind\x20(BIND\x20station;\x20runs\x20a\x20local-account\x20preflight).'),'persona':z['string']()['optional']()['describe']('Persona\x20id/name\x20recorded\x20on\x20the\x20binding.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('advance'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'stage':AdvanceStageEnum['optional']()['describe']('Target\x20stage\x20(forward-only\x20along\x20recognized→confirmed→bound→planned→approved→acting→monitoring;\x20\x27paused\x27\x20holds\x20from\x20anywhere;\x20from\x20\x27paused\x27\x20resume\x20anywhere).\x20Entering\x20\x27monitoring\x27\x20auto-binds\x20monitor\x20focus\x20for\x20the\x20goal\x27s\x20objects.'),'objects':z['array'](ObjectRefSchema)['optional']()['describe']('ACT\x20station:\x20objects\x20created/adopted\x20by\x20this\x20goal\x20(deduped\x20by\x20type+address).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('pause'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('complete'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'force':z['boolean']()['optional']()['describe']('Skip\x20on-chain\x20completion-condition\x20verification\x20(audited\x20as\x20outcome.forced).'),'feedback':z['object']({'sentiment':z['enum'](['positive','negative','neutral'])['describe']('Overall\x20sentiment\x20about\x20how\x20the\x20goal\x20went.'),'comment':z['string']()['describe']('Free-form\x20feedback\x20comment.')})['strict']()['optional']()['describe']('User\x20feedback\x20recorded\x20on\x20the\x20goal\x27s\x20TaskProcess\x20(feedback.jsonl)\x20and\x20used\x20as\x20outcome\x20evidence\x20for\x20the\x20experience\x20layer\x20(REFLECT).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('abandon'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'reason':z['string']()['describe']('Why\x20the\x20goal\x20is\x20given\x20up\x20(required,\x20recorded\x20on\x20the\x20outcome).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('delete'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'force':z['boolean']()['optional']()['describe']('Allow\x20deleting\x20a\x20NON-terminal\x20goal.\x20The\x20goal\x27s\x20monitor\x20focus,\x20radar\x20intents\x20and\x20plan\x20approval\x20are\x20torn\x20down\x20first\x20so\x20no\x20bindings\x20are\x20orphaned.\x20Terminal\x20goals\x20(completed/abandoned)\x20never\x20need\x20force.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('suggestions'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'include_resolved':z['boolean']()['optional']()['describe']('Also\x20return\x20confirmed/dismissed\x20suggestions.\x20Default\x20false\x20(pending\x20only).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('suggestion_resolve'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'suggestion_id':z['string']()['describe']('Suggestion\x20id\x20(sug_…).'),'decision':z['enum'](['confirm','dismiss'])['describe']('confirm\x20=\x20accept\x20the\x20suggestion;\x20dismiss\x20=\x20reject\x20it\x20(recorded,\x20one-shot\x20either\x20way).'),'apply':z['boolean']()['optional']()['describe']('With\x20decision=confirm:\x20run\x20the\x20suggested\x20move\x20through\x20the\x20normal\x20engine\x20stations\x20(advance_stage\x20→\x20advance;\x20complete_goal\x20→\x20complete\x20with\x20chain\x20verification;\x20register_object\x20→\x20advance\x20objects).\x20Default\x20false:\x20acknowledge\x20only.\x20When\x20applying\x20fails\x20the\x20suggestion\x20STAYS\x20PENDING\x20and\x20apply_error\x20explains\x20why.'),'note':z['string']()['optional']()['describe']('Optional\x20resolution\x20note\x20(audit).'),'network':NetworkEnum['optional']()})['strict'](),...PlanningActionMembers]);export const GoalProcessSummarySchema=z['object']({'id':z['string']()['describe']('Process\x20id\x20(proc_…).'),'playbook':z['string']()['describe']('Playbook\x20name\x20supplying\x20the\x20stage\x20sequence.'),'current_stage':z['string']()['describe']('Current\x20stage\x20of\x20the\x20process\x20stage\x20machine.'),'stages':z['array'](z['object']({'name':z['string'](),'committed':z['boolean'](),'completion':z['number']()['describe']('Stage\x20completion\x200-100.')})['passthrough']())['describe']('Per-stage\x20progress,\x20in\x20stage-sequence\x20order.'),'open_problems':z['object']({'count':z['number'](),'top':z['array'](z['string']())['describe']('Titles\x20of\x20the\x20most\x20severe\x20open\x20problems\x20(up\x20to\x203).')})['passthrough'](),'pending_suggestions':z['object']({'count':z['number'](),'top':z['array'](z['string']())['describe']('Titles\x20of\x20pending\x20advancement\x20suggestions\x20(up\x20to\x203).')})['passthrough']()['describe']('T5-C:\x20monitor-bridged\x20suggestions\x20awaiting\x20a\x20decision\x20(see\x20the\x20suggestions\x20action).'),'last_events':z['array'](z['record'](z['string'](),z['unknown']()))['describe']('Tail\x20(up\x20to\x205)\x20of\x20the\x20process\x20event\x20stream,\x20oldest\x20first.'),'feedback_count':z['number']()})['passthrough']();
|
|
@@ -32,8 +32,8 @@ export declare const ProjectObjectTypeEnum: z.ZodEnum<{
|
|
|
32
32
|
export declare const PlanningActionMembers: [z.ZodObject<{
|
|
33
33
|
target_objects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
34
|
network: z.ZodOptional<z.ZodEnum<{
|
|
35
|
-
testnet: "testnet";
|
|
36
35
|
mainnet: "mainnet";
|
|
36
|
+
testnet: "testnet";
|
|
37
37
|
}>>;
|
|
38
38
|
intent: z.ZodOptional<z.ZodString>;
|
|
39
39
|
project_name: z.ZodOptional<z.ZodString>;
|
|
@@ -74,8 +74,8 @@ export declare const PlanningActionMembers: [z.ZodObject<{
|
|
|
74
74
|
name: z.ZodOptional<z.ZodString>;
|
|
75
75
|
}, z.core.$strict>>>;
|
|
76
76
|
network: z.ZodOptional<z.ZodEnum<{
|
|
77
|
-
testnet: "testnet";
|
|
78
77
|
mainnet: "mainnet";
|
|
78
|
+
testnet: "testnet";
|
|
79
79
|
}>>;
|
|
80
80
|
intent: z.ZodOptional<z.ZodString>;
|
|
81
81
|
project_name: z.ZodOptional<z.ZodString>;
|
|
@@ -128,8 +128,8 @@ export declare const PlanningActionMembers: [z.ZodObject<{
|
|
|
128
128
|
entry_id: z.ZodString;
|
|
129
129
|
operation_type: z.ZodString;
|
|
130
130
|
network: z.ZodEnum<{
|
|
131
|
-
testnet: "testnet";
|
|
132
131
|
mainnet: "mainnet";
|
|
132
|
+
testnet: "testnet";
|
|
133
133
|
}>;
|
|
134
134
|
input: z.ZodObject<{
|
|
135
135
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -166,8 +166,8 @@ export declare const PlanningActionMembers: [z.ZodObject<{
|
|
|
166
166
|
field_path: z.ZodString;
|
|
167
167
|
}, z.core.$strict>>>;
|
|
168
168
|
network: z.ZodOptional<z.ZodEnum<{
|
|
169
|
-
testnet: "testnet";
|
|
170
169
|
mainnet: "mainnet";
|
|
170
|
+
testnet: "testnet";
|
|
171
171
|
}>>;
|
|
172
172
|
}, z.core.$strict>, z.ZodObject<{
|
|
173
173
|
guide_state: z.ZodOptional<z.ZodObject<{
|
|
@@ -188,8 +188,8 @@ export declare const PlanningActionMembers: [z.ZodObject<{
|
|
|
188
188
|
adopted_module_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
189
189
|
}, z.core.$strict>>;
|
|
190
190
|
network: z.ZodOptional<z.ZodEnum<{
|
|
191
|
-
testnet: "testnet";
|
|
192
191
|
mainnet: "mainnet";
|
|
192
|
+
testnet: "testnet";
|
|
193
193
|
}>>;
|
|
194
194
|
intent: z.ZodOptional<z.ZodString>;
|
|
195
195
|
project_name: z.ZodOptional<z.ZodString>;
|
|
@@ -325,8 +325,8 @@ export declare const TraceSubstepsResultSchema: z.ZodObject<{
|
|
|
325
325
|
version: z.ZodString;
|
|
326
326
|
}, z.core.$strict>;
|
|
327
327
|
network: z.ZodEnum<{
|
|
328
|
-
testnet: "testnet";
|
|
329
328
|
mainnet: "mainnet";
|
|
329
|
+
testnet: "testnet";
|
|
330
330
|
}>;
|
|
331
331
|
coherent: z.ZodBoolean;
|
|
332
332
|
dangling_inputs: z.ZodArray<z.ZodObject<{
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const IndustryPackOperationInputSchema: z.ZodObject<{
|
|
3
3
|
intent: z.ZodOptional<z.ZodString>;
|
|
4
|
+
strategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
4
5
|
mode_source: z.ZodOptional<z.ZodString>;
|
|
5
6
|
mode_name: z.ZodOptional<z.ZodString>;
|
|
6
7
|
mode_display_name: z.ZodOptional<z.ZodString>;
|
|
@@ -82,6 +83,8 @@ export declare const IndustryPackOperationInputSchema: z.ZodObject<{
|
|
|
82
83
|
register_custom_metric: "register_custom_metric";
|
|
83
84
|
register_custom_constraint: "register_custom_constraint";
|
|
84
85
|
list_metrics_constraints: "list_metrics_constraints";
|
|
86
|
+
unregister_custom_metric: "unregister_custom_metric";
|
|
87
|
+
unregister_custom_constraint: "unregister_custom_constraint";
|
|
85
88
|
}>;
|
|
86
89
|
name: z.ZodOptional<z.ZodString>;
|
|
87
90
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -199,6 +202,38 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
|
|
|
199
202
|
inferred_traits: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
200
203
|
inference_confidence: z.ZodNumber;
|
|
201
204
|
matched_keywords: z.ZodArray<z.ZodString>;
|
|
205
|
+
strategy_intents: z.ZodArray<z.ZodObject<{
|
|
206
|
+
objective: z.ZodEnum<{
|
|
207
|
+
sales_priority: "sales_priority";
|
|
208
|
+
profit_priority: "profit_priority";
|
|
209
|
+
buyer_screening: "buyer_screening";
|
|
210
|
+
gross_margin_control: "gross_margin_control";
|
|
211
|
+
}>;
|
|
212
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
213
|
+
levers: z.ZodArray<z.ZodEnum<{
|
|
214
|
+
reward: "reward";
|
|
215
|
+
buy_guard: "buy_guard";
|
|
216
|
+
discount: "discount";
|
|
217
|
+
machine_design: "machine_design";
|
|
218
|
+
}>>;
|
|
219
|
+
target: z.ZodString;
|
|
220
|
+
}, z.core.$strict>>;
|
|
221
|
+
lever_suggestions: z.ZodArray<z.ZodObject<{
|
|
222
|
+
lever: z.ZodEnum<{
|
|
223
|
+
reward: "reward";
|
|
224
|
+
buy_guard: "buy_guard";
|
|
225
|
+
discount: "discount";
|
|
226
|
+
machine_design: "machine_design";
|
|
227
|
+
}>;
|
|
228
|
+
objective: z.ZodEnum<{
|
|
229
|
+
sales_priority: "sales_priority";
|
|
230
|
+
profit_priority: "profit_priority";
|
|
231
|
+
buyer_screening: "buyer_screening";
|
|
232
|
+
gross_margin_control: "gross_margin_control";
|
|
233
|
+
}>;
|
|
234
|
+
action: z.ZodString;
|
|
235
|
+
target: z.ZodString;
|
|
236
|
+
}, z.core.$strict>>;
|
|
202
237
|
recommendations: z.ZodArray<z.ZodObject<{
|
|
203
238
|
industry: z.ZodString;
|
|
204
239
|
similarity: z.ZodNumber;
|
|
@@ -209,6 +244,21 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
|
|
|
209
244
|
operation_type: z.ZodString;
|
|
210
245
|
verified: z.ZodBoolean;
|
|
211
246
|
}, z.core.$strict>>;
|
|
247
|
+
strategy_alignment: z.ZodOptional<z.ZodObject<{
|
|
248
|
+
score: z.ZodNumber;
|
|
249
|
+
matched_levers: z.ZodArray<z.ZodEnum<{
|
|
250
|
+
reward: "reward";
|
|
251
|
+
buy_guard: "buy_guard";
|
|
252
|
+
discount: "discount";
|
|
253
|
+
machine_design: "machine_design";
|
|
254
|
+
}>>;
|
|
255
|
+
missing_levers: z.ZodArray<z.ZodEnum<{
|
|
256
|
+
reward: "reward";
|
|
257
|
+
buy_guard: "buy_guard";
|
|
258
|
+
discount: "discount";
|
|
259
|
+
machine_design: "machine_design";
|
|
260
|
+
}>>;
|
|
261
|
+
}, z.core.$strip>>;
|
|
212
262
|
}, z.core.$strict>>;
|
|
213
263
|
hint: z.ZodString;
|
|
214
264
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -326,6 +376,10 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
|
|
|
326
376
|
owner: z.ZodOptional<z.ZodString>;
|
|
327
377
|
}, z.core.$strict>;
|
|
328
378
|
hint: z.ZodString;
|
|
379
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
380
|
+
action: z.ZodLiteral<"unregister_custom_metric">;
|
|
381
|
+
removed: z.ZodLiteral<true>;
|
|
382
|
+
metric_id: z.ZodString;
|
|
329
383
|
}, z.core.$strict>, z.ZodObject<{
|
|
330
384
|
action: z.ZodLiteral<"register_custom_constraint">;
|
|
331
385
|
constraint: z.ZodObject<{
|
|
@@ -349,6 +403,10 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
|
|
|
349
403
|
owner: z.ZodOptional<z.ZodString>;
|
|
350
404
|
}, z.core.$strict>;
|
|
351
405
|
hint: z.ZodString;
|
|
406
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
407
|
+
action: z.ZodLiteral<"unregister_custom_constraint">;
|
|
408
|
+
removed: z.ZodLiteral<true>;
|
|
409
|
+
constraint_id: z.ZodString;
|
|
352
410
|
}, z.core.$strict>, z.ZodObject<{
|
|
353
411
|
action: z.ZodLiteral<"list_metrics_constraints">;
|
|
354
412
|
metrics: z.ZodArray<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';import{MODE_REGISTRY_ACTIONS,ModeRegistryFields,RecommendIndustryResultSchema,ListModesResultSchema,DeriveUserModeResultSchema,EvolveUserModeResultSchema,RegisterUserModeResultSchema,UnregisterUserModeResultSchema,RegisterCustomMetricResultSchema,RegisterCustomConstraintResultSchema,ListMetricsConstraintsResultSchema}from'./modes.js';export const IndustryPackOperationInputSchema=z['object']({'action':z['enum'](['scaffold','list','scan','resolve','list_files','read_file','write_file','get','diff','reset','delete_file','create_file','create_dir','copy','move','rename',...MODE_REGISTRY_ACTIONS])['describe']('Action:\x20\x27scaffold\x27\x20=\x20generate\x20a\x20pack\x20template\x20skeleton\x20(requires\x20name);\x20'+'\x27list\x27\x20=\x20list\x20registered\x20packs;\x20\x27scan\x27\x20=\x20scan\x20+\x20register\x20packs\x20under\x20the\x20default\x20directory;\x20'+'\x27resolve\x27\x20=\x20return\x20the\x20industry\x20root\x20directory;\x20\x27list_files\x27\x20=\x20list\x20files\x20under\x20the\x20industry\x20directory;\x20'+'\x27read_file\x27\x20=\x20read\x20a\x20file\x20under\x20the\x20industry\x20directory\x20(path\x20required);\x20'+'\x27write_file\x27\x20=\x20write\x20content\x20to\x20a\x20file\x20under\x20the\x20industry\x20directory\x20(path\x20+\x20content\x20required);\x20'+'\x27get\x27\x20=\x20return\x20registered\x20layer\x20data\x20for\x20an\x20industry\x20(name\x20required;\x20dispute/compliance/supply/rules/playbook);\x20'+'\x27diff\x27\x20=\x20compare\x20registered\x20vs\x20on-disk\x20manifest\x20version/layers\x20(name\x20required);\x20'+'\x27reset\x27\x20=\x20restore\x20a\x20file\x20or\x20entire\x20pack\x20folder\x20to\x20its\x20pristine\x20annotated\x20template\x20(path\x20required).\x20'+'\x27delete_file\x27\x20=\x20delete\x20a\x20file\x20or\x20directory\x20(path\x20required).\x20'+'\x27create_file\x27\x20=\x20create\x20an\x20empty\x20file\x20(path\x20required;\x20content\x20optional).\x20'+'\x27create_dir\x27\x20=\x20create\x20a\x20directory\x20recursively\x20(path\x20required).\x20'+'\x27copy\x27\x20=\x20copy\x20a\x20file\x20or\x20directory\x20(from\x20+\x20to\x20required).\x20'+'\x27move\x27\x20/\x20\x27rename\x27\x20=\x20move\x20or\x20rename\x20a\x20file\x20or\x20directory\x20(from\x20+\x20to\x20required).\x20'+'Mode\x20registry\x20(industry/scenario\x20configuration):\x20\x27recommend_industry\x27\x20=\x20business\x20intent\x20→\x20top-3\x20'+'similar\x20industries\x20+\x20reference\x20examples;\x20\x27list_modes\x27\x20=\x20builtin\x20+\x20custom\x20modes;\x20\x27derive_user_mode\x27\x20=\x20'+'derive\x20a\x20custom\x20mode\x20from\x20a\x20builtin;\x20\x27evolve_user_mode\x27\x20=\x20iterate\x20an\x20existing\x20custom\x20mode;\x20'+'\x27register_user_mode\x27\x20=\x20register\x20a\x20fully\x20custom\x20mode;\x20\x27unregister_user_mode\x27\x20=\x20delete\x20a\x20custom\x20mode;\x20'+'\x27register_custom_metric\x27\x20/\x20\x27register_custom_constraint\x27\x20=\x20register\x20global\x20evaluation\x20metric/constraint;\x20'+'\x27list_metrics_constraints\x27\x20=\x20list\x20metrics\x20+\x20constraints\x20(filterable).'),'name':z['string']()['optional']()['describe']('Industry\x20name\x20(lowercase\x20snake_case,\x20e.g.\x20\x27life_service\x27);\x20required\x20for\x20scaffold\x20and\x20get.'),'path':z['string']()['optional']()['describe']('Path\x20relative\x20to\x20the\x20industry\x20root\x20(required\x20for\x20read_file,\x20write_file,\x20reset,\x20create_file,\x20create_dir).'),'content':z['string']()['optional']()['describe']('Text\x20content\x20to\x20write\x20(required\x20for\x20write_file;\x20optional\x20for\x20create_file).'),'from':z['string']()['optional']()['describe']('Source\x20path\x20relative\x20to\x20the\x20industry\x20root\x20(required\x20for\x20copy/move/rename).'),'to':z['string']()['optional']()['describe']('Destination\x20path\x20relative\x20to\x20the\x20industry\x20root\x20(required\x20for\x20copy/move/rename).'),...ModeRegistryFields})['strict']();export const IndustryPackOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('action',[z['object']({'action':z['literal']('scaffold'),'ok':z['boolean']()['describe']('Whether\x20the\x20skeleton\x20was\x20created.'),'dir':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20pack\x20directory.'),'files':z['array'](z['string']())['describe']('Created\x20file\x20paths\x20(relative\x20to\x20dir).'),'errors':z['array'](z['string']())['describe']('Validation/creation\x20errors\x20(empty\x20=\x20ok).')}),z['object']({'action':z['literal']('list'),'packs':z['array'](z['object']({'name':z['string'](),'version':z['string'](),'layers':z['array'](z['string']()),'registered_at':z['number']()}))['describe']('Currently\x20registered\x20packs.')}),z['object']({'action':z['literal']('scan'),'results':z['array'](z['object']({'ok':z['boolean'](),'errors':z['array'](z['string']()),'registered':z['array'](z['string']())}))['describe']('One\x20registration\x20result\x20per\x20scanned\x20pack\x20directory.')}),z['object']({'action':z['literal']('resolve'),'dir':z['string']()['describe']('Absolute\x20industry\x20root\x20directory.')}),z['object']({'action':z['literal']('list_files'),'dir':z['string']()['describe']('Absolute\x20industry\x20root\x20directory.'),'files':z['array'](z['object']({'path':z['string']()['describe']('Path\x20relative\x20to\x20the\x20industry\x20root.'),'is_dir':z['boolean'](),'size':z['number']()['describe']('File\x20size\x20in\x20bytes\x20(0\x20for\x20directories).'),'mtime':z['number']()['describe']('Last-modified\x20time\x20(epoch\x20ms).')}))['describe']('Files\x20under\x20the\x20industry\x20root.')}),z['object']({'action':z['literal']('read_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20read\x20file.'),'content':z['string']()['describe']('File\x20content\x20(text).')}),z['object']({'action':z['literal']('write_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20written\x20file.'),'ok':z['boolean']()['describe']('Whether\x20the\x20file\x20was\x20written.')}),z['object']({'action':z['literal']('get'),'category':z['string']()['describe']('Industry\x20name.'),'dispute':z['unknown']()['optional']()['describe']('Registered\x20dispute\x20rules\x20(if\x20any).'),'compliance':z['unknown']()['optional']()['describe']('Registered\x20compliance\x20rules\x20(if\x20any).'),'supply':z['unknown']()['optional']()['describe']('Registered\x20supply\x20rules\x20(if\x20any).'),'rules':z['unknown']()['optional']()['describe']('Registered\x20declarative\x20industry\x20rules\x20(if\x20any).'),'playbook':z['unknown']()['optional']()['describe']('Registered\x20playbook\x20(if\x20any).')}),z['object']({'action':z['literal']('diff'),'name':z['string']()['describe']('Industry\x20name.'),'registered':z['object']({'version':z['string'](),'layers':z['array'](z['string']()),'registered_at':z['number']()})['nullable']()['describe']('Currently\x20registered\x20metadata.'),'disk':z['object']({'version':z['string'](),'layers':z['array'](z['string']())})['nullable']()['describe']('On-disk\x20manifest\x20metadata.'),'upgradable':z['boolean']()['describe']('Whether\x20the\x20on-disk\x20version\x20differs\x20from\x20registered.'),'layer_diff':z['object']({'added':z['array'](z['string']()),'removed':z['array'](z['string']())})['describe']('Layer\x20difference\x20(disk\x20vs\x20registered).')}),z['object']({'action':z['literal']('reset'),'ok':z['boolean']()['describe']('Whether\x20reset\x20succeeded.'),'layout':z['enum'](['merged','legacy'])['describe']('Layout\x20format\x20that\x20was\x20restored:\x20\x27merged\x27\x20(single\x20pack.json\x20+\x20playbook.md)\x20or\x20\x27legacy\x27\x20(split\x20files).'),'target':z['string']()['describe']('Normalised\x20reset\x20target\x20path\x20(pack\x20name\x20or\x20file).'),'restored_files':z['array'](z['string']())['describe']('Files\x20that\x20were\x20restored\x20to\x20pristine\x20annotated\x20templates.'),'errors':z['array'](z['string']())['describe']('Errors\x20encountered\x20during\x20reset.')}),z['object']({'action':z['literal']('delete_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20deleted\x20file\x20or\x20directory.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('create_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20file.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('create_dir'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20directory.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('copy'),'from':z['string']()['describe']('Absolute\x20source\x20path.'),'to':z['string']()['describe']('Absolute\x20destination\x20path.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('move'),'from':z['string']()['describe']('Absolute\x20source\x20path.'),'to':z['string']()['describe']('Absolute\x20destination\x20path.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('rename'),'from':z['string']()['describe']('Absolute\x20old\x20path.'),'to':z['string']()['describe']('Absolute\x20new\x20path.'),'ok':z['boolean']()}),...[RecommendIndustryResultSchema,ListModesResultSchema,DeriveUserModeResultSchema,EvolveUserModeResultSchema,RegisterUserModeResultSchema,UnregisterUserModeResultSchema,RegisterCustomMetricResultSchema,RegisterCustomConstraintResultSchema,ListMetricsConstraintsResultSchema]])})['strict']();
|
|
1
|
+
import{z}from'zod';import{MODE_REGISTRY_ACTIONS,ModeRegistryFields,RecommendIndustryResultSchema,ListModesResultSchema,DeriveUserModeResultSchema,EvolveUserModeResultSchema,RegisterUserModeResultSchema,UnregisterUserModeResultSchema,RegisterCustomMetricResultSchema,UnregisterCustomMetricResultSchema,RegisterCustomConstraintResultSchema,UnregisterCustomConstraintResultSchema,ListMetricsConstraintsResultSchema}from'./modes.js';export const IndustryPackOperationInputSchema=z['object']({'action':z['enum'](['scaffold','list','scan','resolve','list_files','read_file','write_file','get','diff','reset','delete_file','create_file','create_dir','copy','move','rename',...MODE_REGISTRY_ACTIONS])['describe']('Action:\x20\x27scaffold\x27\x20=\x20generate\x20a\x20pack\x20template\x20skeleton\x20(requires\x20name);\x20'+'\x27list\x27\x20=\x20list\x20registered\x20packs;\x20\x27scan\x27\x20=\x20scan\x20+\x20register\x20packs\x20under\x20the\x20default\x20directory;\x20'+'\x27resolve\x27\x20=\x20return\x20the\x20industry\x20root\x20directory;\x20\x27list_files\x27\x20=\x20list\x20files\x20under\x20the\x20industry\x20directory;\x20'+'\x27read_file\x27\x20=\x20read\x20a\x20file\x20under\x20the\x20industry\x20directory\x20(path\x20required);\x20'+'\x27write_file\x27\x20=\x20write\x20content\x20to\x20a\x20file\x20under\x20the\x20industry\x20directory\x20(path\x20+\x20content\x20required);\x20'+'\x27get\x27\x20=\x20return\x20registered\x20layer\x20data\x20for\x20an\x20industry\x20(name\x20required;\x20dispute/compliance/supply/rules/playbook);\x20'+'\x27diff\x27\x20=\x20compare\x20registered\x20vs\x20on-disk\x20manifest\x20version/layers\x20(name\x20required);\x20'+'\x27reset\x27\x20=\x20restore\x20a\x20file\x20or\x20entire\x20pack\x20folder\x20to\x20its\x20pristine\x20annotated\x20template\x20(path\x20required).\x20'+'\x27delete_file\x27\x20=\x20delete\x20a\x20file\x20or\x20directory\x20(path\x20required).\x20'+'\x27create_file\x27\x20=\x20create\x20an\x20empty\x20file\x20(path\x20required;\x20content\x20optional).\x20'+'\x27create_dir\x27\x20=\x20create\x20a\x20directory\x20recursively\x20(path\x20required).\x20'+'\x27copy\x27\x20=\x20copy\x20a\x20file\x20or\x20directory\x20(from\x20+\x20to\x20required).\x20'+'\x27move\x27\x20/\x20\x27rename\x27\x20=\x20move\x20or\x20rename\x20a\x20file\x20or\x20directory\x20(from\x20+\x20to\x20required).\x20'+'Mode\x20registry\x20(industry/scenario\x20configuration):\x20\x27recommend_industry\x27\x20=\x20business\x20intent\x20→\x20top-3\x20'+'similar\x20industries\x20+\x20reference\x20examples;\x20\x27list_modes\x27\x20=\x20builtin\x20+\x20custom\x20modes;\x20\x27derive_user_mode\x27\x20=\x20'+'derive\x20a\x20custom\x20mode\x20from\x20a\x20builtin;\x20\x27evolve_user_mode\x27\x20=\x20iterate\x20an\x20existing\x20custom\x20mode;\x20'+'\x27register_user_mode\x27\x20=\x20register\x20a\x20fully\x20custom\x20mode;\x20\x27unregister_user_mode\x27\x20=\x20delete\x20a\x20custom\x20mode;\x20'+'\x27register_custom_metric\x27\x20/\x20\x27register_custom_constraint\x27\x20=\x20register\x20global\x20evaluation\x20metric/constraint;\x20'+'\x27list_metrics_constraints\x27\x20=\x20list\x20metrics\x20+\x20constraints\x20(filterable).'),'name':z['string']()['optional']()['describe']('Industry\x20name\x20(lowercase\x20snake_case,\x20e.g.\x20\x27life_service\x27);\x20required\x20for\x20scaffold\x20and\x20get.'),'path':z['string']()['optional']()['describe']('Path\x20relative\x20to\x20the\x20industry\x20root\x20(required\x20for\x20read_file,\x20write_file,\x20reset,\x20create_file,\x20create_dir).'),'content':z['string']()['optional']()['describe']('Text\x20content\x20to\x20write\x20(required\x20for\x20write_file;\x20optional\x20for\x20create_file).'),'from':z['string']()['optional']()['describe']('Source\x20path\x20relative\x20to\x20the\x20industry\x20root\x20(required\x20for\x20copy/move/rename).'),'to':z['string']()['optional']()['describe']('Destination\x20path\x20relative\x20to\x20the\x20industry\x20root\x20(required\x20for\x20copy/move/rename).'),...ModeRegistryFields})['strict']();export const IndustryPackOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('action',[z['object']({'action':z['literal']('scaffold'),'ok':z['boolean']()['describe']('Whether\x20the\x20skeleton\x20was\x20created.'),'dir':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20pack\x20directory.'),'files':z['array'](z['string']())['describe']('Created\x20file\x20paths\x20(relative\x20to\x20dir).'),'errors':z['array'](z['string']())['describe']('Validation/creation\x20errors\x20(empty\x20=\x20ok).')}),z['object']({'action':z['literal']('list'),'packs':z['array'](z['object']({'name':z['string'](),'version':z['string'](),'layers':z['array'](z['string']()),'registered_at':z['number']()}))['describe']('Currently\x20registered\x20packs.')}),z['object']({'action':z['literal']('scan'),'results':z['array'](z['object']({'ok':z['boolean'](),'errors':z['array'](z['string']()),'registered':z['array'](z['string']())}))['describe']('One\x20registration\x20result\x20per\x20scanned\x20pack\x20directory.')}),z['object']({'action':z['literal']('resolve'),'dir':z['string']()['describe']('Absolute\x20industry\x20root\x20directory.')}),z['object']({'action':z['literal']('list_files'),'dir':z['string']()['describe']('Absolute\x20industry\x20root\x20directory.'),'files':z['array'](z['object']({'path':z['string']()['describe']('Path\x20relative\x20to\x20the\x20industry\x20root.'),'is_dir':z['boolean'](),'size':z['number']()['describe']('File\x20size\x20in\x20bytes\x20(0\x20for\x20directories).'),'mtime':z['number']()['describe']('Last-modified\x20time\x20(epoch\x20ms).')}))['describe']('Files\x20under\x20the\x20industry\x20root.')}),z['object']({'action':z['literal']('read_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20read\x20file.'),'content':z['string']()['describe']('File\x20content\x20(text).')}),z['object']({'action':z['literal']('write_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20written\x20file.'),'ok':z['boolean']()['describe']('Whether\x20the\x20file\x20was\x20written.')}),z['object']({'action':z['literal']('get'),'category':z['string']()['describe']('Industry\x20name.'),'dispute':z['unknown']()['optional']()['describe']('Registered\x20dispute\x20rules\x20(if\x20any).'),'compliance':z['unknown']()['optional']()['describe']('Registered\x20compliance\x20rules\x20(if\x20any).'),'supply':z['unknown']()['optional']()['describe']('Registered\x20supply\x20rules\x20(if\x20any).'),'rules':z['unknown']()['optional']()['describe']('Registered\x20declarative\x20industry\x20rules\x20(if\x20any).'),'playbook':z['unknown']()['optional']()['describe']('Registered\x20playbook\x20(if\x20any).')}),z['object']({'action':z['literal']('diff'),'name':z['string']()['describe']('Industry\x20name.'),'registered':z['object']({'version':z['string'](),'layers':z['array'](z['string']()),'registered_at':z['number']()})['nullable']()['describe']('Currently\x20registered\x20metadata.'),'disk':z['object']({'version':z['string'](),'layers':z['array'](z['string']())})['nullable']()['describe']('On-disk\x20manifest\x20metadata.'),'upgradable':z['boolean']()['describe']('Whether\x20the\x20on-disk\x20version\x20differs\x20from\x20registered.'),'layer_diff':z['object']({'added':z['array'](z['string']()),'removed':z['array'](z['string']())})['describe']('Layer\x20difference\x20(disk\x20vs\x20registered).')}),z['object']({'action':z['literal']('reset'),'ok':z['boolean']()['describe']('Whether\x20reset\x20succeeded.'),'layout':z['enum'](['merged','legacy'])['describe']('Layout\x20format\x20that\x20was\x20restored:\x20\x27merged\x27\x20(single\x20pack.json\x20+\x20playbook.md)\x20or\x20\x27legacy\x27\x20(split\x20files).'),'target':z['string']()['describe']('Normalised\x20reset\x20target\x20path\x20(pack\x20name\x20or\x20file).'),'restored_files':z['array'](z['string']())['describe']('Files\x20that\x20were\x20restored\x20to\x20pristine\x20annotated\x20templates.'),'errors':z['array'](z['string']())['describe']('Errors\x20encountered\x20during\x20reset.')}),z['object']({'action':z['literal']('delete_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20deleted\x20file\x20or\x20directory.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('create_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20file.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('create_dir'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20directory.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('copy'),'from':z['string']()['describe']('Absolute\x20source\x20path.'),'to':z['string']()['describe']('Absolute\x20destination\x20path.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('move'),'from':z['string']()['describe']('Absolute\x20source\x20path.'),'to':z['string']()['describe']('Absolute\x20destination\x20path.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('rename'),'from':z['string']()['describe']('Absolute\x20old\x20path.'),'to':z['string']()['describe']('Absolute\x20new\x20path.'),'ok':z['boolean']()}),...[RecommendIndustryResultSchema,ListModesResultSchema,DeriveUserModeResultSchema,EvolveUserModeResultSchema,RegisterUserModeResultSchema,UnregisterUserModeResultSchema,RegisterCustomMetricResultSchema,UnregisterCustomMetricResultSchema,RegisterCustomConstraintResultSchema,UnregisterCustomConstraintResultSchema,ListMetricsConstraintsResultSchema]])})['strict']();
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const MODE_REGISTRY_ACTIONS: readonly ["recommend_industry", "list_modes", "derive_user_mode", "evolve_user_mode", "register_user_mode", "unregister_user_mode", "register_custom_metric", "register_custom_constraint", "list_metrics_constraints"];
|
|
2
|
+
export declare const MODE_REGISTRY_ACTIONS: readonly ["recommend_industry", "list_modes", "derive_user_mode", "evolve_user_mode", "register_user_mode", "unregister_user_mode", "register_custom_metric", "unregister_custom_metric", "register_custom_constraint", "unregister_custom_constraint", "list_metrics_constraints"];
|
|
3
3
|
export declare const ModeRegistryFields: {
|
|
4
4
|
readonly intent: z.ZodOptional<z.ZodString>;
|
|
5
|
+
readonly strategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
5
6
|
readonly mode_source: z.ZodOptional<z.ZodString>;
|
|
6
7
|
readonly mode_name: z.ZodOptional<z.ZodString>;
|
|
7
8
|
readonly mode_display_name: z.ZodOptional<z.ZodString>;
|
|
@@ -64,6 +65,38 @@ export declare const RecommendIndustryResultSchema: z.ZodObject<{
|
|
|
64
65
|
inferred_traits: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
65
66
|
inference_confidence: z.ZodNumber;
|
|
66
67
|
matched_keywords: z.ZodArray<z.ZodString>;
|
|
68
|
+
strategy_intents: z.ZodArray<z.ZodObject<{
|
|
69
|
+
objective: z.ZodEnum<{
|
|
70
|
+
sales_priority: "sales_priority";
|
|
71
|
+
profit_priority: "profit_priority";
|
|
72
|
+
buyer_screening: "buyer_screening";
|
|
73
|
+
gross_margin_control: "gross_margin_control";
|
|
74
|
+
}>;
|
|
75
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
76
|
+
levers: z.ZodArray<z.ZodEnum<{
|
|
77
|
+
reward: "reward";
|
|
78
|
+
buy_guard: "buy_guard";
|
|
79
|
+
discount: "discount";
|
|
80
|
+
machine_design: "machine_design";
|
|
81
|
+
}>>;
|
|
82
|
+
target: z.ZodString;
|
|
83
|
+
}, z.core.$strict>>;
|
|
84
|
+
lever_suggestions: z.ZodArray<z.ZodObject<{
|
|
85
|
+
lever: z.ZodEnum<{
|
|
86
|
+
reward: "reward";
|
|
87
|
+
buy_guard: "buy_guard";
|
|
88
|
+
discount: "discount";
|
|
89
|
+
machine_design: "machine_design";
|
|
90
|
+
}>;
|
|
91
|
+
objective: z.ZodEnum<{
|
|
92
|
+
sales_priority: "sales_priority";
|
|
93
|
+
profit_priority: "profit_priority";
|
|
94
|
+
buyer_screening: "buyer_screening";
|
|
95
|
+
gross_margin_control: "gross_margin_control";
|
|
96
|
+
}>;
|
|
97
|
+
action: z.ZodString;
|
|
98
|
+
target: z.ZodString;
|
|
99
|
+
}, z.core.$strict>>;
|
|
67
100
|
recommendations: z.ZodArray<z.ZodObject<{
|
|
68
101
|
industry: z.ZodString;
|
|
69
102
|
similarity: z.ZodNumber;
|
|
@@ -74,6 +107,21 @@ export declare const RecommendIndustryResultSchema: z.ZodObject<{
|
|
|
74
107
|
operation_type: z.ZodString;
|
|
75
108
|
verified: z.ZodBoolean;
|
|
76
109
|
}, z.core.$strict>>;
|
|
110
|
+
strategy_alignment: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
score: z.ZodNumber;
|
|
112
|
+
matched_levers: z.ZodArray<z.ZodEnum<{
|
|
113
|
+
reward: "reward";
|
|
114
|
+
buy_guard: "buy_guard";
|
|
115
|
+
discount: "discount";
|
|
116
|
+
machine_design: "machine_design";
|
|
117
|
+
}>>;
|
|
118
|
+
missing_levers: z.ZodArray<z.ZodEnum<{
|
|
119
|
+
reward: "reward";
|
|
120
|
+
buy_guard: "buy_guard";
|
|
121
|
+
discount: "discount";
|
|
122
|
+
machine_design: "machine_design";
|
|
123
|
+
}>>;
|
|
124
|
+
}, z.core.$strip>>;
|
|
77
125
|
}, z.core.$strict>>;
|
|
78
126
|
hint: z.ZodString;
|
|
79
127
|
}, z.core.$strict>;
|
|
@@ -198,6 +246,11 @@ export declare const RegisterCustomMetricResultSchema: z.ZodObject<{
|
|
|
198
246
|
}, z.core.$strict>;
|
|
199
247
|
hint: z.ZodString;
|
|
200
248
|
}, z.core.$strict>;
|
|
249
|
+
export declare const UnregisterCustomMetricResultSchema: z.ZodObject<{
|
|
250
|
+
action: z.ZodLiteral<"unregister_custom_metric">;
|
|
251
|
+
removed: z.ZodLiteral<true>;
|
|
252
|
+
metric_id: z.ZodString;
|
|
253
|
+
}, z.core.$strict>;
|
|
201
254
|
export declare const RegisterCustomConstraintResultSchema: z.ZodObject<{
|
|
202
255
|
action: z.ZodLiteral<"register_custom_constraint">;
|
|
203
256
|
constraint: z.ZodObject<{
|
|
@@ -222,6 +275,11 @@ export declare const RegisterCustomConstraintResultSchema: z.ZodObject<{
|
|
|
222
275
|
}, z.core.$strict>;
|
|
223
276
|
hint: z.ZodString;
|
|
224
277
|
}, z.core.$strict>;
|
|
278
|
+
export declare const UnregisterCustomConstraintResultSchema: z.ZodObject<{
|
|
279
|
+
action: z.ZodLiteral<"unregister_custom_constraint">;
|
|
280
|
+
removed: z.ZodLiteral<true>;
|
|
281
|
+
constraint_id: z.ZodString;
|
|
282
|
+
}, z.core.$strict>;
|
|
225
283
|
export declare const ListMetricsConstraintsResultSchema: z.ZodObject<{
|
|
226
284
|
action: z.ZodLiteral<"list_metrics_constraints">;
|
|
227
285
|
metrics: z.ZodArray<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';export const MODE_REGISTRY_ACTIONS=['recommend_industry','list_modes','derive_user_mode','evolve_user_mode','register_user_mode','unregister_user_mode','register_custom_metric','register_custom_constraint','list_metrics_constraints'];export const ModeRegistryFields={'intent':z['string']()['max'](0x7d0)['optional']()['describe']('Business\x20intent\x20text\x20for\x20recommend_industry\x20(e.g.\x20\x27I\x20rent\x20cameras\x20to\x20photographers\x20'+'with\x20deposit\x20and\x20damage\x20inspection\x27).\x20Falls\x20back\x20to\x20project_description\x20/\x20project_name\x20when\x20omitted.'),'mode_source':z['string']()['optional']()['describe']('Source\x20builtin\x20mode\x20name\x20for\x20derive_user_mode\x20(e.g.\x20\x27freelance\x27).\x20Call\x20list_modes\x20to\x20see\x20available\x20modes.'),'mode_name':z['string']()['max'](0x64)['optional']()['describe']('Mode\x20name\x20for\x20derive_user_mode\x20(new\x20mode\x20name),\x20evolve_user_mode\x20/\x20unregister_user_mode\x20(existing\x20'+'custom\x20mode),\x20register_user_mode\x20(new\x20mode\x20name).\x20Must\x20NOT\x20conflict\x20with\x20builtin\x20mode\x20names.'),'mode_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20derive_user_mode\x20/\x20register_user_mode.\x20Defaults\x20to\x20mode_name.'),'mode_changes':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Mode\x20field\x20overrides\x20for\x20derive_user_mode\x20/\x20evolve_user_mode\x20/\x20register_user_mode.\x20'+'For\x20register_user_mode,\x20REQUIRED\x20fields:\x20machine_shape\x20(non-empty\x20array\x20of\x20{name,\x20role})\x20and\x20key_risk\x20(string).\x20'+'Common\x20overrides:\x20machine_shape\x20(array\x20of\x20{name:string,\x20role:string}),\x20config_overrides\x20(per-object\x20config),\x20'+'allocator,\x20guards,\x20build_notes,\x20risk_appetite.\x20'+'R-M1-11\x20ENFORCED:\x20machine_shape\x20node\x20names\x20must\x20NOT\x20contain\x20dispute/refund/arb\x20terms.'),'mode_change_description':z['string']()['max'](0x1f4)['optional']()['describe']('Change\x20description\x20for\x20evolve_user_mode\x20(recorded\x20in\x20evolution\x20history).'),'mode_bump_version':z['boolean']()['optional']()['describe']('Whether\x20evolve_user_mode\x20bumps\x20the\x20patch\x20version\x20(default\x20true:\x20v1.0\x20→\x20v1.1).'),'metric_id':z['string']()['max'](0x64)['optional']()['describe']('Unique\x20metric\x20ID\x20for\x20register_custom_metric\x20(e.g.\x20\x27seasonality_risk\x27).'),'metric_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20register_custom_metric.'),'metric_description':z['string']()['max'](0x3e8)['optional']()['describe']('Description\x20for\x20register_custom_metric.'),'metric_type':z['enum'](['risk','benefit'])['optional']()['describe']('Metric\x20type\x20for\x20register_custom_metric:\x20\x27risk\x27\x20(negative)\x20or\x20\x27benefit\x27\x20(positive).'),'metric_scale':z['enum'](['level','numeric','percentage'])['optional']()['describe']('Metric\x20scale\x20for\x20register_custom_metric:\x20\x27level\x27\x20(high/medium/low),\x20\x27numeric\x27,\x20or\x20\x27percentage\x27.'),'metric_weight':z['number']()['min'](0x0)['max'](0xa)['optional']()['describe']('Metric\x20weight\x20for\x20register_custom_metric\x20(default\x201.0).'),'constraint_id':z['string']()['max'](0x64)['optional']()['describe']('Unique\x20constraint\x20ID\x20for\x20register_custom_constraint.'),'constraint_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20register_custom_constraint.'),'constraint_description':z['string']()['max'](0x3e8)['optional']()['describe']('Description\x20for\x20register_custom_constraint.'),'constraint_rule':z['discriminatedUnion']('type',[z['object']({'type':z['literal']('capability_required'),'capability_id':z['string']()})['strict'](),z['object']({'type':z['literal']('capability_forbidden'),'capability_id':z['string']()})['strict'](),z['object']({'type':z['literal']('numeric_limit'),'field':z['string'](),'max':z['number']()['optional'](),'min':z['number']()['optional']()})['strict'](),z['object']({'type':z['literal']('condition_required'),'condition':z['string'](),'ai_evaluated':z['literal'](!![])})['strict']()])['optional']()['describe']('Constraint\x20rule\x20for\x20register_custom_constraint.\x204\x20types:\x20'+'capability_required/capability_forbidden\x20(capability_id),\x20numeric_limit\x20(field\x20+\x20max/min),\x20'+'condition_required\x20(natural-language\x20condition,\x20AI-evaluated).'),'constraint_severity':z['enum'](['hard','soft'])['optional']()['describe']('Constraint\x20severity\x20for\x20register_custom_constraint:\x20\x27hard\x27\x20blocks\x20applyTemplate\x20on\x20violation;\x20\x27soft\x27\x20only\x20warns\x20(default\x20\x27soft\x27).'),'constraint_on_violation':z['enum'](['block','warn','log'])['optional']()['describe']('Violation\x20action\x20for\x20register_custom_constraint\x20(default\x20\x27warn\x27).'),'metric_type_filter':z['enum'](['risk','benefit'])['optional']()['describe']('Filter\x20list_metrics_constraints\x20by\x20metric\x20type.'),'scope_filter':z['enum'](['builtin','custom'])['optional']()['describe']('Filter\x20list_metrics_constraints\x20by\x20scope\x20(builtin\x20or\x20custom).')};const RecommendedIndustryItemSchema=z['object']({'industry':z['string']()['describe']('Recommended\x20builtin\x20industry\x20mode\x20name.'),'similarity':z['number']()['describe']('Trait\x20similarity\x200-1\x20(10-dim\x20industry\x20trait\x20match).'),'matched_traits':z['array'](z['string']())['describe']('Trait\x20dimensions\x20that\x20matched.'),'reference_examples':z['array'](z['object']({'file':z['string']()['describe']('Example\x20file\x20name\x20(fetch\x20via\x20schema_query\x20search_examples).'),'title':z['string'](),'operation_type':z['string'](),'verified':z['boolean']()})['strict']())['describe']('Verified\x20reference\x20examples\x20for\x20this\x20industry\x20(top\x203).')})['strict']();export const RecommendIndustryResultSchema=z['object']({'action':z['literal']('recommend_industry'),'intent':z['string']()['describe']('The\x20intent\x20text\x20used\x20for\x20inference.'),'inferred_traits':z['record'](z['string'](),z['unknown']())['describe']('10-dim\x20industry\x20traits\x20inferred\x20from\x20intent.'),'inference_confidence':z['number']()['describe']('Inference\x20confidence\x200-1\x20(matched\x20trait\x20count\x20/\x2010).'),'matched_keywords':z['array'](z['string']())['describe']('Keywords\x20that\x20triggered\x20trait\x20inference.'),'recommendations':z['array'](RecommendedIndustryItemSchema)['describe']('Top-3\x20similar\x20industries\x20+\x20reference\x20examples.'),'hint':z['string']()['describe']('How\x20to\x20apply\x20the\x20recommendation\x20(pass\x20the\x20industry\x20to\x20analyze_intent\x20/\x20merchant_guide\x20via\x20project_industry).')})['strict']();const ModeSummarySchema=z['object']({'name':z['string'](),'display_name':z['string'](),'version':z['string'](),'derived_from':z['string']()['nullable']()['describe']('Source\x20builtin\x20mode\x20(derive_user_mode)\x20or\x20null.'),'owner':z['string']()['optional']()['describe']('Mode\x20owner\x20(custom\x20modes\x20only).'),'key_risk':z['string'](),'machine_nodes':z['array'](z['string']())['describe']('Machine\x20shape\x20node\x20names.'),'similar_industries':z['array'](z['string']())['optional'](),'evolution_history':z['array'](z['object']({'version':z['string'](),'changed_at':z['number'](),'changes':z['array'](z['string']())})['strict']())['optional']()})['strict']();export const ListModesResultSchema=z['object']({'action':z['literal']('list_modes'),'builtin_modes':z['array'](ModeSummarySchema)['describe']('Builtin\x20industry\x20modes\x20(use\x20name\x20as\x20project_industry).'),'user_modes':z['array'](ModeSummarySchema)['describe']('Caller\x27s\x20custom\x20modes\x20(derive/evolve/register).'),'owner':z['string']()['describe']('Owner\x20key\x20for\x20custom\x20modes\x20(local\x20single-user).'),'hint':z['string']()})['strict']();export const DeriveUserModeResultSchema=z['object']({'action':z['literal']('derive_user_mode'),'mode':ModeSummarySchema['describe']('The\x20derived\x20(and\x20registered)\x20custom\x20mode.'),'hint':z['string']()})['strict']();export const EvolveUserModeResultSchema=z['object']({'action':z['literal']('evolve_user_mode'),'mode':ModeSummarySchema['describe']('The\x20evolved\x20custom\x20mode\x20(version\x20bumped).'),'hint':z['string']()})['strict']();export const RegisterUserModeResultSchema=z['object']({'action':z['literal']('register_user_mode'),'mode':ModeSummarySchema['describe']('The\x20registered\x20fully-custom\x20mode.'),'hint':z['string']()})['strict']();export const UnregisterUserModeResultSchema=z['object']({'action':z['literal']('unregister_user_mode'),'removed':z['literal'](!![]),'mode_name':z['string']()})['strict']();const MetricInfoSchema=z['object']({'metric_id':z['string'](),'display_name':z['string'](),'description':z['string'](),'type':z['enum'](['risk','benefit']),'scale':z['enum'](['level','numeric','percentage']),'weight':z['number'](),'scope':z['enum'](['builtin','custom']),'owner':z['string']()['optional']()})['strict']();export const RegisterCustomMetricResultSchema=z['object']({'action':z['literal']('register_custom_metric'),'metric':MetricInfoSchema['describe']('The\x20registered\x20custom\x20metric\x20(globally\x20effective).'),'hint':z['string']()})['strict']();const ConstraintInfoSchema=z['object']({'constraint_id':z['string'](),'display_name':z['string'](),'description':z['string'](),'rule':z['record'](z['string'](),z['unknown']())['describe']('Constraint\x20rule\x20(4\x20types\x20—\x20see\x20constraint_rule\x20input).'),'severity':z['enum'](['hard','soft']),'on_violation':z['enum'](['block','warn','log']),'scope':z['enum'](['builtin','custom']),'owner':z['string']()['optional']()})['strict']();export const RegisterCustomConstraintResultSchema=z['object']({'action':z['literal']('register_custom_constraint'),'constraint':ConstraintInfoSchema['describe']('The\x20registered\x20custom\x20constraint.'),'hint':z['string']()})['strict']();export const ListMetricsConstraintsResultSchema=z['object']({'action':z['literal']('list_metrics_constraints'),'metrics':z['array'](MetricInfoSchema),'constraints':z['array'](ConstraintInfoSchema),'hint':z['string']()})['strict']();
|
|
1
|
+
import{z}from'zod';export const MODE_REGISTRY_ACTIONS=['recommend_industry','list_modes','derive_user_mode','evolve_user_mode','register_user_mode','unregister_user_mode','register_custom_metric','unregister_custom_metric','register_custom_constraint','unregister_custom_constraint','list_metrics_constraints'];export const ModeRegistryFields={'intent':z['string']()['max'](0x7d0)['optional']()['describe']('Business\x20intent\x20text\x20for\x20recommend_industry\x20(e.g.\x20\x27I\x20rent\x20cameras\x20to\x20photographers\x20'+'with\x20deposit\x20and\x20damage\x20inspection\x27).\x20Falls\x20back\x20to\x20project_description\x20/\x20project_name\x20when\x20omitted.'),'strategy':z['union']([z['string']()['max'](0x7d0),z['array'](z['string']()['max'](0x7d0))['max'](0xa)])['optional']()['describe']('Persona\x20strategy\x20statement(s)\x20for\x20recommend_industry\x20(e.g.\x20\x27push\x20sales\x20volume\x20first\x27\x20/\x20'+'\x27keep\x20gross\x20margin\x20>=\x2030%\x27).\x20Bridged\x20into\x20mode\x20ranking:\x20objectives\x20resolve\x20to\x20deterministic\x20'+'infrastructure\x20levers\x20(discount\x20/\x20reward\x20/\x20buy_guard\x20/\x20machine_design)\x20and\x20re-rank\x20the\x20'+'industry\x20recommendations\x20by\x20lever\x20alignment.\x20Pass\x20the\x20persona\x27s\x20strategy[]\x20entries\x20here.'),'mode_source':z['string']()['optional']()['describe']('Source\x20builtin\x20mode\x20name\x20for\x20derive_user_mode\x20(e.g.\x20\x27freelance\x27).\x20Call\x20list_modes\x20to\x20see\x20available\x20modes.'),'mode_name':z['string']()['max'](0x64)['optional']()['describe']('Mode\x20name\x20for\x20derive_user_mode\x20(new\x20mode\x20name),\x20evolve_user_mode\x20/\x20unregister_user_mode\x20(existing\x20'+'custom\x20mode),\x20register_user_mode\x20(new\x20mode\x20name).\x20Must\x20NOT\x20conflict\x20with\x20builtin\x20mode\x20names.'),'mode_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20derive_user_mode\x20/\x20register_user_mode.\x20Defaults\x20to\x20mode_name.'),'mode_changes':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Mode\x20field\x20overrides\x20for\x20derive_user_mode\x20/\x20evolve_user_mode\x20/\x20register_user_mode.\x20'+'For\x20register_user_mode,\x20REQUIRED\x20fields:\x20machine_shape\x20(non-empty\x20array\x20of\x20{name,\x20role})\x20and\x20key_risk\x20(string).\x20'+'Common\x20overrides:\x20machine_shape\x20(array\x20of\x20{name:string,\x20role:string}),\x20config_overrides\x20(per-object\x20config),\x20'+'allocator,\x20guards,\x20build_notes,\x20risk_appetite.\x20'+'R-M1-11\x20ENFORCED:\x20machine_shape\x20node\x20names\x20must\x20NOT\x20contain\x20dispute/refund/arb\x20terms.'),'mode_change_description':z['string']()['max'](0x1f4)['optional']()['describe']('Change\x20description\x20for\x20evolve_user_mode\x20(recorded\x20in\x20evolution\x20history).'),'mode_bump_version':z['boolean']()['optional']()['describe']('Whether\x20evolve_user_mode\x20bumps\x20the\x20patch\x20version\x20(default\x20true:\x20v1.0\x20→\x20v1.1).'),'metric_id':z['string']()['max'](0x64)['optional']()['describe']('Unique\x20metric\x20ID\x20for\x20register_custom_metric\x20(e.g.\x20\x27seasonality_risk\x27).'),'metric_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20register_custom_metric.'),'metric_description':z['string']()['max'](0x3e8)['optional']()['describe']('Description\x20for\x20register_custom_metric.'),'metric_type':z['enum'](['risk','benefit'])['optional']()['describe']('Metric\x20type\x20for\x20register_custom_metric:\x20\x27risk\x27\x20(negative)\x20or\x20\x27benefit\x27\x20(positive).'),'metric_scale':z['enum'](['level','numeric','percentage'])['optional']()['describe']('Metric\x20scale\x20for\x20register_custom_metric:\x20\x27level\x27\x20(high/medium/low),\x20\x27numeric\x27,\x20or\x20\x27percentage\x27.'),'metric_weight':z['number']()['min'](0x0)['max'](0xa)['optional']()['describe']('Metric\x20weight\x20for\x20register_custom_metric\x20(default\x201.0).'),'constraint_id':z['string']()['max'](0x64)['optional']()['describe']('Unique\x20constraint\x20ID\x20for\x20register_custom_constraint.'),'constraint_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20register_custom_constraint.'),'constraint_description':z['string']()['max'](0x3e8)['optional']()['describe']('Description\x20for\x20register_custom_constraint.'),'constraint_rule':z['discriminatedUnion']('type',[z['object']({'type':z['literal']('capability_required'),'capability_id':z['string']()})['strict'](),z['object']({'type':z['literal']('capability_forbidden'),'capability_id':z['string']()})['strict'](),z['object']({'type':z['literal']('numeric_limit'),'field':z['string'](),'max':z['number']()['optional'](),'min':z['number']()['optional']()})['strict'](),z['object']({'type':z['literal']('condition_required'),'condition':z['string'](),'ai_evaluated':z['literal'](!![])})['strict']()])['optional']()['describe']('Constraint\x20rule\x20for\x20register_custom_constraint.\x204\x20types:\x20'+'capability_required/capability_forbidden\x20(capability_id),\x20numeric_limit\x20(field\x20+\x20max/min),\x20'+'condition_required\x20(natural-language\x20condition,\x20AI-evaluated).'),'constraint_severity':z['enum'](['hard','soft'])['optional']()['describe']('Constraint\x20severity\x20for\x20register_custom_constraint:\x20\x27hard\x27\x20blocks\x20applyTemplate\x20on\x20violation;\x20\x27soft\x27\x20only\x20warns\x20(default\x20\x27soft\x27).'),'constraint_on_violation':z['enum'](['block','warn','log'])['optional']()['describe']('Violation\x20action\x20for\x20register_custom_constraint\x20(default\x20\x27warn\x27).'),'metric_type_filter':z['enum'](['risk','benefit'])['optional']()['describe']('Filter\x20list_metrics_constraints\x20by\x20metric\x20type.'),'scope_filter':z['enum'](['builtin','custom'])['optional']()['describe']('Filter\x20list_metrics_constraints\x20by\x20scope\x20(builtin\x20or\x20custom).')};const RecommendedIndustryItemSchema=z['object']({'industry':z['string']()['describe']('Recommended\x20builtin\x20industry\x20mode\x20name.'),'similarity':z['number']()['describe']('Trait\x20similarity\x200-1\x20(10-dim\x20industry\x20trait\x20match).'),'matched_traits':z['array'](z['string']())['describe']('Trait\x20dimensions\x20that\x20matched.'),'reference_examples':z['array'](z['object']({'file':z['string']()['describe']('Example\x20file\x20name\x20(fetch\x20via\x20schema_query\x20search_examples).'),'title':z['string'](),'operation_type':z['string'](),'verified':z['boolean']()})['strict']())['describe']('Verified\x20reference\x20examples\x20for\x20this\x20industry\x20(top\x203).'),'strategy_alignment':z['object']({'score':z['number']()['describe']('Lever\x20alignment\x200-1\x20(matched\x20/\x20required\x20levers).'),'matched_levers':z['array'](z['enum'](['discount','reward','buy_guard','machine_design']))['describe']('Required\x20levers\x20this\x20mode\x20supports.'),'missing_levers':z['array'](z['enum'](['discount','reward','buy_guard','machine_design']))['describe']('Required\x20levers\x20this\x20mode\x20lacks.')})['optional']()['describe']('Present\x20only\x20when\x20a\x20strategy\x20was\x20provided:\x20lever\x20alignment\x20of\x20the\x20industry\x20mode.')})['strict']();export const RecommendIndustryResultSchema=z['object']({'action':z['literal']('recommend_industry'),'intent':z['string']()['describe']('The\x20intent\x20text\x20used\x20for\x20inference.'),'inferred_traits':z['record'](z['string'](),z['unknown']())['describe']('10-dim\x20industry\x20traits\x20inferred\x20from\x20intent.'),'inference_confidence':z['number']()['describe']('Inference\x20confidence\x200-1\x20(matched\x20trait\x20count\x20/\x2010).'),'matched_keywords':z['array'](z['string']())['describe']('Keywords\x20that\x20triggered\x20trait\x20inference.'),'strategy_intents':z['array'](z['object']({'objective':z['enum'](['sales_priority','profit_priority','buyer_screening','gross_margin_control']),'metrics':z['array'](z['string']()),'levers':z['array'](z['enum'](['discount','reward','buy_guard','machine_design'])),'target':z['string']()})['strict']())['describe']('Strategy\x20intents\x20resolved\x20from\x20the\x20provided\x20persona\x20strategy\x20statements\x20(empty\x20if\x20none\x20matched).'),'lever_suggestions':z['array'](z['object']({'lever':z['enum'](['discount','reward','buy_guard','machine_design']),'objective':z['enum'](['sales_priority','profit_priority','buyer_screening','gross_margin_control']),'action':z['string']()['describe']('Deterministic\x20on-chain\x20action\x20that\x20pulls\x20the\x20lever.'),'target':z['string']()})['strict']())['describe']('Concrete\x20lever\x20suggestions\x20for\x20the\x20resolved\x20strategy\x20intents.'),'recommendations':z['array'](RecommendedIndustryItemSchema)['describe']('Top-3\x20similar\x20industries\x20+\x20reference\x20examples\x20(re-ranked\x20by\x20lever\x20alignment\x20when\x20strategy\x20provided).'),'hint':z['string']()['describe']('How\x20to\x20apply\x20the\x20recommendation\x20(pass\x20the\x20industry\x20to\x20analyze_intent\x20/\x20merchant_guide\x20via\x20project_industry).')})['strict']();const ModeSummarySchema=z['object']({'name':z['string'](),'display_name':z['string'](),'version':z['string'](),'derived_from':z['string']()['nullable']()['describe']('Source\x20builtin\x20mode\x20(derive_user_mode)\x20or\x20null.'),'owner':z['string']()['optional']()['describe']('Mode\x20owner\x20(custom\x20modes\x20only).'),'key_risk':z['string'](),'machine_nodes':z['array'](z['string']())['describe']('Machine\x20shape\x20node\x20names.'),'similar_industries':z['array'](z['string']())['optional'](),'evolution_history':z['array'](z['object']({'version':z['string'](),'changed_at':z['number'](),'changes':z['array'](z['string']())})['strict']())['optional']()})['strict']();export const ListModesResultSchema=z['object']({'action':z['literal']('list_modes'),'builtin_modes':z['array'](ModeSummarySchema)['describe']('Builtin\x20industry\x20modes\x20(use\x20name\x20as\x20project_industry).'),'user_modes':z['array'](ModeSummarySchema)['describe']('Caller\x27s\x20custom\x20modes\x20(derive/evolve/register).'),'owner':z['string']()['describe']('Owner\x20key\x20for\x20custom\x20modes\x20(local\x20single-user).'),'hint':z['string']()})['strict']();export const DeriveUserModeResultSchema=z['object']({'action':z['literal']('derive_user_mode'),'mode':ModeSummarySchema['describe']('The\x20derived\x20(and\x20registered)\x20custom\x20mode.'),'hint':z['string']()})['strict']();export const EvolveUserModeResultSchema=z['object']({'action':z['literal']('evolve_user_mode'),'mode':ModeSummarySchema['describe']('The\x20evolved\x20custom\x20mode\x20(version\x20bumped).'),'hint':z['string']()})['strict']();export const RegisterUserModeResultSchema=z['object']({'action':z['literal']('register_user_mode'),'mode':ModeSummarySchema['describe']('The\x20registered\x20fully-custom\x20mode.'),'hint':z['string']()})['strict']();export const UnregisterUserModeResultSchema=z['object']({'action':z['literal']('unregister_user_mode'),'removed':z['literal'](!![]),'mode_name':z['string']()})['strict']();const MetricInfoSchema=z['object']({'metric_id':z['string'](),'display_name':z['string'](),'description':z['string'](),'type':z['enum'](['risk','benefit']),'scale':z['enum'](['level','numeric','percentage']),'weight':z['number'](),'scope':z['enum'](['builtin','custom']),'owner':z['string']()['optional']()})['strict']();export const RegisterCustomMetricResultSchema=z['object']({'action':z['literal']('register_custom_metric'),'metric':MetricInfoSchema['describe']('The\x20registered\x20custom\x20metric\x20(globally\x20effective).'),'hint':z['string']()})['strict']();export const UnregisterCustomMetricResultSchema=z['object']({'action':z['literal']('unregister_custom_metric'),'removed':z['literal'](!![]),'metric_id':z['string']()})['strict']();const ConstraintInfoSchema=z['object']({'constraint_id':z['string'](),'display_name':z['string'](),'description':z['string'](),'rule':z['record'](z['string'](),z['unknown']())['describe']('Constraint\x20rule\x20(4\x20types\x20—\x20see\x20constraint_rule\x20input).'),'severity':z['enum'](['hard','soft']),'on_violation':z['enum'](['block','warn','log']),'scope':z['enum'](['builtin','custom']),'owner':z['string']()['optional']()})['strict']();export const RegisterCustomConstraintResultSchema=z['object']({'action':z['literal']('register_custom_constraint'),'constraint':ConstraintInfoSchema['describe']('The\x20registered\x20custom\x20constraint.'),'hint':z['string']()})['strict']();export const UnregisterCustomConstraintResultSchema=z['object']({'action':z['literal']('unregister_custom_constraint'),'removed':z['literal'](!![]),'constraint_id':z['string']()})['strict']();export const ListMetricsConstraintsResultSchema=z['object']({'action':z['literal']('list_metrics_constraints'),'metrics':z['array'](MetricInfoSchema),'constraints':z['array'](ConstraintInfoSchema),'hint':z['string']()})['strict']();
|