@wowok/agent-mcp 3.3.3 → 3.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composition/compile.d.ts +4 -1
- package/dist/composition/compile.js +1 -1
- package/dist/evaluation/node-game.d.ts +3 -0
- package/dist/evaluation/node-game.js +1 -1
- package/dist/harness/recover.js +1 -1
- package/dist/knowledge/builtin-templates.d.ts +1 -1
- package/dist/knowledge/builtin-templates.js +1 -1
- package/dist/knowledge/guard-templates.d.ts +1 -1
- package/dist/knowledge/guard-templates.js +1 -1
- package/dist/knowledge/recipient-constraint.d.ts +9 -0
- package/dist/knowledge/recipient-constraint.js +1 -1
- package/dist/knowledge/scenario-modes.d.ts +1 -0
- package/dist/knowledge/template-loader.d.ts +1 -0
- package/dist/knowledge/template-loader.js +1 -1
- package/dist/knowledge/template-scanner.js +1 -1
- package/dist/participation/node-action-advisor.js +1 -1
- package/dist/playbooks/service-build/service-quote.js +1 -1
- package/dist/playbooks/service-build/service-quote.spec.js +1 -1
- package/dist/schema/call/base.d.ts +25 -0
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +1 -0
- package/dist/schema/call/error-codes.d.ts +1 -1
- package/dist/schema/call/error-codes.js +1 -1
- package/dist/schema/call/handler.js +1 -1
- package/dist/schema/call/order.d.ts +12 -0
- package/dist/schema/call/order.js +1 -1
- package/dist/schema/call/progress.js +1 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/local/index.d.ts +10 -0
- package/dist/schema/operations.d.ts +4 -0
- package/dist/schema/query/bi.d.ts +4 -0
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +147 -0
- package/dist/schema/query/index.js +1 -1
- package/dist/schemas/account_operation.output.json +2 -1
- package/dist/schemas/bridge_operation.output.json +2 -1
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/keeper_operation.output.json +1 -1
- package/dist/schemas/local_cache_operation.output.json +2 -1
- package/dist/schemas/local_history_operation.output.json +2 -1
- package/dist/schemas/local_info_operation.output.json +2 -1
- package/dist/schemas/local_mark_operation.output.json +2 -1
- package/dist/schemas/messenger_operation.output.json +1 -1
- package/dist/schemas/monitor_events.output.json +1 -1
- package/dist/schemas/monitor_subscription.output.json +1 -1
- package/dist/schemas/onchain_events.output.json +1 -1
- package/dist/schemas/onchain_operations.output.json +35 -4
- package/dist/schemas/onchain_operations.schema.json +21 -3
- package/dist/schemas/onchain_operations_order.schema.json +19 -1
- package/dist/schemas/onchain_operations_progress.schema.json +2 -2
- package/dist/schemas/onchain_table_data.output.json +2 -2
- package/dist/schemas/query_toolkit.output.json +17 -1
- package/dist/schemas/query_toolkit.schema.json +1 -1
- package/dist/schemas/wowok_buildin_info.output.json +259 -0
- package/dist/schemas/wowok_buildin_info.schema.json +121 -0
- package/dist/tools/build-fingerprint.d.ts +28 -0
- package/dist/tools/build-fingerprint.js +1 -0
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/onchain.d.ts +6 -0
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/review-chain.d.ts +9 -13
- package/dist/tools/handlers/review-chain.js +1 -1
- package/dist/tools/upgrade-check.d.ts +1 -0
- package/dist/tools/upgrade-check.js +1 -1
- package/package.json +2 -2
|
@@ -2206,6 +2206,265 @@
|
|
|
2206
2206
|
"result"
|
|
2207
2207
|
],
|
|
2208
2208
|
"additionalProperties": false
|
|
2209
|
+
},
|
|
2210
|
+
{
|
|
2211
|
+
"type": "object",
|
|
2212
|
+
"properties": {
|
|
2213
|
+
"info": {
|
|
2214
|
+
"type": "string",
|
|
2215
|
+
"const": "build_fingerprint"
|
|
2216
|
+
},
|
|
2217
|
+
"result": {
|
|
2218
|
+
"anyOf": [
|
|
2219
|
+
{
|
|
2220
|
+
"type": "object",
|
|
2221
|
+
"properties": {
|
|
2222
|
+
"fingerprint": {
|
|
2223
|
+
"type": "object",
|
|
2224
|
+
"properties": {
|
|
2225
|
+
"builtin_templates_version": {
|
|
2226
|
+
"type": "number",
|
|
2227
|
+
"description": "Builtin industry template catalog version compiled into this build — the primary identity key"
|
|
2228
|
+
},
|
|
2229
|
+
"git": {
|
|
2230
|
+
"type": "object",
|
|
2231
|
+
"properties": {
|
|
2232
|
+
"describe": {
|
|
2233
|
+
"anyOf": [
|
|
2234
|
+
{
|
|
2235
|
+
"type": "string"
|
|
2236
|
+
},
|
|
2237
|
+
{
|
|
2238
|
+
"type": "null"
|
|
2239
|
+
}
|
|
2240
|
+
],
|
|
2241
|
+
"description": "git describe --tags --always --dirty of the workspace the build was produced from (null outside a repo / no git)"
|
|
2242
|
+
},
|
|
2243
|
+
"branch": {
|
|
2244
|
+
"anyOf": [
|
|
2245
|
+
{
|
|
2246
|
+
"type": "string"
|
|
2247
|
+
},
|
|
2248
|
+
{
|
|
2249
|
+
"type": "null"
|
|
2250
|
+
}
|
|
2251
|
+
],
|
|
2252
|
+
"description": "Short branch name (null when detached/absent)"
|
|
2253
|
+
},
|
|
2254
|
+
"dirty": {
|
|
2255
|
+
"anyOf": [
|
|
2256
|
+
{
|
|
2257
|
+
"type": "boolean"
|
|
2258
|
+
},
|
|
2259
|
+
{
|
|
2260
|
+
"type": "null"
|
|
2261
|
+
}
|
|
2262
|
+
],
|
|
2263
|
+
"description": "Uncommitted changes present (null = undeterminable)"
|
|
2264
|
+
}
|
|
2265
|
+
},
|
|
2266
|
+
"required": [
|
|
2267
|
+
"describe",
|
|
2268
|
+
"branch",
|
|
2269
|
+
"dirty"
|
|
2270
|
+
],
|
|
2271
|
+
"additionalProperties": false,
|
|
2272
|
+
"description": "Git identity of the build workspace (best-effort, never throws)"
|
|
2273
|
+
},
|
|
2274
|
+
"mcp_dist_stale": {
|
|
2275
|
+
"anyOf": [
|
|
2276
|
+
{
|
|
2277
|
+
"type": "object",
|
|
2278
|
+
"properties": {
|
|
2279
|
+
"stale": {
|
|
2280
|
+
"type": "boolean"
|
|
2281
|
+
},
|
|
2282
|
+
"lag_minutes": {
|
|
2283
|
+
"type": "number"
|
|
2284
|
+
}
|
|
2285
|
+
},
|
|
2286
|
+
"required": [
|
|
2287
|
+
"stale",
|
|
2288
|
+
"lag_minutes"
|
|
2289
|
+
],
|
|
2290
|
+
"additionalProperties": false
|
|
2291
|
+
},
|
|
2292
|
+
{
|
|
2293
|
+
"type": "null"
|
|
2294
|
+
}
|
|
2295
|
+
],
|
|
2296
|
+
"description": "MCP workspace src newer than its dist (null = installed build, no src tree); runtime STATE, not identity — a rebuild between capture and compare is expected and never a skew"
|
|
2297
|
+
},
|
|
2298
|
+
"sdk_dist_stale": {
|
|
2299
|
+
"anyOf": [
|
|
2300
|
+
{
|
|
2301
|
+
"type": "object",
|
|
2302
|
+
"properties": {
|
|
2303
|
+
"stale": {
|
|
2304
|
+
"type": "boolean"
|
|
2305
|
+
},
|
|
2306
|
+
"lag_minutes": {
|
|
2307
|
+
"type": "number"
|
|
2308
|
+
}
|
|
2309
|
+
},
|
|
2310
|
+
"required": [
|
|
2311
|
+
"stale",
|
|
2312
|
+
"lag_minutes"
|
|
2313
|
+
],
|
|
2314
|
+
"additionalProperties": false
|
|
2315
|
+
},
|
|
2316
|
+
{
|
|
2317
|
+
"type": "null"
|
|
2318
|
+
}
|
|
2319
|
+
],
|
|
2320
|
+
"description": "SDK workspace src newer than its dist, same semantics (null = installed build)"
|
|
2321
|
+
},
|
|
2322
|
+
"captured_at": {
|
|
2323
|
+
"type": "string",
|
|
2324
|
+
"description": "ISO timestamp of the capture"
|
|
2325
|
+
}
|
|
2326
|
+
},
|
|
2327
|
+
"required": [
|
|
2328
|
+
"builtin_templates_version",
|
|
2329
|
+
"git",
|
|
2330
|
+
"mcp_dist_stale",
|
|
2331
|
+
"sdk_dist_stale",
|
|
2332
|
+
"captured_at"
|
|
2333
|
+
],
|
|
2334
|
+
"additionalProperties": false,
|
|
2335
|
+
"description": "Current build identity — record verbatim in the test-report header"
|
|
2336
|
+
},
|
|
2337
|
+
"chain_stamp": {
|
|
2338
|
+
"type": "object",
|
|
2339
|
+
"properties": {
|
|
2340
|
+
"network": {
|
|
2341
|
+
"anyOf": [
|
|
2342
|
+
{
|
|
2343
|
+
"type": "string"
|
|
2344
|
+
},
|
|
2345
|
+
{
|
|
2346
|
+
"type": "null"
|
|
2347
|
+
}
|
|
2348
|
+
]
|
|
2349
|
+
},
|
|
2350
|
+
"protocol_version": {
|
|
2351
|
+
"anyOf": [
|
|
2352
|
+
{
|
|
2353
|
+
"type": "string"
|
|
2354
|
+
},
|
|
2355
|
+
{
|
|
2356
|
+
"type": "null"
|
|
2357
|
+
}
|
|
2358
|
+
],
|
|
2359
|
+
"description": "Chain protocol version observed on the current network (null when the chain was unreachable)"
|
|
2360
|
+
},
|
|
2361
|
+
"system_state_version": {
|
|
2362
|
+
"anyOf": [
|
|
2363
|
+
{
|
|
2364
|
+
"type": "string"
|
|
2365
|
+
},
|
|
2366
|
+
{
|
|
2367
|
+
"type": "null"
|
|
2368
|
+
}
|
|
2369
|
+
],
|
|
2370
|
+
"description": "System state data-structure version observed (null when unreachable)"
|
|
2371
|
+
},
|
|
2372
|
+
"epoch": {
|
|
2373
|
+
"anyOf": [
|
|
2374
|
+
{
|
|
2375
|
+
"type": "string"
|
|
2376
|
+
},
|
|
2377
|
+
{
|
|
2378
|
+
"type": "null"
|
|
2379
|
+
}
|
|
2380
|
+
],
|
|
2381
|
+
"description": "Current epoch observed (null when unreachable)"
|
|
2382
|
+
},
|
|
2383
|
+
"fetched": {
|
|
2384
|
+
"type": "boolean",
|
|
2385
|
+
"description": "false when the chain was unreachable — the null fields then carry no meaning and must not be quoted"
|
|
2386
|
+
},
|
|
2387
|
+
"fetched_at": {
|
|
2388
|
+
"anyOf": [
|
|
2389
|
+
{
|
|
2390
|
+
"type": "string"
|
|
2391
|
+
},
|
|
2392
|
+
{
|
|
2393
|
+
"type": "null"
|
|
2394
|
+
}
|
|
2395
|
+
]
|
|
2396
|
+
}
|
|
2397
|
+
},
|
|
2398
|
+
"required": [
|
|
2399
|
+
"network",
|
|
2400
|
+
"protocol_version",
|
|
2401
|
+
"system_state_version",
|
|
2402
|
+
"epoch",
|
|
2403
|
+
"fetched",
|
|
2404
|
+
"fetched_at"
|
|
2405
|
+
],
|
|
2406
|
+
"additionalProperties": false,
|
|
2407
|
+
"description": "Chain attribution observed during capture (fetched:false when unreachable) — record alongside the fingerprint"
|
|
2408
|
+
}
|
|
2409
|
+
},
|
|
2410
|
+
"required": [
|
|
2411
|
+
"fingerprint",
|
|
2412
|
+
"chain_stamp"
|
|
2413
|
+
],
|
|
2414
|
+
"additionalProperties": false,
|
|
2415
|
+
"description": "CAPTURE result"
|
|
2416
|
+
},
|
|
2417
|
+
{
|
|
2418
|
+
"type": "object",
|
|
2419
|
+
"properties": {
|
|
2420
|
+
"comparison": {
|
|
2421
|
+
"type": "object",
|
|
2422
|
+
"properties": {
|
|
2423
|
+
"verdict": {
|
|
2424
|
+
"type": "string",
|
|
2425
|
+
"enum": [
|
|
2426
|
+
"current",
|
|
2427
|
+
"stale",
|
|
2428
|
+
"incomparable"
|
|
2429
|
+
],
|
|
2430
|
+
"description": "current: every comparable identity key matches; stale: at least one identity key differs from the current build; incomparable: the report recorded no fingerprint at all"
|
|
2431
|
+
},
|
|
2432
|
+
"downgrades_findings": {
|
|
2433
|
+
"type": "boolean",
|
|
2434
|
+
"description": "true when verdict is stale or incomparable — the report's findings must be marked \"pending retest\" instead of triaged against current code"
|
|
2435
|
+
},
|
|
2436
|
+
"skews": {
|
|
2437
|
+
"type": "array",
|
|
2438
|
+
"items": {
|
|
2439
|
+
"type": "string"
|
|
2440
|
+
},
|
|
2441
|
+
"description": "Human-readable diffs per mismatched identity key (empty when current)"
|
|
2442
|
+
}
|
|
2443
|
+
},
|
|
2444
|
+
"required": [
|
|
2445
|
+
"verdict",
|
|
2446
|
+
"downgrades_findings",
|
|
2447
|
+
"skews"
|
|
2448
|
+
],
|
|
2449
|
+
"additionalProperties": false,
|
|
2450
|
+
"description": "Report-vs-current verdict; downgrades_findings=true marks the report's findings \"pending retest\""
|
|
2451
|
+
}
|
|
2452
|
+
},
|
|
2453
|
+
"required": [
|
|
2454
|
+
"comparison"
|
|
2455
|
+
],
|
|
2456
|
+
"additionalProperties": false,
|
|
2457
|
+
"description": "COMPARE result"
|
|
2458
|
+
}
|
|
2459
|
+
],
|
|
2460
|
+
"description": "Build fingerprint result — capture (fingerprint + chain stamp) or compare (verdict)"
|
|
2461
|
+
}
|
|
2462
|
+
},
|
|
2463
|
+
"required": [
|
|
2464
|
+
"info",
|
|
2465
|
+
"result"
|
|
2466
|
+
],
|
|
2467
|
+
"additionalProperties": false
|
|
2209
2468
|
}
|
|
2210
2469
|
],
|
|
2211
2470
|
"description": "Protocol info result"
|
|
@@ -632,6 +632,127 @@
|
|
|
632
632
|
],
|
|
633
633
|
"additionalProperties": false,
|
|
634
634
|
"description": "Getting-started orientation for a freshly connected agent - what the companion WoWok Skills are, install/doctor/repair commands, best-effort local detection of installed skills, the ~20s cold-start window, and which sub-tools matter for common goals. Call this at conversation start when no skill guidance is loaded."
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"type": "object",
|
|
638
|
+
"properties": {
|
|
639
|
+
"info": {
|
|
640
|
+
"type": "string",
|
|
641
|
+
"const": "build_fingerprint"
|
|
642
|
+
},
|
|
643
|
+
"compare": {
|
|
644
|
+
"type": "object",
|
|
645
|
+
"properties": {
|
|
646
|
+
"builtin_templates_version": {
|
|
647
|
+
"description": "Templates version the report recorded (from its capture)",
|
|
648
|
+
"type": "number"
|
|
649
|
+
},
|
|
650
|
+
"git": {
|
|
651
|
+
"description": "Git state the report recorded",
|
|
652
|
+
"anyOf": [
|
|
653
|
+
{
|
|
654
|
+
"type": "object",
|
|
655
|
+
"properties": {
|
|
656
|
+
"describe": {
|
|
657
|
+
"description": "git describe the report recorded",
|
|
658
|
+
"anyOf": [
|
|
659
|
+
{
|
|
660
|
+
"type": "string"
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"type": "null"
|
|
664
|
+
}
|
|
665
|
+
]
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
"additionalProperties": false
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
"type": "null"
|
|
672
|
+
}
|
|
673
|
+
]
|
|
674
|
+
},
|
|
675
|
+
"chain_stamp": {
|
|
676
|
+
"description": "Chain stamp the report quoted (from upgrade_check)",
|
|
677
|
+
"anyOf": [
|
|
678
|
+
{
|
|
679
|
+
"type": "object",
|
|
680
|
+
"properties": {
|
|
681
|
+
"network": {
|
|
682
|
+
"anyOf": [
|
|
683
|
+
{
|
|
684
|
+
"type": "string"
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"type": "null"
|
|
688
|
+
}
|
|
689
|
+
]
|
|
690
|
+
},
|
|
691
|
+
"protocol_version": {
|
|
692
|
+
"anyOf": [
|
|
693
|
+
{
|
|
694
|
+
"type": "string"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"type": "null"
|
|
698
|
+
}
|
|
699
|
+
],
|
|
700
|
+
"description": "Chain protocol version observed on the current network (null when the chain was unreachable)"
|
|
701
|
+
},
|
|
702
|
+
"system_state_version": {
|
|
703
|
+
"anyOf": [
|
|
704
|
+
{
|
|
705
|
+
"type": "string"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"type": "null"
|
|
709
|
+
}
|
|
710
|
+
],
|
|
711
|
+
"description": "System state data-structure version observed (null when unreachable)"
|
|
712
|
+
},
|
|
713
|
+
"epoch": {
|
|
714
|
+
"anyOf": [
|
|
715
|
+
{
|
|
716
|
+
"type": "string"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"type": "null"
|
|
720
|
+
}
|
|
721
|
+
],
|
|
722
|
+
"description": "Current epoch observed (null when unreachable)"
|
|
723
|
+
},
|
|
724
|
+
"fetched": {
|
|
725
|
+
"type": "boolean",
|
|
726
|
+
"description": "false when the chain was unreachable — the null fields then carry no meaning and must not be quoted"
|
|
727
|
+
},
|
|
728
|
+
"fetched_at": {
|
|
729
|
+
"anyOf": [
|
|
730
|
+
{
|
|
731
|
+
"type": "string"
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"type": "null"
|
|
735
|
+
}
|
|
736
|
+
]
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
"additionalProperties": false
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"type": "null"
|
|
743
|
+
}
|
|
744
|
+
]
|
|
745
|
+
}
|
|
746
|
+
},
|
|
747
|
+
"additionalProperties": false,
|
|
748
|
+
"description": "The fingerprint a test report recorded — supply it to COMPARE that report against the current build"
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
"required": [
|
|
752
|
+
"info"
|
|
753
|
+
],
|
|
754
|
+
"additionalProperties": false,
|
|
755
|
+
"description": "Build fingerprint - CAPTURE (no compare): returns the current build identity (templates version + git state + src/dist staleness + chain stamp) to record verbatim in a test-report header, one call, no LLM. COMPARE (with compare): diffs a report's recorded fingerprint against the current build - verdict stale or incomparable sets downgrades_findings=true, meaning the report's findings must be marked \"pending retest\" instead of triaged against current code (deployment-skew gate, yfd ruling 2026-10-24). Call CAPTURE at the start of a test round and COMPARE before triaging an AI test report."
|
|
635
756
|
}
|
|
636
757
|
]
|
|
637
758
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type WorkspaceStaleness, type ChainStamp } from "./upgrade-check.js";
|
|
2
|
+
export interface GitState {
|
|
3
|
+
describe: string | null;
|
|
4
|
+
branch: string | null;
|
|
5
|
+
dirty: boolean | null;
|
|
6
|
+
}
|
|
7
|
+
export interface BuildFingerprint {
|
|
8
|
+
builtin_templates_version: number;
|
|
9
|
+
git: GitState;
|
|
10
|
+
mcp_dist_stale: WorkspaceStaleness | null;
|
|
11
|
+
sdk_dist_stale: WorkspaceStaleness | null;
|
|
12
|
+
captured_at: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function captureGitState(): GitState;
|
|
15
|
+
export declare function currentBuildFingerprint(): BuildFingerprint;
|
|
16
|
+
export interface FingerprintComparison {
|
|
17
|
+
verdict: "current" | "stale" | "incomparable";
|
|
18
|
+
downgrades_findings: boolean;
|
|
19
|
+
skews: string[];
|
|
20
|
+
}
|
|
21
|
+
export type ReportedFingerprint = {
|
|
22
|
+
builtin_templates_version?: number;
|
|
23
|
+
git?: Partial<GitState> | null;
|
|
24
|
+
chain_stamp?: Pick<ChainStamp, "epoch" | "protocol_version" | "network"> | null;
|
|
25
|
+
};
|
|
26
|
+
export declare function compareReportFingerprint(report: ReportedFingerprint): FingerprintComparison;
|
|
27
|
+
export declare let currentChainEpoch: string | null;
|
|
28
|
+
export declare function setComparisonChainEpoch(epoch: string | null): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{execSync}from'child_process';import{join}from'path';import{fileURLToPath}from'url';import{dirname}from'path';import{BUILTIN_TEMPLATES_VERSION}from'../knowledge/builtin-templates.js';import{computeSrcDistStaleness,findSdkPackageDir}from'./upgrade-check.js';const __dirname=dirname(fileURLToPath(import.meta.url)),GIT_TIMEOUT_MS=0xbb8;function git(a){try{const b=execSync('git\x20'+a,{'timeout':GIT_TIMEOUT_MS,'stdio':['ignore','pipe','ignore']}),c=String(b)['trim']();return c['length']>0x0?c:null;}catch{return null;}}export function captureGitState(){const a=git('describe\x20--tags\x20--always\x20--dirty');if(a==null)return{'describe':null,'branch':null,'dirty':null};const b=a['endsWith']('-dirty')?!![]:git('status\x20--porcelain')!=null?![]:null;return{'describe':a,'branch':git('rev-parse\x20--abbrev-ref\x20HEAD'),'dirty':b};}export function currentBuildFingerprint(){return{'builtin_templates_version':BUILTIN_TEMPLATES_VERSION,'git':captureGitState(),'mcp_dist_stale':computeSrcDistStaleness(join(__dirname,'..','..','src'),join(__dirname,'..','..','dist'),{'srcExt':'.ts','distExt':'.js'}),'sdk_dist_stale':((()=>{const a=findSdkPackageDir();return a?computeSrcDistStaleness(join(a,'src'),join(a,'dist')):null;})()),'captured_at':new Date()['toISOString']()};}export function compareReportFingerprint(a){const b=[],c=currentBuildFingerprint();a['builtin_templates_version']!=null&&a['builtin_templates_version']!==BUILTIN_TEMPLATES_VERSION&&b['push']('templates\x20version:\x20report\x20'+a['builtin_templates_version']+'\x20vs\x20current\x20'+BUILTIN_TEMPLATES_VERSION+(a['builtin_templates_version']<BUILTIN_TEMPLATES_VERSION?'\x20(report\x20ran\x20on\x20an\x20older\x20template\x20set\x20—\x20fixed\x20defects\x20may\x20be\x20re-reported)':'\x20(current\x20code\x20is\x20BEHIND\x20the\x20report\x20—\x20checkout/rebuild\x20drift)'));const d=a['git']?.['describe']??null;d!=null&&d!==c['git']['describe']&&b['push']('git\x20state:\x20report\x20\x27'+d+'\x27\x20vs\x20current\x20\x27'+(c['git']['describe']??'(not\x20a\x20repo)')+'\x27');const e=a['chain_stamp']?.['epoch']??null;if(e!=null&¤tChainEpoch==null){}e!=null&¤tChainEpoch!=null&&e!==currentChainEpoch&&b['push']('chain\x20epoch:\x20report\x20'+e+'\x20vs\x20current\x20'+currentChainEpoch+'\x20(rolling\x20update\x20/\x20re-genesis\x20between\x20capture\x20and\x20review)');const f=a['builtin_templates_version']!=null||d!=null||e!=null;if(!f)return{'verdict':'incomparable','downgrades_findings':!![],'skews':['the\x20report\x20recorded\x20no\x20build\x20fingerprint\x20—\x20per\x20the\x20build_stamp\x20rule\x20it\x20cannot\x20claim\x20to\x20describe\x20the\x20current\x20code']};return{'verdict':b['length']>0x0?'stale':'current','downgrades_findings':b['length']>0x0,'skews':b};}export let currentChainEpoch=null;export function setComparisonChainEpoch(a){currentChainEpoch=a;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{listServices,getServiceInfo,toggle as
|
|
1
|
+
import{listServices,getServiceInfo,toggle as a460a,setEnabled as a460b,reset as a460c}from'../../config/index.js';import{judgmentStatus,setJudgmentOverride,clearJudgmentOverride,clearJudgmentOverrides,patchUserJudgmentDoc,readUserJudgmentDocView}from'../../config/judgment.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,path:e,value:f}=b;let g;switch(c){case'list':g={'action':'list','services':listServices()};break;case'toggle':{if(!d)throw new Error('\x27service\x27\x20param\x20is\x20required\x20for\x20toggle');const h=d,i=getServiceInfo(h);if(!i)throw new Error('Unknown\x20service:\x20'+h+'.\x20Use\x20action=\x27list\x27\x20to\x20see\x20all\x20valid\x20services.');if(h==='confirm_gate'&&i['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 j=a460a(h);g={'action':'toggle','service':h,'enabled':j,'reminder':i['reminder']};break;}case'disable':{if(!d)throw new Error('\x27service\x27\x20param\x20is\x20required\x20for\x20disable');const k=d,l=getServiceInfo(k);if(!l)throw new Error('Unknown\x20service:\x20'+k+'.\x20Use\x20action=\x27list\x27\x20to\x20see\x20all\x20valid\x20services.');if(k==='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.');a460b(k,![]),g={'action':'disable','service':k,'enabled':![],'reminder':l['reminder']};break;}case'enable':{if(!d)throw new Error('\x27service\x27\x20param\x20is\x20required\x20for\x20enable');const m=d,n=getServiceInfo(m);if(!n)throw new Error('Unknown\x20service:\x20'+m+'.\x20Use\x20action=\x27list\x27\x20to\x20see\x20all\x20valid\x20services.');a460b(m,!![]),g={'action':'enable','service':m,'enabled':!![],'reminder':n['reminder']};break;}case'reset':{if(!d)throw new Error('\x27service\x27\x20param\x20is\x20required\x20for\x20reset');const o=d,p=getServiceInfo(o);if(!p)throw new Error('Unknown\x20service:\x20'+o+'.\x20Use\x20action=\x27list\x27\x20to\x20see\x20all\x20valid\x20services.');a460c(o),g={'action':'reset','service':o,'enabled':getServiceInfo(o)?.['enabled'],'reminder':p['reminder'],'reset':!![]};break;}case'info':{if(!d)throw new Error('\x27service\x27\x20param\x20is\x20required\x20for\x20info');const q=d,r=getServiceInfo(q);if(!r)throw new Error('Unknown\x20service:\x20'+q+'.\x20Use\x20action=\x27list\x27\x20to\x20see\x20all\x20valid\x20services.');g={'action':'info',...r};break;}case'judgment_list':g={'action':'judgment_list',...judgmentStatus()};break;case'judgment_set':{if(!e)throw new Error('\x27path\x27\x20param\x20is\x20required\x20for\x20judgment_set\x20(dotted,\x20e.g.\x20\x27evaluation.weights.trust_reviews\x27)');if(!('value'in b))throw new Error('\x27value\x27\x20param\x20is\x20required\x20for\x20judgment_set');const s=setJudgmentOverride(e,f);if(!s['ok'])throw new Error(s['error']);g={'action':'judgment_set','path':e,'value':f,'applied':!![]};break;}case'judgment_reset':{const t=e?clearJudgmentOverride(e)?0x1:0x0:clearJudgmentOverrides();g={'action':'judgment_reset',...e?{'path':e}:{},'cleared':t};break;}case'judgment_doc_read':{g={'action':'judgment_doc_read',...readUserJudgmentDocView()};break;}case'judgment_doc_patch':{if(!b['patch']||typeof b['patch']!=='object'||Array['isArray'](b['patch']))throw new Error('\x27patch\x27\x20param\x20is\x20required\x20for\x20judgment_doc_patch\x20(a\x20partial\x20judgment\x20document\x20object,\x20e.g.\x20{\x22evaluation\x22:\x20{\x22weights\x22:\x20{…}}})');g={'action':'judgment_doc_patch',...patchUserJudgmentDoc(b['patch'])};break;}default:throw new Error('Unknown\x20config_operation\x20action:\x20'+String(c));}return{'content':[{'type':'text','text':JSON['stringify']({'result':g})}],'structuredContent':{'result':g}};}
|
|
@@ -17,6 +17,12 @@ export declare function minCompletionFixedFloor(groups: {
|
|
|
17
17
|
guard: string;
|
|
18
18
|
sum: bigint;
|
|
19
19
|
}[], nodes: ParsedMachineNode[]): bigint | undefined;
|
|
20
|
+
export declare function arbClaimEscrowEmptyDualPayout(inputs: {
|
|
21
|
+
orderAmount?: number;
|
|
22
|
+
escrowBalance?: number;
|
|
23
|
+
poolValue?: number;
|
|
24
|
+
acknowledged: boolean;
|
|
25
|
+
}): "refuse" | "acknowledged" | null;
|
|
20
26
|
export declare function gateOrderNewAmountLegCoverage(data: any, network: unknown): Promise<ToolDispatchResult | null>;
|
|
21
27
|
interface SaleItemOpPreparation {
|
|
22
28
|
op: string;
|