@holoscript/framework 6.0.3 → 6.0.4
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/CHANGELOG.md +1 -2
- package/ROADMAP.md +68 -66
- package/dist/{InvisibleWallet-BB6tFvRA.d.cts → InvisibleWallet-EFiuaLn3.d.cts} +1 -1
- package/dist/{OrchestratorAgent-BvWgf9uw.d.cts → OrchestratorAgent-CrLDGNL6.d.cts} +1 -1
- package/dist/agents/index.cjs +11 -10
- package/dist/agents/index.d.cts +4 -16
- package/dist/ai/index.cjs +2 -2
- package/dist/behavior.cjs +10 -0
- package/dist/economy/index.cjs +4 -4
- package/dist/economy/index.d.cts +2 -2
- package/dist/index.cjs +33 -11
- package/dist/index.d.cts +3 -3
- package/dist/swarm/index.cjs +3 -0
- package/package.json +14 -9
- package/src/__tests__/bounty-marketplace.test.ts +53 -21
- package/src/__tests__/delegation.test.ts +1 -4
- package/src/__tests__/done-log-audit.test.ts +38 -46
- package/src/__tests__/framework.test.ts +172 -53
- package/src/__tests__/goal-synthesizer.test.ts +9 -6
- package/src/__tests__/presence.test.ts +1 -1
- package/src/__tests__/protocol-agent.test.ts +12 -11
- package/src/__tests__/revenue-splitter.test.ts +22 -15
- package/src/__tests__/scenario-driven-todo.test.ts +55 -35
- package/src/__tests__/self-improve.test.ts +28 -9
- package/src/__tests__/service-lifecycle.test.ts +9 -3
- package/src/__tests__/skill-router.test.ts +3 -3
- package/src/agents/CulturalMemory.ts +6 -6
- package/src/agents/DelegationTraceHooks.ts +560 -0
- package/src/agents/FederatedRegistryAdapter.ts +1 -1
- package/src/agents/NormEngine.ts +3 -8
- package/src/agents/OrchestratorAgent.ts +1 -1
- package/src/agents/TaskDelegationService.ts +5 -9
- package/src/agents/__tests__/AgentWalletRegistry.test.ts +5 -4
- package/src/agents/__tests__/CrossRealityHandoff.test.ts +9 -3
- package/src/agents/__tests__/DelegationTraceHooks.test.ts +390 -0
- package/src/agents/__tests__/TaskDelegationService.test.ts +4 -2
- package/src/agents/spatial-comms/Layer1RealTime.ts +36 -19
- package/src/agents/spatial-comms/Layer2A2A.ts +1 -3
- package/src/agents/spatial-comms/Layer3MCP.ts +13 -4
- package/src/agents/spatial-comms/ProtocolTypes.ts +5 -2
- package/src/agents/spatial-comms/examples/multi-agent-world-creation.ts +2 -2
- package/src/ai/HoloScriptGenerator.ts +2 -2
- package/src/ai/__tests__/PerceptionSystem.prod.test.ts +1 -1
- package/src/ai/__tests__/PerceptionSystem.test.ts +14 -14
- package/src/ai/__tests__/SteeringBehaviors.prod.test.ts +1 -1
- package/src/ai/index.ts +5 -1
- package/src/board/audit.ts +17 -6
- package/src/board/board-ops.ts +45 -15
- package/src/board/board-types.ts +94 -20
- package/src/delegation.ts +5 -3
- package/src/distributed-claimer.ts +13 -2
- package/src/economy/BountyManager.ts +40 -18
- package/src/economy/KnowledgeMarketplace.ts +27 -8
- package/src/economy/PaymentWebhookService.ts +0 -1
- package/src/economy/RevenueSplitter.ts +2 -4
- package/src/economy/UnifiedBudgetOptimizer.ts +8 -9
- package/src/economy/_core-stubs.ts +1 -1
- package/src/economy/x402-facilitator.ts +17 -8
- package/src/index.ts +16 -12
- package/src/knowledge/__tests__/knowledge-consolidator.test.ts +138 -89
- package/src/knowledge/__tests__/knowledge-store-vector.test.ts +59 -16
- package/src/knowledge/brain.ts +7 -7
- package/src/knowledge/consolidation.ts +16 -16
- package/src/knowledge/knowledge-consolidator.ts +60 -30
- package/src/knowledge/knowledge-store.ts +83 -45
- package/src/learning/ProceduralCompiler.ts +6 -1
- package/src/learning/learning/MemoryConsolidator.ts +102 -0
- package/src/learning/learning/MemoryScorer.ts +69 -0
- package/src/learning/learning/ProceduralCompiler.ts +45 -0
- package/src/learning/learning/SemanticClusterer.ts +66 -0
- package/src/llm/llm-adapter.ts +24 -10
- package/src/mesh/index.ts +37 -17
- package/src/protocol/goal-synthesizer.ts +24 -34
- package/src/protocol/implementations.ts +91 -22
- package/src/protocol/micro-phase-decomposer.ts +25 -17
- package/src/protocol/micro-step-decomposer.test.ts +104 -39
- package/src/protocol-agent.test.ts +17 -7
- package/src/protocol-agent.ts +45 -42
- package/src/self-improve/absorb-scanner.ts +9 -6
- package/src/self-improve/evolution-engine.ts +36 -18
- package/src/self-improve/framework-absorber.ts +21 -16
- package/src/self-improve/index.ts +2 -10
- package/src/self-improve/prompt-optimizer.ts +31 -19
- package/src/self-improve/test-generator.ts +16 -12
- package/src/skill-router.ts +7 -6
- package/src/swarm/messaging/GossipProtocol.ts +1 -1
- package/src/swarm/messaging/__tests__/BroadcastChannel.prod.test.ts +31 -9
- package/src/swarm/messaging/__tests__/GossipProtocol.prod.test.ts +21 -7
- package/src/swarm/messaging/__tests__/SwarmEventBus.prod.test.ts +24 -8
- package/src/swarm/messaging/__tests__/SwarmEventBus.test.ts +6 -2
- package/src/team.ts +277 -122
- package/src/training/scripts/generate-spatial-dataset.ts +1 -1
- package/src/training/training/LRScheduler.ts +377 -0
- package/src/training/training/QualityScoringPipeline.ts +139 -0
- package/src/training/training/SoftDedup.ts +461 -0
- package/src/training/training/SparsityMonitor.ts +685 -0
- package/src/training/training/SparsityMonitorTypes.ts +209 -0
- package/src/training/training/SpatialTrainingDataGenerator.ts +1526 -0
- package/src/training/training/SpatialTrainingDataTypes.ts +216 -0
- package/src/training/training/TrainingPipelineConfig.ts +215 -0
- package/src/training/training/__tests__/CorpusValidation.test.ts +87 -0
- package/src/training/training/__tests__/LRScheduler.test.ts +592 -0
- package/src/training/training/__tests__/SoftDedup.test.ts +415 -0
- package/src/training/training/__tests__/SparsityMonitor.test.ts +1623 -0
- package/src/training/training/__tests__/SpatialCorpusValidation.test.ts +72 -0
- package/src/training/training/__tests__/SpatialTrainingDataGenerator.test.ts +1244 -0
- package/src/training/training/__tests__/TrainingMonkeyIntegration.test.ts +897 -0
- package/src/training/training/__tests__/TrainingPipelineConfig.test.ts +202 -0
- package/src/training/training/__tests__/schema.test.ts +72 -0
- package/src/training/training/__tests__/training-constants.test.ts +106 -0
- package/src/training/training/__tests__/trait-mappings.test.ts +81 -0
- package/src/training/training/constants.ts +94 -0
- package/src/training/training/index.ts +17 -0
- package/src/training/training/schema.ts +147 -0
- package/src/training/training/scripts/generate-novel-use-cases-dataset.ts +272 -0
- package/src/training/training/scripts/generate-spatial-dataset.ts +521 -0
- package/src/training/training/trainingmonkey/TrainingMonkeyIntegration.ts +477 -0
- package/src/training/training/trainingmonkey/TrainingMonkeyTypes.ts +230 -0
- package/src/training/training/trainingmonkey/index.ts +26 -0
- package/src/training/training/trait-mappings.ts +157 -0
- package/src/types.ts +2 -7
- package/ALL-test-results.json +0 -1
- package/LICENSE +0 -21
- package/dist/AgentManifest-CB4xM-Ma.d.ts +0 -704
- package/dist/BehaviorTree-BrBFECv5.d.ts +0 -103
- package/dist/InvisibleWallet-rtRrBOA8.d.ts +0 -1732
- package/dist/OrchestratorAgent-Q_CbVTmO.d.ts +0 -798
- package/dist/agents/index.d.ts +0 -1788
- package/dist/agents/index.js +0 -4695
- package/dist/ai/index.d.ts +0 -1753
- package/dist/ai/index.js +0 -5244
- package/dist/behavior.d.ts +0 -130
- package/dist/behavior.js +0 -407
- package/dist/economy/index.d.ts +0 -747
- package/dist/economy/index.js +0 -3617
- package/dist/implementations-D9T3un9D.d.ts +0 -236
- package/dist/index.d.ts +0 -1729
- package/dist/index.js +0 -24277
- package/dist/learning/index.d.ts +0 -104
- package/dist/learning/index.js +0 -189
- package/dist/negotiation/index.d.ts +0 -610
- package/dist/negotiation/index.js +0 -931
- package/dist/skills/index.d.ts +0 -289
- package/dist/skills/index.js +0 -1079
- package/dist/swarm/index.d.ts +0 -2433
- package/dist/swarm/index.js +0 -5221
- package/dist/training/index.d.ts +0 -1734
- package/dist/training/index.js +0 -2687
- package/extract-failures.js +0 -10
- package/src/training/training/data/novel-use-cases.jsonl +0 -153
- package/src/training/training/data/spatial-reasoning-10k.jsonl +0 -9354
- package/src/types/core-stubs.d.ts +0 -113
- package/test-output.txt +0 -0
- package/test-result.json +0 -1
- package/tsc-errors.txt +0 -4
- package/tsc_output.txt +0 -0
- package/typescript-errors-2.txt +0 -0
- package/typescript-errors.txt +0 -22
- package/vitest-log-utf8.txt +0 -268
- package/vitest-log.txt +0 -0
package/CHANGELOG.md
CHANGED
package/ROADMAP.md
CHANGED
|
@@ -21,6 +21,7 @@ Every phase below has two parts: **absorb** (move logic into framework) and **sh
|
|
|
21
21
|
## Current State (v0.1.0 + v0.2 partial)
|
|
22
22
|
|
|
23
23
|
**Absorbed:**
|
|
24
|
+
|
|
24
25
|
- `defineAgent()` / `defineTeam()` — fluent builders
|
|
25
26
|
- `Team.runCycle()` with 7-phase `ProtocolAgent` (INTAKE through EVOLVE)
|
|
26
27
|
- `GoalSynthesizer` — agents synthesize goals when board is empty
|
|
@@ -36,6 +37,7 @@ Every phase below has two parts: **absorb** (move logic into framework) and **sh
|
|
|
36
37
|
- Re-exports: BaseAgent, GoalSynthesizer, MicroPhaseDecomposer, PWG types
|
|
37
38
|
|
|
38
39
|
**Shed so far:**
|
|
40
|
+
|
|
39
41
|
- `board-tools.ts` handleBoardAdd + handleScout -> framework
|
|
40
42
|
- `team-coordinator.ts` runAgentCycle -> framework Team.runCycle
|
|
41
43
|
|
|
@@ -47,16 +49,16 @@ Every phase below has two parts: **absorb** (move logic into framework) and **sh
|
|
|
47
49
|
|
|
48
50
|
Move all agent-protocol logic into framework. agent-protocol becomes a re-export shim.
|
|
49
51
|
|
|
50
|
-
| Absorb into framework
|
|
51
|
-
|
|
52
|
-
| Move `BaseAgent` class + 7-phase `runCycle`
|
|
53
|
-
| Move `GoalSynthesizer` class
|
|
54
|
-
| Move `MicroPhaseDecomposer` class (topo sort, parallel exec)
|
|
55
|
-
| Move `BaseService` + `ServiceLifecycle` + `ServiceError`
|
|
56
|
-
| Move PWG types (Pattern, Wisdom, Gotcha, PWGSeverity)
|
|
57
|
-
| Move `PhaseResult`, `CycleResult`, `AgentIdentity` types
|
|
58
|
-
| Wire `MicroPhaseDecomposer` into Team for complex task decomposition
|
|
59
|
-
| **agent-protocol/src/index.ts becomes:** `export * from '@holoscript/framework'` | Full package hollowed
|
|
52
|
+
| Absorb into framework | Delete from agent-protocol | Effort |
|
|
53
|
+
| -------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ------ |
|
|
54
|
+
| Move `BaseAgent` class + 7-phase `runCycle` | Replace with `export { BaseAgent } from '@holoscript/framework'` | M |
|
|
55
|
+
| Move `GoalSynthesizer` class | Replace with re-export | S |
|
|
56
|
+
| Move `MicroPhaseDecomposer` class (topo sort, parallel exec) | Replace with re-export | S |
|
|
57
|
+
| Move `BaseService` + `ServiceLifecycle` + `ServiceError` | Replace with re-export | S |
|
|
58
|
+
| Move PWG types (Pattern, Wisdom, Gotcha, PWGSeverity) | Replace with re-export | S |
|
|
59
|
+
| Move `PhaseResult`, `CycleResult`, `AgentIdentity` types | Replace with re-export | S |
|
|
60
|
+
| Wire `MicroPhaseDecomposer` into Team for complex task decomposition | N/A (new wiring) | M |
|
|
61
|
+
| **agent-protocol/src/index.ts becomes:** `export * from '@holoscript/framework'` | Full package hollowed | S |
|
|
60
62
|
|
|
61
63
|
---
|
|
62
64
|
|
|
@@ -64,18 +66,18 @@ Move all agent-protocol logic into framework. agent-protocol becomes a re-export
|
|
|
64
66
|
|
|
65
67
|
Move board state management into framework. mcp-server routes become thin HTTP handlers.
|
|
66
68
|
|
|
67
|
-
| Absorb into framework
|
|
68
|
-
|
|
69
|
-
| Move `TeamTask`, `DoneLogEntry`, `TeamSuggestion` types + logic
|
|
70
|
-
| Move board CRUD logic (add, claim, done, block, reopen, dedup)
|
|
71
|
-
| Move suggestion logic (create, vote, auto-promote, auto-dismiss)
|
|
72
|
-
| Move task derivation parser (checkboxes, headers, grep TODO/FIXME)
|
|
73
|
-
| Move scout endpoint logic into framework `Team.scout()`
|
|
74
|
-
| Move `ROOM_PRESETS` (audit/research/build/review) into framework
|
|
75
|
-
| Move `TeamAgentProfile` definitions (Brittney, Daemon, Absorb, Oracle)
|
|
76
|
-
| Move `team-coordinator.ts` remaining functions (assign, compound, query) | Delete file, import from framework
|
|
77
|
-
| Move done-log audit logic (commit verification, duplicate detection)
|
|
78
|
-
| **board-tools.ts becomes:** all handlers call `team.X()`, zero logic
|
|
69
|
+
| Absorb into framework | Delete from mcp-server | Effort |
|
|
70
|
+
| ------------------------------------------------------------------------ | ---------------------------------------------------------- | ------ |
|
|
71
|
+
| Move `TeamTask`, `DoneLogEntry`, `TeamSuggestion` types + logic | http-routes.ts drops inline types, imports from framework | M |
|
|
72
|
+
| Move board CRUD logic (add, claim, done, block, reopen, dedup) | http-routes.ts handlers become `team.X()` calls | M |
|
|
73
|
+
| Move suggestion logic (create, vote, auto-promote, auto-dismiss) | http-routes.ts suggestion handlers become `team.X()` calls | M |
|
|
74
|
+
| Move task derivation parser (checkboxes, headers, grep TODO/FIXME) | http-routes.ts derive handler becomes `team.derive()` call | S |
|
|
75
|
+
| Move scout endpoint logic into framework `Team.scout()` | http-routes.ts scout handler becomes `team.scout()` call | S |
|
|
76
|
+
| Move `ROOM_PRESETS` (audit/research/build/review) into framework | http-routes.ts mode handler imports presets from framework | S |
|
|
77
|
+
| Move `TeamAgentProfile` definitions (Brittney, Daemon, Absorb, Oracle) | team-agents.ts becomes re-export shim | S |
|
|
78
|
+
| Move `team-coordinator.ts` remaining functions (assign, compound, query) | Delete file, import from framework | M |
|
|
79
|
+
| Move done-log audit logic (commit verification, duplicate detection) | http-routes.ts audit handler imports from framework | S |
|
|
80
|
+
| **board-tools.ts becomes:** all handlers call `team.X()`, zero logic | Full file is thin wrappers | S |
|
|
79
81
|
|
|
80
82
|
---
|
|
81
83
|
|
|
@@ -83,16 +85,16 @@ Move board state management into framework. mcp-server routes become thin HTTP h
|
|
|
83
85
|
|
|
84
86
|
Move P2P and discovery logic into framework. agent-sdk becomes a re-export shim.
|
|
85
87
|
|
|
86
|
-
| Absorb into framework
|
|
87
|
-
|
|
88
|
-
| Move `MeshDiscovery` (peer detection, stale pruning, heartbeat)
|
|
89
|
-
| Move `SignalService` (capability broadcast)
|
|
90
|
-
| Move `GossipProtocol` (anti-entropy, dedup hashing, delta sync)
|
|
91
|
-
| Move `AgentCard` (A2A interop metadata)
|
|
92
|
-
| Move `MCP_TOOL_SCHEMAS` for knowledge ops
|
|
93
|
-
| Add `team.peers()` — list discovered peers with reputation
|
|
94
|
-
| Add agent-to-agent direct messaging on Team
|
|
95
|
-
| **agent-sdk/src/index.ts becomes:** `export * from '@holoscript/framework'` | Full package hollowed
|
|
88
|
+
| Absorb into framework | Delete from agent-sdk | Effort |
|
|
89
|
+
| --------------------------------------------------------------------------- | ---------------------- | ------ |
|
|
90
|
+
| Move `MeshDiscovery` (peer detection, stale pruning, heartbeat) | Replace with re-export | M |
|
|
91
|
+
| Move `SignalService` (capability broadcast) | Replace with re-export | M |
|
|
92
|
+
| Move `GossipProtocol` (anti-entropy, dedup hashing, delta sync) | Replace with re-export | M |
|
|
93
|
+
| Move `AgentCard` (A2A interop metadata) | Replace with re-export | S |
|
|
94
|
+
| Move `MCP_TOOL_SCHEMAS` for knowledge ops | Replace with re-export | S |
|
|
95
|
+
| Add `team.peers()` — list discovered peers with reputation | N/A (new API) | S |
|
|
96
|
+
| Add agent-to-agent direct messaging on Team | N/A (new API) | M |
|
|
97
|
+
| **agent-sdk/src/index.ts becomes:** `export * from '@holoscript/framework'` | Full package hollowed | S |
|
|
96
98
|
|
|
97
99
|
---
|
|
98
100
|
|
|
@@ -100,16 +102,16 @@ Move P2P and discovery logic into framework. agent-sdk becomes a re-export shim.
|
|
|
100
102
|
|
|
101
103
|
Move the CRDT consolidation engine and knowledge intelligence into framework.
|
|
102
104
|
|
|
103
|
-
| Absorb into framework
|
|
104
|
-
|
|
105
|
-
| Move `DOMAIN_HALF_LIVES` + `DomainConsolidationConfig`
|
|
106
|
-
| Move `ExcitabilityMetadata` + scoring formula
|
|
107
|
-
| Move consolidation cycles (sleep/wake, promote/evict/merge)
|
|
108
|
-
| Move `HotBufferEntry` + hot buffer management
|
|
109
|
-
| Add vector embedding pipeline (delegate to orchestrator pgvector) | N/A (new integration)
|
|
110
|
-
| Add cross-domain pattern surfacing in KnowledgeStore
|
|
111
|
-
| Add contradiction detection + resolution
|
|
112
|
-
| Add provenance chain (author -> task -> cycle -> verification)
|
|
105
|
+
| Absorb into framework | Delete from mcp-server | Effort |
|
|
106
|
+
| ----------------------------------------------------------------- | ----------------------------------------------------- | ------ |
|
|
107
|
+
| Move `DOMAIN_HALF_LIVES` + `DomainConsolidationConfig` | holomesh/types.ts drops these, imports from framework | S |
|
|
108
|
+
| Move `ExcitabilityMetadata` + scoring formula | holomesh/types.ts drops, imports from framework | S |
|
|
109
|
+
| Move consolidation cycles (sleep/wake, promote/evict/merge) | crdt-sync.ts consolidation engine moves to framework | L |
|
|
110
|
+
| Move `HotBufferEntry` + hot buffer management | crdt-sync.ts buffer logic moves to framework | M |
|
|
111
|
+
| Add vector embedding pipeline (delegate to orchestrator pgvector) | N/A (new integration) | M |
|
|
112
|
+
| Add cross-domain pattern surfacing in KnowledgeStore | N/A (new logic) | M |
|
|
113
|
+
| Add contradiction detection + resolution | N/A (new logic) | M |
|
|
114
|
+
| Add provenance chain (author -> task -> cycle -> verification) | Wire existing `provenanceHash` into StoredEntry | S |
|
|
113
115
|
|
|
114
116
|
---
|
|
115
117
|
|
|
@@ -117,15 +119,15 @@ Move the CRDT consolidation engine and knowledge intelligence into framework.
|
|
|
117
119
|
|
|
118
120
|
Move payment, bounty, and marketplace logic into framework. Core keeps only compilers/traits/parser.
|
|
119
121
|
|
|
120
|
-
| Absorb into framework
|
|
121
|
-
|
|
122
|
-
| Move `PaymentGateway` (x402, USDC settlement)
|
|
123
|
-
| Move `RevenueSplitter` (bigint exact, sum=total invariant)
|
|
124
|
-
| Move `InvisibleWallet` (env/keystore/AgentKit)
|
|
125
|
-
| Add distributed task claiming with conflict resolution
|
|
126
|
-
| Add skill-based routing (match task to best agent by capabilities) | Wire existing ClaimFilter + capabilities
|
|
127
|
-
| Add cross-team delegation (`team.delegate(otherTeam, taskId)`)
|
|
128
|
-
| Add bounty system (tasks with USDC rewards, payout on completion)
|
|
122
|
+
| Absorb into framework | Delete from core | Effort |
|
|
123
|
+
| ------------------------------------------------------------------ | -------------------------------------------- | ------ |
|
|
124
|
+
| Move `PaymentGateway` (x402, USDC settlement) | core/economy drops, imports from framework | L |
|
|
125
|
+
| Move `RevenueSplitter` (bigint exact, sum=total invariant) | core/economy drops, imports from framework | M |
|
|
126
|
+
| Move `InvisibleWallet` (env/keystore/AgentKit) | core/economy drops, imports from framework | M |
|
|
127
|
+
| Add distributed task claiming with conflict resolution | N/A (new logic on top of existing board API) | M |
|
|
128
|
+
| Add skill-based routing (match task to best agent by capabilities) | Wire existing ClaimFilter + capabilities | M |
|
|
129
|
+
| Add cross-team delegation (`team.delegate(otherTeam, taskId)`) | N/A (new API) | M |
|
|
130
|
+
| Add bounty system (tasks with USDC rewards, payout on completion) | Wire existing bounty team architecture | L |
|
|
129
131
|
|
|
130
132
|
---
|
|
131
133
|
|
|
@@ -133,12 +135,12 @@ Move payment, bounty, and marketplace logic into framework. Core keeps only comp
|
|
|
133
135
|
|
|
134
136
|
The framework can improve itself.
|
|
135
137
|
|
|
136
|
-
| Task
|
|
137
|
-
|
|
138
|
-
| Wire absorb — scan framework's own codebase, find improvements
|
|
139
|
-
| Auto-test generation via absorb pipeline
|
|
140
|
-
| Prompt optimization — A/B test system prompts, converge on best | LLM adapter + KnowledgeStore
|
|
141
|
-
| Framework evolution — agents propose + vote + ship API changes
|
|
138
|
+
| Task | Source | Effort |
|
|
139
|
+
| --------------------------------------------------------------- | ------------------------------------------- | ------ |
|
|
140
|
+
| Wire absorb — scan framework's own codebase, find improvements | absorb.holoscript.net service | M |
|
|
141
|
+
| Auto-test generation via absorb pipeline | absorb.holoscript.net `absorb_run_pipeline` | M |
|
|
142
|
+
| Prompt optimization — A/B test system prompts, converge on best | LLM adapter + KnowledgeStore | M |
|
|
143
|
+
| Framework evolution — agents propose + vote + ship API changes | suggest() + propose() already in framework | S |
|
|
142
144
|
|
|
143
145
|
**v1.0 Sprint:** The framework's own agents can propose, vote on, and ship improvements to themselves.
|
|
144
146
|
|
|
@@ -148,21 +150,21 @@ The framework can improve itself.
|
|
|
148
150
|
|
|
149
151
|
Once framework is the canonical home, deprecated packages become shims:
|
|
150
152
|
|
|
151
|
-
| Package
|
|
152
|
-
|
|
153
|
+
| Package | Becomes | Action |
|
|
154
|
+
| ---------------------------- | --------------------------------------- | ----------------------------------------- |
|
|
153
155
|
| `@holoscript/agent-protocol` | `export * from '@holoscript/framework'` | Keep for backward compat, mark deprecated |
|
|
154
|
-
| `@holoscript/agent-sdk`
|
|
155
|
-
| `@holoscript/core`
|
|
156
|
-
| `@holoscript/mcp-server`
|
|
156
|
+
| `@holoscript/agent-sdk` | `export * from '@holoscript/framework'` | Keep for backward compat, mark deprecated |
|
|
157
|
+
| `@holoscript/core` | Compilers + traits + parser only | Delete agent/BT/consensus/economy modules |
|
|
158
|
+
| `@holoscript/mcp-server` | HTTP routes only, zero logic | All handlers call `team.X()` |
|
|
157
159
|
|
|
158
160
|
---
|
|
159
161
|
|
|
160
162
|
## Sizing
|
|
161
163
|
|
|
162
|
-
| Size
|
|
163
|
-
|
|
164
|
-
| **S** | Move + delete + re-export. Hours.
|
|
165
|
-
| **M** | Move + refactor + tests. 1-2 days.
|
|
164
|
+
| Size | Meaning |
|
|
165
|
+
| ----- | -------------------------------------------------- |
|
|
166
|
+
| **S** | Move + delete + re-export. Hours. |
|
|
167
|
+
| **M** | Move + refactor + tests. 1-2 days. |
|
|
166
168
|
| **L** | Architecture change + integration tests. 3-5 days. |
|
|
167
169
|
|
|
168
170
|
## Principles
|
|
@@ -256,7 +256,7 @@ declare class KnowledgeStore {
|
|
|
256
256
|
* Evict: Permanently remove an entry from both hot and cold stores.
|
|
257
257
|
* Called during cleanup or when an entry is marked as stale/wrong.
|
|
258
258
|
*/
|
|
259
|
-
evict(id: string,
|
|
259
|
+
evict(id: string, _archivePath?: string): boolean;
|
|
260
260
|
/**
|
|
261
261
|
* Consolidate: Full sleep+wake cycle (once per agent work session).
|
|
262
262
|
* Moves stale entries to cold store, restores hot entries on demand.
|
|
@@ -770,7 +770,7 @@ declare class OrchestratorAgent extends BaseAgent {
|
|
|
770
770
|
compress(results: unknown): Promise<PhaseResult>;
|
|
771
771
|
reintake(compressed: unknown): Promise<PhaseResult>;
|
|
772
772
|
grow(learnings: unknown): Promise<PhaseResult>;
|
|
773
|
-
evolve(
|
|
773
|
+
evolve(_adaptations: unknown): Promise<PhaseResult>;
|
|
774
774
|
/**
|
|
775
775
|
* Delegate a task without running a full cycle.
|
|
776
776
|
*/
|
package/dist/agents/index.cjs
CHANGED
|
@@ -902,7 +902,7 @@ var FederatedRegistryAdapter = class {
|
|
|
902
902
|
let added = 0;
|
|
903
903
|
let updated = 0;
|
|
904
904
|
const failed = [];
|
|
905
|
-
const
|
|
905
|
+
const _results = await Promise.allSettled(
|
|
906
906
|
this.config.seedUrls.map(async (url) => {
|
|
907
907
|
const wasKnown = this.isKnownUrl(url);
|
|
908
908
|
const manifest = await this.fetchAndRegister(url);
|
|
@@ -2008,7 +2008,7 @@ var OrchestratorAgent = class extends BaseAgent {
|
|
|
2008
2008
|
// ===========================================================================
|
|
2009
2009
|
// PHASE 6: EVOLVE — Optimize routing preferences
|
|
2010
2010
|
// ===========================================================================
|
|
2011
|
-
async evolve(
|
|
2011
|
+
async evolve(_adaptations) {
|
|
2012
2012
|
const startTime = Date.now();
|
|
2013
2013
|
for (const [skillId, pattern] of this.patterns) {
|
|
2014
2014
|
if (pattern.successCount > pattern.failureCount) {
|
|
@@ -2546,9 +2546,9 @@ var CulturalMemory = class {
|
|
|
2546
2546
|
perceiveTraces(zoneId, position) {
|
|
2547
2547
|
const traces = this.stigmergic.get(zoneId) || [];
|
|
2548
2548
|
return traces.filter((t) => {
|
|
2549
|
-
const dx = t.position
|
|
2550
|
-
const dy = t.position
|
|
2551
|
-
const dz = t.position
|
|
2549
|
+
const dx = t.position[0] - position[0];
|
|
2550
|
+
const dy = t.position[1] - position[1];
|
|
2551
|
+
const dz = t.position[2] - position[2];
|
|
2552
2552
|
const dist = Math.sqrt(dx * dx + dy * dy + dz * dz);
|
|
2553
2553
|
return dist <= t.radius && t.intensity > 0.01;
|
|
2554
2554
|
}).sort((a, b) => b.intensity - a.intensity);
|
|
@@ -3008,7 +3008,7 @@ var NormEngine = class {
|
|
|
3008
3008
|
}
|
|
3009
3009
|
return state;
|
|
3010
3010
|
}
|
|
3011
|
-
witnessesIn(
|
|
3011
|
+
witnessesIn(_zoneId) {
|
|
3012
3012
|
return [...this.agents.keys()].slice(0, 5);
|
|
3013
3013
|
}
|
|
3014
3014
|
};
|
|
@@ -3039,7 +3039,7 @@ var DEFAULT_A2A_CONFIG = {
|
|
|
3039
3039
|
};
|
|
3040
3040
|
var DEFAULT_MCP_CONFIG = {
|
|
3041
3041
|
endpoint: "http://localhost:5567",
|
|
3042
|
-
apiKey: process.env.
|
|
3042
|
+
apiKey: process.env.HOLOSCRIPT_API_KEY || "",
|
|
3043
3043
|
timeout: 3e4
|
|
3044
3044
|
// 30 seconds
|
|
3045
3045
|
};
|
|
@@ -3312,6 +3312,7 @@ var WebRTCRealTimeTransport = class {
|
|
|
3312
3312
|
constructor(config) {
|
|
3313
3313
|
this.config = config;
|
|
3314
3314
|
}
|
|
3315
|
+
config;
|
|
3315
3316
|
dataChannel;
|
|
3316
3317
|
peerConnection;
|
|
3317
3318
|
async init(remoteDescription) {
|
|
@@ -4293,7 +4294,7 @@ var Layer3MCPServer = class extends import_events4.EventEmitter {
|
|
|
4293
4294
|
this.emit("world_created", { worldId, worldSpec, context });
|
|
4294
4295
|
return { world_id: worldId, status };
|
|
4295
4296
|
});
|
|
4296
|
-
this.registerHandler("get_world_status", async (params,
|
|
4297
|
+
this.registerHandler("get_world_status", async (params, _context) => {
|
|
4297
4298
|
const worldId = params.world_id;
|
|
4298
4299
|
const status = this.worlds.get(worldId);
|
|
4299
4300
|
if (!status) {
|
|
@@ -4315,7 +4316,7 @@ var Layer3MCPServer = class extends import_events4.EventEmitter {
|
|
|
4315
4316
|
// 10MB
|
|
4316
4317
|
};
|
|
4317
4318
|
});
|
|
4318
|
-
this.registerHandler("get_agent_registry", async (params,
|
|
4319
|
+
this.registerHandler("get_agent_registry", async (params, _context) => {
|
|
4319
4320
|
const filter = params.filter;
|
|
4320
4321
|
const agents = [];
|
|
4321
4322
|
for (const world of this.worlds.values()) {
|
|
@@ -4337,7 +4338,7 @@ var Layer3MCPServer = class extends import_events4.EventEmitter {
|
|
|
4337
4338
|
total: agents.length
|
|
4338
4339
|
};
|
|
4339
4340
|
});
|
|
4340
|
-
this.registerHandler("get_performance_metrics", async (params,
|
|
4341
|
+
this.registerHandler("get_performance_metrics", async (params, _context) => {
|
|
4341
4342
|
const worldId = params.world_id;
|
|
4342
4343
|
const agentId = params.agent_id;
|
|
4343
4344
|
const metrics = {
|
package/dist/agents/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { a as AgentCapability, c as AgentCategory, d as AgentConfig, e as AgentEndpoint, f as AgentLifespanContext, A as AgentManifest, g as AgentManifestBuilder, h as AgentMessage, i as AgentPhase, j as AgentPosition, k as AgentResponse, l as AgentSection, m as AgentState, n as AgentTraitContext, o as AgentValidationResult, p as AnyPhaseResult, q as ArchitectureAwareness, r as AssistantLifespanContext, B as BoundingBox, s as BudgetConfig, b as CapabilityDomain, C as CapabilityType, t as CompressResult, u as CuriosityConfig, v as CycleMetric, w as CycleResult, D as DEFAULT_PHASE_TIMINGS, E as EndpointProtocol, x as EvolveResult, y as ExecuteResult, G as GotchaEntry, z as GrowResult, I as IntakeResult, F as LATENCY_THRESHOLDS, L as LatencyProfile, M as MessagePriority, P as PHASE_ORDER, H as PatternEntry, J as PhaseConfig, K as PhaseResult, R as ReflectResult, N as ReintakeResult, O as ResourceCost, S as SpatialScope, T as TrustLevel, V as Vector3, Q as VerificationStatus, W as WisdomEntry, U as createAgentManifest, X as validateManifest } from '../AgentManifest-CB4xM-Ma.cjs';
|
|
2
|
-
export { A as A2AAgentCard, a as A2ASkill, b as A2ATransportAdapter, c as AgentMatch, d as AgentRegistry, R as AgentRegistryConfig, C as CapabilityMatch, e as CapabilityMatcher, f as CapabilityQuery, D as DEFAULT_REGISTRY_CONFIG, g as DelegationRequest, h as DelegationResult, i as DelegationTraceEvent, j as DelegationTracePhase, k as DiscoveryMode, F as FederatedRegistryAdapter, l as FederatedRegistryConfig, O as OrchestratorAgent, m as OrchestratorConfig, P as ProgressCallback, n as RegistryEvents, S as SkillExecutor, o as SkillWorkflowEngine, p as SpatialQuery, T as TaskDelegationConfig, q as TaskDelegationService, W as WorkflowDefinition, r as WorkflowInput, s as WorkflowResult, t as WorkflowStep, u as WorkflowStepResult, v as WorkflowValidation, w as defaultMatcher, x as findAgents, y as findBestAgent, z as getDefaultRegistry, B as resetDefaultRegistry } from '../OrchestratorAgent-
|
|
2
|
+
export { A as A2AAgentCard, a as A2ASkill, b as A2ATransportAdapter, c as AgentMatch, d as AgentRegistry, R as AgentRegistryConfig, C as CapabilityMatch, e as CapabilityMatcher, f as CapabilityQuery, D as DEFAULT_REGISTRY_CONFIG, g as DelegationRequest, h as DelegationResult, i as DelegationTraceEvent, j as DelegationTracePhase, k as DiscoveryMode, F as FederatedRegistryAdapter, l as FederatedRegistryConfig, O as OrchestratorAgent, m as OrchestratorConfig, P as ProgressCallback, n as RegistryEvents, S as SkillExecutor, o as SkillWorkflowEngine, p as SpatialQuery, T as TaskDelegationConfig, q as TaskDelegationService, W as WorkflowDefinition, r as WorkflowInput, s as WorkflowResult, t as WorkflowStep, u as WorkflowStepResult, v as WorkflowValidation, w as defaultMatcher, x as findAgents, y as findBestAgent, z as getDefaultRegistry, B as resetDefaultRegistry } from '../OrchestratorAgent-CrLDGNL6.cjs';
|
|
3
3
|
import { CulturalNorm, NormEnforcement } from '@holoscript/core';
|
|
4
4
|
export { CulturalNorm, NormCategory, NormEnforcement, NormScope } from '@holoscript/core';
|
|
5
5
|
import { EventEmitter } from 'events';
|
|
@@ -449,11 +449,7 @@ interface StigmergicTrace {
|
|
|
449
449
|
/** Creator */
|
|
450
450
|
creatorId: string;
|
|
451
451
|
/** Spatial position */
|
|
452
|
-
position:
|
|
453
|
-
x: number;
|
|
454
|
-
y: number;
|
|
455
|
-
z: number;
|
|
456
|
-
};
|
|
452
|
+
position: [number, number, number];
|
|
457
453
|
/** Zone the trace belongs to */
|
|
458
454
|
zoneId: string;
|
|
459
455
|
/** Type of trace */
|
|
@@ -541,19 +537,11 @@ declare class CulturalMemory {
|
|
|
541
537
|
/**
|
|
542
538
|
* Leave a stigmergic trace in the environment.
|
|
543
539
|
*/
|
|
544
|
-
leaveTrace(creatorId: string, zoneId: string, label: string, position:
|
|
545
|
-
x: number;
|
|
546
|
-
y: number;
|
|
547
|
-
z: number;
|
|
548
|
-
}, opts?: Partial<Omit<StigmergicTrace, 'id' | 'creatorId' | 'zoneId' | 'label' | 'position' | 'timestamp' | 'reinforcements'>>): StigmergicTrace;
|
|
540
|
+
leaveTrace(creatorId: string, zoneId: string, label: string, position: [number, number, number], opts?: Partial<Omit<StigmergicTrace, 'id' | 'creatorId' | 'zoneId' | 'label' | 'position' | 'timestamp' | 'reinforcements'>>): StigmergicTrace;
|
|
549
541
|
/**
|
|
550
542
|
* Perceive nearby traces from a position.
|
|
551
543
|
*/
|
|
552
|
-
perceiveTraces(zoneId: string, position:
|
|
553
|
-
x: number;
|
|
554
|
-
y: number;
|
|
555
|
-
z: number;
|
|
556
|
-
}): StigmergicTrace[];
|
|
544
|
+
perceiveTraces(zoneId: string, position: [number, number, number]): StigmergicTrace[];
|
|
557
545
|
/**
|
|
558
546
|
* Reinforce a trace (another agent validates it).
|
|
559
547
|
* Increases intensity and slows decay.
|
package/dist/ai/index.cjs
CHANGED
|
@@ -3211,9 +3211,9 @@ function createAnalytics() {
|
|
|
3211
3211
|
|
|
3212
3212
|
// src/ai/HoloScriptGenerator.ts
|
|
3213
3213
|
var HoloScriptPlusParser = class {
|
|
3214
|
-
constructor(
|
|
3214
|
+
constructor(_opts) {
|
|
3215
3215
|
}
|
|
3216
|
-
parse(
|
|
3216
|
+
parse(_code) {
|
|
3217
3217
|
return { success: true, errors: [], ast: {} };
|
|
3218
3218
|
}
|
|
3219
3219
|
};
|
package/dist/behavior.cjs
CHANGED
|
@@ -45,6 +45,8 @@ var ActionNode = class {
|
|
|
45
45
|
this.name = name;
|
|
46
46
|
this.fn = fn;
|
|
47
47
|
}
|
|
48
|
+
name;
|
|
49
|
+
fn;
|
|
48
50
|
type = "action";
|
|
49
51
|
tick(context, delta) {
|
|
50
52
|
return this.fn(context, delta);
|
|
@@ -55,6 +57,8 @@ var ConditionNode = class {
|
|
|
55
57
|
this.name = name;
|
|
56
58
|
this.predicate = predicate;
|
|
57
59
|
}
|
|
60
|
+
name;
|
|
61
|
+
predicate;
|
|
58
62
|
type = "condition";
|
|
59
63
|
tick(context) {
|
|
60
64
|
return this.predicate(context) ? "success" : "failure";
|
|
@@ -64,6 +68,7 @@ var WaitNode = class {
|
|
|
64
68
|
constructor(duration) {
|
|
65
69
|
this.duration = duration;
|
|
66
70
|
}
|
|
71
|
+
duration;
|
|
67
72
|
type = "wait";
|
|
68
73
|
elapsed = 0;
|
|
69
74
|
tick(_context, delta) {
|
|
@@ -81,6 +86,7 @@ var SequenceNode = class {
|
|
|
81
86
|
constructor(children) {
|
|
82
87
|
this.children = children;
|
|
83
88
|
}
|
|
89
|
+
children;
|
|
84
90
|
type = "sequence";
|
|
85
91
|
currentIndex = 0;
|
|
86
92
|
tick(context, delta) {
|
|
@@ -107,6 +113,7 @@ var SelectorNode = class {
|
|
|
107
113
|
constructor(children) {
|
|
108
114
|
this.children = children;
|
|
109
115
|
}
|
|
116
|
+
children;
|
|
110
117
|
type = "selector";
|
|
111
118
|
currentIndex = 0;
|
|
112
119
|
tick(context, delta) {
|
|
@@ -133,6 +140,7 @@ var InverterNode = class {
|
|
|
133
140
|
constructor(child) {
|
|
134
141
|
this.child = child;
|
|
135
142
|
}
|
|
143
|
+
child;
|
|
136
144
|
type = "inverter";
|
|
137
145
|
tick(context, delta) {
|
|
138
146
|
const status = this.child.tick(context, delta);
|
|
@@ -149,6 +157,8 @@ var RepeaterNode = class {
|
|
|
149
157
|
this.child = child;
|
|
150
158
|
this.maxCount = maxCount;
|
|
151
159
|
}
|
|
160
|
+
child;
|
|
161
|
+
maxCount;
|
|
152
162
|
type = "repeater";
|
|
153
163
|
count = 0;
|
|
154
164
|
tick(context, delta) {
|
package/dist/economy/index.cjs
CHANGED
|
@@ -1055,13 +1055,13 @@ var PaymentGateway = class {
|
|
|
1055
1055
|
});
|
|
1056
1056
|
const originalStatus = this.facilitator.getSettlementStatus(originalNonce);
|
|
1057
1057
|
const ledger = this.facilitator.getLedger();
|
|
1058
|
-
const
|
|
1059
|
-
let
|
|
1060
|
-
const
|
|
1058
|
+
const _allEntries = ledger.getEntriesForPayer("");
|
|
1059
|
+
let _originalEntry;
|
|
1060
|
+
const _ledgerStats = ledger.getStats();
|
|
1061
1061
|
if (originalStatus !== "unknown" && originalStatus !== "pending") {
|
|
1062
1062
|
const settlement = originalStatus;
|
|
1063
1063
|
if (settlement.mode === "in_memory" && settlement.transaction) {
|
|
1064
|
-
const
|
|
1064
|
+
const _refundAmount = partialAmount ?? settlement.transaction ? "0" : "0";
|
|
1065
1065
|
const refundId2 = `refund_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`;
|
|
1066
1066
|
const reverseEntry = ledger.record(
|
|
1067
1067
|
this.config.recipientAddress,
|
package/dist/economy/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TelemetryCollector, R as ResourceCategory, a as ResourceUsageNode } from '../InvisibleWallet-
|
|
2
|
-
export { B as Bounty, b as BountyCurrency, c as BountyManager, d as BountyManagerConfig, e as BountyReward, f as BountyStatus, C as CHAIN_IDS, g as CHAIN_ID_TO_NETWORK, h as ClaimResult, i as CompletionProof, j as CreatorEarnings, k as CreatorRevenueAggregator, l as CreditTraitConfig, I as InvisibleWalletStub, K as KnowledgeListing, m as KnowledgeMarketplace, L as LedgerEntry, n as ListingResult, o as ListingStatus, M as MICRO_PAYMENT_THRESHOLD, p as MicroPaymentLedger, P as PaymentGateway, q as PaymentScheme, r as PaymentWebhookService, s as PayoutRecord, t as PayoutResult, u as PluginRevenue, v as PricingFactors, w as PurchaseResult, x as RefundRequest, y as RefundResult, z as RevenueAggregatorConfig, A as RevenueEvent, D as RevenuePeriod, E as RevenueSplitter, S as SettlementChain, F as SettlementEvent, G as SettlementEventListener, H as SettlementEventType, J as SettlementMode, N as SplitBreakdownEntry, O as SplitRecipient, Q as SplitResult, U as USDC_CONTRACTS, V as WalletConfig, W as WalletHexAddress, X as WalletInfo, Y as WebhookEventType, Z as WebhookHandler, _ as WebhookPayload, $ as WebhookProcessingResult, a0 as WebhookProvider, a1 as WebhookServiceConfig, a2 as WebhookVerificationResult, a3 as X402Facilitator, a4 as X402FacilitatorConfig, a5 as X402PaymentOption, a6 as X402PaymentPayload, a7 as X402PaymentRequired, a8 as X402SettlementResult, a9 as X402VerificationResult, aa as X402_VERSION, ab as creditTraitHandler } from '../InvisibleWallet-
|
|
1
|
+
import { T as TelemetryCollector, R as ResourceCategory, a as ResourceUsageNode } from '../InvisibleWallet-EFiuaLn3.cjs';
|
|
2
|
+
export { B as Bounty, b as BountyCurrency, c as BountyManager, d as BountyManagerConfig, e as BountyReward, f as BountyStatus, C as CHAIN_IDS, g as CHAIN_ID_TO_NETWORK, h as ClaimResult, i as CompletionProof, j as CreatorEarnings, k as CreatorRevenueAggregator, l as CreditTraitConfig, I as InvisibleWalletStub, K as KnowledgeListing, m as KnowledgeMarketplace, L as LedgerEntry, n as ListingResult, o as ListingStatus, M as MICRO_PAYMENT_THRESHOLD, p as MicroPaymentLedger, P as PaymentGateway, q as PaymentScheme, r as PaymentWebhookService, s as PayoutRecord, t as PayoutResult, u as PluginRevenue, v as PricingFactors, w as PurchaseResult, x as RefundRequest, y as RefundResult, z as RevenueAggregatorConfig, A as RevenueEvent, D as RevenuePeriod, E as RevenueSplitter, S as SettlementChain, F as SettlementEvent, G as SettlementEventListener, H as SettlementEventType, J as SettlementMode, N as SplitBreakdownEntry, O as SplitRecipient, Q as SplitResult, U as USDC_CONTRACTS, V as WalletConfig, W as WalletHexAddress, X as WalletInfo, Y as WebhookEventType, Z as WebhookHandler, _ as WebhookPayload, $ as WebhookProcessingResult, a0 as WebhookProvider, a1 as WebhookServiceConfig, a2 as WebhookVerificationResult, a3 as X402Facilitator, a4 as X402FacilitatorConfig, a5 as X402PaymentOption, a6 as X402PaymentPayload, a7 as X402PaymentRequired, a8 as X402SettlementResult, a9 as X402VerificationResult, aa as X402_VERSION, ab as creditTraitHandler } from '../InvisibleWallet-EFiuaLn3.cjs';
|
|
3
3
|
import '../implementations-D9T3un9D.cjs';
|
|
4
4
|
import '@holoscript/core';
|
|
5
5
|
|
package/dist/index.cjs
CHANGED
|
@@ -936,7 +936,7 @@ var KnowledgeStore = class {
|
|
|
936
936
|
* Evict: Permanently remove an entry from both hot and cold stores.
|
|
937
937
|
* Called during cleanup or when an entry is marked as stale/wrong.
|
|
938
938
|
*/
|
|
939
|
-
evict(id,
|
|
939
|
+
evict(id, _archivePath) {
|
|
940
940
|
const existed = this.entries.delete(id);
|
|
941
941
|
if (existed) {
|
|
942
942
|
this.persistIfEnabled();
|
|
@@ -1041,6 +1041,7 @@ var DoneLogAuditor = class {
|
|
|
1041
1041
|
constructor(entries) {
|
|
1042
1042
|
this.entries = entries;
|
|
1043
1043
|
}
|
|
1044
|
+
entries;
|
|
1044
1045
|
/**
|
|
1045
1046
|
* Run all audit checks and return violations.
|
|
1046
1047
|
*
|
|
@@ -1549,6 +1550,9 @@ var ServiceError = class extends Error {
|
|
|
1549
1550
|
this.details = details;
|
|
1550
1551
|
this.name = "ServiceError";
|
|
1551
1552
|
}
|
|
1553
|
+
code;
|
|
1554
|
+
statusCode;
|
|
1555
|
+
details;
|
|
1552
1556
|
};
|
|
1553
1557
|
var BaseService = class {
|
|
1554
1558
|
metadata;
|
|
@@ -2261,6 +2265,7 @@ var SmartMicroPhaseDecomposer = class {
|
|
|
2261
2265
|
constructor(llm) {
|
|
2262
2266
|
this.llm = llm;
|
|
2263
2267
|
}
|
|
2268
|
+
llm;
|
|
2264
2269
|
/**
|
|
2265
2270
|
* Decompose a complex task into parallel micro-phases using LLM analysis.
|
|
2266
2271
|
* Returns phases with dependency edges and a wave-based execution plan.
|
|
@@ -5023,6 +5028,8 @@ var ActionNode = class {
|
|
|
5023
5028
|
this.name = name;
|
|
5024
5029
|
this.fn = fn;
|
|
5025
5030
|
}
|
|
5031
|
+
name;
|
|
5032
|
+
fn;
|
|
5026
5033
|
type = "action";
|
|
5027
5034
|
tick(context, delta) {
|
|
5028
5035
|
return this.fn(context, delta);
|
|
@@ -5033,6 +5040,8 @@ var ConditionNode = class {
|
|
|
5033
5040
|
this.name = name;
|
|
5034
5041
|
this.predicate = predicate;
|
|
5035
5042
|
}
|
|
5043
|
+
name;
|
|
5044
|
+
predicate;
|
|
5036
5045
|
type = "condition";
|
|
5037
5046
|
tick(context) {
|
|
5038
5047
|
return this.predicate(context) ? "success" : "failure";
|
|
@@ -5042,6 +5051,7 @@ var WaitNode = class {
|
|
|
5042
5051
|
constructor(duration) {
|
|
5043
5052
|
this.duration = duration;
|
|
5044
5053
|
}
|
|
5054
|
+
duration;
|
|
5045
5055
|
type = "wait";
|
|
5046
5056
|
elapsed = 0;
|
|
5047
5057
|
tick(_context, delta) {
|
|
@@ -5059,6 +5069,7 @@ var SequenceNode = class {
|
|
|
5059
5069
|
constructor(children) {
|
|
5060
5070
|
this.children = children;
|
|
5061
5071
|
}
|
|
5072
|
+
children;
|
|
5062
5073
|
type = "sequence";
|
|
5063
5074
|
currentIndex = 0;
|
|
5064
5075
|
tick(context, delta) {
|
|
@@ -5085,6 +5096,7 @@ var SelectorNode = class {
|
|
|
5085
5096
|
constructor(children) {
|
|
5086
5097
|
this.children = children;
|
|
5087
5098
|
}
|
|
5099
|
+
children;
|
|
5088
5100
|
type = "selector";
|
|
5089
5101
|
currentIndex = 0;
|
|
5090
5102
|
tick(context, delta) {
|
|
@@ -5111,6 +5123,7 @@ var InverterNode = class {
|
|
|
5111
5123
|
constructor(child) {
|
|
5112
5124
|
this.child = child;
|
|
5113
5125
|
}
|
|
5126
|
+
child;
|
|
5114
5127
|
type = "inverter";
|
|
5115
5128
|
tick(context, delta) {
|
|
5116
5129
|
const status = this.child.tick(context, delta);
|
|
@@ -5127,6 +5140,8 @@ var RepeaterNode = class {
|
|
|
5127
5140
|
this.child = child;
|
|
5128
5141
|
this.maxCount = maxCount;
|
|
5129
5142
|
}
|
|
5143
|
+
child;
|
|
5144
|
+
maxCount;
|
|
5130
5145
|
type = "repeater";
|
|
5131
5146
|
count = 0;
|
|
5132
5147
|
tick(context, delta) {
|
|
@@ -7952,13 +7967,13 @@ var PaymentGateway = class {
|
|
|
7952
7967
|
});
|
|
7953
7968
|
const originalStatus = this.facilitator.getSettlementStatus(originalNonce);
|
|
7954
7969
|
const ledger = this.facilitator.getLedger();
|
|
7955
|
-
const
|
|
7956
|
-
let
|
|
7957
|
-
const
|
|
7970
|
+
const _allEntries = ledger.getEntriesForPayer("");
|
|
7971
|
+
let _originalEntry;
|
|
7972
|
+
const _ledgerStats = ledger.getStats();
|
|
7958
7973
|
if (originalStatus !== "unknown" && originalStatus !== "pending") {
|
|
7959
7974
|
const settlement = originalStatus;
|
|
7960
7975
|
if (settlement.mode === "in_memory" && settlement.transaction) {
|
|
7961
|
-
const
|
|
7976
|
+
const _refundAmount = partialAmount ?? settlement.transaction ? "0" : "0";
|
|
7962
7977
|
const refundId2 = `refund_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`;
|
|
7963
7978
|
const reverseEntry = ledger.record(
|
|
7964
7979
|
this.config.recipientAddress,
|
|
@@ -8888,6 +8903,8 @@ var DistributedClaimer = class {
|
|
|
8888
8903
|
this.gossip = gossip;
|
|
8889
8904
|
this.claimTtlMs = config.claimTtlMs ?? 3e4;
|
|
8890
8905
|
}
|
|
8906
|
+
mesh;
|
|
8907
|
+
gossip;
|
|
8891
8908
|
claims = /* @__PURE__ */ new Map();
|
|
8892
8909
|
claimTtlMs;
|
|
8893
8910
|
counter = 0;
|
|
@@ -9149,6 +9166,8 @@ var DelegationManager = class {
|
|
|
9149
9166
|
requiredCapabilities: policy.requiredCapabilities ?? []
|
|
9150
9167
|
};
|
|
9151
9168
|
}
|
|
9169
|
+
teamId;
|
|
9170
|
+
adapter;
|
|
9152
9171
|
delegations = /* @__PURE__ */ new Map();
|
|
9153
9172
|
policy;
|
|
9154
9173
|
/**
|
|
@@ -9254,7 +9273,7 @@ var DEFAULT_ORCHESTRATOR_URL = "https://mcp-orchestrator-production-45f9.up.rail
|
|
|
9254
9273
|
var DEFAULT_WORKSPACE_ID = "ai-ecosystem";
|
|
9255
9274
|
async function scanFramework(config = {}) {
|
|
9256
9275
|
const orchestratorUrl = config.orchestratorUrl || DEFAULT_ORCHESTRATOR_URL;
|
|
9257
|
-
const apiKey = config.mcpApiKey || process.env.
|
|
9276
|
+
const apiKey = config.mcpApiKey || process.env.HOLOSCRIPT_API_KEY || "";
|
|
9258
9277
|
const workspaceId = config.workspaceId || DEFAULT_WORKSPACE_ID;
|
|
9259
9278
|
const maxTasks = config.maxTasks || 20;
|
|
9260
9279
|
const searchQuery = config.searchQuery || "framework improvement opportunities type-safety test-coverage refactoring agents";
|
|
@@ -9265,7 +9284,7 @@ async function scanFramework(config = {}) {
|
|
|
9265
9284
|
issuesFound: 0,
|
|
9266
9285
|
improvements: [],
|
|
9267
9286
|
knowledge: [],
|
|
9268
|
-
error: "
|
|
9287
|
+
error: "HOLOSCRIPT_API_KEY required for knowledge store query"
|
|
9269
9288
|
};
|
|
9270
9289
|
}
|
|
9271
9290
|
try {
|
|
@@ -10505,7 +10524,7 @@ var FederatedRegistryAdapter = class {
|
|
|
10505
10524
|
let added = 0;
|
|
10506
10525
|
let updated = 0;
|
|
10507
10526
|
const failed = [];
|
|
10508
|
-
const
|
|
10527
|
+
const _results = await Promise.allSettled(
|
|
10509
10528
|
this.config.seedUrls.map(async (url) => {
|
|
10510
10529
|
const wasKnown = this.isKnownUrl(url);
|
|
10511
10530
|
const manifest = await this.fetchAndRegister(url);
|
|
@@ -11554,7 +11573,7 @@ var OrchestratorAgent = class extends BaseAgent {
|
|
|
11554
11573
|
// ===========================================================================
|
|
11555
11574
|
// PHASE 6: EVOLVE — Optimize routing preferences
|
|
11556
11575
|
// ===========================================================================
|
|
11557
|
-
async evolve(
|
|
11576
|
+
async evolve(_adaptations) {
|
|
11558
11577
|
const startTime = Date.now();
|
|
11559
11578
|
for (const [skillId, pattern] of this.patterns) {
|
|
11560
11579
|
if (pattern.successCount > pattern.failureCount) {
|
|
@@ -14016,6 +14035,9 @@ var Vector3 = class _Vector3 {
|
|
|
14016
14035
|
this.y = y;
|
|
14017
14036
|
this.z = z;
|
|
14018
14037
|
}
|
|
14038
|
+
x;
|
|
14039
|
+
y;
|
|
14040
|
+
z;
|
|
14019
14041
|
/**
|
|
14020
14042
|
* Create from array
|
|
14021
14043
|
*/
|
|
@@ -19399,9 +19421,9 @@ function createAnalytics() {
|
|
|
19399
19421
|
|
|
19400
19422
|
// src/ai/HoloScriptGenerator.ts
|
|
19401
19423
|
var HoloScriptPlusParser = class {
|
|
19402
|
-
constructor(
|
|
19424
|
+
constructor(_opts) {
|
|
19403
19425
|
}
|
|
19404
|
-
parse(
|
|
19426
|
+
parse(_code) {
|
|
19405
19427
|
return { success: true, errors: [], ast: {} };
|
|
19406
19428
|
}
|
|
19407
19429
|
};
|