@wowok/agent-mcp 3.0.0 → 3.0.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/dist/communication/evidence.d.ts +6 -0
- package/dist/communication/evidence.js +1 -0
- package/dist/evaluation/acceptance.d.ts +24 -0
- package/dist/evaluation/acceptance.js +1 -0
- package/dist/evaluation/builtins/demand-match.d.ts +3 -2
- package/dist/evaluation/builtins/demand-match.js +1 -1
- package/dist/evaluation/builtins/service-risk.d.ts +2 -1
- package/dist/evaluation/builtins/service-risk.js +1 -1
- package/dist/evaluation/index.d.ts +1 -0
- package/dist/evaluation/index.js +1 -1
- package/dist/evaluation/match-operation.d.ts +14 -0
- package/dist/evaluation/match-operation.js +1 -0
- package/dist/experience/realtime-feedback.js +1 -1
- package/dist/extensions/modes.js +1 -1
- package/dist/goal/GoalClassifier.js +1 -1
- package/dist/goal/GoalEngine.d.ts +8 -0
- package/dist/goal/GoalEngine.js +1 -1
- package/dist/goal/types.d.ts +1 -1
- package/dist/harness/auto-escalation.d.ts +0 -12
- package/dist/harness/auto-escalation.js +1 -1
- package/dist/harness/index.d.ts +1 -14
- package/dist/harness/index.js +1 -1
- package/dist/harness/types.d.ts +0 -38
- package/dist/keeper/KeeperScan.d.ts +39 -0
- package/dist/keeper/KeeperScan.js +1 -0
- package/dist/keeper/KeeperStore.d.ts +43 -0
- package/dist/keeper/KeeperStore.js +1 -0
- package/dist/keeper/detectors.d.ts +23 -0
- package/dist/keeper/detectors.js +1 -0
- package/dist/keeper/keeper.spec.d.ts +1 -0
- package/dist/keeper/keeper.spec.js +1 -0
- package/dist/keeper/types.d.ts +65 -0
- package/dist/keeper/types.js +1 -0
- package/dist/knowledge/demand-risk.js +1 -1
- package/dist/knowledge/event-semantics.d.ts +3 -0
- package/dist/knowledge/event-semantics.js +1 -1
- package/dist/knowledge/event-semantics.spec.d.ts +1 -0
- package/dist/knowledge/event-semantics.spec.js +1 -0
- package/dist/knowledge/evidence-review.d.ts +23 -0
- package/dist/knowledge/evidence-review.js +1 -1
- package/dist/knowledge/examples-scanner-cli.js +1 -1
- package/dist/knowledge/examples-scanner.js +1 -1
- package/dist/knowledge/guard-bytecode-spec.d.ts +82 -0
- package/dist/knowledge/guard-bytecode-spec.js +1 -0
- package/dist/knowledge/guard-design-patterns.d.ts +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/index.d.ts +10 -6
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
- package/dist/knowledge/mcp-schema-audit.js +1 -1
- package/dist/knowledge/scenario-modes.d.ts +1 -1
- package/dist/knowledge/scenario-modes.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +20 -0
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/monitor/MonitorLoop.d.ts +1 -0
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/monitor/ScopeResolver.js +1 -1
- package/dist/monitor/SuggestionBridge.d.ts +1 -1
- package/dist/monitor/SuggestionBridge.js +1 -1
- package/dist/monitor/SuggestionBridge.spec.d.ts +1 -0
- package/dist/monitor/SuggestionBridge.spec.js +1 -0
- package/dist/monitor/types.d.ts +0 -1
- package/dist/monitor/types.js +1 -1
- package/dist/participation/employee-kpi.d.ts +12 -0
- package/dist/participation/employee-kpi.js +1 -1
- package/dist/participation/employee-kpi.spec.d.ts +1 -0
- package/dist/participation/employee-kpi.spec.js +1 -0
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/mode-actions.d.ts +0 -6
- package/dist/playbooks/service-build/mode-actions.js +1 -1
- package/dist/playbooks/service-build/relationship-profile.js +1 -1
- package/dist/relationship/derivation.d.ts +6 -0
- package/dist/relationship/derivation.js +1 -1
- package/dist/relationship/derivation.spec.d.ts +1 -0
- package/dist/relationship/derivation.spec.js +1 -0
- package/dist/role/index.d.ts +2 -2
- package/dist/role/index.js +1 -1
- package/dist/role/model.d.ts +2 -1
- package/dist/role/model.js +1 -1
- package/dist/role/types.d.ts +5 -0
- package/dist/rules.d.ts +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/employee/index.d.ts +61 -1
- package/dist/schema/employee/index.js +1 -1
- package/dist/schema/evaluation/index.d.ts +70 -5
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/index.js +1 -1
- package/dist/schema/industry-pack/index.d.ts +1 -7
- package/dist/schema/industry-pack/modes.d.ts +0 -6
- package/dist/schema/industry-pack/modes.js +1 -1
- package/dist/schema/keeper/index.d.ts +475 -0
- package/dist/schema/keeper/index.js +1 -0
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/messenger/index.d.ts +2 -0
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +6 -0
- package/dist/schema/query/bi.d.ts +99 -0
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/schema-query/index.d.ts +2 -11
- package/dist/schema/schema-query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/utils/skills-recommendation.js +1 -1
- package/dist/schema/watch/index.d.ts +4 -0
- package/dist/schema/watch/index.js +1 -1
- package/dist/schema-query-impl/index.d.ts +33 -14
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/employee_operation.output.json +100 -0
- package/dist/schemas/employee_operation.schema.json +148 -5
- package/dist/schemas/evaluation_operation.output.json +135 -9
- package/dist/schemas/evaluation_operation.schema.json +176 -7
- package/dist/schemas/index.json +7 -1
- package/dist/schemas/industry_pack_operation.output.json +2 -32
- package/dist/schemas/keeper_operation.output.json +1274 -0
- package/dist/schemas/keeper_operation.schema.json +359 -0
- package/dist/schemas/messenger_operation.schema.json +8 -0
- package/dist/schemas/onchain_table_data.output.json +18 -0
- package/dist/schemas/query_toolkit.output.json +245 -0
- package/dist/schemas/query_toolkit.schema.json +18 -0
- package/dist/schemas/schema_query.output.json +1 -64
- package/dist/schemas/schema_query.schema.json +18 -3
- package/dist/schemas/watch_operation.output.json +21 -1
- package/dist/task/playbook.js +1 -1
- package/dist/task/types.d.ts +1 -1
- package/dist/tools/handlers/bridge.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/employee.d.ts +6 -0
- package/dist/tools/handlers/employee.js +1 -1
- package/dist/tools/handlers/employee.spec.d.ts +1 -0
- package/dist/tools/handlers/employee.spec.js +1 -0
- package/dist/tools/handlers/evaluation.js +1 -1
- package/dist/tools/handlers/evaluation.spec.d.ts +1 -0
- package/dist/tools/handlers/evaluation.spec.js +1 -0
- package/dist/tools/handlers/keeper.d.ts +12 -0
- package/dist/tools/handlers/keeper.js +1 -0
- package/dist/tools/handlers/messenger.js +1 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/schema-query.js +1 -1
- package/dist/tools/handlers/watch.js +1 -1
- package/dist/tools/handlers/workflow.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/registry/agent.d.ts +2 -0
- package/dist/tools/registry/agent.js +1 -0
- package/dist/tools/registry/bridge.d.ts +2 -0
- package/dist/tools/registry/bridge.js +1 -0
- package/dist/tools/registry/business.d.ts +2 -0
- package/dist/tools/registry/business.js +1 -0
- package/dist/tools/registry/config.d.ts +2 -0
- package/dist/tools/registry/config.js +1 -0
- package/dist/tools/registry/files.d.ts +2 -0
- package/dist/tools/registry/files.js +1 -0
- package/dist/tools/registry/identity.d.ts +2 -0
- package/dist/tools/registry/identity.js +1 -0
- package/dist/tools/registry/local.d.ts +2 -0
- package/dist/tools/registry/local.js +1 -0
- package/dist/tools/registry/messenger.d.ts +2 -0
- package/dist/tools/registry/messenger.js +1 -0
- package/dist/tools/registry/monitor.d.ts +2 -0
- package/dist/tools/registry/monitor.js +1 -0
- package/dist/tools/registry/onchain.d.ts +2 -0
- package/dist/tools/registry/onchain.js +1 -0
- package/dist/tools/registry/query.d.ts +2 -0
- package/dist/tools/registry/query.js +1 -0
- package/dist/tools/registry/trust.d.ts +2 -0
- package/dist/tools/registry/trust.js +1 -0
- package/dist/tools/shared.js +1 -1
- package/dist/tools/wrap.js +1 -1
- package/package.json +2 -2
- package/dist/examples/arbitration-dispute-create.json +0 -41
- package/dist/examples/arbitration-vote-weighted.json +0 -35
- package/dist/examples/arbitration-voting-guard-add.json +0 -38
- package/dist/examples/demand-present-service.json +0 -33
- package/dist/examples/education-contact-create.json +0 -40
- package/dist/examples/freelance-contact-create.json +0 -40
- package/dist/examples/gen-passport-verify-guard.json +0 -48
- package/dist/examples/guard-template-balance-check.json +0 -59
- package/dist/examples/guard-template-time-lock.json +0 -60
- package/dist/examples/insurance-guard-claim-timelock.json +0 -75
- package/dist/examples/insurance-guard-withdraw-allocation.json +0 -96
- package/dist/examples/insurance-machine-create.json +0 -75
- package/dist/examples/insurance-service-allocators.json +0 -55
- package/dist/examples/machine-multisig-threshold.json +0 -87
- package/dist/examples/machine-publish.json +0 -30
- package/dist/examples/machine-template-7node-rental.json +0 -119
- package/dist/examples/payment-scenario-bound.json +0 -45
- package/dist/examples/rental-ziroom-machine-create.json +0 -148
- package/dist/examples/rental-ziroom-permission-create.json +0 -41
- package/dist/examples/rental-ziroom-service-create.json +0 -36
- package/dist/examples/retail-adv-guard-customer-win-create.json +0 -80
- package/dist/examples/retail-adv-guard-messenger-proof-create.json +0 -65
- package/dist/examples/retail-adv-guard-reward-timeout-create.json +0 -92
- package/dist/examples/retail-adv-reward-guard-add.json +0 -51
- package/dist/examples/retail-myshop-allocation-activate.json +0 -55
- package/dist/examples/retail-myshop-arbitration-create.json +0 -40
- package/dist/examples/retail-myshop-contact-create.json +0 -43
- package/dist/examples/retail-myshop-order-create.json +0 -56
- package/dist/examples/retail-myshop-progress-operate.json +0 -38
- package/dist/examples/retail-myshop-reward-create.json +0 -35
- package/dist/examples/retail-myshop-service-create.json +0 -38
- package/dist/examples/retail-myshop-service-customer-required.json +0 -31
- package/dist/examples/service-discount-issue.json +0 -46
- package/dist/examples/subscription-contact-create.json +0 -40
- package/dist/examples/threebody-guard-create.json +0 -56
- package/dist/examples/threebody-machine-create.json +0 -71
- package/dist/examples/threebody-permission-create.json +0 -38
- package/dist/examples/threebody-service-allocators.json +0 -48
- package/dist/examples/travel-guard-time-lock.json +0 -69
- package/dist/examples/travel-guard-weather-oracle.json +0 -70
- package/dist/examples/travel-machine-create.json +0 -135
- package/dist/examples/travel-repository-create.json +0 -47
- package/dist/examples/travel-service-create.json +0 -34
- package/dist/examples/travel-treasury-create.json +0 -34
- package/dist/examples/treasury-deposit.json +0 -37
- package/dist/examples/treasury-withdraw.json +0 -38
- package/dist/harness/plan.d.ts +0 -33
- package/dist/harness/plan.js +0 -1
- package/dist/knowledge/demand-matching.d.ts +0 -29
- package/dist/knowledge/demand-matching.js +0 -1
- package/dist/knowledge/guard-context.d.ts +0 -56
- package/dist/knowledge/guard-context.js +0 -1
- package/dist/knowledge/guard-migration.d.ts +0 -48
- package/dist/knowledge/guard-migration.js +0 -1
- package/dist/schemas/guard-node-schema.json +0 -1000
- package/dist/task/stage-gate.d.ts +0 -22
- package/dist/task/stage-gate.js +0 -1
|
@@ -3279,6 +3279,9 @@ export declare const WatchQueryOperationsSchema: z.ZodPreprocess<z.ZodDiscrimina
|
|
|
3279
3279
|
testnet: "testnet";
|
|
3280
3280
|
localnet: "localnet";
|
|
3281
3281
|
}>>;
|
|
3282
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3283
|
+
query_type: z.ZodLiteral<"scenario_topology">;
|
|
3284
|
+
chain_id: z.ZodOptional<z.ZodString>;
|
|
3282
3285
|
}, z.core.$strict>, z.ZodObject<{
|
|
3283
3286
|
query_type: z.ZodLiteral<"workspace_lists">;
|
|
3284
3287
|
no_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5124,6 +5127,9 @@ export declare const OnchainTableDataResultSchema: z.ZodObject<{
|
|
|
5124
5127
|
testnet: "testnet";
|
|
5125
5128
|
localnet: "localnet";
|
|
5126
5129
|
}>>;
|
|
5130
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5131
|
+
query_type: z.ZodLiteral<"scenario_topology">;
|
|
5132
|
+
chain_id: z.ZodOptional<z.ZodString>;
|
|
5127
5133
|
}, z.core.$strict>, z.ZodObject<{
|
|
5128
5134
|
query_type: z.ZodLiteral<"workspace_lists">;
|
|
5129
5135
|
no_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -99,6 +99,10 @@ export declare const RelationshipProfileQuerySchema: z.ZodObject<{
|
|
|
99
99
|
localnet: "localnet";
|
|
100
100
|
}>>;
|
|
101
101
|
}, z.core.$strict>;
|
|
102
|
+
export declare const ScenarioTopologyQuerySchema: z.ZodObject<{
|
|
103
|
+
query_type: z.ZodLiteral<"scenario_topology">;
|
|
104
|
+
chain_id: z.ZodOptional<z.ZodString>;
|
|
105
|
+
}, z.core.$strict>;
|
|
102
106
|
export declare const WorkspaceListsQuerySchema: z.ZodObject<{
|
|
103
107
|
query_type: z.ZodLiteral<"workspace_lists">;
|
|
104
108
|
no_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -213,6 +217,9 @@ export declare const BI_QUERY_OPERATIONS: readonly [z.ZodObject<{
|
|
|
213
217
|
testnet: "testnet";
|
|
214
218
|
localnet: "localnet";
|
|
215
219
|
}>>;
|
|
220
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
221
|
+
query_type: z.ZodLiteral<"scenario_topology">;
|
|
222
|
+
chain_id: z.ZodOptional<z.ZodString>;
|
|
216
223
|
}, z.core.$strict>, z.ZodObject<{
|
|
217
224
|
query_type: z.ZodLiteral<"workspace_lists">;
|
|
218
225
|
no_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -551,6 +558,50 @@ export declare const RelationshipProfileResultSchema: z.ZodObject<{
|
|
|
551
558
|
notes: z.ZodArray<z.ZodString>;
|
|
552
559
|
data_gaps: z.ZodArray<z.ZodString>;
|
|
553
560
|
summary: z.ZodString;
|
|
561
|
+
demander_interest: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
562
|
+
demand: z.ZodString;
|
|
563
|
+
fund_flow: z.ZodArray<z.ZodString>;
|
|
564
|
+
responsibility: z.ZodArray<z.ZodString>;
|
|
565
|
+
leverage: z.ZodArray<z.ZodString>;
|
|
566
|
+
stakes: z.ZodArray<z.ZodString>;
|
|
567
|
+
summary: z.ZodString;
|
|
568
|
+
}, z.core.$strip>>>;
|
|
569
|
+
}, z.core.$strict>;
|
|
570
|
+
export declare const ScenarioTopologyResultSchema: z.ZodObject<{
|
|
571
|
+
version: z.ZodString;
|
|
572
|
+
chains: z.ZodArray<z.ZodObject<{
|
|
573
|
+
id: z.ZodString;
|
|
574
|
+
name: z.ZodString;
|
|
575
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
576
|
+
bridge: z.ZodString;
|
|
577
|
+
note: z.ZodOptional<z.ZodString>;
|
|
578
|
+
}, z.core.$strict>>;
|
|
579
|
+
application_capability: z.ZodString;
|
|
580
|
+
objects_touched: z.ZodArray<z.ZodString>;
|
|
581
|
+
}, z.core.$strict>>;
|
|
582
|
+
bridges: z.ZodArray<z.ZodObject<{
|
|
583
|
+
id: z.ZodString;
|
|
584
|
+
name: z.ZodString;
|
|
585
|
+
participants: z.ZodArray<z.ZodObject<{
|
|
586
|
+
object: z.ZodString;
|
|
587
|
+
role: z.ZodString;
|
|
588
|
+
}, z.core.$strict>>;
|
|
589
|
+
bridge_fields: z.ZodArray<z.ZodObject<{
|
|
590
|
+
object: z.ZodString;
|
|
591
|
+
field: z.ZodString;
|
|
592
|
+
meaning: z.ZodString;
|
|
593
|
+
}, z.core.$strict>>;
|
|
594
|
+
move_anchor: z.ZodString;
|
|
595
|
+
scenario: z.ZodObject<{
|
|
596
|
+
from: z.ZodString;
|
|
597
|
+
to: z.ZodString;
|
|
598
|
+
merged: z.ZodString;
|
|
599
|
+
}, z.core.$strict>;
|
|
600
|
+
capability_gained: z.ZodString;
|
|
601
|
+
value_flow: z.ZodOptional<z.ZodString>;
|
|
602
|
+
prerequisites: z.ZodArray<z.ZodString>;
|
|
603
|
+
examples: z.ZodArray<z.ZodString>;
|
|
604
|
+
}, z.core.$strict>>;
|
|
554
605
|
}, z.core.$strict>;
|
|
555
606
|
export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
|
|
556
607
|
query_type: z.ZodLiteral<"service_panorama">;
|
|
@@ -889,6 +940,52 @@ export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
|
|
|
889
940
|
notes: z.ZodArray<z.ZodString>;
|
|
890
941
|
data_gaps: z.ZodArray<z.ZodString>;
|
|
891
942
|
summary: z.ZodString;
|
|
943
|
+
demander_interest: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
944
|
+
demand: z.ZodString;
|
|
945
|
+
fund_flow: z.ZodArray<z.ZodString>;
|
|
946
|
+
responsibility: z.ZodArray<z.ZodString>;
|
|
947
|
+
leverage: z.ZodArray<z.ZodString>;
|
|
948
|
+
stakes: z.ZodArray<z.ZodString>;
|
|
949
|
+
summary: z.ZodString;
|
|
950
|
+
}, z.core.$strip>>>;
|
|
951
|
+
}, z.core.$strict>;
|
|
952
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
953
|
+
query_type: z.ZodLiteral<"scenario_topology">;
|
|
954
|
+
result: z.ZodObject<{
|
|
955
|
+
version: z.ZodString;
|
|
956
|
+
chains: z.ZodArray<z.ZodObject<{
|
|
957
|
+
id: z.ZodString;
|
|
958
|
+
name: z.ZodString;
|
|
959
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
960
|
+
bridge: z.ZodString;
|
|
961
|
+
note: z.ZodOptional<z.ZodString>;
|
|
962
|
+
}, z.core.$strict>>;
|
|
963
|
+
application_capability: z.ZodString;
|
|
964
|
+
objects_touched: z.ZodArray<z.ZodString>;
|
|
965
|
+
}, z.core.$strict>>;
|
|
966
|
+
bridges: z.ZodArray<z.ZodObject<{
|
|
967
|
+
id: z.ZodString;
|
|
968
|
+
name: z.ZodString;
|
|
969
|
+
participants: z.ZodArray<z.ZodObject<{
|
|
970
|
+
object: z.ZodString;
|
|
971
|
+
role: z.ZodString;
|
|
972
|
+
}, z.core.$strict>>;
|
|
973
|
+
bridge_fields: z.ZodArray<z.ZodObject<{
|
|
974
|
+
object: z.ZodString;
|
|
975
|
+
field: z.ZodString;
|
|
976
|
+
meaning: z.ZodString;
|
|
977
|
+
}, z.core.$strict>>;
|
|
978
|
+
move_anchor: z.ZodString;
|
|
979
|
+
scenario: z.ZodObject<{
|
|
980
|
+
from: z.ZodString;
|
|
981
|
+
to: z.ZodString;
|
|
982
|
+
merged: z.ZodString;
|
|
983
|
+
}, z.core.$strict>;
|
|
984
|
+
capability_gained: z.ZodString;
|
|
985
|
+
value_flow: z.ZodOptional<z.ZodString>;
|
|
986
|
+
prerequisites: z.ZodArray<z.ZodString>;
|
|
987
|
+
examples: z.ZodArray<z.ZodString>;
|
|
988
|
+
}, z.core.$strict>>;
|
|
892
989
|
}, z.core.$strict>;
|
|
893
990
|
}, z.core.$strip>, z.ZodObject<{
|
|
894
991
|
query_type: z.ZodLiteral<"workspace_lists">;
|
|
@@ -906,6 +1003,8 @@ export type ReverseMapInput = z.infer<typeof ReverseMapQuerySchema>;
|
|
|
906
1003
|
export type ParticipationRadarInput = z.infer<typeof ParticipationRadarQuerySchema>;
|
|
907
1004
|
export type RelationshipProfileInput = z.infer<typeof RelationshipProfileQuerySchema>;
|
|
908
1005
|
export type RelationshipProfileResult = z.infer<typeof RelationshipProfileResultSchema>;
|
|
1006
|
+
export type ScenarioTopologyInput = z.infer<typeof ScenarioTopologyQuerySchema>;
|
|
1007
|
+
export type ScenarioTopologyResult = z.infer<typeof ScenarioTopologyResultSchema>;
|
|
909
1008
|
export type WorkspaceListsInput = z.infer<typeof WorkspaceListsQuerySchema>;
|
|
910
1009
|
export type AssembleContextResult = z.infer<typeof AssembleContextResultSchema>;
|
|
911
1010
|
export type ReverseMapResult = z.infer<typeof ReverseMapResultSchema>;
|
package/dist/schema/query/bi.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';const ContextNetworkEnum=z['enum'](['testnet','mainnet','localnet'])['describe']('Network\x20for\x20the\x20query.\x20Defaults\x20to\x20\x27testnet\x27\x20if\x20omitted.\x20\x27localnet\x27\x20is\x20for\x20internal\x20test\x20use\x20against\x20a\x20local\x20fullnode.');export const ServicePanoramaQuerySchema=z['object']({'query_type':z['literal']('service_panorama'),'service_address':z['string']()['optional']()['describe']('On-chain\x20Service\x20object\x20address\x20(or\x20LocalMark\x20name).\x20Required\x20when\x20query_type=\x27service_panorama\x27.'),'context_network':ContextNetworkEnum['optional']()})['strict']()['describe']('ONE-CALL\x20full\x20business-intelligence\x20context\x20of\x20an\x20on-chain\x20Service\x20(K3\x2022\x20/\x20Business\x20Service\x20tab):\x20'+'base\x20data\x20+\x20machine\x20workflow\x20graph\x20+\x20buy_guard/permission/allocator\x20guards\x20+\x20related\x20objects\x20+\x20'+'supply\x20chain\x20+\x20trust\x20summary\x20+\x20deterministic\x20BusinessReport\x20+\x20recent\x20orders.\x20Every\x20section\x20degrades\x20'+'gracefully\x20—\x20failures\x20are\x20reported\x20in\x20`data_gaps`.\x20Read-only.');export const MachinePanoramaQuerySchema=z['object']({'query_type':z['literal']('machine_panorama'),'object_address':z['string']()['optional']()['describe']('On-chain\x20object\x20address\x20(0x\x20followed\x20by\x2032-64\x20hex\x20chars).\x20'+'Also\x20accepts\x20a\x20LocalMark\x20NAME\x20(resolved\x20automatically).\x20'+'H-06\x20fix:\x20invalid\x20formats\x20are\x20rejected\x20at\x20the\x20handler\x20level\x20with\x20a\x20descriptive\x20error.'),'context_network':ContextNetworkEnum['optional']()})['strict']()['describe']('ONE-CALL\x20panorama\x20of\x20an\x20on-chain\x20Machine\x20(Business\x20Machine\x20tab;\x20Machine\x20counterpart\x20of\x20service_panorama):\x20'+'head\x20(name/tags/description/published/paused)\x20+\x20the\x20Machine\x27s\x20own\x20fields\x20(permission/um/node_count/'+'consensus\x20repositories)\x20+\x20workflow\x20graph\x20(nodes/edges/forwards)\x20+\x20Progress\x20list\x20from\x20the\x20GLOBAL\x20tx\x20table\x20'+'(0xaaf,\x20Machine\x20address\x20as\x20KEY).\x20Read-only.');export const ObjectPanoramaQuerySchema=z['object']({'query_type':z['literal']('object_panorama'),'object_address':z['string']()['optional']()['describe']('On-chain\x20object\x20address\x20(0x\x20followed\x20by\x2032-64\x20hex\x20chars)\x20for\x20object_panorama.\x20'+'Also\x20accepts\x20a\x20LocalMark\x20NAME\x20(resolved\x20automatically).\x20'+'H-06\x20fix:\x20invalid\x20formats\x20are\x20rejected\x20at\x20the\x20handler\x20level\x20with\x20a\x20descriptive\x20error.'),'context_network':ContextNetworkEnum['optional']()})['strict']()['describe']('ONE-CALL\x20detail-page\x20panorama\x20for\x20Progress\x20/\x20Demand\x20/\x20Order\x20/\x20Arb\x20/\x20Repository\x20objects\x20'+'(client\x20panorama\x20family):\x20discriminated\x20`object_type`\x20+\x20head\x20(name/tags/description)\x20+\x20the\x20object\x27s\x20'+'own\x20typed\x20fields\x20+\x20type-specific\x20extras\x20(Demand\x20presenters\x20from\x20the\x20GLOBAL\x20tx\x20table,\x20Progress\x20'+'session/forwards,\x20Arb\x20votes\x20&\x20propositions,\x20Repository\x20policies).\x20Read-only.');export const ReviewPackQuerySchema=z['object']({'query_type':z['literal']('review_pack'),'object_address':z['string']()['optional']()['describe']('On-chain\x20object\x20address\x20(0x\x20followed\x20by\x2032-64\x20hex\x20chars)\x20for\x20review_pack.\x20'+'Also\x20accepts\x20a\x20LocalMark\x20NAME\x20(resolved\x20automatically).\x20'+'H-06\x20fix:\x20invalid\x20formats\x20are\x20rejected\x20at\x20the\x20handler\x20level\x20with\x20a\x20descriptive\x20error.'),'context_network':ContextNetworkEnum['optional']()})['strict']()['describe']('ONE-CALL\x20typed\x20ReviewPack\x20for\x20the\x20client\x27s\x20generic\x20ReviewPackRenderer\x20(K3\x2024\x20§5.2\x20/\x20G3)\x20—\x20'+'section\x20list\x20+\x20typed\x20field\x20values;\x20the\x20UI-convention\x20defaults\x20live\x20in\x20the\x20renderer,\x20the\x20section\x20'+'composition\x20lives\x20in\x20the\x20MCP\x20assembler.\x20Runs\x20the\x20matching\x20panorama\x20(one\x20chain-query\x20pass)\x20and\x20'+'reshapes\x20it.\x20Supported\x20types:\x20Order,\x20Service,\x20Arb,\x20Demand,\x20Repository,\x20Progress,\x20Machine.\x20Read-only.');export const AssembleContextQuerySchema=z['object']({'query_type':z['literal']('assemble_context'),'context_objects':z['array'](z['string']())['optional']()['describe']('Object\x20IDs\x20(0x...)\x20or\x20LocalMark\x20names\x20to\x20assemble\x20context\x20for.\x20Required\x20when\x20query_type=\x27assemble_context\x27.\x20The\x20current\x20on-chain\x20state\x20of\x20each\x20object\x20will\x20be\x20queried\x20and\x20enriched\x20with\x20semantic\x20annotations.'),'include_events':z['boolean']()['optional']()['describe']('When\x20true,\x20assemble_context\x20also\x20queries\x20recent\x20state-transition\x20events\x20(NewOrderEvent,\x20ProgressEvent,\x20ArbEvent,\x20etc.).\x20Events\x20are\x20the\x20real-time\x20transition\x20log\x20—\x20convergent\x20and\x20bounded.\x20Defaults\x20to\x20false.\x20Note:\x20object-embedded\x20history\x20(ProgressSession.forwards,\x20Order.disputes)\x20is\x20ALWAYS\x20extracted\x20automatically\x20—\x20no\x20flag\x20needed.'),'context_network':ContextNetworkEnum['optional'](),'context_depth':z['number']()['int']()['min'](0x0)['max'](0x5)['optional']()['describe']('BFS\x20recursion\x20depth\x20for\x20dependency\x20expansion\x20in\x20assemble_context\x20(default\x200\x20=\x20no\x20expansion).\x20'+'When\x20>0,\x20the\x20assembly\x20recursively\x20queries\x20objects\x20referenced\x20by\x20the\x20center\x20objects\x20'+'(permission,\x20guard,\x20machine,\x20service,\x20repositories,\x20etc.)\x20up\x20to\x20the\x20given\x20depth,\x20'+'using\x20the\x20same\x20address-field\x20extraction\x20rules\x20as\x20extractAddressFields.\x20'+'Each\x20level\x20issues\x20one\x20batched\x20query_objects\x20call\x20(≤50\x20IDs\x20per\x20batch).\x20'+'Cycles\x20are\x20detected\x20and\x20skipped\x20via\x20a\x20visited\x20set.\x20'+'Discovered\x20dependencies\x20are\x20returned\x20in\x20`dependencies`\x20(edge\x20metadata)\x20and\x20'+'`dependency_objects`\x20(full\x20object\x20states).\x20Recommended:\x201–2\x20for\x20most\x20use\x20cases;\x20'+'3+\x20may\x20pull\x20large\x20subgraphs\x20(use\x20context_include\x20to\x20constrain).'),'context_include':z['array'](z['string']())['optional']()['describe']('Optional\x20filter\x20for\x20dependency\x20expansion\x20edge\x20types.\x20When\x20omitted,\x20ALL\x20outbound\x20'+'references\x20are\x20followed.\x20When\x20provided,\x20only\x20edges\x20whose\x20`field`\x20matches\x20one\x20of\x20the\x20'+'listed\x20names\x20are\x20followed.\x20Recognized\x20field\x20names\x20(from\x20extractAddressFields):\x20'+'\x27permission\x27,\x20\x27machine\x27,\x20\x27service\x27,\x20\x27progress\x27,\x20\x27buy_guard\x27,\x20\x27um\x27,\x20\x27repositories\x27,\x20'+'\x27arbitrations\x27,\x20\x27rewards\x27,\x20\x27consensus_repositories\x27,\x20\x27context_repositories\x27,\x20'+'\x27dispute\x27,\x20\x27allocation\x27,\x20\x27external_deposit_guard\x27,\x20\x27external_withdraw_guard\x27,\x20'+'\x27allocator_guard\x27,\x20\x27for_object\x27,\x20\x27for_guard\x27,\x20\x27payment\x27,\x20\x27voting_guard\x27,\x20\x27usage_guard\x27,\x20'+'\x27guard\x27,\x20\x27write_guard\x27,\x20\x27quote_guard\x27,\x20\x27recipient_entity\x27,\x20\x27order_allocators\x27.\x20'+'Example:\x20[\x27permission\x27,\x27guard\x27]\x20expands\x20only\x20permission/guard\x20dependencies.')})['strict']()['describe']('Semantic\x20context\x20assembly\x20(GLM5\x20§6,\x20Layer\x203):\x20query\x20on-chain\x20object\x20states\x20+\x20extract\x20embedded\x20'+'history\x20+\x20optional\x20events\x20+\x20optional\x20BFS\x20dependency\x20expansion,\x20and\x20assemble\x20a\x20structured\x20context\x20'+'for\x20LLM\x20consumption.\x20Required:\x20context_objects\x20(array\x20of\x20object\x20IDs/names).\x20Read-only.');export const ReverseMapQuerySchema=z['object']({'query_type':z['literal']('reverse_map'),'context_objects':z['array'](z['string']())['optional']()['describe']('Object\x20IDs\x20(0x...)\x20or\x20LocalMark\x20names\x20to\x20feed\x20into\x20the\x20report.\x20Required\x20when\x20query_type=\x27reverse_map\x27\x20'+'(include\x20the\x20Service;\x20add\x20Machine/Allocation\x20for\x20refund-path\x20detection).'),'context_network':ContextNetworkEnum['optional'](),'reverse_order_amount':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20for\x20reverse_map\x20—\x20included\x20in\x20the\x20report\x20summary\x20as\x20the\x20concrete\x20escrow\x20mention.')})['strict']()['describe']('Deterministic\x20L4→L1\x20business\x20report\x20(K3\x2003\x20reverse\x20lane;\x20no\x20LLM):\x20queries\x20the\x20objects,\x20classifies\x20'+'into\x20business\x20semantics,\x20emits\x20merchant\x20profile\x20+\x20user\x20risk\x20assessment\x20+\x20game-theory\x20analysis.\x20'+'Same\x20objects\x20ALWAYS\x20yield\x20the\x20same\x20report.\x20Required:\x20context_objects\x20(include\x20the\x20Service;\x20add\x20'+'Machine/Allocation\x20for\x20refund-path\x20detection).\x20Read-only.');export const ParticipationRadarQuerySchema=z['object']({'query_type':z['literal']('participation_radar'),'radar_account':z['string']()['optional']()['describe']('Account\x20to\x20analyze\x20—\x20address\x20(0x...)\x20or\x20LocalMark\x20name\x20(resolved\x20to\x20an\x20address).\x20'+'Required\x20when\x20query_type=\x27participation_radar\x27.\x20The\x20perspective\x20(customer/operator/observer)\x20'+'is\x20DERIVED\x20from\x20on-chain\x20data\x20(Order.builder\x20+\x20PermissionPerm\x20grants)\x20—\x20never\x20asserted\x20by\x20this\x20field.'),'radar_targets':z['array'](z['object']({'progress':z['string']()['describe']('Progress\x20object\x20address\x20(0x...)\x20or\x20LocalMark\x20name.\x20The\x20Progress\x20carries\x20the\x20current\x20node\x20+\x20bound\x20Machine.'),'order':z['string']()['optional']()['describe']('Order\x20object\x20address\x20or\x20LocalMark\x20name\x20(optional\x20but\x20recommended\x20—\x20enables\x20order-holder\x20detection,\x20'+'service-level\x20compensation/reward\x20claims,\x20and\x20dispute\x20context).')})['strict']())['min'](0x1)['max'](0x14)['optional']()['describe']('In-flight\x20orders\x20to\x20analyze\x20(1-20).\x20Required\x20when\x20query_type=\x27participation_radar\x27.\x20'+'Each\x20target\x20is\x20analyzed\x20independently;\x20results\x20are\x20aggregated\x20into\x20one\x20account\x20dashboard.'),'radar_include_alerts':z['boolean']()['optional']()['describe']('Attach\x20order-monitor\x20alerts\x20(progress\x20stall\x20/\x20compensation\x20fund\x20/\x20review\x20&\x20arbitration\x20windows)\x20'+'to\x20each\x20per-order\x20result.\x20Default\x20true.'),'radar_monitor_thresholds':z['object']({'progress_stall_hours':z['number']()['positive']()['optional']()['describe']('Progress\x20stall\x20alert\x20threshold\x20in\x20HOURS.\x20Default\x200\x20=\x20auto\x20(expected_node_duration\x20×\x202).'),'compensation_drop_ratio':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('Compensation\x20fund\x20drop\x20alert\x20ratio\x20(0-1).\x20Default\x200.3\x20=\x20alert\x20on\x20≥30%\x20drop.'),'compensation_coverage_min':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('Minimum\x20compensation\x20coverage\x20ratio\x20vs\x20order\x20amount\x20(0-1).\x20Default\x201.0\x20=\x20must\x20fully\x20cover.'),'messenger_timeout_hours':z['number']()['positive']()['optional']()['describe']('Messenger\x20no-reply\x20timeout\x20in\x20HOURS.\x20Default\x2024.'),'review_window_closing_days':z['number']()['positive']()['optional']()['describe']('Review\x20window\x20near-closing\x20alert\x20threshold\x20in\x20DAYS.\x20Default\x203.'),'arb_window_closing_days':z['number']()['positive']()['optional']()['describe']('Arbitration\x20window\x20near-closing\x20alert\x20threshold\x20in\x20DAYS.\x20Default\x203.')})['strict']()['optional']()['describe']('Optional\x20per-call\x20overrides\x20for\x20order-monitor\x20alert\x20thresholds\x20(only\x20used\x20when\x20radar_include_alerts\x20is\x20on).\x20'+'All\x20fields\x20optional;\x20omitted\x20fields\x20keep\x20defaults.\x20Units:\x20hours/days\x20as\x20marked\x20per\x20field.'),'context_network':ContextNetworkEnum['optional']()})['strict']()['describe']('In-flight\x20order\x20participation\x20analysis\x20for\x20ONE\x20account\x20(GLM6/94):\x20customer\x20/\x20operator\x20/\x20observer\x20'+'perspective\x20derived\x20from\x20on-chain\x20permission\x20matching\x20(never\x20caller-asserted)\x20—\x20per-order\x20operable\x20'+'forwards\x20(branch\x20choices),\x20waiting_on\x20roles,\x20pending\x20claims\x20(reward/discount/compensation/rating),\x20'+'perspective-specific\x20interest\x20hints,\x20aggregated\x20account\x20dashboard.\x20Read-only.');export const RelationshipProfileQuerySchema=z['object']({'query_type':z['literal']('relationship_profile'),'radar_account':z['string']()['optional']()['describe']('Anchor\x20account\x20to\x20analyze\x20—\x20address\x20(0x...)\x20or\x20LocalMark\x20name.\x20Required\x20when\x20'+'query_type=\x27relationship_profile\x27.\x20ANY\x20distributed\x20account\x20works\x20(not\x20only\x20local\x20accounts):\x20'+'the\x20anchor\x20is\x20just\x20an\x20address;\x20all\x20relationships\x20derive\x20from\x20on-chain\x20power\x20carriers.'),'relation_kinds':z['array'](z['enum'](['employment','process_operation','agency','transaction','supply','arbitration_delegation','dispute_resolution','value_distribution','contact_membership']))['optional']()['describe']('Filter\x20to\x20specific\x20relationship\x20kinds\x20(default:\x20all).\x20employment\x20=\x20merchant\x20×\x20staff\x20'+'(principal-agent);\x20process_operation\x20=\x20machine\x20node\x20operators;\x20agency\x20=\x20order\x20owner\x20×\x20agents;\x20'+'transaction\x20=\x20customer\x20×\x20merchant;\x20supply\x20=\x20demander\x20×\x20presenters;\x20arbitration_delegation\x20=\x20'+'service\x20owner\x20×\x20arbitrators;\x20dispute_resolution\x20=\x20arbitrator\x20×\x20disputants;\x20value_distribution\x20=\x20'+'payer\x20×\x20allocation\x20recipients;\x20contact_membership\x20=\x20communication\x20channel\x20members.'),'context_network':ContextNetworkEnum['optional']()})['strict']()['describe']('Business\x20Relationship\x20Graph\x20(K3/19):\x20derive\x20ONE\x20account\x27s\x20full\x20relationship\x20web\x20from\x20on-chain\x20'+'power\x20carriers\x20(Permission\x20memberships,\x20Machine\x20forwards,\x20Orders,\x20Demand\x20presenters,\x20Allocation\x20'+'sharing,\x20Arbitration\x20bindings,\x20Contact\x20ims).\x20Each\x20edge\x20carries\x20the\x20three\x20dimensions\x20—\x20权属\x20power\x20'+'(what\x20each\x20side\x20CAN\x20do,\x20and\x20where\x20that\x20power\x20lives\x20on-chain),\x20利益\x20interest\x20(gains/exposures,\x20with\x20'+'registry-declared\x20goal\x20tensions\x20like\x20principal-agent\x20divergence),\x20and\x20价值交互\x20value\x20flows\x20(escrow\x20→\x20'+'allocation\x20→\x20payment\x20chains).\x20Read-only;\x20roles\x20are\x20DERIVED\x20from\x20chain\x20data,\x20never\x20asserted.');export const WorkspaceListsQuerySchema=z['object']({'query_type':z['literal']('workspace_lists'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20both\x20the\x20aggregation\x20cache\x20and\x20the\x20SDK\x20chain-read\x20cache.'),'context_network':ContextNetworkEnum['optional'](),'account':z['string']()['optional']()['describe']('Scope\x20the\x20aggregation\x20to\x20ONE\x20account\x20address\x20(the\x20client\x27s\x20current\x20account).\x20'+'Omit\x20to\x20aggregate\x20across\x20ALL\x20local\x20accounts.'),'light':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20for\x20the\x20fast\x20first-paint\x20phase:\x20rows\x20carry\x20address\x20/\x20type\x20/\x20name\x20/\x20time\x20'+'only,\x20skipping\x20the\x20per-object\x20enrichment\x20(dead-object\x20probe,\x20registrar\x20votes,\x20per-family\x20'+'extras).\x20Used\x20for\x20progressive\x20list\x20loading;\x20the\x20client\x20merges\x20the\x20full\x20result\x20afterwards.')})['strict']()['describe']('ONE-CALL\x20workspace\x20object\x20lists\x20for\x20ONE\x20account\x20(client\x20Quick\x20Access\x20workspace\x20buckets)\x20—\x20'+'pass\x20`account`\x20to\x20scope\x20to\x20the\x20current\x20account;\x20omit\x20to\x20aggregate\x20across\x20ALL\x20local\x20accounts:\x20'+'treasuries\x20/\x20repositories\x20/\x20contacts\x20/\x20machines\x20/\x20rewards\x20come\x20from\x20the\x20unified\x20permission\x20reverse\x20'+'chain\x20(account\x20→\x20EntityPermission\x20@0xaad\x20→\x20permission-keyed\x20ObjectLinkerCore\x20@0xaae,\x20the\x20ONE\x20source\x20'+'every\x20permission-bearing\x20object\x20family\x20writes\x20to)\x20plus\x20account-keyed\x20EntityContact\x20memberships\x20'+'(@0xaa9)\x20for\x20contacts;\x20others\x20=\x20account-keyed\x20ObjectLinkerTx\x20(@0xaaf)\x20touches,\x20deduplicated,\x20minus\x20'+'all\x20classified\x20business\x20types.\x20Each\x20item:\x20object\x20address\x20+\x20type\x20+\x20local\x20name\x20+\x20time.\x20Aggregation\x20'+'result\x20is\x20TTL-cached\x20(120s,\x20keyed\x20by\x20network\x20+\x20account).\x20Read-only.');export const AccountMarksQuerySchema=z['object']({'query_type':z['literal']('marks_of_account'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20both\x20the\x20aggregation\x20cache\x20and\x20the\x20SDK\x20chain-read\x20cache.'),'context_network':ContextNetworkEnum['optional'](),'account':z['string']()['optional']()['describe']('Scope\x20to\x20ONE\x20account\x20address\x20(the\x20client\x27s\x20current\x20account).\x20'+'Omit\x20to\x20merge\x20across\x20ALL\x20local\x20accounts.'),'light':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20for\x20the\x20fast\x20first-paint\x20phase:\x20rows\x20carry\x20address\x20/\x20type\x20only\x20(vote_kinds\x20'+'is\x20empty\x20until\x20the\x20full\x20result),\x20skipping\x20the\x20per-target\x20registrar-vote\x20reads\x20+\x20object\x20'+'enrichment.\x20Used\x20for\x20progressive\x20list\x20loading;\x20the\x20client\x20merges\x20the\x20full\x20result\x20afterwards.')})['strict']()['describe']('Like\x20/\x20Favor\x20list\x20for\x20ONE\x20account\x20(client\x20Quick\x20Access\x20\x27Like\x20/\x20Favor\x27\x20tab)\x20—\x20every\x20address\x20'+'(object\x20OR\x20plain\x20user)\x20the\x20account\x20has\x20EVER\x20liked\x20/\x20disliked\x20/\x20favored,\x20deduplicated,\x20with\x20the\x20'+'CURRENT\x20active\x20vote\x20kinds\x20per\x20target.\x20Deterministic\x20source:\x20the\x20voter\x27s\x20own\x20Resource\x20mark\x20table\x20'+'(registrar.move\x20handle_vote\x20→\x20resource::tag_set),\x20cross-read\x20with\x20the\x20target\x27s\x20EntityLinker\x20votes\x20'+'for\x20the\x20\x27marked\x20at\x27\x20clock.\x20Fully-toggled-off\x20targets\x20are\x20dropped.\x20Each\x20row:\x20address\x20+\x20tags\x20'+'(like/dislike/favor)\x20+\x20time\x20+\x20object_type\x20(null\x20=\x20plain\x20user)\x20+\x20local\x20name\x20/\x20description\x20/\x20tags.\x20'+'Aggregation\x20result\x20is\x20TTL-cached\x20(120s,\x20keyed\x20by\x20network\x20+\x20account).\x20Read-only.');export const BI_QUERY_OPERATIONS=[ServicePanoramaQuerySchema,MachinePanoramaQuerySchema,ObjectPanoramaQuerySchema,ReviewPackQuerySchema,AssembleContextQuerySchema,ReverseMapQuerySchema,ParticipationRadarQuerySchema,RelationshipProfileQuerySchema,WorkspaceListsQuerySchema,AccountMarksQuerySchema];export const AssembleContextResultSchema=z['object']({'action':z['literal']('assemble_context'),'objects':z['array'](z['unknown']())['describe']('Current\x20on-chain\x20states\x20of\x20the\x20requested\x20objects\x20(from\x20query_objects).'),'events':z['array'](z['unknown']())['optional']()['describe']('Recent\x20state-transition\x20events\x20(only\x20when\x20include_events=true).\x20'+'Includes\x20NewOrderEvent,\x20ProgressEvent,\x20ArbEvent,\x20etc.'),'embedded_history':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Operation\x20history\x20extracted\x20from\x20object\x20states\x20—\x20NOT\x20from\x20tx\x20queries.\x20'+'Progress\x20objects:\x20session.forwards\x20(who\x20did\x20what,\x20when,\x20accomplished).\x20'+'Order\x20objects:\x20disputes,\x20claimed_by,\x20progress_object.\x20'+'This\x20is\x20the\x20CORRECT\x20history\x20source:\x20convergent,\x20no\x20infinite\x20recursion.'),'dependencies':z['array'](z['object']({'object':z['string']()['describe']('Discovered\x20dependency\x20object\x20ID\x20(0x...).'),'depth':z['number']()['int']()['min'](0x1)['describe']('BFS\x20depth\x20at\x20which\x20this\x20dependency\x20was\x20discovered\x20(1\x20=\x20direct\x20reference\x20from\x20a\x20center\x20object).'),'via_field':z['string']()['describe']('Field\x20name\x20on\x20the\x20parent\x20object\x20that\x20references\x20this\x20dependency\x20(e.g.\x20\x27permission\x27,\x20\x27machine\x27,\x20\x27guard\x27).\x20Matches\x20extractAddressFields\x20output.'),'via_type':z['string']()['describe']('Semantic\x20edge\x20type:\x20\x27bind\x27\x20|\x20\x27validate\x27\x20|\x20\x27consume\x27\x20|\x20\x27trigger\x27\x20|\x20\x27create\x27.'),'parent':z['string']()['describe']('Object\x20ID\x20of\x20the\x20parent\x20that\x20referenced\x20this\x20dependency.')}))['optional']()['describe']('Dependency\x20edges\x20discovered\x20via\x20BFS\x20expansion\x20(only\x20when\x20context_depth\x20>\x200).\x20'+'Each\x20entry\x20describes\x20one\x20outbound\x20reference\x20(parent\x20→\x20child)\x20with\x20the\x20field\x20name\x20'+'and\x20semantic\x20edge\x20type.\x20Use\x20with\x20dependency_objects\x20to\x20get\x20the\x20full\x20states.\x20'+'Cycles\x20are\x20deduplicated\x20—\x20each\x20object\x20ID\x20appears\x20at\x20most\x20once\x20at\x20its\x20shallowest\x20depth.'),'dependency_objects':z['array'](z['unknown']())['optional']()['describe']('Full\x20on-chain\x20states\x20of\x20the\x20discovered\x20dependency\x20objects\x20(only\x20when\x20context_depth\x20>\x200).\x20'+'Order\x20matches\x20`dependencies`\x20when\x20possible;\x20safe\x20to\x20consume\x20as\x20an\x20unordered\x20set.\x20'+'Center\x20objects\x20are\x20NOT\x20repeated\x20here\x20—\x20they\x20live\x20in\x20`objects`.'),'semantic_summary':z['unknown']()['optional']()['describe']('Business\x20semantic\x20annotations\x20generated\x20by\x20buildDataSemantic\x20—\x20'+'maps\x20raw\x20object\x20fields\x20to\x20business-meaningful\x20concepts\x20for\x20LLM\x20consumption.'),'context_digest':z['string']()['describe']('Unique\x20digest\x20for\x20this\x20assembled\x20context\x20(SHA\x20of\x20object\x20IDs\x20+\x20versions\x20+\x20timestamp).\x20'+'Use\x20for\x20caching\x20or\x20to\x20detect\x20state\x20changes\x20between\x20two\x20assembly\x20calls.'),'next_action':z['string']()['describe']('Suggested\x20next\x20action:\x20use\x20onchain_transaction\x20to\x20verify\x20a\x20specific\x20past\x20tx,\x20'+'or\x20proceed\x20with\x20onchain_operations\x20to\x20modify\x20state,\x20or\x20re-call\x20assemble_context\x20'+'after\x20state\x20changes.'),'flywheel_collected':z['object']({'signature_recorded':z['boolean']()['describe']('Whether\x20the\x20experience\x20signature\x20was\x20recorded\x20in\x20the\x20real-time\x20experience\x20layer.'),'proposal_created':z['boolean']()['describe']('Whether\x20an\x20improvement\x20proposal\x20was\x20created\x20for\x20the\x20offline\x20distillation\x20flywheel.'),'proposal_id':z['string']()['optional']()['describe']('The\x20proposal\x20ID,\x20if\x20created.')})['optional']()['describe']('Distillation\x20flywheel\x20collection\x20result.\x20Non-blocking\x20—\x20may\x20be\x20undefined\x20if\x20collection\x20fails.\x20'+'When\x20present,\x20the\x20assembled\x20context\x20has\x20been\x20fed\x20back\x20into\x20the\x20experience\x20layer\x20and/or\x20improvement\x20queue.')})['strict']();export const ReverseMapResultSchema=z['object']({'action':z['literal']('reverse_map'),'objects_queried':z['number']()['int']()['min'](0x0)['describe']('How\x20many\x20on-chain\x20objects\x20were\x20queried\x20and\x20fed\x20into\x20the\x20report.'),'report':z['object']({'summary':z['string']()['describe']('One-paragraph\x20deterministic\x20business\x20summary.'),'merchantProfile':z['object']({'serviceDescription':z['string'](),'workflowDescription':z['string'](),'refundPolicy':z['string'](),'arbitrationPolicy':z['string']()})['strict'](),'userRiskAssessment':z['object']({'riskLevel':z['enum'](['low','medium','high','critical']),'keyRisks':z['array'](z['string']()),'protections':z['array'](z['string']()),'missingProtections':z['array'](z['string']())})['strict'](),'gameTheoryAnalysis':z['object']({'merchantIncentives':z['array'](z['string']()),'userIncentives':z['array'](z['string']()),'potentialConflicts':z['array'](z['string']()),'wowAlignments':z['array'](z['string']())})['strict']()})['strict']()['describe']('Deterministic\x20BusinessReport\x20—\x20same\x20objects\x20always\x20yield\x20the\x20same\x20report\x20(no\x20LLM).')})['strict']();const RadarMonitorAlertSchema=z['object']({'id':z['string'](),'category':z['enum'](['progress_stall','compensation_drop','compensation_insufficient','messenger_timeout','user_action_required','review_window','arb_window','refund_received','anomaly']),'severity':z['enum'](['info','warning','critical']),'title':z['string'](),'message':z['string'](),'action':z['string']()['optional']()['describe']('Suggested\x20next\x20step.'),'timestamp':z['number'](),'order_id':z['string']()['optional'](),'service_id':z['string']()['optional'](),'node':z['string']()['optional'](),'metric':z['object']({'label':z['string'](),'value':z['number'](),'threshold':z['number']()['optional'](),'unit':z['string']()['optional']()})['strict']()['optional']()})['strict'](),RadarForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':z['enum'](['order_holder','permission','named_operator','not_available'])['describe']('How\x20this\x20account\x20may\x20execute\x20it\x20(not_available\x20if\x20it\x20can\x27t).'),'permission_index':z['number']()['optional']()['describe']('Permission\x20index\x20required\x20(if\x20permission-gated).'),'named_operator':z['string']()['optional']()['describe']('Named\x20operator\x20(LocalMark\x20name)\x20required\x20(if\x20named-gated).'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'semantics':z['string']()['describe']('Human\x20explanation\x20of\x20what\x20executing\x20this\x20forward\x20means.'),'consequence':z['string']()['optional']()['describe']('Consequence\x20hint\x20(completion\x20fund-release\x20/\x20refund\x20path).'),'weight':z['number']()['optional']()['describe']('Forward\x20weight\x20(accumulates\x20toward\x20the\x20pair\x27s\x20threshold).')})['strict'](),RadarPendingClaimSchema=z['object']({'kind':z['enum'](['reward','discount','compensation','rating']),'label':z['string'](),'how':z['string']()['describe']('How\x20to\x20claim\x20(tool\x20+\x20operation\x20hint).')})['strict'](),InterestAnalysisSchema=z['object']({'fund_flow':z['array'](z['string']())['describe']('Where\x20money\x20sits\x20and\x20what\x20releases\x20it\x20(escrow,\x20Allocation\x20waterfall,\x20compensation_fund,\x20or\x20the\x20role\x27s\x20non-settlement\x20stake).'),'responsibility':z['array'](z['string']())['describe']('What\x20this\x20account\x20is\x20semantically\x20liable\x20for\x20right\x20now\x20(permission-gated\x20forwards,\x20guard\x20obligations).'),'leverage':z['array'](z['string']())['describe']('Actions\x20serving\x20the\x20role\x27s\x20own\x20interest\x20(settlement\x20speed,\x20evidence\x20pre-upload,\x20Messenger\x20nudge,\x20arbitration).\x20Informational\x20only.'),'stakes':z['array'](z['string']())['describe']('Downside\x20exposure\x20(arbitration\x20indemnity,\x20arb-loss\x20record,\x20stall\x20statistics,\x20non-delivery,\x20refund\x20aftermath).'),'summary':z['string']()['describe']('One-paragraph\x20role-interest\x20summary.')})['strict'](),OrderRadarResultSchema=z['object']({'account':z['string'](),'progress':z['string'](),'order':z['string']()['optional'](),'current_node':z['string']()['describe']('Current\x20node\x20name\x20(\x27\x27\x20=\x20entry,\x20not\x20yet\x20started).'),'perspective':z['enum'](['merchant','customer','prospect','supplier','collaborator','arbitrator'])['describe']('Derived\x20commercial\x20role\x20from\x20on-chain\x20data\x20(Order.builder\x20+\x20PermissionPerm\x20grants\x20+\x20named\x20operators),\x20never\x20caller-asserted.'),'collaborator_kind':z['enum'](['permission_entity','named_operator'])['optional']()['describe']('Collaborator\x20sub-kind\x20when\x20perspective\x20===\x20\x27collaborator\x27\x20(internal\x20staff\x20vs\x20external\x20operator).'),'roles':z['array'](z['object']({'label':z['string'](),'can_act_now':z['boolean']()})['strict']())['describe']('All\x20roles\x20this\x20account\x20holds\x20on\x20this\x20order\x27s\x20workflow.'),'operable':z['array'](RadarForwardSchema)['describe']('Forwards\x20THIS\x20account\x20can\x20execute\x20NOW\x20(branch\x20options\x20if\x20>1).'),'branch_choice':z['object']({'message':z['string'](),'options':z['array'](z['object']({'forward':z['string'](),'to_node':z['string'](),'consequence':z['string']()['optional']()})['strict']())})['strict']()['optional']()['describe']('Present\x20when\x20>1\x20operable\x20forward.\x20AI\x20MUST\x20present\x20options\x20neutrally;\x20the\x20role\x20decides.'),'waiting_on':z['array'](z['object']({'role':z['string'](),'forwards':z['array'](z['string']())})['strict']())['describe']('What\x20the\x20workflow\x20is\x20waiting\x20on\x20from\x20OTHER\x20roles.'),'pending_claims':z['array'](RadarPendingClaimSchema)['describe']('Unclaimed\x20benefits\x20/\x20post-purchase\x20actions.'),'interest_hints':z['array'](z['string']())['describe']('Perspective-specific\x20own-interest\x20hints\x20(fund-release\x20trigger,\x20settlement\x20cycle,\x20reputation).'),'workflow_unknown':z['boolean']()['describe']('True\x20when\x20Machine\x20data\x20was\x20unavailable\x20—\x20operable/waiting_on\x20unknown.'),'threshold':z['number']()['int']()['min'](0x1)['optional']()['describe']('Current\x20pair\x27s\x20threshold\x20(accumulated\x20forward\x20weights\x20to\x20advance).'),'interest_analysis':InterestAnalysisSchema['optional']()['describe']('Role-specific\x20interest\x20analysis\x20(fund_flow/responsibility/leverage/stakes)\x20—\x20present\x20when\x20order\x20data\x20is\x20available.\x20'+'merchant\x20→\x20merchant-interest;\x20supplier\x20→\x20supplier-interest;\x20collaborator\x20→\x20collaborator-interest;\x20customer\x20→\x20customer-interest.\x20'+'AI\x20MUST\x20surface\x20it\x20as\x20neutral\x20information;\x20the\x20role\x20decides.'),'summary':z['string']()['describe']('One-paragraph\x20AI-ready\x20summary.'),'attached_alerts':z['array'](RadarMonitorAlertSchema)['optional']()['describe']('Order-monitor\x20alerts\x20(stall/compensation/review-window)\x20when\x20radar_include_alerts=true.')})['strict']();export const ParticipationRadarResultSchema=z['object']({'action':z['literal']('participation_radar'),'account':z['string']()['describe']('Resolved\x20account\x20address.'),'orders_analyzed':z['number'](),'actionable':z['array'](OrderRadarResultSchema)['describe']('Orders\x20where\x20the\x20account\x20can\x20act\x20NOW\x20or\x20has\x20pending\x20claims\x20(customer\x20perspective\x20first).'),'waiting':z['array'](OrderRadarResultSchema)['describe']('Orders\x20where\x20the\x20account\x20is\x20only\x20waiting\x20on\x20other\x20roles.'),'all_pending_claims':z['array'](RadarPendingClaimSchema['extend']({'progress':z['string']()}))['describe']('All\x20pending\x20claims\x20across\x20orders,\x20tagged\x20with\x20their\x20Progress\x20address.'),'unread_messages_total':z['number']()['describe']('Unread\x20Messenger\x20messages\x20total\x20across\x20all\x20conversations\x20of\x20the\x20radar\x20account\x20(local\x20encrypted\x20storage,\x20read-only\x20—\x20never\x20marks\x20messages\x20viewed;\x200\x20with\x20a\x20data_gaps\x20note\x20when\x20the\x20account\x20is\x20not\x20a\x20local\x20messenger\x20account).'),'data_gaps':z['array'](z['string']())['describe']('Graceful\x20degradation\x20notes\x20(e.g.\x20\x27Order\x200x…\x20not\x20found\x27,\x20\x27Machine\x20nodes\x20unavailable\x27).'),'summary':z['string']()['describe']('Account-level\x20dashboard\x20summary.')})['strict']();export const RelationshipProfileResultSchema=z['object']({'action':z['literal']('relationship_profile'),'account':z['string']()['describe']('Resolved\x20anchor\x20account\x20address\x20(any\x20distributed\x20account,\x20not\x20only\x20local).'),'edges':z['array'](z['object']({'anchor':z['string'](),'counterparty':z['string']()['describe']('The\x20other\x20side\x20of\x20this\x20relationship\x20edge.'),'kind':z['string']()['describe']('Relationship\x20kind:\x20employment\x20(merchant×staff,\x20principal-agent)\x20|\x20process_operation\x20(machine\x20node\x20'+'operators)\x20|\x20agency\x20(order\x20owner×agents)\x20|\x20transaction\x20(customer×merchant)\x20|\x20supply\x20'+'(demander×presenters)\x20|\x20arbitration_delegation\x20|\x20dispute_resolution\x20|\x20value_distribution\x20'+'(payer×allocation\x20recipients)\x20|\x20contact_membership.'),'power':z['object']({'role_bits':z['number']()['describe']('Permission\x20role\x20bits:\x201=owner,\x202=admin,\x204=entity.'),'perm_indices':z['array'](z['number']()),'objects':z['array'](z['object']({'object_type':z['string'](),'address':z['string'](),'capacity':z['string']()['describe']('The\x20anchor\x27s\x20capacity\x20on\x20this\x20object.')}))['describe']('On-chain\x20objects\x20this\x20relationship\x20spans\x20(power\x20carriers).'),'carrier':z['string']()['describe']('Which\x20carrier\x20produced\x20the\x20edge\x20(permission/machine_forward/order/...).')}),'interest':z['object']({'gains':z['array'](z['string']()),'exposures':z['array'](z['string']())}),'value_flows':z['array'](z['object']({'from':z['string'](),'to':z['string'](),'carrier_object':z['string'](),'carrier_type':z['string'](),'amount':z['string']()['optional'](),'trigger':z['string']()}))['describe']('Value\x20flows\x20crossing\x20this\x20edge\x20(escrow/allocation/payment/reward/indemnity).'),'tension':z['object']({'anchor_goal':z['string'](),'counterparty_goal':z['string'](),'divergence':z['string'](),'alignment_mechanisms':z['array'](z['string']())})['optional']()['describe']('Registry-declared\x20goal\x20tension\x20(present\x20when\x20the\x20two\x20sides\x27\x20goals\x20diverge).')}))['describe']('Relationship\x20edges\x20of\x20the\x20anchor,\x20one\x20per\x20(counterparty,\x20kind).'),'by_counterparty':z['record'](z['string'](),z['array'](z['string']()))['describe']('Counterparty\x20address\x20→\x20kinds\x20present.'),'notes':z['array'](z['string']())['describe']('Registry\x20notes:\x20goal\x20tensions\x20and\x20mechanism\x20summaries\x20for\x20present\x20kinds.'),'data_gaps':z['array'](z['string']())['describe']('Graceful\x20degradation\x20notes\x20(unreadable\x20objects,\x20skipped\x20carriers).'),'summary':z['string']()['describe']('One-paragraph\x20relationship\x20web\x20summary.')})['strict']();export const BI_QUERY_RESULT_MEMBERS=[z['object']({'query_type':z['literal']('service_panorama'),'result':z['unknown']()['describe']('ServicePanorama\x20(base\x20data\x20+\x20workflow\x20graph\x20+\x20guards\x20+\x20supply\x20chain\x20+\x20trust\x20+\x20BusinessReport\x20+\x20recent\x20orders).')}),z['object']({'query_type':z['literal']('machine_panorama'),'result':z['unknown']()['describe']('MachinePanorama\x20(head\x20+\x20fields\x20+\x20workflow\x20graph\x20+\x20Progress\x20list).')}),z['object']({'query_type':z['literal']('object_panorama'),'result':z['unknown']()['describe']('ObjectPanorama\x20(discriminated\x20object_type\x20+\x20head\x20+\x20typed\x20fields\x20+\x20per-type\x20extras).')}),z['object']({'query_type':z['literal']('review_pack'),'result':z['unknown']()['describe']('ReviewPack\x20(section\x20list\x20+\x20typed\x20field\x20values\x20for\x20the\x20ReviewPackRenderer).')}),z['object']({'query_type':z['literal']('assemble_context'),'result':AssembleContextResultSchema}),z['object']({'query_type':z['literal']('reverse_map'),'result':ReverseMapResultSchema}),z['object']({'query_type':z['literal']('participation_radar'),'result':ParticipationRadarResultSchema}),z['object']({'query_type':z['literal']('relationship_profile'),'result':RelationshipProfileResultSchema}),z['object']({'query_type':z['literal']('workspace_lists'),'result':z['unknown']()['describe']('WorkspaceListsResult\x20(treasuries/repositories/contacts/machines/rewards/others\x20item\x20lists\x20+\x20counts).')}),z['object']({'query_type':z['literal']('marks_of_account'),'result':z['unknown']()['describe']('AccountMarksResult\x20(marks\x20rows\x20in\x20the\x20workspace_lists\x20item\x20shape:\x20object\x20+\x20object_type\x20+\x20name\x20+\x20time\x20+\x20description\x20+\x20tags,\x20plus\x20active\x20vote_kinds\x20like/dislike/favor).')})];
|
|
1
|
+
import{z}from'zod';const ContextNetworkEnum=z['enum'](['testnet','mainnet','localnet'])['describe']('Network\x20for\x20the\x20query.\x20Defaults\x20to\x20\x27testnet\x27\x20if\x20omitted.\x20\x27localnet\x27\x20is\x20for\x20internal\x20test\x20use\x20against\x20a\x20local\x20fullnode.');export const ServicePanoramaQuerySchema=z['object']({'query_type':z['literal']('service_panorama'),'service_address':z['string']()['optional']()['describe']('On-chain\x20Service\x20object\x20address\x20(or\x20LocalMark\x20name).\x20Required\x20when\x20query_type=\x27service_panorama\x27.'),'context_network':ContextNetworkEnum['optional']()})['strict']()['describe']('ONE-CALL\x20full\x20business-intelligence\x20context\x20of\x20an\x20on-chain\x20Service\x20(K3\x2022\x20/\x20Business\x20Service\x20tab):\x20'+'base\x20data\x20+\x20machine\x20workflow\x20graph\x20+\x20buy_guard/permission/allocator\x20guards\x20+\x20related\x20objects\x20+\x20'+'supply\x20chain\x20+\x20trust\x20summary\x20+\x20deterministic\x20BusinessReport\x20+\x20recent\x20orders.\x20Every\x20section\x20degrades\x20'+'gracefully\x20—\x20failures\x20are\x20reported\x20in\x20`data_gaps`.\x20Read-only.');export const MachinePanoramaQuerySchema=z['object']({'query_type':z['literal']('machine_panorama'),'object_address':z['string']()['optional']()['describe']('On-chain\x20object\x20address\x20(0x\x20followed\x20by\x2032-64\x20hex\x20chars).\x20'+'Also\x20accepts\x20a\x20LocalMark\x20NAME\x20(resolved\x20automatically).\x20'+'H-06\x20fix:\x20invalid\x20formats\x20are\x20rejected\x20at\x20the\x20handler\x20level\x20with\x20a\x20descriptive\x20error.'),'context_network':ContextNetworkEnum['optional']()})['strict']()['describe']('ONE-CALL\x20panorama\x20of\x20an\x20on-chain\x20Machine\x20(Business\x20Machine\x20tab;\x20Machine\x20counterpart\x20of\x20service_panorama):\x20'+'head\x20(name/tags/description/published/paused)\x20+\x20the\x20Machine\x27s\x20own\x20fields\x20(permission/um/node_count/'+'consensus\x20repositories)\x20+\x20workflow\x20graph\x20(nodes/edges/forwards)\x20+\x20Progress\x20list\x20from\x20the\x20GLOBAL\x20tx\x20table\x20'+'(0xaaf,\x20Machine\x20address\x20as\x20KEY).\x20Read-only.');export const ObjectPanoramaQuerySchema=z['object']({'query_type':z['literal']('object_panorama'),'object_address':z['string']()['optional']()['describe']('On-chain\x20object\x20address\x20(0x\x20followed\x20by\x2032-64\x20hex\x20chars)\x20for\x20object_panorama.\x20'+'Also\x20accepts\x20a\x20LocalMark\x20NAME\x20(resolved\x20automatically).\x20'+'H-06\x20fix:\x20invalid\x20formats\x20are\x20rejected\x20at\x20the\x20handler\x20level\x20with\x20a\x20descriptive\x20error.'),'context_network':ContextNetworkEnum['optional']()})['strict']()['describe']('ONE-CALL\x20detail-page\x20panorama\x20for\x20Progress\x20/\x20Demand\x20/\x20Order\x20/\x20Arb\x20/\x20Repository\x20objects\x20'+'(client\x20panorama\x20family):\x20discriminated\x20`object_type`\x20+\x20head\x20(name/tags/description)\x20+\x20the\x20object\x27s\x20'+'own\x20typed\x20fields\x20+\x20type-specific\x20extras\x20(Demand\x20presenters\x20from\x20the\x20GLOBAL\x20tx\x20table,\x20Progress\x20'+'session/forwards,\x20Arb\x20votes\x20&\x20propositions,\x20Repository\x20policies).\x20Read-only.');export const ReviewPackQuerySchema=z['object']({'query_type':z['literal']('review_pack'),'object_address':z['string']()['optional']()['describe']('On-chain\x20object\x20address\x20(0x\x20followed\x20by\x2032-64\x20hex\x20chars)\x20for\x20review_pack.\x20'+'Also\x20accepts\x20a\x20LocalMark\x20NAME\x20(resolved\x20automatically).\x20'+'H-06\x20fix:\x20invalid\x20formats\x20are\x20rejected\x20at\x20the\x20handler\x20level\x20with\x20a\x20descriptive\x20error.'),'context_network':ContextNetworkEnum['optional']()})['strict']()['describe']('ONE-CALL\x20typed\x20ReviewPack\x20for\x20the\x20client\x27s\x20generic\x20ReviewPackRenderer\x20(K3\x2024\x20§5.2\x20/\x20G3)\x20—\x20'+'section\x20list\x20+\x20typed\x20field\x20values;\x20the\x20UI-convention\x20defaults\x20live\x20in\x20the\x20renderer,\x20the\x20section\x20'+'composition\x20lives\x20in\x20the\x20MCP\x20assembler.\x20Runs\x20the\x20matching\x20panorama\x20(one\x20chain-query\x20pass)\x20and\x20'+'reshapes\x20it.\x20Supported\x20types:\x20Order,\x20Service,\x20Arb,\x20Demand,\x20Repository,\x20Progress,\x20Machine.\x20Read-only.');export const AssembleContextQuerySchema=z['object']({'query_type':z['literal']('assemble_context'),'context_objects':z['array'](z['string']())['optional']()['describe']('Object\x20IDs\x20(0x...)\x20or\x20LocalMark\x20names\x20to\x20assemble\x20context\x20for.\x20Required\x20when\x20query_type=\x27assemble_context\x27.\x20The\x20current\x20on-chain\x20state\x20of\x20each\x20object\x20will\x20be\x20queried\x20and\x20enriched\x20with\x20semantic\x20annotations.'),'include_events':z['boolean']()['optional']()['describe']('When\x20true,\x20assemble_context\x20also\x20queries\x20recent\x20state-transition\x20events\x20(NewOrderEvent,\x20ProgressEvent,\x20ArbEvent,\x20etc.).\x20Events\x20are\x20the\x20real-time\x20transition\x20log\x20—\x20convergent\x20and\x20bounded.\x20Defaults\x20to\x20false.\x20Note:\x20object-embedded\x20history\x20(ProgressSession.forwards,\x20Order.disputes)\x20is\x20ALWAYS\x20extracted\x20automatically\x20—\x20no\x20flag\x20needed.'),'context_network':ContextNetworkEnum['optional'](),'context_depth':z['number']()['int']()['min'](0x0)['max'](0x5)['optional']()['describe']('BFS\x20recursion\x20depth\x20for\x20dependency\x20expansion\x20in\x20assemble_context\x20(default\x200\x20=\x20no\x20expansion).\x20'+'When\x20>0,\x20the\x20assembly\x20recursively\x20queries\x20objects\x20referenced\x20by\x20the\x20center\x20objects\x20'+'(permission,\x20guard,\x20machine,\x20service,\x20repositories,\x20etc.)\x20up\x20to\x20the\x20given\x20depth,\x20'+'using\x20the\x20same\x20address-field\x20extraction\x20rules\x20as\x20extractAddressFields.\x20'+'Each\x20level\x20issues\x20one\x20batched\x20query_objects\x20call\x20(≤50\x20IDs\x20per\x20batch).\x20'+'Cycles\x20are\x20detected\x20and\x20skipped\x20via\x20a\x20visited\x20set.\x20'+'Discovered\x20dependencies\x20are\x20returned\x20in\x20`dependencies`\x20(edge\x20metadata)\x20and\x20'+'`dependency_objects`\x20(full\x20object\x20states).\x20Recommended:\x201–2\x20for\x20most\x20use\x20cases;\x20'+'3+\x20may\x20pull\x20large\x20subgraphs\x20(use\x20context_include\x20to\x20constrain).'),'context_include':z['array'](z['string']())['optional']()['describe']('Optional\x20filter\x20for\x20dependency\x20expansion\x20edge\x20types.\x20When\x20omitted,\x20ALL\x20outbound\x20'+'references\x20are\x20followed.\x20When\x20provided,\x20only\x20edges\x20whose\x20`field`\x20matches\x20one\x20of\x20the\x20'+'listed\x20names\x20are\x20followed.\x20Recognized\x20field\x20names\x20(from\x20extractAddressFields):\x20'+'\x27permission\x27,\x20\x27machine\x27,\x20\x27service\x27,\x20\x27progress\x27,\x20\x27buy_guard\x27,\x20\x27um\x27,\x20\x27repositories\x27,\x20'+'\x27arbitrations\x27,\x20\x27rewards\x27,\x20\x27consensus_repositories\x27,\x20\x27context_repositories\x27,\x20'+'\x27dispute\x27,\x20\x27allocation\x27,\x20\x27external_deposit_guard\x27,\x20\x27external_withdraw_guard\x27,\x20'+'\x27allocator_guard\x27,\x20\x27for_object\x27,\x20\x27for_guard\x27,\x20\x27payment\x27,\x20\x27voting_guard\x27,\x20\x27usage_guard\x27,\x20'+'\x27guard\x27,\x20\x27write_guard\x27,\x20\x27quote_guard\x27,\x20\x27recipient_entity\x27,\x20\x27order_allocators\x27.\x20'+'Example:\x20[\x27permission\x27,\x27guard\x27]\x20expands\x20only\x20permission/guard\x20dependencies.')})['strict']()['describe']('Semantic\x20context\x20assembly\x20(GLM5\x20§6,\x20Layer\x203):\x20query\x20on-chain\x20object\x20states\x20+\x20extract\x20embedded\x20'+'history\x20+\x20optional\x20events\x20+\x20optional\x20BFS\x20dependency\x20expansion,\x20and\x20assemble\x20a\x20structured\x20context\x20'+'for\x20LLM\x20consumption.\x20Required:\x20context_objects\x20(array\x20of\x20object\x20IDs/names).\x20Read-only.');export const ReverseMapQuerySchema=z['object']({'query_type':z['literal']('reverse_map'),'context_objects':z['array'](z['string']())['optional']()['describe']('Object\x20IDs\x20(0x...)\x20or\x20LocalMark\x20names\x20to\x20feed\x20into\x20the\x20report.\x20Required\x20when\x20query_type=\x27reverse_map\x27\x20'+'(include\x20the\x20Service;\x20add\x20Machine/Allocation\x20for\x20refund-path\x20detection).'),'context_network':ContextNetworkEnum['optional'](),'reverse_order_amount':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20for\x20reverse_map\x20—\x20included\x20in\x20the\x20report\x20summary\x20as\x20the\x20concrete\x20escrow\x20mention.')})['strict']()['describe']('Deterministic\x20L4→L1\x20business\x20report\x20(K3\x2003\x20reverse\x20lane;\x20no\x20LLM):\x20queries\x20the\x20objects,\x20classifies\x20'+'into\x20business\x20semantics,\x20emits\x20merchant\x20profile\x20+\x20user\x20risk\x20assessment\x20+\x20game-theory\x20analysis.\x20'+'Same\x20objects\x20ALWAYS\x20yield\x20the\x20same\x20report.\x20Required:\x20context_objects\x20(include\x20the\x20Service;\x20add\x20'+'Machine/Allocation\x20for\x20refund-path\x20detection).\x20Read-only.');export const ParticipationRadarQuerySchema=z['object']({'query_type':z['literal']('participation_radar'),'radar_account':z['string']()['optional']()['describe']('Account\x20to\x20analyze\x20—\x20address\x20(0x...)\x20or\x20LocalMark\x20name\x20(resolved\x20to\x20an\x20address).\x20'+'Required\x20when\x20query_type=\x27participation_radar\x27.\x20The\x20perspective\x20(customer/operator/observer)\x20'+'is\x20DERIVED\x20from\x20on-chain\x20data\x20(Order.builder\x20+\x20PermissionPerm\x20grants)\x20—\x20never\x20asserted\x20by\x20this\x20field.'),'radar_targets':z['array'](z['object']({'progress':z['string']()['describe']('Progress\x20object\x20address\x20(0x...)\x20or\x20LocalMark\x20name.\x20The\x20Progress\x20carries\x20the\x20current\x20node\x20+\x20bound\x20Machine.'),'order':z['string']()['optional']()['describe']('Order\x20object\x20address\x20or\x20LocalMark\x20name\x20(optional\x20but\x20recommended\x20—\x20enables\x20order-holder\x20detection,\x20'+'service-level\x20compensation/reward\x20claims,\x20and\x20dispute\x20context).')})['strict']())['min'](0x1)['max'](0x14)['optional']()['describe']('In-flight\x20orders\x20to\x20analyze\x20(1-20).\x20Required\x20when\x20query_type=\x27participation_radar\x27.\x20'+'Each\x20target\x20is\x20analyzed\x20independently;\x20results\x20are\x20aggregated\x20into\x20one\x20account\x20dashboard.'),'radar_include_alerts':z['boolean']()['optional']()['describe']('Attach\x20order-monitor\x20alerts\x20(progress\x20stall\x20/\x20compensation\x20fund\x20/\x20review\x20&\x20arbitration\x20windows)\x20'+'to\x20each\x20per-order\x20result.\x20Default\x20true.'),'radar_monitor_thresholds':z['object']({'progress_stall_hours':z['number']()['positive']()['optional']()['describe']('Progress\x20stall\x20alert\x20threshold\x20in\x20HOURS.\x20Default\x200\x20=\x20auto\x20(expected_node_duration\x20×\x202).'),'compensation_drop_ratio':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('Compensation\x20fund\x20drop\x20alert\x20ratio\x20(0-1).\x20Default\x200.3\x20=\x20alert\x20on\x20≥30%\x20drop.'),'compensation_coverage_min':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('Minimum\x20compensation\x20coverage\x20ratio\x20vs\x20order\x20amount\x20(0-1).\x20Default\x201.0\x20=\x20must\x20fully\x20cover.'),'messenger_timeout_hours':z['number']()['positive']()['optional']()['describe']('Messenger\x20no-reply\x20timeout\x20in\x20HOURS.\x20Default\x2024.'),'review_window_closing_days':z['number']()['positive']()['optional']()['describe']('Review\x20window\x20near-closing\x20alert\x20threshold\x20in\x20DAYS.\x20Default\x203.'),'arb_window_closing_days':z['number']()['positive']()['optional']()['describe']('Arbitration\x20window\x20near-closing\x20alert\x20threshold\x20in\x20DAYS.\x20Default\x203.')})['strict']()['optional']()['describe']('Optional\x20per-call\x20overrides\x20for\x20order-monitor\x20alert\x20thresholds\x20(only\x20used\x20when\x20radar_include_alerts\x20is\x20on).\x20'+'All\x20fields\x20optional;\x20omitted\x20fields\x20keep\x20defaults.\x20Units:\x20hours/days\x20as\x20marked\x20per\x20field.'),'context_network':ContextNetworkEnum['optional']()})['strict']()['describe']('In-flight\x20order\x20participation\x20analysis\x20for\x20ONE\x20account\x20(GLM6/94):\x20customer\x20/\x20operator\x20/\x20observer\x20'+'perspective\x20derived\x20from\x20on-chain\x20permission\x20matching\x20(never\x20caller-asserted)\x20—\x20per-order\x20operable\x20'+'forwards\x20(branch\x20choices),\x20waiting_on\x20roles,\x20pending\x20claims\x20(reward/discount/compensation/rating),\x20'+'perspective-specific\x20interest\x20hints,\x20aggregated\x20account\x20dashboard.\x20Read-only.');export const RelationshipProfileQuerySchema=z['object']({'query_type':z['literal']('relationship_profile'),'radar_account':z['string']()['optional']()['describe']('Anchor\x20account\x20to\x20analyze\x20—\x20address\x20(0x...)\x20or\x20LocalMark\x20name.\x20Required\x20when\x20'+'query_type=\x27relationship_profile\x27.\x20ANY\x20distributed\x20account\x20works\x20(not\x20only\x20local\x20accounts):\x20'+'the\x20anchor\x20is\x20just\x20an\x20address;\x20all\x20relationships\x20derive\x20from\x20on-chain\x20power\x20carriers.'),'relation_kinds':z['array'](z['enum'](['employment','process_operation','agency','transaction','supply','arbitration_delegation','dispute_resolution','value_distribution','contact_membership']))['optional']()['describe']('Filter\x20to\x20specific\x20relationship\x20kinds\x20(default:\x20all).\x20employment\x20=\x20merchant\x20×\x20staff\x20'+'(principal-agent);\x20process_operation\x20=\x20machine\x20node\x20operators;\x20agency\x20=\x20order\x20owner\x20×\x20agents;\x20'+'transaction\x20=\x20customer\x20×\x20merchant;\x20supply\x20=\x20demander\x20×\x20presenters;\x20arbitration_delegation\x20=\x20'+'service\x20owner\x20×\x20arbitrators;\x20dispute_resolution\x20=\x20arbitrator\x20×\x20disputants;\x20value_distribution\x20=\x20'+'payer\x20×\x20allocation\x20recipients;\x20contact_membership\x20=\x20communication\x20channel\x20members.'),'context_network':ContextNetworkEnum['optional']()})['strict']()['describe']('Business\x20Relationship\x20Graph\x20(K3/19):\x20derive\x20ONE\x20account\x27s\x20full\x20relationship\x20web\x20from\x20on-chain\x20'+'power\x20carriers\x20(Permission\x20memberships,\x20Machine\x20forwards,\x20Orders,\x20Demand\x20presenters,\x20Allocation\x20'+'sharing,\x20Arbitration\x20bindings,\x20Contact\x20ims).\x20Each\x20edge\x20carries\x20the\x20three\x20dimensions\x20—\x20权属\x20power\x20'+'(what\x20each\x20side\x20CAN\x20do,\x20and\x20where\x20that\x20power\x20lives\x20on-chain),\x20利益\x20interest\x20(gains/exposures,\x20with\x20'+'registry-declared\x20goal\x20tensions\x20like\x20principal-agent\x20divergence),\x20and\x20价值交互\x20value\x20flows\x20(escrow\x20→\x20'+'allocation\x20→\x20payment\x20chains).\x20Read-only;\x20roles\x20are\x20DERIVED\x20from\x20chain\x20data,\x20never\x20asserted.');export const ScenarioTopologyQuerySchema=z['object']({'query_type':z['literal']('scenario_topology'),'chain_id':z['string']()['optional']()['describe']('Optional\x20scenario-chain\x20id\x20(chain.standard_ecommerce\x20|\x20chain.procurement_tender\x20|\x20'+'chain.data_subscription\x20|\x20chain.collaborative_operations).\x20When\x20given,\x20only\x20that\x20chain\x20is\x20'+'returned;\x20otherwise\x20ALL\x20scenario\x20chains\x20+\x20bridges\x20are\x20returned.')})['strict']()['describe']('Scenario\x20Topology\x20knowledge\x20(K3\x2003\x20§3.5\x20/\x20Part\x202):\x20the\x20STATIC\x20registry\x20of\x20how\x20WoWok\x20objects\x20'+'INTEGRATE\x20each\x20other.\x20Bridges\x20weld\x20object\x20pairs\x20into\x20a\x20capability\x20that\x20belongs\x20to\x20no\x20single\x20object\x20'+'(e.g.\x20Demand.present(service)\x20grants\x20MATCHMAKING);\x20chains\x20compose\x20bridges\x20into\x20whole\x20applications\x20'+'(e.g.\x20standard\x20e-commerce,\x20procurement\x20tender).\x20Pure\x20knowledge,\x20read-only\x20—\x20no\x20on-chain\x20reads.\x20'+'Use\x20to\x20explain\x20HOW\x20a\x20business\x20scenario\x20is\x20assembled\x20from\x20on-chain\x20objects\x20and\x20why\x20the\x20integration\x20'+'(not\x20the\x20objects\x20themselves)\x20yields\x20the\x20capability.');export const WorkspaceListsQuerySchema=z['object']({'query_type':z['literal']('workspace_lists'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20both\x20the\x20aggregation\x20cache\x20and\x20the\x20SDK\x20chain-read\x20cache.'),'context_network':ContextNetworkEnum['optional'](),'account':z['string']()['optional']()['describe']('Scope\x20the\x20aggregation\x20to\x20ONE\x20account\x20address\x20(the\x20client\x27s\x20current\x20account).\x20'+'Omit\x20to\x20aggregate\x20across\x20ALL\x20local\x20accounts.'),'light':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20for\x20the\x20fast\x20first-paint\x20phase:\x20rows\x20carry\x20address\x20/\x20type\x20/\x20name\x20/\x20time\x20'+'only,\x20skipping\x20the\x20per-object\x20enrichment\x20(dead-object\x20probe,\x20registrar\x20votes,\x20per-family\x20'+'extras).\x20Used\x20for\x20progressive\x20list\x20loading;\x20the\x20client\x20merges\x20the\x20full\x20result\x20afterwards.')})['strict']()['describe']('ONE-CALL\x20workspace\x20object\x20lists\x20for\x20ONE\x20account\x20(client\x20Quick\x20Access\x20workspace\x20buckets)\x20—\x20'+'pass\x20`account`\x20to\x20scope\x20to\x20the\x20current\x20account;\x20omit\x20to\x20aggregate\x20across\x20ALL\x20local\x20accounts:\x20'+'treasuries\x20/\x20repositories\x20/\x20contacts\x20/\x20machines\x20/\x20rewards\x20come\x20from\x20the\x20unified\x20permission\x20reverse\x20'+'chain\x20(account\x20→\x20EntityPermission\x20@0xaad\x20→\x20permission-keyed\x20ObjectLinkerCore\x20@0xaae,\x20the\x20ONE\x20source\x20'+'every\x20permission-bearing\x20object\x20family\x20writes\x20to)\x20plus\x20account-keyed\x20EntityContact\x20memberships\x20'+'(@0xaa9)\x20for\x20contacts;\x20others\x20=\x20account-keyed\x20ObjectLinkerTx\x20(@0xaaf)\x20touches,\x20deduplicated,\x20minus\x20'+'all\x20classified\x20business\x20types.\x20Each\x20item:\x20object\x20address\x20+\x20type\x20+\x20local\x20name\x20+\x20time.\x20Aggregation\x20'+'result\x20is\x20TTL-cached\x20(120s,\x20keyed\x20by\x20network\x20+\x20account).\x20Read-only.');export const AccountMarksQuerySchema=z['object']({'query_type':z['literal']('marks_of_account'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20both\x20the\x20aggregation\x20cache\x20and\x20the\x20SDK\x20chain-read\x20cache.'),'context_network':ContextNetworkEnum['optional'](),'account':z['string']()['optional']()['describe']('Scope\x20to\x20ONE\x20account\x20address\x20(the\x20client\x27s\x20current\x20account).\x20'+'Omit\x20to\x20merge\x20across\x20ALL\x20local\x20accounts.'),'light':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20for\x20the\x20fast\x20first-paint\x20phase:\x20rows\x20carry\x20address\x20/\x20type\x20only\x20(vote_kinds\x20'+'is\x20empty\x20until\x20the\x20full\x20result),\x20skipping\x20the\x20per-target\x20registrar-vote\x20reads\x20+\x20object\x20'+'enrichment.\x20Used\x20for\x20progressive\x20list\x20loading;\x20the\x20client\x20merges\x20the\x20full\x20result\x20afterwards.')})['strict']()['describe']('Like\x20/\x20Favor\x20list\x20for\x20ONE\x20account\x20(client\x20Quick\x20Access\x20\x27Like\x20/\x20Favor\x27\x20tab)\x20—\x20every\x20address\x20'+'(object\x20OR\x20plain\x20user)\x20the\x20account\x20has\x20EVER\x20liked\x20/\x20disliked\x20/\x20favored,\x20deduplicated,\x20with\x20the\x20'+'CURRENT\x20active\x20vote\x20kinds\x20per\x20target.\x20Deterministic\x20source:\x20the\x20voter\x27s\x20own\x20Resource\x20mark\x20table\x20'+'(registrar.move\x20handle_vote\x20→\x20resource::tag_set),\x20cross-read\x20with\x20the\x20target\x27s\x20EntityLinker\x20votes\x20'+'for\x20the\x20\x27marked\x20at\x27\x20clock.\x20Fully-toggled-off\x20targets\x20are\x20dropped.\x20Each\x20row:\x20address\x20+\x20tags\x20'+'(like/dislike/favor)\x20+\x20time\x20+\x20object_type\x20(null\x20=\x20plain\x20user)\x20+\x20local\x20name\x20/\x20description\x20/\x20tags.\x20'+'Aggregation\x20result\x20is\x20TTL-cached\x20(120s,\x20keyed\x20by\x20network\x20+\x20account).\x20Read-only.');export const BI_QUERY_OPERATIONS=[ServicePanoramaQuerySchema,MachinePanoramaQuerySchema,ObjectPanoramaQuerySchema,ReviewPackQuerySchema,AssembleContextQuerySchema,ReverseMapQuerySchema,ParticipationRadarQuerySchema,RelationshipProfileQuerySchema,ScenarioTopologyQuerySchema,WorkspaceListsQuerySchema,AccountMarksQuerySchema];export const AssembleContextResultSchema=z['object']({'action':z['literal']('assemble_context'),'objects':z['array'](z['unknown']())['describe']('Current\x20on-chain\x20states\x20of\x20the\x20requested\x20objects\x20(from\x20query_objects).'),'events':z['array'](z['unknown']())['optional']()['describe']('Recent\x20state-transition\x20events\x20(only\x20when\x20include_events=true).\x20'+'Includes\x20NewOrderEvent,\x20ProgressEvent,\x20ArbEvent,\x20etc.'),'embedded_history':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Operation\x20history\x20extracted\x20from\x20object\x20states\x20—\x20NOT\x20from\x20tx\x20queries.\x20'+'Progress\x20objects:\x20session.forwards\x20(who\x20did\x20what,\x20when,\x20accomplished).\x20'+'Order\x20objects:\x20disputes,\x20claimed_by,\x20progress_object.\x20'+'This\x20is\x20the\x20CORRECT\x20history\x20source:\x20convergent,\x20no\x20infinite\x20recursion.'),'dependencies':z['array'](z['object']({'object':z['string']()['describe']('Discovered\x20dependency\x20object\x20ID\x20(0x...).'),'depth':z['number']()['int']()['min'](0x1)['describe']('BFS\x20depth\x20at\x20which\x20this\x20dependency\x20was\x20discovered\x20(1\x20=\x20direct\x20reference\x20from\x20a\x20center\x20object).'),'via_field':z['string']()['describe']('Field\x20name\x20on\x20the\x20parent\x20object\x20that\x20references\x20this\x20dependency\x20(e.g.\x20\x27permission\x27,\x20\x27machine\x27,\x20\x27guard\x27).\x20Matches\x20extractAddressFields\x20output.'),'via_type':z['string']()['describe']('Semantic\x20edge\x20type:\x20\x27bind\x27\x20|\x20\x27validate\x27\x20|\x20\x27consume\x27\x20|\x20\x27trigger\x27\x20|\x20\x27create\x27.'),'parent':z['string']()['describe']('Object\x20ID\x20of\x20the\x20parent\x20that\x20referenced\x20this\x20dependency.')}))['optional']()['describe']('Dependency\x20edges\x20discovered\x20via\x20BFS\x20expansion\x20(only\x20when\x20context_depth\x20>\x200).\x20'+'Each\x20entry\x20describes\x20one\x20outbound\x20reference\x20(parent\x20→\x20child)\x20with\x20the\x20field\x20name\x20'+'and\x20semantic\x20edge\x20type.\x20Use\x20with\x20dependency_objects\x20to\x20get\x20the\x20full\x20states.\x20'+'Cycles\x20are\x20deduplicated\x20—\x20each\x20object\x20ID\x20appears\x20at\x20most\x20once\x20at\x20its\x20shallowest\x20depth.'),'dependency_objects':z['array'](z['unknown']())['optional']()['describe']('Full\x20on-chain\x20states\x20of\x20the\x20discovered\x20dependency\x20objects\x20(only\x20when\x20context_depth\x20>\x200).\x20'+'Order\x20matches\x20`dependencies`\x20when\x20possible;\x20safe\x20to\x20consume\x20as\x20an\x20unordered\x20set.\x20'+'Center\x20objects\x20are\x20NOT\x20repeated\x20here\x20—\x20they\x20live\x20in\x20`objects`.'),'semantic_summary':z['unknown']()['optional']()['describe']('Business\x20semantic\x20annotations\x20generated\x20by\x20buildDataSemantic\x20—\x20'+'maps\x20raw\x20object\x20fields\x20to\x20business-meaningful\x20concepts\x20for\x20LLM\x20consumption.'),'context_digest':z['string']()['describe']('Unique\x20digest\x20for\x20this\x20assembled\x20context\x20(SHA\x20of\x20object\x20IDs\x20+\x20versions\x20+\x20timestamp).\x20'+'Use\x20for\x20caching\x20or\x20to\x20detect\x20state\x20changes\x20between\x20two\x20assembly\x20calls.'),'next_action':z['string']()['describe']('Suggested\x20next\x20action:\x20use\x20onchain_transaction\x20to\x20verify\x20a\x20specific\x20past\x20tx,\x20'+'or\x20proceed\x20with\x20onchain_operations\x20to\x20modify\x20state,\x20or\x20re-call\x20assemble_context\x20'+'after\x20state\x20changes.'),'flywheel_collected':z['object']({'signature_recorded':z['boolean']()['describe']('Whether\x20the\x20experience\x20signature\x20was\x20recorded\x20in\x20the\x20real-time\x20experience\x20layer.'),'proposal_created':z['boolean']()['describe']('Whether\x20an\x20improvement\x20proposal\x20was\x20created\x20for\x20the\x20offline\x20distillation\x20flywheel.'),'proposal_id':z['string']()['optional']()['describe']('The\x20proposal\x20ID,\x20if\x20created.')})['optional']()['describe']('Distillation\x20flywheel\x20collection\x20result.\x20Non-blocking\x20—\x20may\x20be\x20undefined\x20if\x20collection\x20fails.\x20'+'When\x20present,\x20the\x20assembled\x20context\x20has\x20been\x20fed\x20back\x20into\x20the\x20experience\x20layer\x20and/or\x20improvement\x20queue.')})['strict']();export const ReverseMapResultSchema=z['object']({'action':z['literal']('reverse_map'),'objects_queried':z['number']()['int']()['min'](0x0)['describe']('How\x20many\x20on-chain\x20objects\x20were\x20queried\x20and\x20fed\x20into\x20the\x20report.'),'report':z['object']({'summary':z['string']()['describe']('One-paragraph\x20deterministic\x20business\x20summary.'),'merchantProfile':z['object']({'serviceDescription':z['string'](),'workflowDescription':z['string'](),'refundPolicy':z['string'](),'arbitrationPolicy':z['string']()})['strict'](),'userRiskAssessment':z['object']({'riskLevel':z['enum'](['low','medium','high','critical']),'keyRisks':z['array'](z['string']()),'protections':z['array'](z['string']()),'missingProtections':z['array'](z['string']())})['strict'](),'gameTheoryAnalysis':z['object']({'merchantIncentives':z['array'](z['string']()),'userIncentives':z['array'](z['string']()),'potentialConflicts':z['array'](z['string']()),'wowAlignments':z['array'](z['string']())})['strict']()})['strict']()['describe']('Deterministic\x20BusinessReport\x20—\x20same\x20objects\x20always\x20yield\x20the\x20same\x20report\x20(no\x20LLM).')})['strict']();const RadarMonitorAlertSchema=z['object']({'id':z['string'](),'category':z['enum'](['progress_stall','compensation_drop','compensation_insufficient','messenger_timeout','user_action_required','review_window','arb_window','refund_received','anomaly']),'severity':z['enum'](['info','warning','critical']),'title':z['string'](),'message':z['string'](),'action':z['string']()['optional']()['describe']('Suggested\x20next\x20step.'),'timestamp':z['number'](),'order_id':z['string']()['optional'](),'service_id':z['string']()['optional'](),'node':z['string']()['optional'](),'metric':z['object']({'label':z['string'](),'value':z['number'](),'threshold':z['number']()['optional'](),'unit':z['string']()['optional']()})['strict']()['optional']()})['strict'](),RadarForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':z['enum'](['order_holder','permission','named_operator','not_available'])['describe']('How\x20this\x20account\x20may\x20execute\x20it\x20(not_available\x20if\x20it\x20can\x27t).'),'permission_index':z['number']()['optional']()['describe']('Permission\x20index\x20required\x20(if\x20permission-gated).'),'named_operator':z['string']()['optional']()['describe']('Named\x20operator\x20(LocalMark\x20name)\x20required\x20(if\x20named-gated).'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'semantics':z['string']()['describe']('Human\x20explanation\x20of\x20what\x20executing\x20this\x20forward\x20means.'),'consequence':z['string']()['optional']()['describe']('Consequence\x20hint\x20(completion\x20fund-release\x20/\x20refund\x20path).'),'weight':z['number']()['optional']()['describe']('Forward\x20weight\x20(accumulates\x20toward\x20the\x20pair\x27s\x20threshold).')})['strict'](),RadarPendingClaimSchema=z['object']({'kind':z['enum'](['reward','discount','compensation','rating']),'label':z['string'](),'how':z['string']()['describe']('How\x20to\x20claim\x20(tool\x20+\x20operation\x20hint).')})['strict'](),InterestAnalysisSchema=z['object']({'fund_flow':z['array'](z['string']())['describe']('Where\x20money\x20sits\x20and\x20what\x20releases\x20it\x20(escrow,\x20Allocation\x20waterfall,\x20compensation_fund,\x20or\x20the\x20role\x27s\x20non-settlement\x20stake).'),'responsibility':z['array'](z['string']())['describe']('What\x20this\x20account\x20is\x20semantically\x20liable\x20for\x20right\x20now\x20(permission-gated\x20forwards,\x20guard\x20obligations).'),'leverage':z['array'](z['string']())['describe']('Actions\x20serving\x20the\x20role\x27s\x20own\x20interest\x20(settlement\x20speed,\x20evidence\x20pre-upload,\x20Messenger\x20nudge,\x20arbitration).\x20Informational\x20only.'),'stakes':z['array'](z['string']())['describe']('Downside\x20exposure\x20(arbitration\x20indemnity,\x20arb-loss\x20record,\x20stall\x20statistics,\x20non-delivery,\x20refund\x20aftermath).'),'summary':z['string']()['describe']('One-paragraph\x20role-interest\x20summary.')})['strict'](),OrderRadarResultSchema=z['object']({'account':z['string'](),'progress':z['string'](),'order':z['string']()['optional'](),'current_node':z['string']()['describe']('Current\x20node\x20name\x20(\x27\x27\x20=\x20entry,\x20not\x20yet\x20started).'),'perspective':z['enum'](['merchant','customer','prospect','supplier','collaborator','arbitrator'])['describe']('Derived\x20commercial\x20role\x20from\x20on-chain\x20data\x20(Order.builder\x20+\x20PermissionPerm\x20grants\x20+\x20named\x20operators),\x20never\x20caller-asserted.'),'collaborator_kind':z['enum'](['permission_entity','named_operator'])['optional']()['describe']('Collaborator\x20sub-kind\x20when\x20perspective\x20===\x20\x27collaborator\x27\x20(internal\x20staff\x20vs\x20external\x20operator).'),'roles':z['array'](z['object']({'label':z['string'](),'can_act_now':z['boolean']()})['strict']())['describe']('All\x20roles\x20this\x20account\x20holds\x20on\x20this\x20order\x27s\x20workflow.'),'operable':z['array'](RadarForwardSchema)['describe']('Forwards\x20THIS\x20account\x20can\x20execute\x20NOW\x20(branch\x20options\x20if\x20>1).'),'branch_choice':z['object']({'message':z['string'](),'options':z['array'](z['object']({'forward':z['string'](),'to_node':z['string'](),'consequence':z['string']()['optional']()})['strict']())})['strict']()['optional']()['describe']('Present\x20when\x20>1\x20operable\x20forward.\x20AI\x20MUST\x20present\x20options\x20neutrally;\x20the\x20role\x20decides.'),'waiting_on':z['array'](z['object']({'role':z['string'](),'forwards':z['array'](z['string']())})['strict']())['describe']('What\x20the\x20workflow\x20is\x20waiting\x20on\x20from\x20OTHER\x20roles.'),'pending_claims':z['array'](RadarPendingClaimSchema)['describe']('Unclaimed\x20benefits\x20/\x20post-purchase\x20actions.'),'interest_hints':z['array'](z['string']())['describe']('Perspective-specific\x20own-interest\x20hints\x20(fund-release\x20trigger,\x20settlement\x20cycle,\x20reputation).'),'workflow_unknown':z['boolean']()['describe']('True\x20when\x20Machine\x20data\x20was\x20unavailable\x20—\x20operable/waiting_on\x20unknown.'),'threshold':z['number']()['int']()['min'](0x1)['optional']()['describe']('Current\x20pair\x27s\x20threshold\x20(accumulated\x20forward\x20weights\x20to\x20advance).'),'interest_analysis':InterestAnalysisSchema['optional']()['describe']('Role-specific\x20interest\x20analysis\x20(fund_flow/responsibility/leverage/stakes)\x20—\x20present\x20when\x20order\x20data\x20is\x20available.\x20'+'merchant\x20→\x20merchant-interest;\x20supplier\x20→\x20supplier-interest;\x20collaborator\x20→\x20collaborator-interest;\x20customer\x20→\x20customer-interest.\x20'+'AI\x20MUST\x20surface\x20it\x20as\x20neutral\x20information;\x20the\x20role\x20decides.'),'summary':z['string']()['describe']('One-paragraph\x20AI-ready\x20summary.'),'attached_alerts':z['array'](RadarMonitorAlertSchema)['optional']()['describe']('Order-monitor\x20alerts\x20(stall/compensation/review-window)\x20when\x20radar_include_alerts=true.')})['strict']();export const ParticipationRadarResultSchema=z['object']({'action':z['literal']('participation_radar'),'account':z['string']()['describe']('Resolved\x20account\x20address.'),'orders_analyzed':z['number'](),'actionable':z['array'](OrderRadarResultSchema)['describe']('Orders\x20where\x20the\x20account\x20can\x20act\x20NOW\x20or\x20has\x20pending\x20claims\x20(customer\x20perspective\x20first).'),'waiting':z['array'](OrderRadarResultSchema)['describe']('Orders\x20where\x20the\x20account\x20is\x20only\x20waiting\x20on\x20other\x20roles.'),'all_pending_claims':z['array'](RadarPendingClaimSchema['extend']({'progress':z['string']()}))['describe']('All\x20pending\x20claims\x20across\x20orders,\x20tagged\x20with\x20their\x20Progress\x20address.'),'unread_messages_total':z['number']()['describe']('Unread\x20Messenger\x20messages\x20total\x20across\x20all\x20conversations\x20of\x20the\x20radar\x20account\x20(local\x20encrypted\x20storage,\x20read-only\x20—\x20never\x20marks\x20messages\x20viewed;\x200\x20with\x20a\x20data_gaps\x20note\x20when\x20the\x20account\x20is\x20not\x20a\x20local\x20messenger\x20account).'),'data_gaps':z['array'](z['string']())['describe']('Graceful\x20degradation\x20notes\x20(e.g.\x20\x27Order\x200x…\x20not\x20found\x27,\x20\x27Machine\x20nodes\x20unavailable\x27).'),'summary':z['string']()['describe']('Account-level\x20dashboard\x20summary.')})['strict']();export const RelationshipProfileResultSchema=z['object']({'action':z['literal']('relationship_profile'),'account':z['string']()['describe']('Resolved\x20anchor\x20account\x20address\x20(any\x20distributed\x20account,\x20not\x20only\x20local).'),'edges':z['array'](z['object']({'anchor':z['string'](),'counterparty':z['string']()['describe']('The\x20other\x20side\x20of\x20this\x20relationship\x20edge.'),'kind':z['string']()['describe']('Relationship\x20kind:\x20employment\x20(merchant×staff,\x20principal-agent)\x20|\x20process_operation\x20(machine\x20node\x20'+'operators)\x20|\x20agency\x20(order\x20owner×agents)\x20|\x20transaction\x20(customer×merchant)\x20|\x20supply\x20'+'(demander×presenters)\x20|\x20arbitration_delegation\x20|\x20dispute_resolution\x20|\x20value_distribution\x20'+'(payer×allocation\x20recipients)\x20|\x20contact_membership.'),'power':z['object']({'role_bits':z['number']()['describe']('Permission\x20role\x20bits:\x201=owner,\x202=admin,\x204=entity.'),'perm_indices':z['array'](z['number']()),'objects':z['array'](z['object']({'object_type':z['string'](),'address':z['string'](),'capacity':z['string']()['describe']('The\x20anchor\x27s\x20capacity\x20on\x20this\x20object.')}))['describe']('On-chain\x20objects\x20this\x20relationship\x20spans\x20(power\x20carriers).'),'carrier':z['string']()['describe']('Which\x20carrier\x20produced\x20the\x20edge\x20(permission/machine_forward/order/...).')}),'interest':z['object']({'gains':z['array'](z['string']()),'exposures':z['array'](z['string']())}),'value_flows':z['array'](z['object']({'from':z['string'](),'to':z['string'](),'carrier_object':z['string'](),'carrier_type':z['string'](),'amount':z['string']()['optional'](),'trigger':z['string']()}))['describe']('Value\x20flows\x20crossing\x20this\x20edge\x20(escrow/allocation/payment/reward/indemnity).'),'tension':z['object']({'anchor_goal':z['string'](),'counterparty_goal':z['string'](),'divergence':z['string'](),'alignment_mechanisms':z['array'](z['string']())})['optional']()['describe']('Registry-declared\x20goal\x20tension\x20(present\x20when\x20the\x20two\x20sides\x27\x20goals\x20diverge).')}))['describe']('Relationship\x20edges\x20of\x20the\x20anchor,\x20one\x20per\x20(counterparty,\x20kind).'),'by_counterparty':z['record'](z['string'](),z['array'](z['string']()))['describe']('Counterparty\x20address\x20→\x20kinds\x20present.'),'notes':z['array'](z['string']())['describe']('Registry\x20notes:\x20goal\x20tensions\x20and\x20mechanism\x20summaries\x20for\x20present\x20kinds.'),'data_gaps':z['array'](z['string']())['describe']('Graceful\x20degradation\x20notes\x20(unreadable\x20objects,\x20skipped\x20carriers).'),'summary':z['string']()['describe']('One-paragraph\x20relationship\x20web\x20summary.'),'demander_interest':z['array'](z['object']({'demand':z['string'](),'fund_flow':z['array'](z['string']()),'responsibility':z['array'](z['string']()),'leverage':z['array'](z['string']()),'stakes':z['array'](z['string']()),'summary':z['string']()}))['optional']()['describe']('Demander-interest\x20analysis\x20per\x20anchor-owned\x20demand\x20(fund_flow/responsibility/leverage/stakes).')})['strict']();const ScenarioBridgeSchema=z['object']({'id':z['string']()['describe']('Stable\x20bridge\x20id\x20(e.g.\x20bridge.supply_match).'),'name':z['string'](),'participants':z['array'](z['object']({'object':z['string'](),'role':z['string']()})['strict']())['describe']('Objects\x20welded\x20by\x20this\x20bridge.'),'bridge_fields':z['array'](z['object']({'object':z['string'](),'field':z['string'](),'meaning':z['string']()})['strict']())['describe']('The\x20integrating\x20Move\x20fields\x20(source\x20of\x20truth).'),'move_anchor':z['string']()['describe']('Move\x20creation/consumption\x20function\x20anchor.'),'scenario':z['object']({'from':z['string'](),'to':z['string'](),'merged':z['string']()})['strict'](),'capability_gained':z['string']()['describe']('The\x20NEW\x20capability\x20from\x20the\x20integration\x20itself\x20(belongs\x20to\x20no\x20single\x20object).'),'value_flow':z['string']()['optional'](),'prerequisites':z['array'](z['string']()),'examples':z['array'](z['string']())})['strict'](),ScenarioChainSchema=z['object']({'id':z['string']()['describe']('Stable\x20chain\x20id\x20(e.g.\x20chain.standard_ecommerce).'),'name':z['string'](),'steps':z['array'](z['object']({'bridge':z['string'](),'note':z['string']()['optional']()})['strict']())['describe']('Ordered\x20bridges\x20forming\x20the\x20complete\x20application.'),'application_capability':z['string']()['describe']('The\x20end-to-end\x20application\x20capability.'),'objects_touched':z['array'](z['string']())})['strict']();export const ScenarioTopologyResultSchema=z['object']({'version':z['string']()['describe']('scenario-topology\x20registry\x20version.'),'chains':z['array'](ScenarioChainSchema)['describe']('Scenario\x20chains\x20(whole\x20applications);\x20optionally\x20filtered\x20by\x20chain_id.'),'bridges':z['array'](ScenarioBridgeSchema)['describe']('Scenario\x20bridges\x20(field\x20integrations)\x20resolvable\x20from\x20chain\x20steps.')})['strict']();export const BI_QUERY_RESULT_MEMBERS=[z['object']({'query_type':z['literal']('service_panorama'),'result':z['unknown']()['describe']('ServicePanorama\x20(base\x20data\x20+\x20workflow\x20graph\x20+\x20guards\x20+\x20supply\x20chain\x20+\x20trust\x20+\x20BusinessReport\x20+\x20recent\x20orders).')}),z['object']({'query_type':z['literal']('machine_panorama'),'result':z['unknown']()['describe']('MachinePanorama\x20(head\x20+\x20fields\x20+\x20workflow\x20graph\x20+\x20Progress\x20list).')}),z['object']({'query_type':z['literal']('object_panorama'),'result':z['unknown']()['describe']('ObjectPanorama\x20(discriminated\x20object_type\x20+\x20head\x20+\x20typed\x20fields\x20+\x20per-type\x20extras).')}),z['object']({'query_type':z['literal']('review_pack'),'result':z['unknown']()['describe']('ReviewPack\x20(section\x20list\x20+\x20typed\x20field\x20values\x20for\x20the\x20ReviewPackRenderer).')}),z['object']({'query_type':z['literal']('assemble_context'),'result':AssembleContextResultSchema}),z['object']({'query_type':z['literal']('reverse_map'),'result':ReverseMapResultSchema}),z['object']({'query_type':z['literal']('participation_radar'),'result':ParticipationRadarResultSchema}),z['object']({'query_type':z['literal']('relationship_profile'),'result':RelationshipProfileResultSchema}),z['object']({'query_type':z['literal']('scenario_topology'),'result':ScenarioTopologyResultSchema}),z['object']({'query_type':z['literal']('workspace_lists'),'result':z['unknown']()['describe']('WorkspaceListsResult\x20(treasuries/repositories/contacts/machines/rewards/others\x20item\x20lists\x20+\x20counts).')}),z['object']({'query_type':z['literal']('marks_of_account'),'result':z['unknown']()['describe']('AccountMarksResult\x20(marks\x20rows\x20in\x20the\x20workspace_lists\x20item\x20shape:\x20object\x20+\x20object_type\x20+\x20name\x20+\x20time\x20+\x20description\x20+\x20tags,\x20plus\x20active\x20vote_kinds\x20like/dislike/favor).')})];
|
|
@@ -8,11 +8,11 @@ export declare const SchemaQueryInputSchema: z.ZodObject<{
|
|
|
8
8
|
get_field: "get_field";
|
|
9
9
|
list_operations: "list_operations";
|
|
10
10
|
get_guard_templates: "get_guard_templates";
|
|
11
|
-
search_examples: "search_examples";
|
|
12
11
|
get_tool_reference: "get_tool_reference";
|
|
13
12
|
get_guard_design_patterns: "get_guard_design_patterns";
|
|
14
13
|
get_safety_rules: "get_safety_rules";
|
|
15
14
|
get_templates: "get_templates";
|
|
15
|
+
analyze_guard_semantics: "analyze_guard_semantics";
|
|
16
16
|
}>;
|
|
17
17
|
name: z.ZodOptional<z.ZodString>;
|
|
18
18
|
query: z.ZodOptional<z.ZodString>;
|
|
@@ -33,6 +33,7 @@ export declare const SchemaQueryInputSchema: z.ZodObject<{
|
|
|
33
33
|
}>>;
|
|
34
34
|
params: z.ZodOptional<z.ZodString>;
|
|
35
35
|
output_file: z.ZodOptional<z.ZodString>;
|
|
36
|
+
guard: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
36
37
|
}, z.core.$strict>;
|
|
37
38
|
export declare const SchemaQueryOutputSchema: z.ZodObject<{
|
|
38
39
|
success: z.ZodBoolean;
|
|
@@ -41,16 +42,6 @@ export declare const SchemaQueryOutputSchema: z.ZodObject<{
|
|
|
41
42
|
name: z.ZodString;
|
|
42
43
|
title: z.ZodOptional<z.ZodString>;
|
|
43
44
|
description: z.ZodOptional<z.ZodString>;
|
|
44
|
-
}, z.core.$strict>>, z.ZodArray<z.ZodObject<{
|
|
45
|
-
file: z.ZodString;
|
|
46
|
-
title: z.ZodString;
|
|
47
|
-
description: z.ZodString;
|
|
48
|
-
tags: z.ZodArray<z.ZodString>;
|
|
49
|
-
industry: z.ZodString;
|
|
50
|
-
operation_type: z.ZodString;
|
|
51
|
-
verified: z.ZodBoolean;
|
|
52
|
-
score: z.ZodNumber;
|
|
53
|
-
matched_fields: z.ZodArray<z.ZodString>;
|
|
54
45
|
}, z.core.$strict>>, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>;
|
|
55
46
|
message: z.ZodString;
|
|
56
47
|
suggestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';export const SchemaQueryInputSchema=z['object']({'action':z['enum'](['list','get','get_output','search','list_operations','get_guard_templates','get_field','
|
|
1
|
+
import{z}from'zod';export const SchemaQueryInputSchema=z['object']({'action':z['enum'](['list','get','get_output','search','list_operations','get_guard_templates','get_field','get_tool_reference','get_guard_design_patterns','get_safety_rules','get_templates','analyze_guard_semantics'])['describe']('Action\x20to\x20perform:\x20\x27list\x27\x20(all\x20schemas),\x20\x27get\x27\x20(specific\x20input\x20schema),\x20\x27get_output\x27\x20(tool\x20output\x20schema),\x20\x27get_field\x27\x20(field-path\x20query\x20e.g.\x20field_path=\x27data.node\x27),\x20\x27search\x27\x20(by\x20keyword),\x20\x27list_operations\x27\x20(on-chain\x20operations),\x20\x27get_guard_templates\x27\x20(Guard\x20creation\x20templates\x20+\x20best\x20practices),\x20\x27get_tool_reference\x27\x20(MCP\x20tool\x20usage\x20reference:\x20summaries,\x20actions,\x20prerequisites,\x20notes\x20—\x20sunk\x20from\x20wowok-tools\x20skill),\x20\x27get_guard_design_patterns\x27\x20(curated\x20Guard\x20design\x20pattern\x20catalog:\x20business\x20requirement\x20→\x20logic\x20tree\x20template\x20—\x20sunk\x20from\x20wowok-guard\x20skill),\x20\x27get_safety_rules\x27\x20(object\x20reuse/immutability/operation-classification/naming\x20rules\x20—\x20sunk\x20from\x20wowok-safety\x20skill),\x20\x27get_templates\x27\x20(unified\x20template\x20registry:\x20~90\x20parameterized\x20templates\x20across\x2011\x20object\x20types\x20—\x20guard/machine/service/order/progress/arbitration/treasury/permission/passport/allocation/reward;\x20omit\x20\x27template\x27\x20to\x20list\x20metadata,\x20provide\x20\x27template\x27\x20for\x20full\x20detail,\x20provide\x20\x27template\x27\x20+\x20\x27params\x27\x20to\x20instantiate\x20into\x20executable\x20JSON),\x20\x27analyze_guard_semantics\x27\x20(parse\x20+\x20evaluate\x20any\x20Guard\x20JSON:\x20rendered\x20logic\x20tree,\x20lint\x20diagnostics,\x20risk\x20assessment,\x20and\x20a\x20party-perspective\x20reading\x20—\x20who\x20can\x20trigger,\x20under\x20what\x20conditions,\x20with\x20what\x20evidence.\x20Both\x20transacting\x20parties\x20should\x20run\x20this\x20BEFORE\x20relying\x20on\x20a\x20Guard).'),'name':z['string']()['optional']()['describe']('Schema/tool\x20name\x20for\x20\x27get\x27/\x27get_output\x27/\x27get_field\x27/\x27get_tool_reference\x27\x20action\x20(e.g.,\x20\x27onchain_operations\x27,\x20\x27onchain_operations_machine\x27),\x20or\x20pattern\x20id\x20for\x20\x27get_guard_design_patterns\x27\x20(e.g.,\x20\x27pattern.identity_check_allowlist\x27).'),'query':z['string']()['optional']()['describe']('Search\x20query\x20for\x20\x27search\x27\x20action,\x20keyword\x20filter\x20for\x20\x27get_tool_reference\x27,\x20or\x20host\x20filter\x20for\x20\x27get_guard_design_patterns\x27\x20(e.g.\x20\x27service_buy_guard\x27,\x20\x27machine_forward\x27,\x20\x27reward_claim\x27).'),'field_path':z['string']()['optional']()['describe']('Dot-separated\x20field\x20path\x20for\x20\x27get_field\x27\x20action\x20(e.g.\x20\x27data.node\x27,\x20\x27data.node.nodes.0.pairs\x27).\x20Navigates\x20schema.properties.*\x20and\x20schema.items.*.'),'template':z['string']()['optional']()['describe']('Guard\x20template\x20name\x20for\x20\x27get_guard_templates\x27\x20action.\x20Omit\x20to\x20list\x20all\x20available\x20templates.\x20Available:\x20signer_verification,\x20progress_node_check,\x20order_owner_verification,\x20service_belonging_check,\x20reward_not_claimed,\x20combined_reward_guard.\x20For\x20\x27get_templates\x27:\x20unified\x20template\x20id\x20(e.g.\x20\x27tpl_buy_guard_whitelist\x27,\x20\x27tpl_machine_ecommerce_standard\x27,\x20\x27T-S-01\x27,\x20\x27T-O-01\x27,\x20\x27first_order\x27).'),'object_type':z['enum'](['guard','machine','service','order','progress','arbitration','treasury','permission','passport','allocation','reward'])['optional']()['describe']('Object-type\x20filter\x20for\x20\x27get_templates\x27\x20list\x20mode\x20(e.g.\x20\x27guard\x27\x20lists\x20only\x20Guard\x20templates).'),'params':z['string']()['optional']()['describe']('JSON-encoded\x20parameter\x20object\x20for\x20\x27get_templates\x27\x20instantiation\x20mode\x20(e.g.\x20\x27{\x22whitelist\x22:[\x220xabc\x22]}\x27).\x20Required\x20params\x20are\x20declared\x20in\x20each\x20template\x27s\x20\x27parameters\x27\x20list\x20(see\x20detail\x20mode).'),'output_file':z['string']()['optional']()['describe']('When\x20set,\x20writes\x20the\x20response\x20data\x20to\x20this\x20file\x20path\x20(relative\x20to\x20cwd)\x20and\x20returns\x20the\x20path\x20instead\x20of\x20inline\x20data.\x20Use\x20for\x20large\x20schemas\x20that\x20would\x20be\x20truncated.\x20Prefer\x20workspace\x20paths\x20like\x20\x27.trae/tmp/schema.json\x27\x20so\x20the\x20Read\x20tool\x20can\x20access\x20them.'),'guard':z['union']([z['string'](),z['record'](z['string'](),z['unknown']())])['optional']()['describe']('Guard\x20JSON\x20for\x20\x27analyze_guard_semantics\x27\x20action\x20(object\x20or\x20JSON-encoded\x20string).\x20Shape:\x20{description?,\x20table:\x20[{identifier,\x20b_submission?,\x20value_type?,\x20value?,\x20name?,\x20object_type?}],\x20root:\x20{...},\x20rely?:\x20{guards,\x20logic_or?},\x20binding_hint?:\x20{host_object?,\x20binding_field?,\x20action?,\x20sharing_recipients?}}.\x20This\x20is\x20the\x20export\x20format\x20of\x20guard2file\x20/\x20the\x20\x27data\x27\x20payload\x20of\x20onchain_operations\x20guard\x20creation.')})['strict']();const SchemaListItemSchema=z['object']({'name':z['string']()['describe']('Schema/tool\x20identifier\x20(e.g.\x20\x27onchain_operations\x27).'),'title':z['string']()['optional']()['describe']('Human-readable\x20title,\x20if\x20known.'),'description':z['string']()['optional']()['describe']('Short\x20description,\x20if\x20known.')})['strict']();export const SchemaQueryOutputSchema=z['object']({'success':z['boolean']()['describe']('Whether\x20the\x20request\x20was\x20successful'),'action':z['string']()['describe']('The\x20action\x20that\x20was\x20performed'),'data':z['union']([z['array'](SchemaListItemSchema)['describe']('List\x20of\x20schema\x20summaries\x20(list/search/list_operations).'),z['record'](z['string'](),z['unknown']())['describe']('JSON\x20Schema\x20object\x20(get/get_output/get_field),\x20Guard\x20template\x20data,\x20tool\x20reference\x20data\x20(get_tool_reference),\x20Guard\x20design\x20pattern\x20catalog\x20(get_guard_design_patterns),\x20or\x20safety\x20rules\x20tables\x20(get_safety_rules).'),z['null']()['describe']('No\x20data\x20—\x20lookup\x20failed\x20or\x20returned\x20nothing,\x20or\x20data\x20was\x20written\x20to\x20output_file.')])['describe']('Response\x20data\x20—\x20array\x20of\x20schema\x20summaries\x20for\x20list-like\x20actions,\x20JSON\x20Schema\x20object\x20for\x20get/get_output/get_field,\x20Guard\x20template\x20data\x20for\x20get_guard_templates,\x20null\x20on\x20failure\x20or\x20when\x20output_file\x20is\x20used.'),'message':z['string']()['describe']('Human-readable\x20message\x20describing\x20the\x20result'),'suggestions':z['array'](z['string']())['optional']()['describe']('Suggested\x20next\x20steps\x20or\x20alternatives'),'output_file_path':z['string']()['optional']()['describe']('When\x20output_file\x20is\x20used,\x20contains\x20the\x20absolute\x20file\x20path\x20where\x20data\x20was\x20written.')})['strict']();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as a379a from'@wowok/wowok';const SDK_SCHEMA_VERSION=a379a['SCHEMA_VERSION']??'1.0.0',checkSchemaCompatibility=a379a['checkSchemaCompatibility']??((a,b)=>({'compatible':!![]}));export const MCP_SCHEMA_VERSION='1.0.0';export function getSchemaVersions(){return{'sdk':SDK_SCHEMA_VERSION,'mcp':MCP_SCHEMA_VERSION};}export function checkClientSchemaCompatibility(a,b={}){const c=getSchemaVersions(),d={'compatible':!![],'warnings':[],'errors':[],'versions':c,'client_version':a};if(!a)return d;const e=checkSchemaCompatibility(a,c['sdk']);if(!e['compatible']){d['compatible']=![];const g='SDK\x20schema\x20incompatibility:\x20'+e['reason'];b['mode']==='strict'?d['errors']['push'](g):d['warnings']['push'](g);}const f=checkSchemaCompatibility(a,c['mcp']);if(!f['compatible']){d['compatible']=![];const h='MCP\x20schema\x20incompatibility:\x20'+f['reason'];b['mode']==='strict'?d['errors']['push'](h):d['warnings']['push'](h);}return d;}export function attachSchemaWarning(a,b){if(b['warnings']['length']===0x0&&b['errors']['length']===0x0)return a;const c=[];b['warnings']['length']>0x0&&c['push'](...b['warnings']);b['errors']['length']>0x0&&c['push'](...b['errors']);const d=a['semantic']?{...a['semantic'],'warnings':[...a['semantic']['warnings']||[],...c]}:undefined;return{...a,'semantic':d,'schema_warning':{'compatible':b['compatible'],'warnings':c,'client_version':b['client_version'],'server_versions':b['versions']}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const SKILLS_BY_OPERATION_TYPE={'service':['wowok-provider'],'machine':['wowok-machine'],'guard':[],'arbitration':['wowok-arbitrator'],'allocation':['wowok-provider'],'permission':[],'treasury':['wowok-provider'],'reward':['wowok-provider'],'repository':['wowok-provider'],'demand':['wowok-provider','wowok-supplier'],'contact':['wowok-messenger'],'order':['wowok-order'],'progress':['wowok-collaborator'],'personal':[],'payment':[],'proof':[]};export function getSkillsHintForOnchain(a,b){const c=SKILLS_BY_OPERATION_TYPE[a];if(!c||c['length']===0x0)return undefined;const d=b?.['publish']===!![],e=!!b?.['order_allocators'],f=d||e,g=f?'SKILLS\x20RECOMMENDED\x20(complex\x20operation\x20—\x20skills\x20provide\x20business-semantic\x20guidance):':'SKILLS\x20RECOMMENDED\x20(optional\x20—\x20skills\x20provide\x20deeper\x20guidance):';return g+'\x20'+c['join'](',\x20')+'.\x20'+'skills\x20focus\x20on\x20business\x20intent\x20→\x20object\x20parameter\x20translation;\x20'+'MCP\x20handles\x20object\x20structure\x20and\x20on-chain\x20execution.\x20'+'If\x20skills\x20are\x20installed,\x20consult\x20them\x20BEFORE\x20this\x20call\x20for\x20design\x20rationale.\x20'+'If\x20not\x20installed,\x20MCP\x20executes\x20independently\x20—\x20this\x20hint\x20is\x20informational\x20only.';}const SKILLS_BY_EVALUATION_ACTION={'match_discover':['wowok-market'],'discover_services':['wowok-market'],'discover_demands':['wowok-market'],'arbitration_score':['wowok-market','wowok-arbitrator'],'account_events':['wowok-market'],'market_metrics':['wowok-market'],'anti_cheat':['wowok-market'],'market_operations':['wowok-market']};export function getSkillsHintForEvaluation(a){const b=SKILLS_BY_EVALUATION_ACTION[a];if(!b||b['length']===0x0)return undefined;return'SKILLS\x20RECOMMENDED\x20(optional\x20—\x20skills\x20provide\x20deeper\x20guidance):\x20'+b['join'](',\x20')+'.\x20'+'skills\x20focus\x20on\x20market/operational\x20intent\x20→\x20action\x20parameters;\x20'+'MCP\x20handles\x20enumeration,\x20scoring\x20and\x20on-chain\x20execution.\x20'+'If\x20not\x20installed,\x20MCP\x20executes\x20independently\x20—\x20this\x20hint\x20is\x20informational\x20only.';}
|
|
1
|
+
const SKILLS_BY_OPERATION_TYPE={'service':['wowok-provider'],'machine':['wowok-machine'],'guard':[],'arbitration':['wowok-arbitrator'],'allocation':['wowok-provider'],'permission':['wowok-governance'],'treasury':['wowok-provider','wowok-governance'],'reward':['wowok-provider'],'repository':['wowok-provider'],'demand':['wowok-provider','wowok-supplier'],'contact':['wowok-messenger'],'order':['wowok-order'],'progress':['wowok-collaborator'],'personal':['wowok-governance'],'payment':[],'proof':[]};export function getSkillsHintForOnchain(a,b){const c=SKILLS_BY_OPERATION_TYPE[a];if(!c||c['length']===0x0)return undefined;const d=b?.['publish']===!![],e=!!b?.['order_allocators'],f=d||e,g=f?'SKILLS\x20RECOMMENDED\x20(complex\x20operation\x20—\x20skills\x20provide\x20business-semantic\x20guidance):':'SKILLS\x20RECOMMENDED\x20(optional\x20—\x20skills\x20provide\x20deeper\x20guidance):';return g+'\x20'+c['join'](',\x20')+'.\x20'+'skills\x20focus\x20on\x20business\x20intent\x20→\x20object\x20parameter\x20translation;\x20'+'MCP\x20handles\x20object\x20structure\x20and\x20on-chain\x20execution.\x20'+'If\x20skills\x20are\x20installed,\x20consult\x20them\x20BEFORE\x20this\x20call\x20for\x20design\x20rationale.\x20'+'If\x20not\x20installed,\x20MCP\x20executes\x20independently\x20—\x20this\x20hint\x20is\x20informational\x20only.';}const SKILLS_BY_EVALUATION_ACTION={'match_discover':['wowok-market'],'discover_services':['wowok-market'],'discover_demands':['wowok-market'],'arbitration_score':['wowok-market','wowok-arbitrator'],'account_events':['wowok-market'],'market_metrics':['wowok-market'],'anti_cheat':['wowok-market'],'market_operations':['wowok-market']};export function getSkillsHintForEvaluation(a){const b=SKILLS_BY_EVALUATION_ACTION[a];if(!b||b['length']===0x0)return undefined;return'SKILLS\x20RECOMMENDED\x20(optional\x20—\x20skills\x20provide\x20deeper\x20guidance):\x20'+b['join'](',\x20')+'.\x20'+'skills\x20focus\x20on\x20market/operational\x20intent\x20→\x20action\x20parameters;\x20'+'MCP\x20handles\x20enumeration,\x20scoring\x20and\x20on-chain\x20execution.\x20'+'If\x20not\x20installed,\x20MCP\x20executes\x20independently\x20—\x20this\x20hint\x20is\x20informational\x20only.';}
|
|
@@ -161,6 +161,10 @@ export declare const WatchOperationOutputSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
161
161
|
prefer: z.ZodArray<z.ZodString>;
|
|
162
162
|
avoid: z.ZodArray<z.ZodString>;
|
|
163
163
|
sensitivity: z.ZodNumber;
|
|
164
|
+
value_proposition: z.ZodObject<{
|
|
165
|
+
offers: z.ZodString;
|
|
166
|
+
seeks: z.ZodString;
|
|
167
|
+
}, z.core.$strict>;
|
|
164
168
|
}, z.core.$strict>>;
|
|
165
169
|
game: z.ZodNullable<z.ZodObject<{
|
|
166
170
|
power: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';const WatchScenarioEnum=z['enum'](['order','service','demand','arbitration','progress','permission','account','generic']),ReasonDirectionEnum=z['enum'](['objective','game']),WatchRoleSchema=z['object']({'manifest_role':z['string']()['describe']('On-chain\x20derived\x20role\x20(may\x20be\x20\x27neutral\x27\x20when\x20the\x20account\x20has\x20no\x20operative\x20relationship).'),'latent_role':z['string']()['optional']()['describe']('Persona\x20identity-preference\x20role,\x20if\x20a\x20non-system\x20persona\x20is\x20set.'),'participation_role':z['string']()['describe']('Authoritative\x20role\x20for\x20participation/operation\x20—\x20ALWAYS\x20manifest_role.'),'evaluation_role':z['string']()['describe']('Role\x20for\x20evaluation\x20injection\x20—\x20latent\x20preference\x20when\x20set,\x20else\x20manifest.'),'conflicting':z['boolean']()['describe']('True\x20when\x20the\x20latent\x20persona\x20role\x20disagrees\x20with\x20the\x20manifest\x20role.'),'reason_direction':ReasonDirectionEnum['describe']('objective\x20=\x20only\x20narrate\x20facts;\x20game\x20=\x20full\x20four-stage\x20reasoning.'),'derivation':z['string']()['describe']('Traceable\x20derivation\x20basis\x20from\x20the\x20manifest\x20role.'),'note':z['string']()['describe']('Human-readable\x20resolution\x20note.')})['strict'](),WatchObjectSchema=z['object']({'address':z['string']()['describe']('Object\x20address\x20(or\x20the\x20resolved\x20address\x20for\x20a\x20name\x20input).'),'object_type':z['string']()['describe']('Normalized\x20short\x20object\x20type\x20(e.g.\x20Service,\x20Order,\x20Progress,\x20Demand,\x20Arbitration).'),'name':z['string']()['optional']()['describe']('Human-readable\x20name\x20/\x20LocalMark\x20name\x20if\x20resolvable.'),'fields':z['record'](z['string'](),z['unknown']())['describe']('Raw\x20on-chain\x20fields\x20of\x20interest\x20(subset\x20of\x20the\x20object\x20data).')})['strict'](),WatchRelationSchema=z['object']({'relation':z['string']()['describe']('Relationship\x20kind\x20(e.g.\x20machine,\x20permission,\x20arbitration,\x20order,\x20sub_service).'),'target':z['string']()['describe']('Related\x20object\x20address.'),'target_type':z['string']()['describe']('Normalized\x20short\x20type\x20of\x20the\x20related\x20object.'),'note':z['string']()['optional']()['describe']('Semantic\x20note\x20for\x20the\x20relation.')})['strict'](),WatchOperationSchema=z['object']({'operation':z['string']()['describe']('Operation\x20identifier\x20(e.g.\x20progress_next,\x20service_param_update,\x20order_holder_confirm).'),'can_execute':z['boolean']()['describe']('Whether\x20the\x20account\x20can\x20execute\x20this\x20operation\x20on-chain\x20RIGHT\x20NOW.'),'path':z['string']()['describe']('Execution\x20path\x20(e.g.\x20order_holder\x20/\x20permission_index\x20/\x20named_operator\x20/\x20guard_submission).'),'note':z['string']()['optional']()['describe']('Execution\x20note\x20or\x20guard\x20requirement.')})['strict'](),WatchReasonValueSchema=z['object']({'perspective':z['string']()['describe']('Value\x20perspective:\x20consumer\x20/\x20producer\x20/\x20neutral.'),'interest_analyzer':z['string']()['describe']('Interest\x20analyzer\x20id\x20for\x20the\x20evaluation\x20role.'),'prefer':z['array'](z['string']())['describe']('Value\x20anchors\x20the\x20role\x20seeks\x20(gains).'),'avoid':z['array'](z['string']())['describe']('Value\x20anchors\x20the\x20role\x20avoids\x20(risks).'),'sensitivity':z['number']()['describe']('Risk\x20sensitivity\x20(1.0\x20neutral;\x20>1\x20more\x20risk-averse).')})['strict'](),WatchReasonGameSchema=z['object']({'power':z['string']()['describe']('Game-theory\x20power:\x20strong\x20/\x20weak\x20/\x20peer\x20/\x20neutral.'),'strategy':z['string']()['describe']('Game-strategy\x20plugin\x20id.'),'weaker_party':z['boolean']()['describe']('True\x20when\x20the\x20role\x20is\x20the\x20weaker\x20party\x20(prioritize\x20protection).'),'stronger_party':z['boolean']()['describe']('True\x20when\x20the\x20role\x20is\x20the\x20stronger\x20party\x20(constrain\x20on-chain).')})['strict'](),WatchReasonPathSchema=z['object']({'operations':z['array'](WatchOperationSchema)['describe']('Actionable\x20operations\x20(identity-filtered).'),'summary':z['string']()['describe']('Human-readable\x20path\x20summary.'),'path_reasoning':z['object']({'current_node':z['string'](),'perspective':z['string'](),'optimal_path':z['object']({'nodes':z['array'](z['string']()),'forwards':z['array'](z['string']()),'terminal':z['string'](),'score':z['number'](),'length':z['number'](),'guard_gates':z['number']()})['strict']()['optional']()['describe']('The\x20single\x20optimal\x20path\x20to\x20a\x20terminal\x20(absent\x20when\x20no\x20terminal\x20is\x20reachable).'),'ranked_paths':z['array'](z['object']({'terminal':z['string'](),'score':z['number'](),'length':z['number'](),'guard_gates':z['number']()})['strict']())['describe']('Paths\x20ranked\x20by\x20composite\x20score\x20descending.'),'foregone_terminals':z['array'](z['string']())['describe']('Terminals\x20closed\x20by\x20choosing\x20the\x20optimal\x20path\x20(opportunity\x20competition).'),'summary':z['string']()})['strict']()['optional']()['describe']('Path-level\x20game\x20reasoning\x20(present\x20only\x20for\x20Progress\x20focus).')})['strict']();export const WatchOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('focus'),'focus':z['string']()['describe']('Object\x20address\x20or\x20LocalMark\x20name\x20to\x20focus\x20on.'),'account':z['string']()['optional']()['describe']('Active\x20account\x20address;\x20its\x20on-chain\x20role\x20+\x20persona\x20are\x20resolved\x20against\x20the\x20focus.'),'scenario':WatchScenarioEnum['optional']()['describe']('Optional\x20scenario\x20hint\x20to\x20guide\x20identity\x20assembly.'),'network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).')})['strict'](),z['object']({'action':z['literal']('expand'),'focus':z['string']()['describe']('Object\x20address\x20or\x20LocalMark\x20name\x20to\x20expand\x20relations\x20from.'),'account':z['string']()['optional']()['describe']('Active\x20account\x20address\x20(for\x20identity-aware\x20relation\x20semantics).'),'relation':z['string']()['optional']()['describe']('Filter\x20to\x20a\x20single\x20relation\x20kind\x20(e.g.\x20machine,\x20permission,\x20arbitration,\x20sub_service).'),'network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).')})['strict'](),z['object']({'action':z['literal']('actions'),'focus':z['string']()['describe']('Object\x20address\x20or\x20LocalMark\x20name\x20to\x20enumerate\x20actionable\x20operations\x20for.'),'account':z['string']()['describe']('Active\x20account\x20address\x20—\x20operations\x20are\x20judged\x20against\x20THIS\x20account.'),'network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).')})['strict'](),z['object']({'action':z['literal']('reason'),'focus':z['string']()['describe']('Object\x20address\x20or\x20LocalMark\x20name\x20to\x20reason\x20about.'),'account':z['string']()['optional']()['describe']('Active\x20account\x20address\x20—\x20identity\x20drives\x20the\x20reasoning\x20direction\x20(objective\x20vs\x20game).'),'scenario':WatchScenarioEnum['optional']()['describe']('Optional\x20scenario\x20hint\x20to\x20guide\x20identity\x20assembly.'),'network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).')})['strict']()]);export const WatchOperationOutputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('focus'),'result':z['object']({'object':WatchObjectSchema['nullable']()['describe']('Focused\x20object\x20base\x20data\x20(null\x20when\x20unresolvable).'),'role':WatchRoleSchema['describe']('Resolved\x20identity\x20of\x20the\x20account\x20against\x20the\x20focus\x20object.')})['strict']()}),z['object']({'action':z['literal']('expand'),'result':z['object']({'object':WatchObjectSchema['nullable']()['describe']('Focused\x20object\x20base\x20data\x20(null\x20when\x20unresolvable).'),'relations':z['array'](WatchRelationSchema)['describe']('Direct\x20relations\x20out\x20of\x20the\x20focus\x20object.'),'supply_chain':z['object']({'service':z['string'](),'machine':z['string']()['optional'](),'edges':z['array'](z['object']({'node':z['string'](),'prev_node':z['string'](),'forward':z['string'](),'guard':z['string'](),'purchased_services':z['array'](z['object']({'identifier':z['number'](),'name':z['string'](),'address':z['string']()})['strict']()),'required_submissions':z['array'](z['object']({'identifier':z['number'](),'name':z['string'](),'value_type':z['string']()})['strict']())})['strict']())})['strict']()['optional']()['describe']('Transparent\x20sub-order\x20purchasing\x20graph\x20(present\x20when\x20the\x20focus\x20is\x20a\x20Service\x20with\x20purchasing-commitment\x20guards).')})['strict']()}),z['object']({'action':z['literal']('actions'),'result':z['object']({'object':WatchObjectSchema['nullable']()['describe']('Focused\x20object\x20base\x20data\x20(null\x20when\x20unresolvable).'),'role':WatchRoleSchema['describe']('Resolved\x20identity\x20of\x20the\x20account\x20against\x20the\x20focus\x20object.'),'operations':z['array'](WatchOperationSchema)['describe']('Actionable\x20operations\x20for\x20the\x20account\x20on\x20this\x20object,\x20with\x20executability\x20judgment.')})['strict']()}),z['object']({'action':z['literal']('reason'),'result':z['object']({'object':WatchObjectSchema['nullable']()['describe']('Focused\x20object\x20base\x20data\x20(null\x20when\x20unresolvable).'),'identity':WatchRoleSchema['nullable']()['describe']('Resolved\x20identity\x20of\x20the\x20account\x20against\x20the\x20focus\x20object.'),'reason_direction':ReasonDirectionEnum['describe']('objective\x20=\x20only\x20narrate\x20facts;\x20game\x20=\x20full\x20four-stage\x20reasoning.'),'value':WatchReasonValueSchema['nullable']()['describe']('Value\x20stage\x20(perspective\x20+\x20interest\x20anchors);\x20null\x20when\x20objective.'),'game':WatchReasonGameSchema['nullable']()['describe']('Game\x20stage\x20(power\x20+\x20strategy);\x20null\x20when\x20objective.'),'path':WatchReasonPathSchema['nullable']()['describe']('Path/operation\x20stage;\x20null\x20when\x20objective.'),'objective_note':z['string']()['optional']()['describe']('Narration\x20note\x20when\x20reason_direction\x20is\x20objective.')})['strict']()})]);
|
|
1
|
+
import{z}from'zod';const WatchScenarioEnum=z['enum'](['order','service','demand','arbitration','progress','permission','account','generic']),ReasonDirectionEnum=z['enum'](['objective','game']),WatchRoleSchema=z['object']({'manifest_role':z['string']()['describe']('On-chain\x20derived\x20role\x20(may\x20be\x20\x27neutral\x27\x20when\x20the\x20account\x20has\x20no\x20operative\x20relationship).'),'latent_role':z['string']()['optional']()['describe']('Persona\x20identity-preference\x20role,\x20if\x20a\x20non-system\x20persona\x20is\x20set.'),'participation_role':z['string']()['describe']('Authoritative\x20role\x20for\x20participation/operation\x20—\x20ALWAYS\x20manifest_role.'),'evaluation_role':z['string']()['describe']('Role\x20for\x20evaluation\x20injection\x20—\x20latent\x20preference\x20when\x20set,\x20else\x20manifest.'),'conflicting':z['boolean']()['describe']('True\x20when\x20the\x20latent\x20persona\x20role\x20disagrees\x20with\x20the\x20manifest\x20role.'),'reason_direction':ReasonDirectionEnum['describe']('objective\x20=\x20only\x20narrate\x20facts;\x20game\x20=\x20full\x20four-stage\x20reasoning.'),'derivation':z['string']()['describe']('Traceable\x20derivation\x20basis\x20from\x20the\x20manifest\x20role.'),'note':z['string']()['describe']('Human-readable\x20resolution\x20note.')})['strict'](),WatchObjectSchema=z['object']({'address':z['string']()['describe']('Object\x20address\x20(or\x20the\x20resolved\x20address\x20for\x20a\x20name\x20input).'),'object_type':z['string']()['describe']('Normalized\x20short\x20object\x20type\x20(e.g.\x20Service,\x20Order,\x20Progress,\x20Demand,\x20Arbitration).'),'name':z['string']()['optional']()['describe']('Human-readable\x20name\x20/\x20LocalMark\x20name\x20if\x20resolvable.'),'fields':z['record'](z['string'](),z['unknown']())['describe']('Raw\x20on-chain\x20fields\x20of\x20interest\x20(subset\x20of\x20the\x20object\x20data).')})['strict'](),WatchRelationSchema=z['object']({'relation':z['string']()['describe']('Relationship\x20kind\x20(e.g.\x20machine,\x20permission,\x20arbitration,\x20order,\x20sub_service).'),'target':z['string']()['describe']('Related\x20object\x20address.'),'target_type':z['string']()['describe']('Normalized\x20short\x20type\x20of\x20the\x20related\x20object.'),'note':z['string']()['optional']()['describe']('Semantic\x20note\x20for\x20the\x20relation.')})['strict'](),WatchOperationSchema=z['object']({'operation':z['string']()['describe']('Operation\x20identifier\x20(e.g.\x20progress_next,\x20service_param_update,\x20order_holder_confirm).'),'can_execute':z['boolean']()['describe']('Whether\x20the\x20account\x20can\x20execute\x20this\x20operation\x20on-chain\x20RIGHT\x20NOW.'),'path':z['string']()['describe']('Execution\x20path\x20(e.g.\x20order_holder\x20/\x20permission_index\x20/\x20named_operator\x20/\x20guard_submission).'),'note':z['string']()['optional']()['describe']('Execution\x20note\x20or\x20guard\x20requirement.')})['strict'](),WatchReasonValueSchema=z['object']({'perspective':z['string']()['describe']('Value\x20perspective:\x20consumer\x20/\x20producer\x20/\x20neutral.'),'interest_analyzer':z['string']()['describe']('Interest\x20analyzer\x20id\x20for\x20the\x20evaluation\x20role.'),'prefer':z['array'](z['string']())['describe']('Value\x20anchors\x20the\x20role\x20seeks\x20(gains).'),'avoid':z['array'](z['string']())['describe']('Value\x20anchors\x20the\x20role\x20avoids\x20(risks).'),'sensitivity':z['number']()['describe']('Risk\x20sensitivity\x20(1.0\x20neutral;\x20>1\x20more\x20risk-averse).'),'value_proposition':z['object']({'offers':z['string']()['describe']('What\x20this\x20role\x20contributes\x20/\x20provides\x20into\x20the\x20transaction.'),'seeks':z['string']()['describe']('What\x20this\x20role\x20wants\x20/\x20gets\x20out\x20of\x20the\x20transaction.')})['strict']()['describe']('Value\x20proposition\x20—\x20what\x20the\x20role\x20offers\x20and\x20seeks\x20(K3\x2027\x20G6).')})['strict'](),WatchReasonGameSchema=z['object']({'power':z['string']()['describe']('Game-theory\x20power:\x20strong\x20/\x20weak\x20/\x20peer\x20/\x20neutral.'),'strategy':z['string']()['describe']('Game-strategy\x20plugin\x20id.'),'weaker_party':z['boolean']()['describe']('True\x20when\x20the\x20role\x20is\x20the\x20weaker\x20party\x20(prioritize\x20protection).'),'stronger_party':z['boolean']()['describe']('True\x20when\x20the\x20role\x20is\x20the\x20stronger\x20party\x20(constrain\x20on-chain).')})['strict'](),WatchReasonPathSchema=z['object']({'operations':z['array'](WatchOperationSchema)['describe']('Actionable\x20operations\x20(identity-filtered).'),'summary':z['string']()['describe']('Human-readable\x20path\x20summary.'),'path_reasoning':z['object']({'current_node':z['string'](),'perspective':z['string'](),'optimal_path':z['object']({'nodes':z['array'](z['string']()),'forwards':z['array'](z['string']()),'terminal':z['string'](),'score':z['number'](),'length':z['number'](),'guard_gates':z['number']()})['strict']()['optional']()['describe']('The\x20single\x20optimal\x20path\x20to\x20a\x20terminal\x20(absent\x20when\x20no\x20terminal\x20is\x20reachable).'),'ranked_paths':z['array'](z['object']({'terminal':z['string'](),'score':z['number'](),'length':z['number'](),'guard_gates':z['number']()})['strict']())['describe']('Paths\x20ranked\x20by\x20composite\x20score\x20descending.'),'foregone_terminals':z['array'](z['string']())['describe']('Terminals\x20closed\x20by\x20choosing\x20the\x20optimal\x20path\x20(opportunity\x20competition).'),'summary':z['string']()})['strict']()['optional']()['describe']('Path-level\x20game\x20reasoning\x20(present\x20only\x20for\x20Progress\x20focus).')})['strict']();export const WatchOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('focus'),'focus':z['string']()['describe']('Object\x20address\x20or\x20LocalMark\x20name\x20to\x20focus\x20on.'),'account':z['string']()['optional']()['describe']('Active\x20account\x20address;\x20its\x20on-chain\x20role\x20+\x20persona\x20are\x20resolved\x20against\x20the\x20focus.'),'scenario':WatchScenarioEnum['optional']()['describe']('Optional\x20scenario\x20hint\x20to\x20guide\x20identity\x20assembly.'),'network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).')})['strict'](),z['object']({'action':z['literal']('expand'),'focus':z['string']()['describe']('Object\x20address\x20or\x20LocalMark\x20name\x20to\x20expand\x20relations\x20from.'),'account':z['string']()['optional']()['describe']('Active\x20account\x20address\x20(for\x20identity-aware\x20relation\x20semantics).'),'relation':z['string']()['optional']()['describe']('Filter\x20to\x20a\x20single\x20relation\x20kind\x20(e.g.\x20machine,\x20permission,\x20arbitration,\x20sub_service).'),'network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).')})['strict'](),z['object']({'action':z['literal']('actions'),'focus':z['string']()['describe']('Object\x20address\x20or\x20LocalMark\x20name\x20to\x20enumerate\x20actionable\x20operations\x20for.'),'account':z['string']()['describe']('Active\x20account\x20address\x20—\x20operations\x20are\x20judged\x20against\x20THIS\x20account.'),'network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).')})['strict'](),z['object']({'action':z['literal']('reason'),'focus':z['string']()['describe']('Object\x20address\x20or\x20LocalMark\x20name\x20to\x20reason\x20about.'),'account':z['string']()['optional']()['describe']('Active\x20account\x20address\x20—\x20identity\x20drives\x20the\x20reasoning\x20direction\x20(objective\x20vs\x20game).'),'scenario':WatchScenarioEnum['optional']()['describe']('Optional\x20scenario\x20hint\x20to\x20guide\x20identity\x20assembly.'),'network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).')})['strict']()]);export const WatchOperationOutputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('focus'),'result':z['object']({'object':WatchObjectSchema['nullable']()['describe']('Focused\x20object\x20base\x20data\x20(null\x20when\x20unresolvable).'),'role':WatchRoleSchema['describe']('Resolved\x20identity\x20of\x20the\x20account\x20against\x20the\x20focus\x20object.')})['strict']()}),z['object']({'action':z['literal']('expand'),'result':z['object']({'object':WatchObjectSchema['nullable']()['describe']('Focused\x20object\x20base\x20data\x20(null\x20when\x20unresolvable).'),'relations':z['array'](WatchRelationSchema)['describe']('Direct\x20relations\x20out\x20of\x20the\x20focus\x20object.'),'supply_chain':z['object']({'service':z['string'](),'machine':z['string']()['optional'](),'edges':z['array'](z['object']({'node':z['string'](),'prev_node':z['string'](),'forward':z['string'](),'guard':z['string'](),'purchased_services':z['array'](z['object']({'identifier':z['number'](),'name':z['string'](),'address':z['string']()})['strict']()),'required_submissions':z['array'](z['object']({'identifier':z['number'](),'name':z['string'](),'value_type':z['string']()})['strict']())})['strict']())})['strict']()['optional']()['describe']('Transparent\x20sub-order\x20purchasing\x20graph\x20(present\x20when\x20the\x20focus\x20is\x20a\x20Service\x20with\x20purchasing-commitment\x20guards).')})['strict']()}),z['object']({'action':z['literal']('actions'),'result':z['object']({'object':WatchObjectSchema['nullable']()['describe']('Focused\x20object\x20base\x20data\x20(null\x20when\x20unresolvable).'),'role':WatchRoleSchema['describe']('Resolved\x20identity\x20of\x20the\x20account\x20against\x20the\x20focus\x20object.'),'operations':z['array'](WatchOperationSchema)['describe']('Actionable\x20operations\x20for\x20the\x20account\x20on\x20this\x20object,\x20with\x20executability\x20judgment.')})['strict']()}),z['object']({'action':z['literal']('reason'),'result':z['object']({'object':WatchObjectSchema['nullable']()['describe']('Focused\x20object\x20base\x20data\x20(null\x20when\x20unresolvable).'),'identity':WatchRoleSchema['nullable']()['describe']('Resolved\x20identity\x20of\x20the\x20account\x20against\x20the\x20focus\x20object.'),'reason_direction':ReasonDirectionEnum['describe']('objective\x20=\x20only\x20narrate\x20facts;\x20game\x20=\x20full\x20four-stage\x20reasoning.'),'value':WatchReasonValueSchema['nullable']()['describe']('Value\x20stage\x20(perspective\x20+\x20interest\x20anchors);\x20null\x20when\x20objective.'),'game':WatchReasonGameSchema['nullable']()['describe']('Game\x20stage\x20(power\x20+\x20strategy);\x20null\x20when\x20objective.'),'path':WatchReasonPathSchema['nullable']()['describe']('Path/operation\x20stage;\x20null\x20when\x20objective.'),'objective_note':z['string']()['optional']()['describe']('Narration\x20note\x20when\x20reason_direction\x20is\x20objective.')})['strict']()})]);
|