@wowok/agent-mcp 3.0.1 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -3
- package/dist/harness/recover.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/intent/types.d.ts +1 -1
- package/dist/intent/types.js +1 -1
- package/dist/knowledge/account-marks.js +1 -1
- package/dist/knowledge/arbitration-risk.js +1 -1
- package/dist/knowledge/event-semantics.js +1 -1
- package/dist/knowledge/event-semantics.spec.js +1 -1
- package/dist/knowledge/flywheel-loop.d.ts +4 -52
- package/dist/knowledge/flywheel-loop.js +1 -1
- package/dist/knowledge/guard-lint.js +1 -1
- package/dist/knowledge/index.d.ts +2 -225
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/machine-risk.js +1 -1
- package/dist/knowledge/machine-translation.js +1 -1
- package/dist/knowledge/migration-preflight.d.ts +27 -0
- package/dist/knowledge/migration-preflight.js +1 -0
- package/dist/knowledge/onchain-constants.js +1 -1
- package/dist/knowledge/order-ledger.d.ts +2 -2
- package/dist/knowledge/order-ledger.js +1 -1
- package/dist/knowledge/order-puzzle.d.ts +4 -4
- package/dist/knowledge/order-puzzle.js +1 -1
- package/dist/knowledge/order-risk.d.ts +1 -0
- package/dist/knowledge/order-risk.js +1 -1
- package/dist/knowledge/order-templates.d.ts +1 -1
- package/dist/knowledge/order-templates.js +1 -1
- package/dist/knowledge/safety-rules.js +1 -1
- package/dist/knowledge/service-ledger.js +1 -1
- package/dist/knowledge/service-risk.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/workspace-lists.js +1 -1
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/monitor/normalize.js +1 -1
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/context-assembly.d.ts +3 -1
- package/dist/playbooks/service-build/context-assembly.js +1 -1
- package/dist/playbooks/service-build/machine-nodes.d.ts +2 -0
- package/dist/playbooks/service-build/machine-nodes.js +1 -1
- package/dist/playbooks/service-build/machine-panorama.d.ts +7 -0
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/mode-actions.d.ts +19 -0
- package/dist/playbooks/service-build/mode-actions.js +1 -1
- package/dist/review/machine.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/call/base.d.ts +12 -3
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +4 -0
- package/dist/schema/call/bridge.js +1 -1
- package/dist/schema/call/error-codes.d.ts +2 -0
- package/dist/schema/call/error-codes.js +1 -0
- package/dist/schema/call/guard.d.ts +4 -4
- package/dist/schema/call/semantic.d.ts +9 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/goal/index.d.ts +3 -3
- package/dist/schema/goal/planning.d.ts +2 -2
- package/dist/schema/industry-pack/index.d.ts +46 -4
- package/dist/schema/industry-pack/modes.d.ts +46 -4
- package/dist/schema/industry-pack/modes.js +1 -1
- package/dist/schema/intent-radar/index.d.ts +3 -0
- package/dist/schema/intent-radar/index.js +1 -1
- package/dist/schema/local/index.d.ts +558 -0
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/messenger/index.d.ts +25 -25
- package/dist/schema/operations.d.ts +29 -1
- package/dist/schema/persona/index.d.ts +2 -2
- package/dist/schema/query/bi.d.ts +89 -4
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +48 -48
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-query/index.d.ts +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/trust/index.d.ts +3 -3
- package/dist/schema/workspace/index.d.ts +1 -1
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +4 -0
- package/dist/schemas/bridge_operation.output.json +4 -0
- package/dist/schemas/index.json +7 -1
- package/dist/schemas/industry_pack_operation.output.json +162 -6
- package/dist/schemas/intent_radar.output.json +2 -0
- package/dist/schemas/intent_radar.schema.json +1 -0
- package/dist/schemas/local_history_operation.output.json +1458 -0
- package/dist/schemas/local_history_operation.schema.json +105 -0
- package/dist/schemas/local_info_operation.output.json +4 -0
- package/dist/schemas/local_mark_operation.output.json +4 -0
- package/dist/schemas/onchain_events.output.json +55 -11
- package/dist/schemas/onchain_events.schema.json +4 -0
- package/dist/schemas/onchain_operations.output.json +4 -1
- package/dist/schemas/onchain_operations.schema.json +30 -10
- package/dist/schemas/onchain_operations_guard.schema.json +30 -10
- package/dist/schemas/onchain_table_data.output.json +41 -0
- package/dist/schemas/query_toolkit.output.json +200 -16
- package/dist/schemas/query_toolkit.schema.json +41 -0
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/intent-radar.js +1 -1
- package/dist/tools/handlers/local.d.ts +1 -0
- package/dist/tools/handlers/local.js +1 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/registry/local.js +1 -1
- package/dist/tools/registry/query.js +1 -1
- package/dist/tools/shared.js +1 -1
- package/dist/tools/wrap.js +1 -1
- package/package.json +2 -2
- package/dist/knowledge/allocation-confirm.d.ts +0 -115
- package/dist/knowledge/allocation-confirm.js +0 -1
- package/dist/knowledge/allocation-context.d.ts +0 -58
- package/dist/knowledge/allocation-context.js +0 -1
- package/dist/knowledge/allocation-translation.d.ts +0 -72
- package/dist/knowledge/allocation-translation.js +0 -1
- package/dist/knowledge/arb-confirm.d.ts +0 -28
- package/dist/knowledge/arb-confirm.js +0 -1
- package/dist/knowledge/arb-translation.d.ts +0 -48
- package/dist/knowledge/arb-translation.js +0 -1
- package/dist/knowledge/arbitration-confirm.d.ts +0 -135
- package/dist/knowledge/arbitration-confirm.js +0 -1
- package/dist/knowledge/arbitration-context.d.ts +0 -81
- package/dist/knowledge/arbitration-context.js +0 -1
- package/dist/knowledge/arbitration-translation.d.ts +0 -91
- package/dist/knowledge/arbitration-translation.js +0 -1
- package/dist/knowledge/bridge-confirm.d.ts +0 -26
- package/dist/knowledge/bridge-confirm.js +0 -1
- package/dist/knowledge/bridge-translation.d.ts +0 -37
- package/dist/knowledge/bridge-translation.js +0 -1
- package/dist/knowledge/contact-confirm.d.ts +0 -27
- package/dist/knowledge/contact-confirm.js +0 -1
- package/dist/knowledge/contact-translation.d.ts +0 -39
- package/dist/knowledge/contact-translation.js +0 -1
- package/dist/knowledge/demand-confirm.d.ts +0 -32
- package/dist/knowledge/demand-confirm.js +0 -1
- package/dist/knowledge/demand-context.d.ts +0 -17
- package/dist/knowledge/demand-context.js +0 -1
- package/dist/knowledge/demand-ledger.d.ts +0 -26
- package/dist/knowledge/demand-ledger.js +0 -1
- package/dist/knowledge/demand-puzzle.d.ts +0 -29
- package/dist/knowledge/demand-puzzle.js +0 -1
- package/dist/knowledge/demand-templates.d.ts +0 -12
- package/dist/knowledge/demand-templates.js +0 -1
- package/dist/knowledge/demand-translation.d.ts +0 -55
- package/dist/knowledge/demand-translation.js +0 -1
- package/dist/knowledge/examples-scanner-cli.d.ts +0 -1
- package/dist/knowledge/examples-scanner-cli.js +0 -1
- package/dist/knowledge/examples-scanner.d.ts +0 -121
- package/dist/knowledge/examples-scanner.js +0 -1
- package/dist/knowledge/glossary.d.ts +0 -18
- package/dist/knowledge/glossary.js +0 -1
- package/dist/knowledge/guard-bytecode-spec.d.ts +0 -82
- package/dist/knowledge/guard-bytecode-spec.js +0 -1
- package/dist/knowledge/guard-confirm.d.ts +0 -86
- package/dist/knowledge/guard-confirm.js +0 -1
- package/dist/knowledge/immutability.d.ts +0 -11
- package/dist/knowledge/immutability.js +0 -1
- package/dist/knowledge/machine-confirm.d.ts +0 -102
- package/dist/knowledge/machine-confirm.js +0 -1
- package/dist/knowledge/machine-context.d.ts +0 -160
- package/dist/knowledge/machine-context.js +0 -1
- package/dist/knowledge/machine-render.d.ts +0 -41
- package/dist/knowledge/machine-render.js +0 -1
- package/dist/knowledge/mcp-schema-audit-cli.d.ts +0 -1
- package/dist/knowledge/mcp-schema-audit-cli.js +0 -1
- package/dist/knowledge/mcp-schema-audit.d.ts +0 -91
- package/dist/knowledge/mcp-schema-audit.js +0 -1
- package/dist/knowledge/messenger-guard-guidance.d.ts +0 -17
- package/dist/knowledge/messenger-guard-guidance.js +0 -1
- package/dist/knowledge/order-confirm.d.ts +0 -115
- package/dist/knowledge/order-confirm.js +0 -1
- package/dist/knowledge/order-context.d.ts +0 -66
- package/dist/knowledge/order-context.js +0 -1
- package/dist/knowledge/order-translation.d.ts +0 -78
- package/dist/knowledge/order-translation.js +0 -1
- package/dist/knowledge/overrides-loader.d.ts +0 -13
- package/dist/knowledge/overrides-loader.js +0 -1
- package/dist/knowledge/passport-confirm.d.ts +0 -130
- package/dist/knowledge/passport-confirm.js +0 -1
- package/dist/knowledge/passport-context.d.ts +0 -59
- package/dist/knowledge/passport-context.js +0 -1
- package/dist/knowledge/passport-puzzle.d.ts +0 -108
- package/dist/knowledge/passport-puzzle.js +0 -1
- package/dist/knowledge/passport-risk.d.ts +0 -70
- package/dist/knowledge/passport-risk.js +0 -1
- package/dist/knowledge/passport-translation.d.ts +0 -68
- package/dist/knowledge/passport-translation.js +0 -1
- package/dist/knowledge/payment-confirm.d.ts +0 -26
- package/dist/knowledge/payment-confirm.js +0 -1
- package/dist/knowledge/payment-translation.d.ts +0 -37
- package/dist/knowledge/payment-translation.js +0 -1
- package/dist/knowledge/permission-confirm.d.ts +0 -110
- package/dist/knowledge/permission-confirm.js +0 -1
- package/dist/knowledge/permission-context.d.ts +0 -69
- package/dist/knowledge/permission-context.js +0 -1
- package/dist/knowledge/permission-translation.d.ts +0 -57
- package/dist/knowledge/permission-translation.js +0 -1
- package/dist/knowledge/personal-confirm.d.ts +0 -29
- package/dist/knowledge/personal-confirm.js +0 -1
- package/dist/knowledge/personal-translation.d.ts +0 -37
- package/dist/knowledge/personal-translation.js +0 -1
- package/dist/knowledge/process-model.d.ts +0 -14
- package/dist/knowledge/process-model.js +0 -1
- package/dist/knowledge/progress-confirm.d.ts +0 -108
- package/dist/knowledge/progress-confirm.js +0 -1
- package/dist/knowledge/progress-context.d.ts +0 -123
- package/dist/knowledge/progress-context.js +0 -1
- package/dist/knowledge/progress-translation.d.ts +0 -52
- package/dist/knowledge/progress-translation.js +0 -1
- package/dist/knowledge/proof-confirm.d.ts +0 -31
- package/dist/knowledge/proof-confirm.js +0 -1
- package/dist/knowledge/proof-context.d.ts +0 -17
- package/dist/knowledge/proof-context.js +0 -1
- package/dist/knowledge/proof-ledger.d.ts +0 -34
- package/dist/knowledge/proof-ledger.js +0 -1
- package/dist/knowledge/proof-puzzle.d.ts +0 -35
- package/dist/knowledge/proof-puzzle.js +0 -1
- package/dist/knowledge/proof-templates.d.ts +0 -22
- package/dist/knowledge/proof-templates.js +0 -1
- package/dist/knowledge/proof-translation.d.ts +0 -52
- package/dist/knowledge/proof-translation.js +0 -1
- package/dist/knowledge/registrar-confirm.d.ts +0 -26
- package/dist/knowledge/registrar-confirm.js +0 -1
- package/dist/knowledge/registrar-translation.d.ts +0 -37
- package/dist/knowledge/registrar-translation.js +0 -1
- package/dist/knowledge/repository-confirm.d.ts +0 -40
- package/dist/knowledge/repository-confirm.js +0 -1
- package/dist/knowledge/repository-context.d.ts +0 -12
- package/dist/knowledge/repository-context.js +0 -1
- package/dist/knowledge/repository-ledger.d.ts +0 -25
- package/dist/knowledge/repository-ledger.js +0 -1
- package/dist/knowledge/repository-puzzle.d.ts +0 -30
- package/dist/knowledge/repository-puzzle.js +0 -1
- package/dist/knowledge/repository-templates.d.ts +0 -14
- package/dist/knowledge/repository-templates.js +0 -1
- package/dist/knowledge/repository-translation.d.ts +0 -58
- package/dist/knowledge/repository-translation.js +0 -1
- package/dist/knowledge/resource-confirm.d.ts +0 -25
- package/dist/knowledge/resource-confirm.js +0 -1
- package/dist/knowledge/resource-translation.d.ts +0 -37
- package/dist/knowledge/resource-translation.js +0 -1
- package/dist/knowledge/reward-confirm.d.ts +0 -116
- package/dist/knowledge/reward-confirm.js +0 -1
- package/dist/knowledge/reward-context.d.ts +0 -127
- package/dist/knowledge/reward-context.js +0 -1
- package/dist/knowledge/reward-translation.d.ts +0 -58
- package/dist/knowledge/reward-translation.js +0 -1
- package/dist/knowledge/service-confirm.d.ts +0 -161
- package/dist/knowledge/service-confirm.js +0 -1
- package/dist/knowledge/service-context.d.ts +0 -66
- package/dist/knowledge/service-context.js +0 -1
- package/dist/knowledge/service-translation.d.ts +0 -103
- package/dist/knowledge/service-translation.js +0 -1
- package/dist/knowledge/treasury-confirm.d.ts +0 -133
- package/dist/knowledge/treasury-confirm.js +0 -1
- package/dist/knowledge/treasury-context.d.ts +0 -64
- package/dist/knowledge/treasury-context.js +0 -1
- package/dist/knowledge/treasury-translation.d.ts +0 -78
- package/dist/knowledge/treasury-translation.js +0 -1
- package/dist/knowledge/util-confirm.d.ts +0 -24
- package/dist/knowledge/util-confirm.js +0 -1
- package/dist/knowledge/util-translation.d.ts +0 -39
- package/dist/knowledge/util-translation.js +0 -1
- package/dist/loop-engineering/aggregate.d.ts +0 -50
- package/dist/loop-engineering/aggregate.js +0 -1
- package/dist/loop-engineering/context-collect.d.ts +0 -7
- package/dist/loop-engineering/context-collect.js +0 -1
- package/dist/loop-engineering/diagnose.d.ts +0 -22
- package/dist/loop-engineering/diagnose.js +0 -1
- package/dist/loop-engineering/improve.d.ts +0 -55
- package/dist/loop-engineering/improve.js +0 -1
- package/dist/loop-engineering/index.d.ts +0 -4
- package/dist/loop-engineering/index.js +0 -1
- package/dist/loop-engineering/pipeline.d.ts +0 -17
- package/dist/loop-engineering/pipeline.js +0 -1
- package/dist/schema/utils/object-type-utils.d.ts +0 -12
- package/dist/schema/utils/object-type-utils.js +0 -1
- package/dist/telemetry/index.d.ts +0 -19
- package/dist/telemetry/index.js +0 -1
- package/dist/telemetry/redact.d.ts +0 -2
- package/dist/telemetry/redact.js +0 -1
- package/dist/telemetry/storage.d.ts +0 -8
- package/dist/telemetry/storage.js +0 -1
|
@@ -1285,11 +1285,13 @@
|
|
|
1285
1285
|
"const": "vec_contains_bool"
|
|
1286
1286
|
},
|
|
1287
1287
|
"nodes": {
|
|
1288
|
+
"minItems": 2,
|
|
1289
|
+
"maxItems": 8,
|
|
1288
1290
|
"type": "array",
|
|
1289
1291
|
"items": {
|
|
1290
1292
|
"$ref": "#/definitions/__schema0"
|
|
1291
1293
|
},
|
|
1292
|
-
"description": "
|
|
1294
|
+
"description": "First node must be VecBool (ValueType=9) or Value (ValueType=19), remaining nodes must be Bool (ValueType=0) or Value (ValueType=19)."
|
|
1293
1295
|
}
|
|
1294
1296
|
},
|
|
1295
1297
|
"required": [
|
|
@@ -1307,11 +1309,13 @@
|
|
|
1307
1309
|
"const": "vec_contains_address"
|
|
1308
1310
|
},
|
|
1309
1311
|
"nodes": {
|
|
1312
|
+
"minItems": 2,
|
|
1313
|
+
"maxItems": 8,
|
|
1310
1314
|
"type": "array",
|
|
1311
1315
|
"items": {
|
|
1312
1316
|
"$ref": "#/definitions/__schema0"
|
|
1313
1317
|
},
|
|
1314
|
-
"description": "
|
|
1318
|
+
"description": "First node must be VecAddress (ValueType=10) or Value (ValueType=19), remaining nodes must be Address (ValueType=1) or Value (ValueType=19)."
|
|
1315
1319
|
}
|
|
1316
1320
|
},
|
|
1317
1321
|
"required": [
|
|
@@ -1329,11 +1333,13 @@
|
|
|
1329
1333
|
"const": "vec_contains_string"
|
|
1330
1334
|
},
|
|
1331
1335
|
"nodes": {
|
|
1336
|
+
"minItems": 2,
|
|
1337
|
+
"maxItems": 8,
|
|
1332
1338
|
"type": "array",
|
|
1333
1339
|
"items": {
|
|
1334
1340
|
"$ref": "#/definitions/__schema0"
|
|
1335
1341
|
},
|
|
1336
|
-
"description": "
|
|
1342
|
+
"description": "First node must be VecString (ValueType=11) or Value (ValueType=19), remaining nodes must be String (ValueType=2) or Value (ValueType=19)."
|
|
1337
1343
|
}
|
|
1338
1344
|
},
|
|
1339
1345
|
"required": [
|
|
@@ -1351,11 +1357,13 @@
|
|
|
1351
1357
|
"const": "vec_contains_string_nocase"
|
|
1352
1358
|
},
|
|
1353
1359
|
"nodes": {
|
|
1360
|
+
"minItems": 2,
|
|
1361
|
+
"maxItems": 8,
|
|
1354
1362
|
"type": "array",
|
|
1355
1363
|
"items": {
|
|
1356
1364
|
"$ref": "#/definitions/__schema0"
|
|
1357
1365
|
},
|
|
1358
|
-
"description": "
|
|
1366
|
+
"description": "First node must be VecString (ValueType=11) or Value (ValueType=19), remaining nodes must be String (ValueType=2) or Value (ValueType=19)."
|
|
1359
1367
|
}
|
|
1360
1368
|
},
|
|
1361
1369
|
"required": [
|
|
@@ -1373,11 +1381,13 @@
|
|
|
1373
1381
|
"const": "vec_contains_number"
|
|
1374
1382
|
},
|
|
1375
1383
|
"nodes": {
|
|
1384
|
+
"minItems": 2,
|
|
1385
|
+
"maxItems": 8,
|
|
1376
1386
|
"type": "array",
|
|
1377
1387
|
"items": {
|
|
1378
1388
|
"$ref": "#/definitions/__schema0"
|
|
1379
1389
|
},
|
|
1380
|
-
"description": "
|
|
1390
|
+
"description": "First node must be VecU8 (12), VecU16 (13), VecU32 (14), VecU64 (15), VecU128 (16), VecU256 (17) or Value (ValueType=19), remaining nodes must be U8 (3), U16 (4), U32 (5), U64 (6), U128 (7), U256 (8) or Value (ValueType=19)."
|
|
1381
1391
|
}
|
|
1382
1392
|
},
|
|
1383
1393
|
"required": [
|
|
@@ -3259,11 +3269,13 @@
|
|
|
3259
3269
|
"const": "vec_contains_bool"
|
|
3260
3270
|
},
|
|
3261
3271
|
"nodes": {
|
|
3272
|
+
"minItems": 2,
|
|
3273
|
+
"maxItems": 8,
|
|
3262
3274
|
"type": "array",
|
|
3263
3275
|
"items": {
|
|
3264
3276
|
"$ref": "#/definitions/__schema0"
|
|
3265
3277
|
},
|
|
3266
|
-
"description": "
|
|
3278
|
+
"description": "First node must be VecBool (ValueType=9) or Value (ValueType=19), remaining nodes must be Bool (ValueType=0) or Value (ValueType=19)."
|
|
3267
3279
|
}
|
|
3268
3280
|
},
|
|
3269
3281
|
"required": [
|
|
@@ -3281,11 +3293,13 @@
|
|
|
3281
3293
|
"const": "vec_contains_address"
|
|
3282
3294
|
},
|
|
3283
3295
|
"nodes": {
|
|
3296
|
+
"minItems": 2,
|
|
3297
|
+
"maxItems": 8,
|
|
3284
3298
|
"type": "array",
|
|
3285
3299
|
"items": {
|
|
3286
3300
|
"$ref": "#/definitions/__schema0"
|
|
3287
3301
|
},
|
|
3288
|
-
"description": "
|
|
3302
|
+
"description": "First node must be VecAddress (ValueType=10) or Value (ValueType=19), remaining nodes must be Address (ValueType=1) or Value (ValueType=19)."
|
|
3289
3303
|
}
|
|
3290
3304
|
},
|
|
3291
3305
|
"required": [
|
|
@@ -3303,11 +3317,13 @@
|
|
|
3303
3317
|
"const": "vec_contains_string"
|
|
3304
3318
|
},
|
|
3305
3319
|
"nodes": {
|
|
3320
|
+
"minItems": 2,
|
|
3321
|
+
"maxItems": 8,
|
|
3306
3322
|
"type": "array",
|
|
3307
3323
|
"items": {
|
|
3308
3324
|
"$ref": "#/definitions/__schema0"
|
|
3309
3325
|
},
|
|
3310
|
-
"description": "
|
|
3326
|
+
"description": "First node must be VecString (ValueType=11) or Value (ValueType=19), remaining nodes must be String (ValueType=2) or Value (ValueType=19)."
|
|
3311
3327
|
}
|
|
3312
3328
|
},
|
|
3313
3329
|
"required": [
|
|
@@ -3325,11 +3341,13 @@
|
|
|
3325
3341
|
"const": "vec_contains_string_nocase"
|
|
3326
3342
|
},
|
|
3327
3343
|
"nodes": {
|
|
3344
|
+
"minItems": 2,
|
|
3345
|
+
"maxItems": 8,
|
|
3328
3346
|
"type": "array",
|
|
3329
3347
|
"items": {
|
|
3330
3348
|
"$ref": "#/definitions/__schema0"
|
|
3331
3349
|
},
|
|
3332
|
-
"description": "
|
|
3350
|
+
"description": "First node must be VecString (ValueType=11) or Value (ValueType=19), remaining nodes must be String (ValueType=2) or Value (ValueType=19)."
|
|
3333
3351
|
}
|
|
3334
3352
|
},
|
|
3335
3353
|
"required": [
|
|
@@ -3347,11 +3365,13 @@
|
|
|
3347
3365
|
"const": "vec_contains_number"
|
|
3348
3366
|
},
|
|
3349
3367
|
"nodes": {
|
|
3368
|
+
"minItems": 2,
|
|
3369
|
+
"maxItems": 8,
|
|
3350
3370
|
"type": "array",
|
|
3351
3371
|
"items": {
|
|
3352
3372
|
"$ref": "#/definitions/__schema0"
|
|
3353
3373
|
},
|
|
3354
|
-
"description": "
|
|
3374
|
+
"description": "First node must be VecU8 (12), VecU16 (13), VecU32 (14), VecU64 (15), VecU128 (16), VecU256 (17) or Value (ValueType=19), remaining nodes must be U8 (3), U16 (4), U32 (5), U64 (6), U128 (7), U256 (8) or Value (ValueType=19)."
|
|
3355
3375
|
}
|
|
3356
3376
|
},
|
|
3357
3377
|
"required": [
|
|
@@ -9479,6 +9479,47 @@
|
|
|
9479
9479
|
],
|
|
9480
9480
|
"additionalProperties": false,
|
|
9481
9481
|
"description": "Like / Favor list for ONE account (client Quick Access 'Like / Favor' tab) — every address (object OR plain user) the account has EVER liked / disliked / favored, deduplicated, with the CURRENT active vote kinds per target. Deterministic source: the voter's own Resource mark table (registrar.move handle_vote → resource::tag_set), cross-read with the target's EntityLinker votes for the 'marked at' clock. Fully-toggled-off targets are dropped. Each row: address + tags (like/dislike/favor) + time + object_type (null = plain user) + local name / description / tags. Aggregation result is TTL-cached (120s, keyed by network + account). Read-only."
|
|
9482
|
+
},
|
|
9483
|
+
{
|
|
9484
|
+
"type": "object",
|
|
9485
|
+
"properties": {
|
|
9486
|
+
"query_type": {
|
|
9487
|
+
"type": "string",
|
|
9488
|
+
"const": "migration_preflight"
|
|
9489
|
+
},
|
|
9490
|
+
"no_cache": {
|
|
9491
|
+
"description": "Set to true to bypass the SDK chain-read cache.",
|
|
9492
|
+
"type": "boolean"
|
|
9493
|
+
},
|
|
9494
|
+
"account": {
|
|
9495
|
+
"type": "string",
|
|
9496
|
+
"description": "Account address (or name) to check. Required when query_type='migration_preflight'."
|
|
9497
|
+
},
|
|
9498
|
+
"source_network": {
|
|
9499
|
+
"description": "Source network to detect an existing build (default 'testnet').",
|
|
9500
|
+
"type": "string",
|
|
9501
|
+
"enum": [
|
|
9502
|
+
"testnet",
|
|
9503
|
+
"mainnet",
|
|
9504
|
+
"localnet"
|
|
9505
|
+
]
|
|
9506
|
+
},
|
|
9507
|
+
"target_network": {
|
|
9508
|
+
"description": "Target network for the migration (default 'mainnet').",
|
|
9509
|
+
"type": "string",
|
|
9510
|
+
"enum": [
|
|
9511
|
+
"testnet",
|
|
9512
|
+
"mainnet",
|
|
9513
|
+
"localnet"
|
|
9514
|
+
]
|
|
9515
|
+
}
|
|
9516
|
+
},
|
|
9517
|
+
"required": [
|
|
9518
|
+
"query_type",
|
|
9519
|
+
"account"
|
|
9520
|
+
],
|
|
9521
|
+
"additionalProperties": false,
|
|
9522
|
+
"description": "Cross-network build detection + mainnet customization preflight (first-touch migration): detect whether the account has already built Services/Machines/etc. on the source network (default testnet), report the same on the target network (default mainnet), and return a business-facing checklist of the key settings to confirm/change when migrating — payment token, location, arbitration, WIP, gas. Read-only."
|
|
9482
9523
|
}
|
|
9483
9524
|
]
|
|
9484
9525
|
},
|
|
@@ -16287,25 +16287,16 @@
|
|
|
16287
16287
|
"description": "Suggested next action: use onchain_transaction to verify a specific past tx, or proceed with onchain_operations to modify state, or re-call assemble_context after state changes."
|
|
16288
16288
|
},
|
|
16289
16289
|
"flywheel_collected": {
|
|
16290
|
-
"description": "
|
|
16290
|
+
"description": "Experience-layer collection result. Non-blocking — may be undefined if collection fails. When present, the assembled context has been fed back into the experience layer for future pattern matching.",
|
|
16291
16291
|
"type": "object",
|
|
16292
16292
|
"properties": {
|
|
16293
16293
|
"signature_recorded": {
|
|
16294
16294
|
"type": "boolean",
|
|
16295
16295
|
"description": "Whether the experience signature was recorded in the real-time experience layer."
|
|
16296
|
-
},
|
|
16297
|
-
"proposal_created": {
|
|
16298
|
-
"type": "boolean",
|
|
16299
|
-
"description": "Whether an improvement proposal was created for the offline distillation flywheel."
|
|
16300
|
-
},
|
|
16301
|
-
"proposal_id": {
|
|
16302
|
-
"description": "The proposal ID, if created.",
|
|
16303
|
-
"type": "string"
|
|
16304
16296
|
}
|
|
16305
16297
|
},
|
|
16306
16298
|
"required": [
|
|
16307
|
-
"signature_recorded"
|
|
16308
|
-
"proposal_created"
|
|
16299
|
+
"signature_recorded"
|
|
16309
16300
|
],
|
|
16310
16301
|
"additionalProperties": false
|
|
16311
16302
|
}
|
|
@@ -17835,6 +17826,189 @@
|
|
|
17835
17826
|
"result"
|
|
17836
17827
|
],
|
|
17837
17828
|
"additionalProperties": false
|
|
17829
|
+
},
|
|
17830
|
+
{
|
|
17831
|
+
"type": "object",
|
|
17832
|
+
"properties": {
|
|
17833
|
+
"query_type": {
|
|
17834
|
+
"type": "string",
|
|
17835
|
+
"const": "migration_preflight"
|
|
17836
|
+
},
|
|
17837
|
+
"result": {
|
|
17838
|
+
"type": "object",
|
|
17839
|
+
"properties": {
|
|
17840
|
+
"action": {
|
|
17841
|
+
"type": "string",
|
|
17842
|
+
"const": "migration_preflight"
|
|
17843
|
+
},
|
|
17844
|
+
"account": {
|
|
17845
|
+
"type": "string"
|
|
17846
|
+
},
|
|
17847
|
+
"source_network": {
|
|
17848
|
+
"type": "string"
|
|
17849
|
+
},
|
|
17850
|
+
"target_network": {
|
|
17851
|
+
"type": "string"
|
|
17852
|
+
},
|
|
17853
|
+
"source": {
|
|
17854
|
+
"type": "object",
|
|
17855
|
+
"properties": {
|
|
17856
|
+
"network": {
|
|
17857
|
+
"type": "string"
|
|
17858
|
+
},
|
|
17859
|
+
"has_build": {
|
|
17860
|
+
"type": "boolean",
|
|
17861
|
+
"description": "True when the account has built at least one object on this network."
|
|
17862
|
+
},
|
|
17863
|
+
"permissions": {
|
|
17864
|
+
"type": "array",
|
|
17865
|
+
"items": {
|
|
17866
|
+
"type": "string"
|
|
17867
|
+
}
|
|
17868
|
+
},
|
|
17869
|
+
"services": {
|
|
17870
|
+
"type": "array",
|
|
17871
|
+
"items": {
|
|
17872
|
+
"type": "string"
|
|
17873
|
+
}
|
|
17874
|
+
},
|
|
17875
|
+
"machines": {
|
|
17876
|
+
"type": "array",
|
|
17877
|
+
"items": {
|
|
17878
|
+
"type": "string"
|
|
17879
|
+
}
|
|
17880
|
+
},
|
|
17881
|
+
"treasuries": {
|
|
17882
|
+
"type": "array",
|
|
17883
|
+
"items": {
|
|
17884
|
+
"type": "string"
|
|
17885
|
+
}
|
|
17886
|
+
},
|
|
17887
|
+
"rewards": {
|
|
17888
|
+
"type": "array",
|
|
17889
|
+
"items": {
|
|
17890
|
+
"type": "string"
|
|
17891
|
+
}
|
|
17892
|
+
},
|
|
17893
|
+
"contacts": {
|
|
17894
|
+
"type": "array",
|
|
17895
|
+
"items": {
|
|
17896
|
+
"type": "string"
|
|
17897
|
+
}
|
|
17898
|
+
},
|
|
17899
|
+
"arbitrations": {
|
|
17900
|
+
"type": "array",
|
|
17901
|
+
"items": {
|
|
17902
|
+
"type": "string"
|
|
17903
|
+
}
|
|
17904
|
+
}
|
|
17905
|
+
},
|
|
17906
|
+
"required": [
|
|
17907
|
+
"network",
|
|
17908
|
+
"has_build",
|
|
17909
|
+
"permissions",
|
|
17910
|
+
"services",
|
|
17911
|
+
"machines",
|
|
17912
|
+
"treasuries",
|
|
17913
|
+
"rewards",
|
|
17914
|
+
"contacts",
|
|
17915
|
+
"arbitrations"
|
|
17916
|
+
],
|
|
17917
|
+
"additionalProperties": false,
|
|
17918
|
+
"description": "Build status on the source network (e.g. testnet)."
|
|
17919
|
+
},
|
|
17920
|
+
"target": {
|
|
17921
|
+
"type": "object",
|
|
17922
|
+
"properties": {
|
|
17923
|
+
"network": {
|
|
17924
|
+
"type": "string"
|
|
17925
|
+
},
|
|
17926
|
+
"has_build": {
|
|
17927
|
+
"type": "boolean",
|
|
17928
|
+
"description": "True when the account has built at least one object on this network."
|
|
17929
|
+
},
|
|
17930
|
+
"permissions": {
|
|
17931
|
+
"type": "array",
|
|
17932
|
+
"items": {
|
|
17933
|
+
"type": "string"
|
|
17934
|
+
}
|
|
17935
|
+
},
|
|
17936
|
+
"services": {
|
|
17937
|
+
"type": "array",
|
|
17938
|
+
"items": {
|
|
17939
|
+
"type": "string"
|
|
17940
|
+
}
|
|
17941
|
+
},
|
|
17942
|
+
"machines": {
|
|
17943
|
+
"type": "array",
|
|
17944
|
+
"items": {
|
|
17945
|
+
"type": "string"
|
|
17946
|
+
}
|
|
17947
|
+
},
|
|
17948
|
+
"treasuries": {
|
|
17949
|
+
"type": "array",
|
|
17950
|
+
"items": {
|
|
17951
|
+
"type": "string"
|
|
17952
|
+
}
|
|
17953
|
+
},
|
|
17954
|
+
"rewards": {
|
|
17955
|
+
"type": "array",
|
|
17956
|
+
"items": {
|
|
17957
|
+
"type": "string"
|
|
17958
|
+
}
|
|
17959
|
+
},
|
|
17960
|
+
"contacts": {
|
|
17961
|
+
"type": "array",
|
|
17962
|
+
"items": {
|
|
17963
|
+
"type": "string"
|
|
17964
|
+
}
|
|
17965
|
+
},
|
|
17966
|
+
"arbitrations": {
|
|
17967
|
+
"type": "array",
|
|
17968
|
+
"items": {
|
|
17969
|
+
"type": "string"
|
|
17970
|
+
}
|
|
17971
|
+
}
|
|
17972
|
+
},
|
|
17973
|
+
"required": [
|
|
17974
|
+
"network",
|
|
17975
|
+
"has_build",
|
|
17976
|
+
"permissions",
|
|
17977
|
+
"services",
|
|
17978
|
+
"machines",
|
|
17979
|
+
"treasuries",
|
|
17980
|
+
"rewards",
|
|
17981
|
+
"contacts",
|
|
17982
|
+
"arbitrations"
|
|
17983
|
+
],
|
|
17984
|
+
"additionalProperties": false,
|
|
17985
|
+
"description": "Build status on the target network (e.g. mainnet)."
|
|
17986
|
+
},
|
|
17987
|
+
"migration_checklist": {
|
|
17988
|
+
"type": "array",
|
|
17989
|
+
"items": {
|
|
17990
|
+
"type": "string"
|
|
17991
|
+
},
|
|
17992
|
+
"description": "Key settings to confirm/change when migrating testnet → mainnet (payment token, location, arbitration, WIP, gas)."
|
|
17993
|
+
}
|
|
17994
|
+
},
|
|
17995
|
+
"required": [
|
|
17996
|
+
"action",
|
|
17997
|
+
"account",
|
|
17998
|
+
"source_network",
|
|
17999
|
+
"target_network",
|
|
18000
|
+
"source",
|
|
18001
|
+
"target",
|
|
18002
|
+
"migration_checklist"
|
|
18003
|
+
],
|
|
18004
|
+
"additionalProperties": false
|
|
18005
|
+
}
|
|
18006
|
+
},
|
|
18007
|
+
"required": [
|
|
18008
|
+
"query_type",
|
|
18009
|
+
"result"
|
|
18010
|
+
],
|
|
18011
|
+
"additionalProperties": false
|
|
17838
18012
|
}
|
|
17839
18013
|
]
|
|
17840
18014
|
},
|
|
@@ -20527,6 +20701,8 @@
|
|
|
20527
20701
|
"const": "vec_contains_bool"
|
|
20528
20702
|
},
|
|
20529
20703
|
"nodes": {
|
|
20704
|
+
"minItems": 2,
|
|
20705
|
+
"maxItems": 8,
|
|
20530
20706
|
"type": "array",
|
|
20531
20707
|
"items": {
|
|
20532
20708
|
"description": "Guard node: represents an operation instruction in Guard. Each node returns a value of a specific type, computed from its child nodes or context.",
|
|
@@ -20536,7 +20712,7 @@
|
|
|
20536
20712
|
}
|
|
20537
20713
|
]
|
|
20538
20714
|
},
|
|
20539
|
-
"description": "
|
|
20715
|
+
"description": "First node must be VecBool (ValueType=9) or Value (ValueType=19), remaining nodes must be Bool (ValueType=0) or Value (ValueType=19)."
|
|
20540
20716
|
}
|
|
20541
20717
|
},
|
|
20542
20718
|
"required": [
|
|
@@ -20554,6 +20730,8 @@
|
|
|
20554
20730
|
"const": "vec_contains_address"
|
|
20555
20731
|
},
|
|
20556
20732
|
"nodes": {
|
|
20733
|
+
"minItems": 2,
|
|
20734
|
+
"maxItems": 8,
|
|
20557
20735
|
"type": "array",
|
|
20558
20736
|
"items": {
|
|
20559
20737
|
"description": "Guard node: represents an operation instruction in Guard. Each node returns a value of a specific type, computed from its child nodes or context.",
|
|
@@ -20563,7 +20741,7 @@
|
|
|
20563
20741
|
}
|
|
20564
20742
|
]
|
|
20565
20743
|
},
|
|
20566
|
-
"description": "
|
|
20744
|
+
"description": "First node must be VecAddress (ValueType=10) or Value (ValueType=19), remaining nodes must be Address (ValueType=1) or Value (ValueType=19)."
|
|
20567
20745
|
}
|
|
20568
20746
|
},
|
|
20569
20747
|
"required": [
|
|
@@ -20581,6 +20759,8 @@
|
|
|
20581
20759
|
"const": "vec_contains_string"
|
|
20582
20760
|
},
|
|
20583
20761
|
"nodes": {
|
|
20762
|
+
"minItems": 2,
|
|
20763
|
+
"maxItems": 8,
|
|
20584
20764
|
"type": "array",
|
|
20585
20765
|
"items": {
|
|
20586
20766
|
"description": "Guard node: represents an operation instruction in Guard. Each node returns a value of a specific type, computed from its child nodes or context.",
|
|
@@ -20590,7 +20770,7 @@
|
|
|
20590
20770
|
}
|
|
20591
20771
|
]
|
|
20592
20772
|
},
|
|
20593
|
-
"description": "
|
|
20773
|
+
"description": "First node must be VecString (ValueType=11) or Value (ValueType=19), remaining nodes must be String (ValueType=2) or Value (ValueType=19)."
|
|
20594
20774
|
}
|
|
20595
20775
|
},
|
|
20596
20776
|
"required": [
|
|
@@ -20608,6 +20788,8 @@
|
|
|
20608
20788
|
"const": "vec_contains_string_nocase"
|
|
20609
20789
|
},
|
|
20610
20790
|
"nodes": {
|
|
20791
|
+
"minItems": 2,
|
|
20792
|
+
"maxItems": 8,
|
|
20611
20793
|
"type": "array",
|
|
20612
20794
|
"items": {
|
|
20613
20795
|
"description": "Guard node: represents an operation instruction in Guard. Each node returns a value of a specific type, computed from its child nodes or context.",
|
|
@@ -20617,7 +20799,7 @@
|
|
|
20617
20799
|
}
|
|
20618
20800
|
]
|
|
20619
20801
|
},
|
|
20620
|
-
"description": "
|
|
20802
|
+
"description": "First node must be VecString (ValueType=11) or Value (ValueType=19), remaining nodes must be String (ValueType=2) or Value (ValueType=19)."
|
|
20621
20803
|
}
|
|
20622
20804
|
},
|
|
20623
20805
|
"required": [
|
|
@@ -20635,6 +20817,8 @@
|
|
|
20635
20817
|
"const": "vec_contains_number"
|
|
20636
20818
|
},
|
|
20637
20819
|
"nodes": {
|
|
20820
|
+
"minItems": 2,
|
|
20821
|
+
"maxItems": 8,
|
|
20638
20822
|
"type": "array",
|
|
20639
20823
|
"items": {
|
|
20640
20824
|
"description": "Guard node: represents an operation instruction in Guard. Each node returns a value of a specific type, computed from its child nodes or context.",
|
|
@@ -20644,7 +20828,7 @@
|
|
|
20644
20828
|
}
|
|
20645
20829
|
]
|
|
20646
20830
|
},
|
|
20647
|
-
"description": "
|
|
20831
|
+
"description": "First node must be VecU8 (12), VecU16 (13), VecU32 (14), VecU64 (15), VecU128 (16), VecU256 (17) or Value (ValueType=19), remaining nodes must be U8 (3), U16 (4), U32 (5), U64 (6), U128 (7), U256 (8) or Value (ValueType=19)."
|
|
20648
20832
|
}
|
|
20649
20833
|
},
|
|
20650
20834
|
"required": [
|
|
@@ -1325,6 +1325,47 @@
|
|
|
1325
1325
|
],
|
|
1326
1326
|
"additionalProperties": false,
|
|
1327
1327
|
"description": "Like / Favor list for ONE account (client Quick Access 'Like / Favor' tab) — every address (object OR plain user) the account has EVER liked / disliked / favored, deduplicated, with the CURRENT active vote kinds per target. Deterministic source: the voter's own Resource mark table (registrar.move handle_vote → resource::tag_set), cross-read with the target's EntityLinker votes for the 'marked at' clock. Fully-toggled-off targets are dropped. Each row: address + tags (like/dislike/favor) + time + object_type (null = plain user) + local name / description / tags. Aggregation result is TTL-cached (120s, keyed by network + account). Read-only."
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
"type": "object",
|
|
1331
|
+
"properties": {
|
|
1332
|
+
"query_type": {
|
|
1333
|
+
"type": "string",
|
|
1334
|
+
"const": "migration_preflight"
|
|
1335
|
+
},
|
|
1336
|
+
"no_cache": {
|
|
1337
|
+
"description": "Set to true to bypass the SDK chain-read cache.",
|
|
1338
|
+
"type": "boolean"
|
|
1339
|
+
},
|
|
1340
|
+
"account": {
|
|
1341
|
+
"type": "string",
|
|
1342
|
+
"description": "Account address (or name) to check. Required when query_type='migration_preflight'."
|
|
1343
|
+
},
|
|
1344
|
+
"source_network": {
|
|
1345
|
+
"description": "Source network to detect an existing build (default 'testnet').",
|
|
1346
|
+
"type": "string",
|
|
1347
|
+
"enum": [
|
|
1348
|
+
"testnet",
|
|
1349
|
+
"mainnet",
|
|
1350
|
+
"localnet"
|
|
1351
|
+
]
|
|
1352
|
+
},
|
|
1353
|
+
"target_network": {
|
|
1354
|
+
"description": "Target network for the migration (default 'mainnet').",
|
|
1355
|
+
"type": "string",
|
|
1356
|
+
"enum": [
|
|
1357
|
+
"testnet",
|
|
1358
|
+
"mainnet",
|
|
1359
|
+
"localnet"
|
|
1360
|
+
]
|
|
1361
|
+
}
|
|
1362
|
+
},
|
|
1363
|
+
"required": [
|
|
1364
|
+
"query_type",
|
|
1365
|
+
"account"
|
|
1366
|
+
],
|
|
1367
|
+
"additionalProperties": false,
|
|
1368
|
+
"description": "Cross-network build detection + mainnet customization preflight (first-touch migration): detect whether the account has already built Services/Machines/etc. on the source network (default testnet), report the same on the target network (default mainnet), and return a business-facing checklist of the key settings to confirm/change when migrating — payment token, location, arbitration, WIP, gas. Read-only."
|
|
1328
1369
|
}
|
|
1329
1370
|
]
|
|
1330
1371
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{listServices,getServiceInfo,toggle as
|
|
1
|
+
import{listServices,getServiceInfo,toggle as a315a,setEnabled as a315b,reset as a315c}from'../../config/index.js';import{strictParse}from'../../schema/index.js';import{ConfigOperationInputSchema}from'../../schema/config/index.js';export async function handleConfigOperation(a){const b=strictParse(ConfigOperationInputSchema,a,'config_operation\x20input'),{action:c,service:d}=b;let e;switch(c){case'list':e={'action':'list','services':listServices()};break;case'toggle':{if(!d)throw new Error('\x27service\x27\x20param\x20is\x20required\x20for\x20toggle');const f=d,g=getServiceInfo(f);if(!g)throw new Error('Unknown\x20service:\x20'+f+'.\x20Use\x20action=\x27list\x27\x20to\x20see\x20all\x20valid\x20services.');if(f==='confirm_gate'&&g['enabled'])throw new Error('confirm_gate\x20cannot\x20be\x20disabled\x20at\x20runtime.\x20'+'Set\x20WOWOK_CONFIRM_GATE=0\x20in\x20the\x20server\x20environment\x20and\x20restart\x20if\x20you\x20really\x20want\x20it\x20off.');const h=a315a(f);e={'action':'toggle','service':f,'enabled':h,'reminder':g['reminder']};break;}case'disable':{if(!d)throw new Error('\x27service\x27\x20param\x20is\x20required\x20for\x20disable');const i=d,j=getServiceInfo(i);if(!j)throw new Error('Unknown\x20service:\x20'+i+'.\x20Use\x20action=\x27list\x27\x20to\x20see\x20all\x20valid\x20services.');if(i==='confirm_gate')throw new Error('confirm_gate\x20cannot\x20be\x20disabled\x20at\x20runtime.\x20'+'Set\x20WOWOK_CONFIRM_GATE=0\x20in\x20the\x20server\x20environment\x20and\x20restart\x20if\x20you\x20really\x20want\x20it\x20off.');a315b(i,![]),e={'action':'disable','service':i,'enabled':![],'reminder':j['reminder']};break;}case'enable':{if(!d)throw new Error('\x27service\x27\x20param\x20is\x20required\x20for\x20enable');const k=d,l=getServiceInfo(k);if(!l)throw new Error('Unknown\x20service:\x20'+k+'.\x20Use\x20action=\x27list\x27\x20to\x20see\x20all\x20valid\x20services.');a315b(k,!![]),e={'action':'enable','service':k,'enabled':!![],'reminder':l['reminder']};break;}case'reset':{if(!d)throw new Error('\x27service\x27\x20param\x20is\x20required\x20for\x20reset');const m=d,n=getServiceInfo(m);if(!n)throw new Error('Unknown\x20service:\x20'+m+'.\x20Use\x20action=\x27list\x27\x20to\x20see\x20all\x20valid\x20services.');a315c(m),e={'action':'reset','service':m,'enabled':getServiceInfo(m)?.['enabled'],'reminder':n['reminder'],'reset':!![]};break;}case'info':{if(!d)throw new Error('\x27service\x27\x20param\x20is\x20required\x20for\x20info');const o=d,p=getServiceInfo(o);if(!p)throw new Error('Unknown\x20service:\x20'+o+'.\x20Use\x20action=\x27list\x27\x20to\x20see\x20all\x20valid\x20services.');e={'action':'info',...p};break;}default:throw new Error('Unknown\x20config_operation\x20action:\x20'+String(c));}return{'content':[{'type':'text','text':JSON['stringify']({'result':e})}],'structuredContent':{'result':e}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{strictParse}from'../../schema/index.js';import{IntentRadarInputSchema}from'../../schema/intent-radar/index.js';import{createIntent,listIntents,matchAllIntents,matchIntent,removeIntent}from'../../intent/index.js';import{enrichEventsWithObjectText}from'../../intent/enrich.js';import{query_events}from'@wowok/wowok';const AUTO_PULL_TYPES=['ServiceEvent','DemandChangedEvent','DemandPresentEvent','NewOrderEvent','ProgressEvent','ArbEvent','VoteEvent','DemandFeedbackEvent','NewEntityEvent','NewPaymentEvent','AllocationEvent','TreasuryEvent','RewardClaimEvent','RewardFundEvent'];async function pullRecentEvents(a,b){const c=[];for(const d of AUTO_PULL_TYPES){try{const e=await query_events({'type':d,'cursor':null,'limit':b,'order':'descending','no_cache':![],'network':a}),f=e?.['data'];if(Array['isArray'](f))c['push'](...f);}catch{}}return c;}export async function handleIntentRadar(a){const b=strictParse(IntentRadarInputSchema,a,'intent_radar\x20input');let c;switch(b['action']){case'save':{const d=await createIntent({'intent':b['intent'],'account':b['account'],'role':b['role'],'target_types':b['target_types']});c={'action':'save','intent':d};break;}case'list':{c={'action':'list','intents':await listIntents(b['account'])};break;}case'remove':{c={'action':'remove','removed':await removeIntent(b['id'])};break;}case'match':{let e=b['events']??[];e['length']===0x0&&(e=await pullRecentEvents(b['network'],b['limit']??0x5));e=await enrichEventsWithObjectText(e,b['network']);const f=b['intent_id']?[await matchIntent(b['intent_id'],e)]['filter'](g=>g!==null):await matchAllIntents(e,b['account']);c={'action':'match','results':f};break;}default:throw new Error('Unknown\x20intent_radar\x20action');}return{'content':[{'type':'text','text':JSON['stringify']({'result':c})}],'structuredContent':{'result':c}};}
|
|
1
|
+
import{strictParse}from'../../schema/index.js';import{IntentRadarInputSchema}from'../../schema/intent-radar/index.js';import{createIntent,listIntents,matchAllIntents,matchIntent,removeIntent}from'../../intent/index.js';import{enrichEventsWithObjectText}from'../../intent/enrich.js';import{query_events}from'@wowok/wowok';const AUTO_PULL_TYPES=['ServiceEvent','ArbitrationEvent','DemandChangedEvent','DemandPresentEvent','NewOrderEvent','ProgressEvent','ArbEvent','VoteEvent','DemandFeedbackEvent','NewEntityEvent','NewPaymentEvent','AllocationEvent','TreasuryEvent','RewardClaimEvent','RewardFundEvent'];async function pullRecentEvents(a,b){const c=[];for(const d of AUTO_PULL_TYPES){try{const e=await query_events({'type':d,'cursor':null,'limit':b,'order':'descending','no_cache':![],'network':a}),f=e?.['data'];if(Array['isArray'](f))c['push'](...f);}catch{}}return c;}export async function handleIntentRadar(a){const b=strictParse(IntentRadarInputSchema,a,'intent_radar\x20input');let c;switch(b['action']){case'save':{const d=await createIntent({'intent':b['intent'],'account':b['account'],'role':b['role'],'target_types':b['target_types']});c={'action':'save','intent':d};break;}case'list':{c={'action':'list','intents':await listIntents(b['account'])};break;}case'remove':{c={'action':'remove','removed':await removeIntent(b['id'])};break;}case'match':{let e=b['events']??[];e['length']===0x0&&(e=await pullRecentEvents(b['network'],b['limit']??0x5));e=await enrichEventsWithObjectText(e,b['network']);const f=b['intent_id']?[await matchIntent(b['intent_id'],e)]['filter'](g=>g!==null):await matchAllIntents(e,b['account']);c={'action':'match','results':f};break;}default:throw new Error('Unknown\x20intent_radar\x20action');}return{'content':[{'type':'text','text':JSON['stringify']({'result':c})}],'structuredContent':{'result':c}};}
|
|
@@ -2,3 +2,4 @@ import type { ToolDispatchResult } from "../types.js";
|
|
|
2
2
|
export declare const handleAccountOperation: (args: unknown) => Promise<ToolDispatchResult>;
|
|
3
3
|
export declare const handleMarkOperation: (args: unknown) => Promise<ToolDispatchResult>;
|
|
4
4
|
export declare const handleInfoOperation: (args: unknown) => Promise<ToolDispatchResult>;
|
|
5
|
+
export declare const handleHistoryOperation: (args: unknown) => Promise<ToolDispatchResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{wrapLocalHandler}from'../shared.js';import{withFaucetRetry}from'../retry.js';import{strictParse}from'../../schema/index.js';import{AccountOperationSchema,LocalMarkOperationSchema,LocalInfoOperationSchema}from'../../schema/index.js';import{account_operation,local_mark_operation,local_info_operation,GasTokenType}from'@wowok/wowok';import{parseAmount,generateFundConfirmation,generateSkillsHint}from'../../knowledge/fund-layer.js';import{buildDataSemantic}from'../../schema/call/semantic.js';function deriveOpType(a,b){for(const c of Object['keys'](b)){if(b[c]!==undefined)return a+'_'+String(c);}return a+'_unknown';}function accountError(a,b){return{'content':[{'type':'text','text':'Error:\x20'+a}],'structuredContent':{'result':{'status':'error','error':a},'semantic':buildDataSemantic(undefined,b,!![],a)}};}function buildAccountContext(a){return{'operation_type':deriveOpType('account',a),'data':a};}async function fundProcessTransfer(a){const b=a['token_type']??GasTokenType;try{const c=await parseAmount(a['amount'],b,a['network']);return{'parsed':c};}catch(d){return{'error':d instanceof Error?d['message']:String(d)};}}export const handleAccountOperation=async a=>{let b;try{b=strictParse(AccountOperationSchema,a,'account_operation\x20input');}catch(d){return accountError('Parameter\x20validation\x20failed:\x20'+(d?.['message']??String(d)));}const c=buildAccountContext(b);if(b['transfer']!==undefined){const f=b['transfer'],{parsed:g,error:h}=await fundProcessTransfer(f);if(h||!g)return accountError(h??'Amount\x20parsing\x20failed',c);if(f['confirmed']!==!![]){const
|
|
1
|
+
import{wrapLocalHandler}from'../shared.js';import{withFaucetRetry}from'../retry.js';import{strictParse}from'../../schema/index.js';import{AccountOperationSchema,LocalMarkOperationSchema,LocalInfoOperationSchema,LocalHistoryOperationSchema}from'../../schema/index.js';import{account_operation,local_mark_operation,local_info_operation,local_history_operation,GasTokenType,isFundApprovalExempt}from'@wowok/wowok';import{parseAmount,generateFundConfirmation,generateSkillsHint}from'../../knowledge/fund-layer.js';import{buildDataSemantic}from'../../schema/call/semantic.js';function deriveOpType(a,b){for(const c of Object['keys'](b)){if(b[c]!==undefined)return a+'_'+String(c);}return a+'_unknown';}function accountError(a,b){return{'content':[{'type':'text','text':'Error:\x20'+a}],'structuredContent':{'result':{'status':'error','error':a},'semantic':buildDataSemantic(undefined,b,!![],a)}};}function buildAccountContext(a){return{'operation_type':deriveOpType('account',a),'data':a};}async function fundProcessTransfer(a){const b=a['token_type']??GasTokenType;try{const c=await parseAmount(a['amount'],b,a['network']);return{'parsed':c};}catch(d){return{'error':d instanceof Error?d['message']:String(d)};}}export const handleAccountOperation=async a=>{let b;try{b=strictParse(AccountOperationSchema,a,'account_operation\x20input');}catch(d){return accountError('Parameter\x20validation\x20failed:\x20'+(d?.['message']??String(d)));}const c=buildAccountContext(b);if(b['transfer']!==undefined){const f=b['transfer'],{parsed:g,error:h}=await fundProcessTransfer(f);if(h||!g)return accountError(h??'Amount\x20parsing\x20failed',c);const i=isFundApprovalExempt(f['network'],f['token_type']??GasTokenType,g['smallestUnit']['toString']());if(!i&&f['confirmed']!==!![]){const k=generateFundConfirmation([{'path':'transfer.amount','displayAmount':g['displayAmount'],'tokenType':g['tokenType'],'tokenSymbol':g['tokenSymbol'],'decimals':g['decimals'],'smallestUnit':g['smallestUnit']['toString'](),'verified':g['verified'],'source':g['source'],'converted':g['converted'],'context':'Account\x20token\x20transfer'}],[]),l=generateSkillsHint(k),m=[k['message'],'','Recipient:\x20'+(f['name_or_address_to']??'(default\x20account)'),'Sender:\x20'+(f['name_or_address_from']??'(default\x20account)'),l??'','The\x20transfer\x20was\x20NOT\x20executed.\x20If\x20the\x20user\x20consents,\x20re-call\x20with\x20the\x20SAME\x20parameters\x20plus\x20transfer.confirmed=true.']['filter'](n=>n!=='')['join']('\x0a');return{'content':[{'type':'text','text':m}],'structuredContent':{'result':{'status':'pending_confirmation','operation':'account_transfer','message':m,'rule_id':'account_transfer_fund_movement'},'semantic':{...buildDataSemantic(undefined,c,!![],'pending\x20user\x20confirmation'),'summary':'Token\x20transfer\x20blocked\x20pending\x20user\x20confirmation.\x20Re-call\x20with\x20transfer.confirmed=true\x20to\x20proceed.'}}};}const j={...b,'transfer':{...f,'amount':g['smallestUnit']['toString']()}};delete j['transfer']['confirmed'];try{const n=await withFaucetRetry(account_operation)(j);return{'content':[{'type':'text','text':JSON['stringify'](n)}],'structuredContent':{'result':{'status':'success','data':n},'semantic':buildDataSemantic(n,c)}};}catch(o){const p=o instanceof Error?o['message']:String(o);return accountError(p,c);}}try{const q=await withFaucetRetry(account_operation)(b);return{'content':[{'type':'text','text':JSON['stringify'](q)}],'structuredContent':{'result':{'status':'success','data':q},'semantic':buildDataSemantic(q,c)}};}catch(r){const s=r instanceof Error?r['message']:String(r);return accountError(s,c);}};export const handleMarkOperation=wrapLocalHandler({'schema':LocalMarkOperationSchema,'operationFn':local_mark_operation,'parseLabel':'local_mark_operation\x20input','buildContext':a=>{const b={'operation_type':deriveOpType('mark',a),'data':a},c=a;return c['add']&&Array['isArray'](c['add']['data'])&&c['add']['data']['length']>0x0&&(b['pre_warnings']=['Cross-network\x20consistency\x20(FIX-011):\x20LocalMark\x20names\x20are\x20scoped\x20per\x20network.\x20'+'When\x20creating\x20marks\x20for\x20the\x20same\x20logical\x20object\x20on\x20different\x20networks\x20'+'(e.g.\x20testnet\x20and\x20mainnet),\x20use\x20the\x20SAME\x20name\x20value\x20to\x20keep\x20name-based\x20'+'references\x20portable.\x20Before\x20creating\x20a\x20mark\x20on\x20mainnet,\x20consider\x20querying\x20'+'testnet\x20via\x20query_local\x20with\x20network=\x27testnet\x27\x20to\x20check\x20for\x20an\x20existing\x20'+'same-named\x20mark\x20and\x20replicate\x20it.']),b;}});export const handleInfoOperation=wrapLocalHandler({'schema':LocalInfoOperationSchema,'operationFn':local_info_operation,'parseLabel':'local_info_operation\x20input','buildContext':a=>({'operation_type':deriveOpType('local_info',a),'data':a})});export const handleHistoryOperation=wrapLocalHandler({'schema':LocalHistoryOperationSchema,'operationFn':local_history_operation,'parseLabel':'local_history_operation\x20input','buildContext':a=>({'operation_type':deriveOpType('local_history',a),'data':a})});
|