@wowok/agent-mcp 2.5.5 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/config/runtime.js +3 -6
- package/dist/extensions/capability-manifest.d.ts +125 -0
- package/dist/extensions/capability-manifest.js +594 -0
- package/dist/extensions/constraint-registry.d.ts +24 -0
- package/dist/extensions/constraint-registry.js +196 -0
- package/dist/extensions/index.d.ts +12 -0
- package/dist/extensions/index.js +6 -0
- package/dist/extensions/metric-registry.d.ts +26 -0
- package/dist/extensions/metric-registry.js +257 -0
- package/dist/extensions/mode-evaluator.d.ts +15 -0
- package/dist/extensions/mode-evaluator.js +170 -0
- package/dist/extensions/modes.d.ts +2 -0
- package/dist/extensions/modes.js +407 -0
- package/dist/extensions/registry.d.ts +48 -0
- package/dist/extensions/registry.js +629 -0
- package/dist/extensions/types.d.ts +218 -0
- package/dist/extensions/types.js +1 -0
- package/dist/harness/checkpoint.js +2 -2
- package/dist/knowledge/deployment-scanner.d.ts +3 -0
- package/dist/knowledge/deployment-scanner.js +64 -3
- package/dist/knowledge/flywheel-loop.js +2 -5
- package/dist/knowledge/guard-risk.d.ts +13 -0
- package/dist/knowledge/guard-risk.js +57 -0
- package/dist/knowledge/guard-templates.js +278 -0
- package/dist/knowledge/machine-templates.js +20 -1
- package/dist/knowledge/overrides-loader.js +2 -4
- package/dist/knowledge/progress-ledger.js +3 -0
- package/dist/knowledge/progress-translation.js +5 -1
- package/dist/knowledge/service-confirm.d.ts +14 -5
- package/dist/knowledge/service-confirm.js +116 -8
- package/dist/knowledge/tool-constraints.js +6 -2
- package/dist/loop-engineering/improve.js +2 -4
- package/dist/project/deployment-bridge.d.ts +5 -0
- package/dist/project/deployment-bridge.js +119 -0
- package/dist/project/deployment-doc.d.ts +3 -0
- package/dist/project/deployment-doc.js +72 -10
- package/dist/project/evaluation.d.ts +2 -0
- package/dist/project/evaluation.js +578 -86
- package/dist/project/graph-builder.d.ts +4 -1
- package/dist/project/graph-builder.js +141 -63
- package/dist/project/graph.d.ts +1 -0
- package/dist/project/handlers.d.ts +221 -5
- package/dist/project/handlers.js +933 -14
- package/dist/project/index.js +2 -6
- package/dist/project/project-store.js +2 -5
- package/dist/project/stage-gate.d.ts +4 -0
- package/dist/project/stage-gate.js +64 -5
- package/dist/project/task-tracker.d.ts +26 -0
- package/dist/project/task-tracker.js +78 -0
- package/dist/safety/preview.js +16 -0
- package/dist/schema/call/allocation.d.ts +16 -16
- package/dist/schema/call/base.d.ts +21 -13
- package/dist/schema/call/base.js +27 -6
- package/dist/schema/call/bridge.d.ts +5 -5
- package/dist/schema/call/bridge.js +3 -1
- package/dist/schema/call/demand.d.ts +23 -31
- package/dist/schema/call/guard.js +1 -1
- package/dist/schema/call/machine.d.ts +402 -376
- package/dist/schema/call/order.d.ts +149 -228
- package/dist/schema/call/order.js +7 -3
- package/dist/schema/call/payment.d.ts +183 -3
- package/dist/schema/call/payment.js +21 -3
- package/dist/schema/call/personal.d.ts +241 -52
- package/dist/schema/call/progress.d.ts +53 -61
- package/dist/schema/call/progress.js +18 -4
- package/dist/schema/call/repository.d.ts +23 -31
- package/dist/schema/call/semantic.d.ts +1 -1
- package/dist/schema/call/semantic.js +30 -1
- package/dist/schema/call/service.d.ts +95 -119
- package/dist/schema/call/service.js +22 -1
- package/dist/schema/common/index.d.ts +11 -2
- package/dist/schema/common/index.js +43 -14
- package/dist/schema/config/index.d.ts +12 -12
- package/dist/schema/local/index.d.ts +140 -143
- package/dist/schema/local/index.js +44 -23
- package/dist/schema/messenger/index.d.ts +290 -62
- package/dist/schema/messenger/index.js +2 -2
- package/dist/schema/operations.d.ts +680 -545
- package/dist/schema/operations.js +22 -0
- package/dist/schema/project/index.d.ts +2064 -84
- package/dist/schema/project/index.js +354 -12
- package/dist/schema/query/index.d.ts +715 -354
- package/dist/schema/query/index.js +164 -31
- package/dist/schema/schema-query/index.d.ts +15 -3
- package/dist/schema/schema-query/index.js +23 -5
- package/dist/schema/trust/index.d.ts +8 -8
- package/dist/schema/utils/node-parser.js +7 -4
- package/dist/schema-query/index.d.ts +7 -1
- package/dist/schema-query/index.js +204 -4
- package/dist/schemas/account_operation.output.json +14 -22
- package/dist/schemas/account_operation.schema.json +11 -25
- package/dist/schemas/bridge_operation.output.json +6 -0
- package/dist/schemas/bridge_operation.schema.json +1 -1
- package/dist/schemas/guard-templates.json +379 -0
- package/dist/schemas/guard2file.schema.json +1 -1
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/local_info_operation.output.json +6 -0
- package/dist/schemas/local_mark_operation.output.json +7 -1
- package/dist/schemas/local_mark_operation.schema.json +1 -1
- package/dist/schemas/machineNode2file.schema.json +1 -1
- package/dist/schemas/messenger_operation.schema.json +10 -10
- package/dist/schemas/onchain_events.output.json +1 -1
- package/dist/schemas/onchain_operations.schema.json +348 -296
- package/dist/schemas/onchain_operations_allocation.schema.json +34 -25
- package/dist/schemas/onchain_operations_arbitration.schema.json +8 -8
- package/dist/schemas/onchain_operations_contact.schema.json +8 -8
- package/dist/schemas/onchain_operations_demand.schema.json +8 -8
- package/dist/schemas/onchain_operations_gen_passport.schema.json +14 -14
- package/dist/schemas/onchain_operations_gen_proof.schema.json +2 -2
- package/dist/schemas/onchain_operations_guard.schema.json +1 -1
- package/dist/schemas/onchain_operations_machine.schema.json +41 -33
- package/dist/schemas/onchain_operations_order.schema.json +71 -77
- package/dist/schemas/onchain_operations_payment.schema.json +141 -111
- package/dist/schemas/onchain_operations_permission.schema.json +2 -2
- package/dist/schemas/onchain_operations_personal.schema.json +7 -7
- package/dist/schemas/onchain_operations_progress.schema.json +8 -8
- package/dist/schemas/onchain_operations_proof.schema.json +7 -7
- package/dist/schemas/onchain_operations_repository.schema.json +8 -8
- package/dist/schemas/onchain_operations_reward.schema.json +10 -10
- package/dist/schemas/onchain_operations_service.schema.json +46 -35
- package/dist/schemas/onchain_operations_treasury.schema.json +8 -8
- package/dist/schemas/onchain_table_data.output.json +33 -25
- package/dist/schemas/onchain_table_data.schema.json +12 -12
- package/dist/schemas/project_operation.output.json +1352 -20
- package/dist/schemas/project_operation.schema.json +53 -4
- package/dist/schemas/query_toolkit.output.json +111 -82
- package/dist/schemas/query_toolkit.schema.json +9 -13
- package/dist/schemas/schema_query.output.json +7 -3
- package/dist/schemas/schema_query.schema.json +17 -3
- package/dist/telemetry/storage.js +2 -2
- package/dist/tools/handlers/local.js +20 -5
- package/dist/tools/handlers/onchain.js +36 -0
- package/dist/tools/handlers/project.js +72 -1
- package/dist/tools/handlers/query.js +27 -0
- package/dist/tools/handlers/schema-query.js +19 -0
- package/dist/tools/handlers/task-status.d.ts +170 -0
- package/dist/tools/handlers/task-status.js +55 -0
- package/dist/tools/handlers/wip.js +47 -1
- package/dist/tools/index.js +212 -8
- package/dist/tools/retry.d.ts +8 -0
- package/dist/tools/retry.js +85 -0
- package/dist/tools/wip-deploy-assist.d.ts +28 -0
- package/dist/tools/wip-deploy-assist.js +278 -0
- package/package.json +2 -2
- package/dist/schemas/guard-node-examples.md +0 -199
|
@@ -9,7 +9,7 @@ export declare const ProgressNextSchema: z.ZodObject<{
|
|
|
9
9
|
forward: string;
|
|
10
10
|
next_node_name: string;
|
|
11
11
|
}>;
|
|
12
|
-
export declare const OperateSchema: z.ZodObject<{
|
|
12
|
+
export declare const OperateSchema: z.ZodEffects<z.ZodObject<{
|
|
13
13
|
operation: z.ZodObject<{
|
|
14
14
|
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
15
15
|
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -36,11 +36,18 @@ export declare const OperateSchema: z.ZodObject<{
|
|
|
36
36
|
next_node_name: string;
|
|
37
37
|
};
|
|
38
38
|
message?: string | undefined;
|
|
39
|
-
}
|
|
39
|
+
}>, {
|
|
40
|
+
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
41
|
+
operation: {
|
|
42
|
+
forward: string;
|
|
43
|
+
next_node_name: string;
|
|
44
|
+
};
|
|
45
|
+
message?: string | undefined;
|
|
46
|
+
}, unknown>;
|
|
40
47
|
export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
41
48
|
object: z.ZodEffects<z.ZodString, string, string>;
|
|
42
49
|
task: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
43
|
-
repository: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
50
|
+
repository: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
44
51
|
op: z.ZodUnion<[z.ZodLiteral<"add">, z.ZodLiteral<"set">]>;
|
|
45
52
|
objects: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
46
53
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -64,7 +71,15 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
|
64
71
|
op: "clear";
|
|
65
72
|
}, {
|
|
66
73
|
op: "clear";
|
|
67
|
-
}>]
|
|
74
|
+
}>]>, {
|
|
75
|
+
op: "set" | "add";
|
|
76
|
+
objects: string[];
|
|
77
|
+
} | {
|
|
78
|
+
op: "remove";
|
|
79
|
+
objects: string[];
|
|
80
|
+
} | {
|
|
81
|
+
op: "clear";
|
|
82
|
+
}, unknown>>;
|
|
68
83
|
progress_namedOperator: z.ZodOptional<z.ZodObject<{
|
|
69
84
|
op: z.ZodUnion<[z.ZodLiteral<"add">, z.ZodLiteral<"set">, z.ZodLiteral<"remove">]>;
|
|
70
85
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -114,7 +129,7 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
|
114
129
|
check_all_founded?: boolean | undefined;
|
|
115
130
|
};
|
|
116
131
|
}>>;
|
|
117
|
-
operate: z.ZodOptional<z.ZodObject<{
|
|
132
|
+
operate: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
118
133
|
operation: z.ZodObject<{
|
|
119
134
|
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
120
135
|
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -141,7 +156,14 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
|
141
156
|
next_node_name: string;
|
|
142
157
|
};
|
|
143
158
|
message?: string | undefined;
|
|
144
|
-
}
|
|
159
|
+
}>, {
|
|
160
|
+
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
161
|
+
operation: {
|
|
162
|
+
forward: string;
|
|
163
|
+
next_node_name: string;
|
|
164
|
+
};
|
|
165
|
+
message?: string | undefined;
|
|
166
|
+
}, unknown>>;
|
|
145
167
|
}, "strict", z.ZodTypeAny, {
|
|
146
168
|
object: string;
|
|
147
169
|
repository?: {
|
|
@@ -175,23 +197,8 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
|
175
197
|
} | undefined;
|
|
176
198
|
}, {
|
|
177
199
|
object: string;
|
|
178
|
-
repository?:
|
|
179
|
-
|
|
180
|
-
objects: string[];
|
|
181
|
-
} | {
|
|
182
|
-
op: "remove";
|
|
183
|
-
objects: string[];
|
|
184
|
-
} | {
|
|
185
|
-
op: "clear";
|
|
186
|
-
} | undefined;
|
|
187
|
-
operate?: {
|
|
188
|
-
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
189
|
-
operation: {
|
|
190
|
-
forward: string;
|
|
191
|
-
next_node_name: string;
|
|
192
|
-
};
|
|
193
|
-
message?: string | undefined;
|
|
194
|
-
} | undefined;
|
|
200
|
+
repository?: unknown;
|
|
201
|
+
operate?: unknown;
|
|
195
202
|
task?: string | undefined;
|
|
196
203
|
progress_namedOperator?: {
|
|
197
204
|
name: string;
|
|
@@ -209,7 +216,7 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
209
216
|
data: z.ZodObject<{
|
|
210
217
|
object: z.ZodEffects<z.ZodString, string, string>;
|
|
211
218
|
task: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
212
|
-
repository: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
219
|
+
repository: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
213
220
|
op: z.ZodUnion<[z.ZodLiteral<"add">, z.ZodLiteral<"set">]>;
|
|
214
221
|
objects: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
215
222
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -233,7 +240,15 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
233
240
|
op: "clear";
|
|
234
241
|
}, {
|
|
235
242
|
op: "clear";
|
|
236
|
-
}>]
|
|
243
|
+
}>]>, {
|
|
244
|
+
op: "set" | "add";
|
|
245
|
+
objects: string[];
|
|
246
|
+
} | {
|
|
247
|
+
op: "remove";
|
|
248
|
+
objects: string[];
|
|
249
|
+
} | {
|
|
250
|
+
op: "clear";
|
|
251
|
+
}, unknown>>;
|
|
237
252
|
progress_namedOperator: z.ZodOptional<z.ZodObject<{
|
|
238
253
|
op: z.ZodUnion<[z.ZodLiteral<"add">, z.ZodLiteral<"set">, z.ZodLiteral<"remove">]>;
|
|
239
254
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -283,7 +298,7 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
283
298
|
check_all_founded?: boolean | undefined;
|
|
284
299
|
};
|
|
285
300
|
}>>;
|
|
286
|
-
operate: z.ZodOptional<z.ZodObject<{
|
|
301
|
+
operate: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
287
302
|
operation: z.ZodObject<{
|
|
288
303
|
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
289
304
|
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -310,7 +325,14 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
310
325
|
next_node_name: string;
|
|
311
326
|
};
|
|
312
327
|
message?: string | undefined;
|
|
313
|
-
}
|
|
328
|
+
}>, {
|
|
329
|
+
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
330
|
+
operation: {
|
|
331
|
+
forward: string;
|
|
332
|
+
next_node_name: string;
|
|
333
|
+
};
|
|
334
|
+
message?: string | undefined;
|
|
335
|
+
}, unknown>>;
|
|
314
336
|
}, "strict", z.ZodTypeAny, {
|
|
315
337
|
object: string;
|
|
316
338
|
repository?: {
|
|
@@ -344,23 +366,8 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
344
366
|
} | undefined;
|
|
345
367
|
}, {
|
|
346
368
|
object: string;
|
|
347
|
-
repository?:
|
|
348
|
-
|
|
349
|
-
objects: string[];
|
|
350
|
-
} | {
|
|
351
|
-
op: "remove";
|
|
352
|
-
objects: string[];
|
|
353
|
-
} | {
|
|
354
|
-
op: "clear";
|
|
355
|
-
} | undefined;
|
|
356
|
-
operate?: {
|
|
357
|
-
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
358
|
-
operation: {
|
|
359
|
-
forward: string;
|
|
360
|
-
next_node_name: string;
|
|
361
|
-
};
|
|
362
|
-
message?: string | undefined;
|
|
363
|
-
} | undefined;
|
|
369
|
+
repository?: unknown;
|
|
370
|
+
operate?: unknown;
|
|
364
371
|
task?: string | undefined;
|
|
365
372
|
progress_namedOperator?: {
|
|
366
373
|
name: string;
|
|
@@ -667,23 +674,8 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
667
674
|
}, {
|
|
668
675
|
data: {
|
|
669
676
|
object: string;
|
|
670
|
-
repository?:
|
|
671
|
-
|
|
672
|
-
objects: string[];
|
|
673
|
-
} | {
|
|
674
|
-
op: "remove";
|
|
675
|
-
objects: string[];
|
|
676
|
-
} | {
|
|
677
|
-
op: "clear";
|
|
678
|
-
} | undefined;
|
|
679
|
-
operate?: {
|
|
680
|
-
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
681
|
-
operation: {
|
|
682
|
-
forward: string;
|
|
683
|
-
next_node_name: string;
|
|
684
|
-
};
|
|
685
|
-
message?: string | undefined;
|
|
686
|
-
} | undefined;
|
|
677
|
+
repository?: unknown;
|
|
678
|
+
operate?: unknown;
|
|
687
679
|
task?: string | undefined;
|
|
688
680
|
progress_namedOperator?: {
|
|
689
681
|
name: string;
|
|
@@ -6,15 +6,29 @@ export const ProgressNextSchema = z.object({
|
|
|
6
6
|
next_node_name: NameSchema.describe("Next node name."),
|
|
7
7
|
forward: NameSchema.describe("Next forward name."),
|
|
8
8
|
}).strict().describe("Specify a specific operation between current node and next node.");
|
|
9
|
-
export const OperateSchema = z.
|
|
9
|
+
export const OperateSchema = z.preprocess((val) => {
|
|
10
|
+
if (val && typeof val === "object" && !Array.isArray(val)) {
|
|
11
|
+
const obj = val;
|
|
12
|
+
if (obj.op === undefined && "hold" in obj) {
|
|
13
|
+
const holdVal = obj.hold;
|
|
14
|
+
if (typeof holdVal === "boolean") {
|
|
15
|
+
obj.op = holdVal ? "hold" : "next";
|
|
16
|
+
delete obj.hold;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return val;
|
|
21
|
+
}, z.object({
|
|
10
22
|
operation: ProgressNextSchema,
|
|
11
|
-
op: z.enum(["next", "hold", "unhold", "adminUnhold"]).describe("Operation type on the forward: " +
|
|
23
|
+
op: z.enum(["next", "hold", "unhold", "adminUnhold"]).describe("Operation type on the forward (CANONICAL form — prefer this): " +
|
|
12
24
|
"'next' = advance the forward (accomplish); " +
|
|
13
25
|
"'hold' = set hold to block the forward; " +
|
|
14
26
|
"'unhold' = self-unhold, release own hold (no 224 permission needed); " +
|
|
15
|
-
"'adminUnhold' = force-release hold via 224 permission (PROGRESS_UNHOLD)."
|
|
27
|
+
"'adminUnhold' = force-release hold via 224 permission (PROGRESS_UNHOLD). " +
|
|
28
|
+
"LEGACY ALIAS: `hold: boolean` is auto-converted to `op` — `hold:true`→`op:'hold'`, `hold:false`→`op:'next'`. " +
|
|
29
|
+
"New code should use `op` directly."),
|
|
16
30
|
message: z.string().optional().describe("Operation result message."),
|
|
17
|
-
}).strict().describe("Advance Progress object
|
|
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'.");
|
|
18
32
|
export const CallProgress_DataSchema = z.object({
|
|
19
33
|
object: NameOrAddressSchema.describe("Progress object ID or name."),
|
|
20
34
|
task: NameOrAddressSchema.optional().describe("Task ID. Cannot be changed after setting."),
|
|
@@ -1064,7 +1064,7 @@ export declare const CallRepository_DataSchema: z.ZodObject<{
|
|
|
1064
1064
|
write_guard?: string | undefined;
|
|
1065
1065
|
}[];
|
|
1066
1066
|
}>]>>;
|
|
1067
|
-
rewards: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1067
|
+
rewards: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
1068
1068
|
op: z.ZodUnion<[z.ZodLiteral<"add">, z.ZodLiteral<"set">]>;
|
|
1069
1069
|
objects: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
1070
1070
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -1088,7 +1088,15 @@ export declare const CallRepository_DataSchema: z.ZodObject<{
|
|
|
1088
1088
|
op: "clear";
|
|
1089
1089
|
}, {
|
|
1090
1090
|
op: "clear";
|
|
1091
|
-
}>]
|
|
1091
|
+
}>]>, {
|
|
1092
|
+
op: "set" | "add";
|
|
1093
|
+
objects: string[];
|
|
1094
|
+
} | {
|
|
1095
|
+
op: "remove";
|
|
1096
|
+
objects: string[];
|
|
1097
|
+
} | {
|
|
1098
|
+
op: "clear";
|
|
1099
|
+
}, unknown>>;
|
|
1092
1100
|
owner_receive: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
1093
1101
|
id: z.ZodString;
|
|
1094
1102
|
type: z.ZodString;
|
|
@@ -1238,15 +1246,7 @@ export declare const CallRepository_DataSchema: z.ZodObject<{
|
|
|
1238
1246
|
onChain?: boolean | undefined;
|
|
1239
1247
|
};
|
|
1240
1248
|
description?: string | undefined;
|
|
1241
|
-
rewards?:
|
|
1242
|
-
op: "set" | "add";
|
|
1243
|
-
objects: string[];
|
|
1244
|
-
} | {
|
|
1245
|
-
op: "remove";
|
|
1246
|
-
objects: string[];
|
|
1247
|
-
} | {
|
|
1248
|
-
op: "clear";
|
|
1249
|
-
} | undefined;
|
|
1249
|
+
rewards?: unknown;
|
|
1250
1250
|
um?: string | null | undefined;
|
|
1251
1251
|
owner_receive?: {
|
|
1252
1252
|
received: {
|
|
@@ -1660,7 +1660,7 @@ export declare const CallRepository_InputSchema: z.ZodObject<{
|
|
|
1660
1660
|
write_guard?: string | undefined;
|
|
1661
1661
|
}[];
|
|
1662
1662
|
}>]>>;
|
|
1663
|
-
rewards: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1663
|
+
rewards: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
1664
1664
|
op: z.ZodUnion<[z.ZodLiteral<"add">, z.ZodLiteral<"set">]>;
|
|
1665
1665
|
objects: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
1666
1666
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -1684,7 +1684,15 @@ export declare const CallRepository_InputSchema: z.ZodObject<{
|
|
|
1684
1684
|
op: "clear";
|
|
1685
1685
|
}, {
|
|
1686
1686
|
op: "clear";
|
|
1687
|
-
}>]
|
|
1687
|
+
}>]>, {
|
|
1688
|
+
op: "set" | "add";
|
|
1689
|
+
objects: string[];
|
|
1690
|
+
} | {
|
|
1691
|
+
op: "remove";
|
|
1692
|
+
objects: string[];
|
|
1693
|
+
} | {
|
|
1694
|
+
op: "clear";
|
|
1695
|
+
}, unknown>>;
|
|
1688
1696
|
owner_receive: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
1689
1697
|
id: z.ZodString;
|
|
1690
1698
|
type: z.ZodString;
|
|
@@ -1834,15 +1842,7 @@ export declare const CallRepository_InputSchema: z.ZodObject<{
|
|
|
1834
1842
|
onChain?: boolean | undefined;
|
|
1835
1843
|
};
|
|
1836
1844
|
description?: string | undefined;
|
|
1837
|
-
rewards?:
|
|
1838
|
-
op: "set" | "add";
|
|
1839
|
-
objects: string[];
|
|
1840
|
-
} | {
|
|
1841
|
-
op: "remove";
|
|
1842
|
-
objects: string[];
|
|
1843
|
-
} | {
|
|
1844
|
-
op: "clear";
|
|
1845
|
-
} | undefined;
|
|
1845
|
+
rewards?: unknown;
|
|
1846
1846
|
um?: string | null | undefined;
|
|
1847
1847
|
owner_receive?: {
|
|
1848
1848
|
received: {
|
|
@@ -2271,15 +2271,7 @@ export declare const CallRepository_InputSchema: z.ZodObject<{
|
|
|
2271
2271
|
onChain?: boolean | undefined;
|
|
2272
2272
|
};
|
|
2273
2273
|
description?: string | undefined;
|
|
2274
|
-
rewards?:
|
|
2275
|
-
op: "set" | "add";
|
|
2276
|
-
objects: string[];
|
|
2277
|
-
} | {
|
|
2278
|
-
op: "remove";
|
|
2279
|
-
objects: string[];
|
|
2280
|
-
} | {
|
|
2281
|
-
op: "clear";
|
|
2282
|
-
} | undefined;
|
|
2274
|
+
rewards?: unknown;
|
|
2283
2275
|
um?: string | null | undefined;
|
|
2284
2276
|
owner_receive?: {
|
|
2285
2277
|
received: {
|
|
@@ -8,7 +8,7 @@ export interface SemanticContext {
|
|
|
8
8
|
pre_warnings?: string[];
|
|
9
9
|
schema_check?: import("../schema-version.js").SchemaCheckResult;
|
|
10
10
|
}
|
|
11
|
-
export type ErrorCode = "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "unknown";
|
|
11
|
+
export type ErrorCode = "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | "unknown";
|
|
12
12
|
export interface MoveAbortInfo {
|
|
13
13
|
module: string;
|
|
14
14
|
code: number;
|
|
@@ -141,6 +141,32 @@ const ERROR_RULES = [
|
|
|
141
141
|
retryable: false,
|
|
142
142
|
recovery_hint: "Fill the Guard submission data (see the 'submission' field) and resubmit via call_with_submission",
|
|
143
143
|
},
|
|
144
|
+
{
|
|
145
|
+
patterns: [
|
|
146
|
+
/WIP file verification failed/i,
|
|
147
|
+
/Failed to load WIP file/i,
|
|
148
|
+
/WIP.*hash\s*mismatch/i,
|
|
149
|
+
/Invalid WIP file structure/i,
|
|
150
|
+
/wip.*not\s*found/i,
|
|
151
|
+
/wip.*unreachable/i,
|
|
152
|
+
/wip_file.*error/i,
|
|
153
|
+
],
|
|
154
|
+
error_code: "wip_verification_failed",
|
|
155
|
+
retryable: false,
|
|
156
|
+
recovery_hint: [
|
|
157
|
+
"WIP file must be publicly accessible via HTTP(S) URL — local file paths cannot be stored on-chain.",
|
|
158
|
+
"Deployment options (pick one):",
|
|
159
|
+
" 1. GitHub Pages (free, stable): upload .wip file to a repo, enable Pages, use raw URL.",
|
|
160
|
+
" Example: https://<user>.github.io/<repo>/<file>.wip",
|
|
161
|
+
" Or raw URL: https://raw.githubusercontent.com/<user>/<repo>/<branch>/<file>.wip",
|
|
162
|
+
" 2. IPFS (free, decentralized): upload via Pinata (https://pinata.cloud) or nft.storage.",
|
|
163
|
+
" Use the ipfs://<CID> or https://<gateway>/ipfs/<CID> URL form.",
|
|
164
|
+
" Common gateways: https://ipfs.io/ipfs/, https://cloudflare-ipfs.com/ipfs/, https://dweb.link/ipfs/",
|
|
165
|
+
" 3. User's own website: serve the .wip file from your static site.",
|
|
166
|
+
" 4. Generate a fresh WIP file locally first via wip_file (type='generate'), upload it, then re-submit the URL.",
|
|
167
|
+
"After updating the sale's wip URL, re-run the operation."
|
|
168
|
+
].join("\n"),
|
|
169
|
+
},
|
|
144
170
|
{
|
|
145
171
|
patterns: [
|
|
146
172
|
/already\s*publish/i,
|
|
@@ -1495,6 +1521,9 @@ export function buildDataSemantic(data, context, isError, errorMsg) {
|
|
|
1495
1521
|
return undefined;
|
|
1496
1522
|
const intent = inferIntent(context.operation_type, context.data);
|
|
1497
1523
|
const warnings = [];
|
|
1524
|
+
if (context.pre_warnings && context.pre_warnings.length > 0) {
|
|
1525
|
+
warnings.push(...context.pre_warnings);
|
|
1526
|
+
}
|
|
1498
1527
|
let status;
|
|
1499
1528
|
if (isError) {
|
|
1500
1529
|
status = "failed";
|
|
@@ -1530,7 +1559,7 @@ export function buildDataSemantic(data, context, isError, errorMsg) {
|
|
|
1530
1559
|
const intentVerb = intent.replace(/_/g, " ");
|
|
1531
1560
|
let summary;
|
|
1532
1561
|
if (status === "failed") {
|
|
1533
|
-
summary = `Failed to ${intentVerb}`;
|
|
1562
|
+
summary = errorMsg ? `Failed to ${intentVerb}: ${errorMsg}` : `Failed to ${intentVerb}`;
|
|
1534
1563
|
}
|
|
1535
1564
|
else if (status === "partial") {
|
|
1536
1565
|
summary = `${intentVerb} completed with no results`;
|