@wowok/agent-mcp 2.6.1 → 2.6.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/dist/customer/customer-advice.d.ts +31 -0
- package/dist/customer/customer-advice.js +129 -0
- package/dist/customer/index.d.ts +2 -0
- package/dist/customer/index.js +2 -0
- package/dist/customer/info-puzzle.d.ts +9 -2
- package/dist/customer/info-puzzle.js +34 -7
- package/dist/customer/order-monitor.d.ts +2 -0
- package/dist/customer/order-monitor.js +3 -2
- package/dist/customer/post-purchase.d.ts +2 -0
- package/dist/customer/post-purchase.js +6 -5
- package/dist/customer/preorder-compare.d.ts +24 -0
- package/dist/customer/preorder-compare.js +34 -0
- package/dist/customer/reminder-system.d.ts +2 -0
- package/dist/customer/reminder-system.js +2 -1
- package/dist/customer/risk-assessment.js +30 -7
- package/dist/customer/types.d.ts +7 -0
- package/dist/examples/arbitration-dispute-create.json +41 -0
- package/dist/examples/arbitration-vote-weighted.json +35 -0
- package/dist/examples/arbitration-voting-guard-add.json +38 -0
- package/dist/examples/demand-present-service.json +33 -0
- package/dist/examples/gen-passport-verify-guard.json +48 -0
- package/dist/examples/guard-template-balance-check.json +59 -0
- package/dist/examples/guard-template-time-lock.json +60 -0
- package/dist/examples/insurance-guard-claim-timelock.json +75 -0
- package/dist/examples/insurance-guard-withdraw-allocation.json +96 -0
- package/dist/examples/insurance-machine-create-publish.json +75 -0
- package/dist/examples/insurance-service-allocators-publish.json +56 -0
- package/dist/examples/machine-multisig-threshold.json +86 -0
- package/dist/examples/machine-template-7node-rental.json +119 -0
- package/dist/examples/payment-scenario-bound.json +45 -0
- package/dist/examples/rental-ziroom-machine-create.json +149 -0
- package/dist/examples/rental-ziroom-permission-create.json +42 -0
- package/dist/examples/rental-ziroom-service-create.json +89 -0
- package/dist/examples/retail-adv-guard-customer-win-create.json +80 -0
- package/dist/examples/retail-adv-guard-messenger-proof-create.json +65 -0
- package/dist/examples/retail-adv-guard-reward-timeout-create.json +92 -0
- package/dist/examples/retail-adv-reward-guard-add.json +51 -0
- package/dist/examples/retail-myshop-allocation-activate.json +55 -0
- package/dist/examples/retail-myshop-arbitration-create.json +40 -0
- package/dist/examples/retail-myshop-contact-create.json +43 -0
- package/dist/examples/retail-myshop-order-create.json +56 -0
- package/dist/examples/retail-myshop-progress-operate.json +38 -0
- package/dist/examples/retail-myshop-reward-create.json +35 -0
- package/dist/examples/retail-myshop-service-create.json +88 -0
- package/dist/examples/service-discount-issue.json +46 -0
- package/dist/examples/threebody-guard-create.json +56 -0
- package/dist/examples/threebody-machine-create.json +72 -0
- package/dist/examples/threebody-permission-create.json +38 -0
- package/dist/examples/threebody-service-allocators.json +49 -0
- package/dist/examples/travel-guard-time-lock.json +69 -0
- package/dist/examples/travel-guard-weather-oracle.json +70 -0
- package/dist/examples/travel-machine-create.json +136 -0
- package/dist/examples/travel-repository-create.json +47 -0
- package/dist/examples/travel-service-create.json +102 -0
- package/dist/examples/travel-treasury-create.json +34 -0
- package/dist/examples/treasury-deposit.json +37 -0
- package/dist/examples/treasury-withdraw.json +38 -0
- package/dist/extensions/business-modules.d.ts +49 -0
- package/dist/extensions/business-modules.js +287 -0
- package/dist/extensions/capability-manifest.js +216 -29
- package/dist/extensions/constraint-registry.js +21 -19
- package/dist/extensions/metric-registry.js +14 -14
- package/dist/extensions/mode-evaluator.js +16 -16
- package/dist/extensions/modes.js +141 -49
- package/dist/extensions/registry.d.ts +16 -9
- package/dist/extensions/registry.js +132 -44
- package/dist/extensions/types.d.ts +2 -0
- package/dist/index.js +50 -0
- package/dist/knowledge/deployment-scanner.js +1 -1
- package/dist/knowledge/fund-layer.d.ts +138 -0
- package/dist/knowledge/fund-layer.js +969 -0
- package/dist/knowledge/guard-render.d.ts +57 -0
- package/dist/knowledge/guard-render.js +700 -0
- package/dist/knowledge/guard-submission-prompt.d.ts +31 -0
- package/dist/knowledge/guard-submission-prompt.js +171 -0
- package/dist/knowledge/guard-templates.d.ts +10 -0
- package/dist/knowledge/guard-templates.js +50 -0
- package/dist/knowledge/index.d.ts +2 -2
- package/dist/knowledge/index.js +2 -2
- package/dist/knowledge/machine-ledger.js +1 -1
- package/dist/knowledge/machine-render.d.ts +41 -0
- package/dist/knowledge/machine-render.js +565 -0
- package/dist/knowledge/machine-risk.js +4 -1
- package/dist/knowledge/machine-templates.js +4 -4
- package/dist/knowledge/progress-context.js +1 -1
- package/dist/knowledge/progress-ledger.js +3 -3
- package/dist/knowledge/progress-templates.js +1 -1
- package/dist/knowledge/progress-translation.js +1 -1
- package/dist/knowledge/reward-confirm.js +2 -2
- package/dist/knowledge/reward-puzzle.js +1 -1
- package/dist/knowledge/reward-risk.js +9 -9
- package/dist/knowledge/reward-templates.js +2 -2
- package/dist/knowledge/safety-rules.d.ts +83 -1
- package/dist/knowledge/safety-rules.js +166 -2
- package/dist/knowledge/scenario-modes.d.ts +1 -1
- package/dist/knowledge/scenario-modes.js +13 -11
- package/dist/knowledge/service-confirm.d.ts +1 -1
- package/dist/knowledge/service-confirm.js +3 -3
- package/dist/knowledge/service-context.js +1 -1
- package/dist/knowledge/service-ledger.js +1 -1
- package/dist/knowledge/service-risk.d.ts +1 -1
- package/dist/knowledge/service-risk.js +3 -3
- package/dist/knowledge/service-templates.js +2 -2
- package/dist/knowledge/service-translation.d.ts +1 -1
- package/dist/knowledge/service-translation.js +7 -7
- package/dist/knowledge/template-registry.d.ts +48 -0
- package/dist/knowledge/template-registry.js +341 -0
- package/dist/knowledge/tool-constraints.js +6 -6
- package/dist/knowledge/tools-reference.js +11 -8
- package/dist/participation/merchant-interest.d.ts +32 -0
- package/dist/participation/merchant-interest.js +100 -0
- package/dist/participation/radar-core.d.ts +104 -0
- package/dist/participation/radar-core.js +269 -0
- package/dist/project/context-assembly.js +8 -0
- package/dist/project/deployment-bridge.js +6 -5
- package/dist/project/deployment-doc.js +5 -5
- package/dist/project/edit-planner.d.ts +123 -0
- package/dist/project/edit-planner.js +1342 -0
- package/dist/project/evaluation.d.ts +36 -0
- package/dist/project/evaluation.js +734 -68
- package/dist/project/game-theory.d.ts +43 -0
- package/dist/project/game-theory.js +177 -0
- package/dist/project/graph-builder.js +7 -1
- package/dist/project/handlers.d.ts +137 -2
- package/dist/project/handlers.js +423 -51
- package/dist/project/intent-analyzer.d.ts +71 -0
- package/dist/project/intent-analyzer.js +149 -0
- package/dist/project/machine-nodes.d.ts +2 -0
- package/dist/project/machine-nodes.js +36 -0
- package/dist/project/merchant-guide.d.ts +165 -0
- package/dist/project/merchant-guide.js +264 -0
- package/dist/project/mode-actions.d.ts +199 -0
- package/dist/project/mode-actions.js +309 -0
- package/dist/project/participation-radar.d.ts +18 -0
- package/dist/project/participation-radar.js +428 -0
- package/dist/project/pipeline-actions.d.ts +101 -0
- package/dist/project/pipeline-actions.js +109 -0
- package/dist/project/semantic-graph.d.ts +95 -0
- package/dist/project/semantic-graph.js +245 -0
- package/dist/project/stage-gate.js +4 -4
- package/dist/schema/call/allocation.d.ts +11 -11
- package/dist/schema/call/allocation.js +13 -3
- package/dist/schema/call/arbitration.d.ts +21 -21
- package/dist/schema/call/arbitration.js +30 -9
- package/dist/schema/call/base.d.ts +2 -2
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +127 -127
- package/dist/schema/call/bridge.js +12 -12
- package/dist/schema/call/contact.d.ts +3 -3
- package/dist/schema/call/contact.js +2 -2
- package/dist/schema/call/demand.d.ts +3 -3
- package/dist/schema/call/demand.js +2 -2
- package/dist/schema/call/guard.d.ts +11 -11
- package/dist/schema/call/guard.js +2 -2
- package/dist/schema/call/machine.d.ts +2072 -679
- package/dist/schema/call/machine.js +51 -5
- package/dist/schema/call/order.d.ts +7 -7
- package/dist/schema/call/order.js +3 -6
- package/dist/schema/call/payment.d.ts +3 -3
- package/dist/schema/call/permission.d.ts +3 -3
- package/dist/schema/call/permission.js +2 -2
- package/dist/schema/call/personal.d.ts +337 -3
- package/dist/schema/call/personal.js +10 -0
- package/dist/schema/call/progress.d.ts +177 -9
- package/dist/schema/call/progress.js +7 -3
- package/dist/schema/call/proof.d.ts +6 -6
- package/dist/schema/call/repository.d.ts +3 -3
- package/dist/schema/call/repository.js +2 -2
- package/dist/schema/call/reward.d.ts +57 -57
- package/dist/schema/call/reward.js +3 -3
- package/dist/schema/call/semantic.js +48 -2
- package/dist/schema/call/service.d.ts +285 -113
- package/dist/schema/call/service.js +92 -28
- package/dist/schema/call/treasury.d.ts +57 -57
- package/dist/schema/call/treasury.js +3 -3
- package/dist/schema/common/index.d.ts +2 -0
- package/dist/schema/common/index.js +46 -10
- package/dist/schema/local/index.js +5 -1
- package/dist/schema/messenger/index.js +4 -1
- package/dist/schema/operations.d.ts +1318 -317
- package/dist/schema/operations.js +76 -7
- package/dist/schema/project/index.d.ts +5662 -164
- package/dist/schema/project/index.js +1136 -5
- package/dist/schema/query/index.d.ts +580 -19
- package/dist/schema/query/index.js +88 -36
- package/dist/schema/schema-query/index.d.ts +59 -3
- package/dist/schema/schema-query/index.js +45 -6
- package/dist/schema/trust/index.d.ts +1012 -6
- package/dist/schema/trust/index.js +212 -11
- package/dist/schema/utils/node-parser.js +13 -0
- package/dist/schema/utils/object-type-utils.d.ts +12 -0
- package/dist/schema/utils/object-type-utils.js +35 -0
- package/dist/schema/utils/permission-machine-check.d.ts +49 -0
- package/dist/schema/utils/permission-machine-check.js +121 -0
- package/dist/schema/utils/skills-recommendation.d.ts +2 -0
- package/dist/schema/utils/skills-recommendation.js +77 -0
- package/dist/schema-query/index.d.ts +17 -1
- package/dist/schema-query/index.js +359 -3
- package/dist/schemas/account_operation.schema.json +1 -1
- package/dist/schemas/bridge_operation.schema.json +14 -7
- package/dist/schemas/guard2file.schema.json +2 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/machineNode2file.schema.json +2 -0
- package/dist/schemas/messenger_operation.schema.json +1 -1
- package/dist/schemas/onchain_events.output.json +1 -1
- package/dist/schemas/onchain_operations.output.json +2820 -0
- package/dist/schemas/onchain_operations.schema.json +255 -65
- package/dist/schemas/onchain_operations_allocation.schema.json +7 -6
- package/dist/schemas/onchain_operations_arbitration.schema.json +14 -10
- package/dist/schemas/onchain_operations_contact.schema.json +4 -3
- package/dist/schemas/onchain_operations_demand.schema.json +4 -3
- package/dist/schemas/onchain_operations_gen_passport.schema.json +4 -2
- package/dist/schemas/onchain_operations_gen_proof.schema.json +2 -0
- package/dist/schemas/onchain_operations_guard.schema.json +579 -1
- package/dist/schemas/onchain_operations_machine.schema.json +5 -4
- package/dist/schemas/onchain_operations_order.schema.json +7 -6
- package/dist/schemas/onchain_operations_payment.schema.json +2 -1
- package/dist/schemas/onchain_operations_permission.schema.json +3 -2
- package/dist/schemas/onchain_operations_personal.schema.json +37 -0
- package/dist/schemas/onchain_operations_progress.schema.json +91 -4
- package/dist/schemas/onchain_operations_proof.schema.json +2 -1
- package/dist/schemas/onchain_operations_repository.schema.json +4 -3
- package/dist/schemas/onchain_operations_reward.schema.json +7 -6
- package/dist/schemas/onchain_operations_service.schema.json +80 -19
- package/dist/schemas/onchain_operations_treasury.schema.json +5 -4
- package/dist/schemas/onchain_table_data.output.json +1 -1
- package/dist/schemas/onchain_table_data.schema.json +10 -9
- package/dist/schemas/project_operation.output.json +3318 -57
- package/dist/schemas/project_operation.schema.json +728 -4
- package/dist/schemas/query_toolkit.output.json +16 -16
- package/dist/schemas/query_toolkit.schema.json +40 -3
- package/dist/schemas/schema_query.output.json +65 -2
- package/dist/schemas/schema_query.schema.json +31 -5
- package/dist/schemas/trust_score.output.json +392 -1
- package/dist/schemas/trust_score.schema.json +275 -1
- package/dist/schemas/wowok_buildin_info.output.json +81 -8
- package/dist/schemas/wowok_buildin_info.schema.json +46 -2
- package/dist/tools/handlers/onchain.js +636 -6
- package/dist/tools/handlers/project.js +71 -2
- package/dist/tools/handlers/query.js +117 -2
- package/dist/tools/handlers/schema-query.js +65 -1
- package/dist/tools/handlers/trust.js +192 -6
- package/dist/tools/index.d.ts +8 -0
- package/dist/tools/index.js +229 -15
- package/dist/tools/wrap.js +194 -15
- package/package.json +2 -2
|
@@ -20,7 +20,7 @@ export declare const OperateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
20
20
|
forward: string;
|
|
21
21
|
next_node_name: string;
|
|
22
22
|
}>;
|
|
23
|
-
op: z.ZodEnum<["next", "hold", "unhold", "adminUnhold"]
|
|
23
|
+
op: z.ZodDefault<z.ZodEnum<["next", "hold", "unhold", "adminUnhold"]>>;
|
|
24
24
|
message: z.ZodOptional<z.ZodString>;
|
|
25
25
|
}, "strict", z.ZodTypeAny, {
|
|
26
26
|
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
@@ -30,12 +30,12 @@ export declare const OperateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
30
30
|
};
|
|
31
31
|
message?: string | undefined;
|
|
32
32
|
}, {
|
|
33
|
-
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
34
33
|
operation: {
|
|
35
34
|
forward: string;
|
|
36
35
|
next_node_name: string;
|
|
37
36
|
};
|
|
38
37
|
message?: string | undefined;
|
|
38
|
+
op?: "next" | "hold" | "unhold" | "adminUnhold" | undefined;
|
|
39
39
|
}>, {
|
|
40
40
|
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
41
41
|
operation: {
|
|
@@ -140,7 +140,7 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
|
140
140
|
forward: string;
|
|
141
141
|
next_node_name: string;
|
|
142
142
|
}>;
|
|
143
|
-
op: z.ZodEnum<["next", "hold", "unhold", "adminUnhold"]
|
|
143
|
+
op: z.ZodDefault<z.ZodEnum<["next", "hold", "unhold", "adminUnhold"]>>;
|
|
144
144
|
message: z.ZodOptional<z.ZodString>;
|
|
145
145
|
}, "strict", z.ZodTypeAny, {
|
|
146
146
|
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
@@ -150,12 +150,12 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
|
150
150
|
};
|
|
151
151
|
message?: string | undefined;
|
|
152
152
|
}, {
|
|
153
|
-
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
154
153
|
operation: {
|
|
155
154
|
forward: string;
|
|
156
155
|
next_node_name: string;
|
|
157
156
|
};
|
|
158
157
|
message?: string | undefined;
|
|
158
|
+
op?: "next" | "hold" | "unhold" | "adminUnhold" | undefined;
|
|
159
159
|
}>, {
|
|
160
160
|
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
161
161
|
operation: {
|
|
@@ -164,6 +164,51 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
|
164
164
|
};
|
|
165
165
|
message?: string | undefined;
|
|
166
166
|
}, unknown>>;
|
|
167
|
+
owner_receive: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
168
|
+
id: z.ZodString;
|
|
169
|
+
type: z.ZodString;
|
|
170
|
+
content_raw: z.ZodOptional<z.ZodAny>;
|
|
171
|
+
}, "strict", z.ZodTypeAny, {
|
|
172
|
+
type: string;
|
|
173
|
+
id: string;
|
|
174
|
+
content_raw?: any;
|
|
175
|
+
}, {
|
|
176
|
+
type: string;
|
|
177
|
+
id: string;
|
|
178
|
+
content_raw?: any;
|
|
179
|
+
}>, "many">, z.ZodObject<{
|
|
180
|
+
balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
181
|
+
token_type: z.ZodEffects<z.ZodString, string, string>;
|
|
182
|
+
received: z.ZodArray<z.ZodObject<{
|
|
183
|
+
id: z.ZodString;
|
|
184
|
+
balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
185
|
+
payment: z.ZodString;
|
|
186
|
+
}, "strict", z.ZodTypeAny, {
|
|
187
|
+
id: string;
|
|
188
|
+
balance: string | number;
|
|
189
|
+
payment: string;
|
|
190
|
+
}, {
|
|
191
|
+
id: string;
|
|
192
|
+
balance: string | number;
|
|
193
|
+
payment: string;
|
|
194
|
+
}>, "many">;
|
|
195
|
+
}, "strict", z.ZodTypeAny, {
|
|
196
|
+
received: {
|
|
197
|
+
id: string;
|
|
198
|
+
balance: string | number;
|
|
199
|
+
payment: string;
|
|
200
|
+
}[];
|
|
201
|
+
balance: string | number;
|
|
202
|
+
token_type: string;
|
|
203
|
+
}, {
|
|
204
|
+
received: {
|
|
205
|
+
id: string;
|
|
206
|
+
balance: string | number;
|
|
207
|
+
payment: string;
|
|
208
|
+
}[];
|
|
209
|
+
balance: string | number;
|
|
210
|
+
token_type: string;
|
|
211
|
+
}>, z.ZodLiteral<"recently">]>>;
|
|
167
212
|
}, "strict", z.ZodTypeAny, {
|
|
168
213
|
object: string;
|
|
169
214
|
repository?: {
|
|
@@ -175,6 +220,19 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
|
175
220
|
} | {
|
|
176
221
|
op: "clear";
|
|
177
222
|
} | undefined;
|
|
223
|
+
owner_receive?: {
|
|
224
|
+
received: {
|
|
225
|
+
id: string;
|
|
226
|
+
balance: string | number;
|
|
227
|
+
payment: string;
|
|
228
|
+
}[];
|
|
229
|
+
balance: string | number;
|
|
230
|
+
token_type: string;
|
|
231
|
+
} | "recently" | {
|
|
232
|
+
type: string;
|
|
233
|
+
id: string;
|
|
234
|
+
content_raw?: any;
|
|
235
|
+
}[] | undefined;
|
|
178
236
|
operate?: {
|
|
179
237
|
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
180
238
|
operation: {
|
|
@@ -198,6 +256,19 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
|
198
256
|
}, {
|
|
199
257
|
object: string;
|
|
200
258
|
repository?: unknown;
|
|
259
|
+
owner_receive?: {
|
|
260
|
+
received: {
|
|
261
|
+
id: string;
|
|
262
|
+
balance: string | number;
|
|
263
|
+
payment: string;
|
|
264
|
+
}[];
|
|
265
|
+
balance: string | number;
|
|
266
|
+
token_type: string;
|
|
267
|
+
} | "recently" | {
|
|
268
|
+
type: string;
|
|
269
|
+
id: string;
|
|
270
|
+
content_raw?: any;
|
|
271
|
+
}[] | undefined;
|
|
201
272
|
operate?: unknown;
|
|
202
273
|
task?: string | undefined;
|
|
203
274
|
progress_namedOperator?: {
|
|
@@ -309,7 +380,7 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
309
380
|
forward: string;
|
|
310
381
|
next_node_name: string;
|
|
311
382
|
}>;
|
|
312
|
-
op: z.ZodEnum<["next", "hold", "unhold", "adminUnhold"]
|
|
383
|
+
op: z.ZodDefault<z.ZodEnum<["next", "hold", "unhold", "adminUnhold"]>>;
|
|
313
384
|
message: z.ZodOptional<z.ZodString>;
|
|
314
385
|
}, "strict", z.ZodTypeAny, {
|
|
315
386
|
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
@@ -319,12 +390,12 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
319
390
|
};
|
|
320
391
|
message?: string | undefined;
|
|
321
392
|
}, {
|
|
322
|
-
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
323
393
|
operation: {
|
|
324
394
|
forward: string;
|
|
325
395
|
next_node_name: string;
|
|
326
396
|
};
|
|
327
397
|
message?: string | undefined;
|
|
398
|
+
op?: "next" | "hold" | "unhold" | "adminUnhold" | undefined;
|
|
328
399
|
}>, {
|
|
329
400
|
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
330
401
|
operation: {
|
|
@@ -333,6 +404,51 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
333
404
|
};
|
|
334
405
|
message?: string | undefined;
|
|
335
406
|
}, unknown>>;
|
|
407
|
+
owner_receive: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
408
|
+
id: z.ZodString;
|
|
409
|
+
type: z.ZodString;
|
|
410
|
+
content_raw: z.ZodOptional<z.ZodAny>;
|
|
411
|
+
}, "strict", z.ZodTypeAny, {
|
|
412
|
+
type: string;
|
|
413
|
+
id: string;
|
|
414
|
+
content_raw?: any;
|
|
415
|
+
}, {
|
|
416
|
+
type: string;
|
|
417
|
+
id: string;
|
|
418
|
+
content_raw?: any;
|
|
419
|
+
}>, "many">, z.ZodObject<{
|
|
420
|
+
balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
421
|
+
token_type: z.ZodEffects<z.ZodString, string, string>;
|
|
422
|
+
received: z.ZodArray<z.ZodObject<{
|
|
423
|
+
id: z.ZodString;
|
|
424
|
+
balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
425
|
+
payment: z.ZodString;
|
|
426
|
+
}, "strict", z.ZodTypeAny, {
|
|
427
|
+
id: string;
|
|
428
|
+
balance: string | number;
|
|
429
|
+
payment: string;
|
|
430
|
+
}, {
|
|
431
|
+
id: string;
|
|
432
|
+
balance: string | number;
|
|
433
|
+
payment: string;
|
|
434
|
+
}>, "many">;
|
|
435
|
+
}, "strict", z.ZodTypeAny, {
|
|
436
|
+
received: {
|
|
437
|
+
id: string;
|
|
438
|
+
balance: string | number;
|
|
439
|
+
payment: string;
|
|
440
|
+
}[];
|
|
441
|
+
balance: string | number;
|
|
442
|
+
token_type: string;
|
|
443
|
+
}, {
|
|
444
|
+
received: {
|
|
445
|
+
id: string;
|
|
446
|
+
balance: string | number;
|
|
447
|
+
payment: string;
|
|
448
|
+
}[];
|
|
449
|
+
balance: string | number;
|
|
450
|
+
token_type: string;
|
|
451
|
+
}>, z.ZodLiteral<"recently">]>>;
|
|
336
452
|
}, "strict", z.ZodTypeAny, {
|
|
337
453
|
object: string;
|
|
338
454
|
repository?: {
|
|
@@ -344,6 +460,19 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
344
460
|
} | {
|
|
345
461
|
op: "clear";
|
|
346
462
|
} | undefined;
|
|
463
|
+
owner_receive?: {
|
|
464
|
+
received: {
|
|
465
|
+
id: string;
|
|
466
|
+
balance: string | number;
|
|
467
|
+
payment: string;
|
|
468
|
+
}[];
|
|
469
|
+
balance: string | number;
|
|
470
|
+
token_type: string;
|
|
471
|
+
} | "recently" | {
|
|
472
|
+
type: string;
|
|
473
|
+
id: string;
|
|
474
|
+
content_raw?: any;
|
|
475
|
+
}[] | undefined;
|
|
347
476
|
operate?: {
|
|
348
477
|
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
349
478
|
operation: {
|
|
@@ -367,6 +496,19 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
367
496
|
}, {
|
|
368
497
|
object: string;
|
|
369
498
|
repository?: unknown;
|
|
499
|
+
owner_receive?: {
|
|
500
|
+
received: {
|
|
501
|
+
id: string;
|
|
502
|
+
balance: string | number;
|
|
503
|
+
payment: string;
|
|
504
|
+
}[];
|
|
505
|
+
balance: string | number;
|
|
506
|
+
token_type: string;
|
|
507
|
+
} | "recently" | {
|
|
508
|
+
type: string;
|
|
509
|
+
id: string;
|
|
510
|
+
content_raw?: any;
|
|
511
|
+
}[] | undefined;
|
|
370
512
|
operate?: unknown;
|
|
371
513
|
task?: string | undefined;
|
|
372
514
|
progress_namedOperator?: {
|
|
@@ -391,10 +533,11 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
391
533
|
user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
392
534
|
project: z.ZodOptional<z.ZodString>;
|
|
393
535
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
394
|
-
schema_strict_mode: z.ZodOptional<z.ZodBoolean
|
|
536
|
+
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
395
537
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
396
538
|
}, "strict", z.ZodTypeAny, {
|
|
397
539
|
account: string;
|
|
540
|
+
schema_strict_mode: boolean;
|
|
398
541
|
no_cache?: boolean | undefined;
|
|
399
542
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
400
543
|
permission_guard?: string[] | undefined;
|
|
@@ -403,7 +546,6 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
403
546
|
user_intent_phrases?: string[] | undefined;
|
|
404
547
|
project?: string | undefined;
|
|
405
548
|
client_schema_version?: string | undefined;
|
|
406
|
-
schema_strict_mode?: boolean | undefined;
|
|
407
549
|
dry_run?: boolean | undefined;
|
|
408
550
|
}, {
|
|
409
551
|
no_cache?: boolean | undefined;
|
|
@@ -610,6 +752,19 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
610
752
|
} | {
|
|
611
753
|
op: "clear";
|
|
612
754
|
} | undefined;
|
|
755
|
+
owner_receive?: {
|
|
756
|
+
received: {
|
|
757
|
+
id: string;
|
|
758
|
+
balance: string | number;
|
|
759
|
+
payment: string;
|
|
760
|
+
}[];
|
|
761
|
+
balance: string | number;
|
|
762
|
+
token_type: string;
|
|
763
|
+
} | "recently" | {
|
|
764
|
+
type: string;
|
|
765
|
+
id: string;
|
|
766
|
+
content_raw?: any;
|
|
767
|
+
}[] | undefined;
|
|
613
768
|
operate?: {
|
|
614
769
|
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
615
770
|
operation: {
|
|
@@ -660,6 +815,7 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
660
815
|
} | undefined;
|
|
661
816
|
env?: {
|
|
662
817
|
account: string;
|
|
818
|
+
schema_strict_mode: boolean;
|
|
663
819
|
no_cache?: boolean | undefined;
|
|
664
820
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
665
821
|
permission_guard?: string[] | undefined;
|
|
@@ -668,13 +824,25 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
668
824
|
user_intent_phrases?: string[] | undefined;
|
|
669
825
|
project?: string | undefined;
|
|
670
826
|
client_schema_version?: string | undefined;
|
|
671
|
-
schema_strict_mode?: boolean | undefined;
|
|
672
827
|
dry_run?: boolean | undefined;
|
|
673
828
|
} | undefined;
|
|
674
829
|
}, {
|
|
675
830
|
data: {
|
|
676
831
|
object: string;
|
|
677
832
|
repository?: unknown;
|
|
833
|
+
owner_receive?: {
|
|
834
|
+
received: {
|
|
835
|
+
id: string;
|
|
836
|
+
balance: string | number;
|
|
837
|
+
payment: string;
|
|
838
|
+
}[];
|
|
839
|
+
balance: string | number;
|
|
840
|
+
token_type: string;
|
|
841
|
+
} | "recently" | {
|
|
842
|
+
type: string;
|
|
843
|
+
id: string;
|
|
844
|
+
content_raw?: any;
|
|
845
|
+
}[] | undefined;
|
|
678
846
|
operate?: unknown;
|
|
679
847
|
task?: string | undefined;
|
|
680
848
|
progress_namedOperator?: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { CallEnvSchema, SubmissionCallSchema, ObjectsSchema } from "./base.js";
|
|
3
3
|
import { ProgressNamedOperatorSchema } from "./machine.js";
|
|
4
|
-
import { NameOrAddressSchema, NameSchema } from "../common/index.js";
|
|
4
|
+
import { NameOrAddressSchema, NameSchema, ReceivedObjectsOrRecentlySchema, RECEIVE_FORMAT_BLOCK_OBJECTS } from "../common/index.js";
|
|
5
5
|
export const ProgressNextSchema = z.object({
|
|
6
6
|
next_node_name: NameSchema.describe("Next node name."),
|
|
7
7
|
forward: NameSchema.describe("Next forward name."),
|
|
@@ -16,11 +16,14 @@ export const OperateSchema = z.preprocess((val) => {
|
|
|
16
16
|
delete obj.hold;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
+
if (obj.op === undefined && !("hold" in obj)) {
|
|
20
|
+
obj.op = "next";
|
|
21
|
+
}
|
|
19
22
|
}
|
|
20
23
|
return val;
|
|
21
24
|
}, z.object({
|
|
22
25
|
operation: ProgressNextSchema,
|
|
23
|
-
op: z.enum(["next", "hold", "unhold", "adminUnhold"]).describe("Operation type on the forward (CANONICAL form — prefer this): " +
|
|
26
|
+
op: z.enum(["next", "hold", "unhold", "adminUnhold"]).default("next").describe("Operation type on the forward (CANONICAL form — prefer this). DEFAULT: 'next' when omitted. " +
|
|
24
27
|
"'next' = advance the forward (accomplish); " +
|
|
25
28
|
"'hold' = set hold to block the forward; " +
|
|
26
29
|
"'unhold' = self-unhold, release own hold (no 224 permission needed); " +
|
|
@@ -28,13 +31,14 @@ export const OperateSchema = z.preprocess((val) => {
|
|
|
28
31
|
"LEGACY ALIAS: `hold: boolean` is auto-converted to `op` — `hold:true`→`op:'hold'`, `hold:false`→`op:'next'`. " +
|
|
29
32
|
"New code should use `op` directly."),
|
|
30
33
|
message: z.string().optional().describe("Operation result message."),
|
|
31
|
-
}).strict()).describe("Advance Progress object. CANONICAL form: {operation, op: 'next'|'hold'|'unhold'|'adminUnhold', message?}. LEGACY form (auto-converted): {operation, hold: boolean, message?} where hold:true→op:'hold', hold:false→op:'next'.");
|
|
34
|
+
}).strict()).describe("Advance Progress object. CANONICAL form: {operation, op: 'next'|'hold'|'unhold'|'adminUnhold', message?} — 'next' is the default when op is omitted. LEGACY form (auto-converted): {operation, hold: boolean, message?} where hold:true→op:'hold', hold:false→op:'next'.");
|
|
32
35
|
export const CallProgress_DataSchema = z.object({
|
|
33
36
|
object: NameOrAddressSchema.describe("Progress object ID or name."),
|
|
34
37
|
task: NameOrAddressSchema.optional().describe("Task ID. Cannot be changed after setting."),
|
|
35
38
|
repository: ObjectsSchema.optional().describe("Consensus data Repository object list."),
|
|
36
39
|
progress_namedOperator: ProgressNamedOperatorSchema.optional().describe("Manage operators for Progress permission namespace."),
|
|
37
40
|
operate: OperateSchema.optional().describe("Advance Progress object. op field selects the operation: next/hold/unhold/adminUnhold."),
|
|
41
|
+
owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe("Unwrap CoinWrapper objects and other objects received by this Progress object and send them to the owner of the bound Machine's Permission object." + RECEIVE_FORMAT_BLOCK_OBJECTS),
|
|
38
42
|
}).strict().describe("On-chain, operate an existing Progress object.");
|
|
39
43
|
export const CallProgress_InputSchema = z.object({
|
|
40
44
|
data: CallProgress_DataSchema,
|
|
@@ -116,10 +116,11 @@ export declare const CallProof_InputSchema: z.ZodObject<{
|
|
|
116
116
|
user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
117
117
|
project: z.ZodOptional<z.ZodString>;
|
|
118
118
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
119
|
-
schema_strict_mode: z.ZodOptional<z.ZodBoolean
|
|
119
|
+
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
120
120
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
121
121
|
}, "strict", z.ZodTypeAny, {
|
|
122
122
|
account: string;
|
|
123
|
+
schema_strict_mode: boolean;
|
|
123
124
|
no_cache?: boolean | undefined;
|
|
124
125
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
125
126
|
permission_guard?: string[] | undefined;
|
|
@@ -128,7 +129,6 @@ export declare const CallProof_InputSchema: z.ZodObject<{
|
|
|
128
129
|
user_intent_phrases?: string[] | undefined;
|
|
129
130
|
project?: string | undefined;
|
|
130
131
|
client_schema_version?: string | undefined;
|
|
131
|
-
schema_strict_mode?: boolean | undefined;
|
|
132
132
|
dry_run?: boolean | undefined;
|
|
133
133
|
}, {
|
|
134
134
|
no_cache?: boolean | undefined;
|
|
@@ -161,6 +161,7 @@ export declare const CallProof_InputSchema: z.ZodObject<{
|
|
|
161
161
|
};
|
|
162
162
|
env?: {
|
|
163
163
|
account: string;
|
|
164
|
+
schema_strict_mode: boolean;
|
|
164
165
|
no_cache?: boolean | undefined;
|
|
165
166
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
166
167
|
permission_guard?: string[] | undefined;
|
|
@@ -169,7 +170,6 @@ export declare const CallProof_InputSchema: z.ZodObject<{
|
|
|
169
170
|
user_intent_phrases?: string[] | undefined;
|
|
170
171
|
project?: string | undefined;
|
|
171
172
|
client_schema_version?: string | undefined;
|
|
172
|
-
schema_strict_mode?: boolean | undefined;
|
|
173
173
|
dry_run?: boolean | undefined;
|
|
174
174
|
} | undefined;
|
|
175
175
|
}, {
|
|
@@ -220,10 +220,11 @@ export declare const CallGenProof_InputSchema: z.ZodObject<{
|
|
|
220
220
|
user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
221
221
|
project: z.ZodOptional<z.ZodString>;
|
|
222
222
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
223
|
-
schema_strict_mode: z.ZodOptional<z.ZodBoolean
|
|
223
|
+
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
224
224
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
225
225
|
}, "strict", z.ZodTypeAny, {
|
|
226
226
|
account: string;
|
|
227
|
+
schema_strict_mode: boolean;
|
|
227
228
|
no_cache?: boolean | undefined;
|
|
228
229
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
229
230
|
permission_guard?: string[] | undefined;
|
|
@@ -232,7 +233,6 @@ export declare const CallGenProof_InputSchema: z.ZodObject<{
|
|
|
232
233
|
user_intent_phrases?: string[] | undefined;
|
|
233
234
|
project?: string | undefined;
|
|
234
235
|
client_schema_version?: string | undefined;
|
|
235
|
-
schema_strict_mode?: boolean | undefined;
|
|
236
236
|
dry_run?: boolean | undefined;
|
|
237
237
|
}, {
|
|
238
238
|
no_cache?: boolean | undefined;
|
|
@@ -257,6 +257,7 @@ export declare const CallGenProof_InputSchema: z.ZodObject<{
|
|
|
257
257
|
about_address?: string | null | undefined;
|
|
258
258
|
env?: {
|
|
259
259
|
account: string;
|
|
260
|
+
schema_strict_mode: boolean;
|
|
260
261
|
no_cache?: boolean | undefined;
|
|
261
262
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
262
263
|
permission_guard?: string[] | undefined;
|
|
@@ -265,7 +266,6 @@ export declare const CallGenProof_InputSchema: z.ZodObject<{
|
|
|
265
266
|
user_intent_phrases?: string[] | undefined;
|
|
266
267
|
project?: string | undefined;
|
|
267
268
|
client_schema_version?: string | undefined;
|
|
268
|
-
schema_strict_mode?: boolean | undefined;
|
|
269
269
|
dry_run?: boolean | undefined;
|
|
270
270
|
} | undefined;
|
|
271
271
|
}, {
|
|
@@ -1918,10 +1918,11 @@ export declare const CallRepository_InputSchema: z.ZodObject<{
|
|
|
1918
1918
|
user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1919
1919
|
project: z.ZodOptional<z.ZodString>;
|
|
1920
1920
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
1921
|
-
schema_strict_mode: z.ZodOptional<z.ZodBoolean
|
|
1921
|
+
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1922
1922
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
1923
1923
|
}, "strict", z.ZodTypeAny, {
|
|
1924
1924
|
account: string;
|
|
1925
|
+
schema_strict_mode: boolean;
|
|
1925
1926
|
no_cache?: boolean | undefined;
|
|
1926
1927
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
1927
1928
|
permission_guard?: string[] | undefined;
|
|
@@ -1930,7 +1931,6 @@ export declare const CallRepository_InputSchema: z.ZodObject<{
|
|
|
1930
1931
|
user_intent_phrases?: string[] | undefined;
|
|
1931
1932
|
project?: string | undefined;
|
|
1932
1933
|
client_schema_version?: string | undefined;
|
|
1933
|
-
schema_strict_mode?: boolean | undefined;
|
|
1934
1934
|
dry_run?: boolean | undefined;
|
|
1935
1935
|
}, {
|
|
1936
1936
|
no_cache?: boolean | undefined;
|
|
@@ -2244,6 +2244,7 @@ export declare const CallRepository_InputSchema: z.ZodObject<{
|
|
|
2244
2244
|
} | undefined;
|
|
2245
2245
|
env?: {
|
|
2246
2246
|
account: string;
|
|
2247
|
+
schema_strict_mode: boolean;
|
|
2247
2248
|
no_cache?: boolean | undefined;
|
|
2248
2249
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
2249
2250
|
permission_guard?: string[] | undefined;
|
|
@@ -2252,7 +2253,6 @@ export declare const CallRepository_InputSchema: z.ZodObject<{
|
|
|
2252
2253
|
user_intent_phrases?: string[] | undefined;
|
|
2253
2254
|
project?: string | undefined;
|
|
2254
2255
|
client_schema_version?: string | undefined;
|
|
2255
|
-
schema_strict_mode?: boolean | undefined;
|
|
2256
2256
|
dry_run?: boolean | undefined;
|
|
2257
2257
|
} | undefined;
|
|
2258
2258
|
}, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { WithPermissionObjectSchema, ObjectsSchema, CallEnvSchema, SubmissionCallSchema, } from "./base.js";
|
|
3
|
-
import { AccountOrMark_AddressSchema, DescriptionSchema, NameOrAddressSchema, NameSchema, ReceivedObjectsOrRecentlySchema } from "../common/index.js";
|
|
3
|
+
import { AccountOrMark_AddressSchema, DescriptionSchema, NameOrAddressSchema, NameSchema, ReceivedObjectsOrRecentlySchema, RECEIVE_FORMAT_BLOCK_OBJECTS } from "../common/index.js";
|
|
4
4
|
import { PolicyRuleSchema } from "../query/index.js";
|
|
5
5
|
import { SupportedValueSchema } from "../common/index.js";
|
|
6
6
|
export const RepositoryIdSchema = z.union([
|
|
@@ -67,7 +67,7 @@ export const CallRepository_DataSchema = z.object({
|
|
|
67
67
|
data_add: DataAddSchema.optional().describe("Add data items"),
|
|
68
68
|
data_remove: DataRemoveSchema.optional().describe("Delete data items"),
|
|
69
69
|
rewards: ObjectsSchema.optional().describe("Reward object list. Used for data contribution incentives."),
|
|
70
|
-
owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe("Unwrap CoinWrapper objects and other objects received by this object and send them to the owner of its Permission object."),
|
|
70
|
+
owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe("Unwrap CoinWrapper objects and other objects received by this Repository object and send them to the owner of its Permission object." + RECEIVE_FORMAT_BLOCK_OBJECTS),
|
|
71
71
|
um: z.union([NameOrAddressSchema, z.null()]).optional().describe("Contact object ID or name."),
|
|
72
72
|
}).strict().describe("On-chain Repository operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, permission, ...} to create a Repository. NOTE: 'name' goes INSIDE 'object', NOT at the data root level. 'permission' can be a new Permission object or reference an existing one - check 'object' field description for details. (2) OPERATE EXISTING: Set 'object' field with STRING format (object ID or name). The 'object' field is CRITICAL and REQUIRED in both cases. STRING for existing, OBJECT for new creation.");
|
|
73
73
|
export const CallRepository_InputSchema = z.object({
|