@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
|
@@ -7,7 +7,9 @@ const LocalOperationErrorFields = {
|
|
|
7
7
|
.enum([
|
|
8
8
|
"invalid_parameter", "guard_rejected", "state_conflict",
|
|
9
9
|
"insufficient_balance", "object_not_found", "permission_denied",
|
|
10
|
-
"immutable_violation", "network_error", "
|
|
10
|
+
"immutable_violation", "network_error", "rate_limit",
|
|
11
|
+
"gas_exceeded", "bcs_error", "signature_error",
|
|
12
|
+
"config_error", "wip_verification_failed", "unknown",
|
|
11
13
|
])
|
|
12
14
|
.optional()
|
|
13
15
|
.describe("Error classification for programmatic recovery"),
|
|
@@ -254,7 +256,14 @@ export const MarkParamSchema = z
|
|
|
254
256
|
.optional()
|
|
255
257
|
.describe(`Tags for categorization (max ${LocalMarkConstraints.tagMaxCount} tags, each max ${LocalMarkConstraints.tagMaxLength} bcs characters)`),
|
|
256
258
|
})
|
|
257
|
-
.describe("LOCAL ONLY: Parameters for creating or updating a LOCAL mark. This data is stored privately on your device and will NEVER be published to the blockchain.
|
|
259
|
+
.describe("LOCAL ONLY: Parameters for creating or updating a LOCAL mark. This data is stored privately on your device and will NEVER be published to the blockchain. " +
|
|
260
|
+
"For public on-chain marks, use the 'personal' tool instead. " +
|
|
261
|
+
"IMPORTANT: 'name' field is an OBJECT {value, replaceExistName?}, not a string. " +
|
|
262
|
+
"FIX-011 cross-network consistency: LocalMark names are scoped per network. " +
|
|
263
|
+
"When creating marks for the same logical object on different networks (e.g. testnet and mainnet), " +
|
|
264
|
+
"use the SAME name value to keep name-based references portable. " +
|
|
265
|
+
"Before creating a mark on mainnet, check if a mark with the same name already exists on testnet " +
|
|
266
|
+
"(via query_local with network='testnet') and replicate the same name on mainnet for consistency.");
|
|
258
267
|
export const MarkDataSchema = z
|
|
259
268
|
.object({
|
|
260
269
|
name: z
|
|
@@ -277,7 +286,7 @@ export const MarkDataSchema = z
|
|
|
277
286
|
.optional()
|
|
278
287
|
.describe("Unix timestamp (ms) when this mark was last modified"),
|
|
279
288
|
})
|
|
280
|
-
.describe("LOCAL PRIVATE: Local mark data structure for storing address names and tags privately on your device. This data is NEVER published to the blockchain.");
|
|
289
|
+
.describe("LOCAL PRIVATE: Local mark data structure for storing address names and tags privately on your device. This data is NEVER published to the blockchain. CROSS-NETWORK ISOLATION (DOC-02): LocalMark names are scoped per network — the same name 'my-service' can map to different addresses on testnet vs mainnet. When switching networks (e.g., testnet→mainnet deployment), re-create marks with the same names pointing to the new mainnet addresses. This enables name-based object references that work identically across networks without code changes.");
|
|
281
290
|
export const InfoDataInnerSchema = z
|
|
282
291
|
.object({
|
|
283
292
|
default: z
|
|
@@ -429,24 +438,38 @@ export const AccountOperationSchema = z
|
|
|
429
438
|
.object({
|
|
430
439
|
name: NameSchema
|
|
431
440
|
.optional()
|
|
432
|
-
.describe(`Account name (max ${AccountConstraints.nameMaxLength} characters). Use empty string '' or omit for the default account
|
|
441
|
+
.describe(`Account name (max ${AccountConstraints.nameMaxLength} characters). Use empty string '' or omit for the default account. ` +
|
|
442
|
+
`Recommended convention: <role>-<number> (e.g. shop-001, user-001, arb-001) for easy filtering and batch operations.`),
|
|
433
443
|
replaceExistName: z
|
|
434
444
|
.boolean()
|
|
435
445
|
.optional()
|
|
436
|
-
.describe("If true, existing account with the same name will
|
|
437
|
-
|
|
438
|
-
|
|
446
|
+
.describe("DISCOURAGED. If true, an existing account with the same name will be SUSPENDED (not just renamed) to free the name for the new account. " +
|
|
447
|
+
"The old account moves to the Suspended tab and cannot sign transactions until resumed with a new name. " +
|
|
448
|
+
"FORBIDDEN on the default account (name='' or omitted) — the default account is unique and cannot be replaced; use suspend() explicitly instead. " +
|
|
449
|
+
"Prefer versioned names (e.g. 'shop_v2') over replaceExistName for production. Default: false (throws AccountNameExist on collision)."),
|
|
450
|
+
messenger: z
|
|
451
|
+
.boolean()
|
|
439
452
|
.optional()
|
|
440
|
-
.describe("
|
|
453
|
+
.describe("Enable messenger for this account. true=enable, false=disable, omit=unchanged. " +
|
|
454
|
+
"Account name is used for messenger identity lookup (no separate messenger name)."),
|
|
441
455
|
})
|
|
442
456
|
.optional()
|
|
443
457
|
.describe("Generate new account"),
|
|
444
458
|
faucet: z
|
|
445
|
-
.
|
|
459
|
+
.preprocess((val) => {
|
|
460
|
+
if (val && typeof val === 'object' && !Array.isArray(val)) {
|
|
461
|
+
const obj = val;
|
|
462
|
+
if (obj.name !== undefined && obj.name_or_address === undefined) {
|
|
463
|
+
obj.name_or_address = obj.name;
|
|
464
|
+
delete obj.name;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
return val;
|
|
468
|
+
}, z.object({
|
|
446
469
|
name_or_address: NameOrAddressSchema.optional()
|
|
447
470
|
.describe("Account name or address. Use empty string '' for the default account. Defaults to '' if omitted."),
|
|
448
471
|
network: FaucetNetworkSchema,
|
|
449
|
-
})
|
|
472
|
+
}).strict())
|
|
450
473
|
.optional()
|
|
451
474
|
.describe("Distribute test coins from faucet to the specified account"),
|
|
452
475
|
suspend: z
|
|
@@ -536,9 +559,9 @@ export const AccountOperationSchema = z
|
|
|
536
559
|
.object({
|
|
537
560
|
name_or_account: NameOrAddressSchema.optional()
|
|
538
561
|
.describe("Account name or address. Use empty string '' for the default account. Defaults to '' if omitted."),
|
|
539
|
-
|
|
540
|
-
.
|
|
541
|
-
.describe("
|
|
562
|
+
enabled: z
|
|
563
|
+
.boolean()
|
|
564
|
+
.describe("true to enable messenger, false to disable"),
|
|
542
565
|
})
|
|
543
566
|
.optional()
|
|
544
567
|
.describe("Enable or disable messenger for an account"),
|
|
@@ -552,10 +575,10 @@ export const AccountOperationResultSchema = z
|
|
|
552
575
|
.object({
|
|
553
576
|
address: z.string().describe("Newly generated account ID"),
|
|
554
577
|
name: NameSchema.optional().describe("Account name"),
|
|
555
|
-
|
|
556
|
-
.
|
|
578
|
+
messenger: z
|
|
579
|
+
.boolean()
|
|
557
580
|
.optional()
|
|
558
|
-
.describe("Messenger
|
|
581
|
+
.describe("Messenger enabled flag"),
|
|
559
582
|
})
|
|
560
583
|
.optional()
|
|
561
584
|
.describe("Result of generating new account"),
|
|
@@ -648,9 +671,9 @@ export const AccountOperationResultSchema = z
|
|
|
648
671
|
.object({
|
|
649
672
|
name_or_account: NameOrAddressSchema.optional()
|
|
650
673
|
.describe("Account name or address"),
|
|
651
|
-
|
|
652
|
-
.
|
|
653
|
-
.describe("Messenger
|
|
674
|
+
enabled: z
|
|
675
|
+
.boolean()
|
|
676
|
+
.describe("Messenger enabled flag"),
|
|
654
677
|
})
|
|
655
678
|
.optional()
|
|
656
679
|
.describe("Result of enabling or disabling messenger for an account"),
|
|
@@ -782,9 +805,6 @@ export const AccountFilterSchema = z
|
|
|
782
805
|
.boolean()
|
|
783
806
|
.optional()
|
|
784
807
|
.describe("Filter accounts with messenger enabled"),
|
|
785
|
-
m: NameSchema
|
|
786
|
-
.optional()
|
|
787
|
-
.describe("Filter by messenger name (supports fuzzy match)"),
|
|
788
808
|
createdAt: z
|
|
789
809
|
.object({
|
|
790
810
|
gte: z
|
|
@@ -828,7 +848,8 @@ export const AccountDataSchema = z.object({
|
|
|
828
848
|
suspended: z.boolean().optional().describe("Whether account is suspended"),
|
|
829
849
|
createdAt: z.number().optional().describe("Timestamp when account was created"),
|
|
830
850
|
updatedAt: z.number().optional().describe("Timestamp when account was last updated"),
|
|
831
|
-
|
|
851
|
+
messenger: z.boolean().optional().describe("Whether messenger is enabled for this account"),
|
|
852
|
+
suspendedName: z.string().optional().describe("Name before suspension (set by suspend, cleared by resume)"),
|
|
832
853
|
}).describe("Account data");
|
|
833
854
|
export const QueryAccountListResultSchema = z.object({
|
|
834
855
|
result: z.array(AccountDataSchema).describe("Account list"),
|