wyrm-mcp 7.0.3 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/NOTICE +29 -0
- package/dist/agent-daemon.d.ts +1 -1
- package/dist/agent-daemon.js +1 -1
- package/dist/agent-loop.d.ts +1 -1
- package/dist/agent-loop.js +1 -1
- package/dist/analytics.d.ts +1 -1
- package/dist/analytics.js +1 -1
- package/dist/audit.d.ts +1 -1
- package/dist/audit.js +1 -1
- package/dist/auto-capture.js +1 -1
- package/dist/auto-orchestrator.d.ts +1 -1
- package/dist/auto-orchestrator.js +1 -1
- package/dist/autoconfig.d.ts +1 -1
- package/dist/autoconfig.js +1 -1
- package/dist/buddy-runner.d.ts +24 -0
- package/dist/buddy-runner.d.ts.map +1 -0
- package/dist/buddy-runner.js +109 -0
- package/dist/buddy-runner.js.map +1 -0
- package/dist/buddy.d.ts +1 -1
- package/dist/buddy.js +1 -1
- package/dist/capabilities.d.ts +1 -1
- package/dist/capabilities.js +1 -1
- package/dist/capture.d.ts +1 -1
- package/dist/capture.js +1 -1
- package/dist/causality.d.ts +1 -1
- package/dist/causality.js +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +1 -1
- package/dist/cloud-backup.d.ts +1 -1
- package/dist/cloud-backup.js +1 -1
- package/dist/cloud-profile.d.ts +103 -0
- package/dist/cloud-profile.d.ts.map +1 -0
- package/dist/cloud-profile.js +138 -0
- package/dist/cloud-profile.js.map +1 -0
- package/dist/cloud-sync-entrypoint.d.ts +1 -1
- package/dist/cloud-sync-entrypoint.js +1 -1
- package/dist/cloud-sync.d.ts +1 -1
- package/dist/cloud-sync.js +1 -1
- package/dist/constellation.d.ts +1 -1
- package/dist/constellation.js +1 -1
- package/dist/context-build-budgeted.d.ts +43 -0
- package/dist/context-build-budgeted.d.ts.map +1 -0
- package/dist/context-build-budgeted.js +144 -0
- package/dist/context-build-budgeted.js.map +1 -0
- package/dist/context-ranking.d.ts +1 -1
- package/dist/context-ranking.js +1 -1
- package/dist/crypto.d.ts +1 -1
- package/dist/crypto.js +1 -1
- package/dist/database.d.ts +1 -1
- package/dist/database.js +1 -1
- package/dist/design.d.ts +1 -1
- package/dist/design.js +1 -1
- package/dist/event-replication.d.ts +1 -1
- package/dist/event-replication.js +1 -1
- package/dist/events-sse.d.ts +1 -1
- package/dist/events-sse.js +1 -1
- package/dist/events.js +1 -1
- package/dist/failure-patterns.d.ts +1 -1
- package/dist/failure-patterns.js +1 -1
- package/dist/federation.d.ts +1 -1
- package/dist/federation.js +1 -1
- package/dist/goals.d.ts +1 -1
- package/dist/goals.js +1 -1
- package/dist/handlers/agent.d.ts +7 -0
- package/dist/handlers/agent.d.ts.map +1 -0
- package/dist/handlers/agent.js +165 -0
- package/dist/handlers/agent.js.map +1 -0
- package/dist/handlers/aliases.d.ts +2 -2
- package/dist/handlers/aliases.d.ts.map +1 -1
- package/dist/handlers/aliases.js +3 -2
- package/dist/handlers/aliases.js.map +1 -1
- package/dist/handlers/audit.d.ts +7 -0
- package/dist/handlers/audit.d.ts.map +1 -0
- package/dist/handlers/audit.js +87 -0
- package/dist/handlers/audit.js.map +1 -0
- package/dist/handlers/boundary.d.ts +4 -0
- package/dist/handlers/boundary.d.ts.map +1 -1
- package/dist/handlers/boundary.js +18 -0
- package/dist/handlers/boundary.js.map +1 -1
- package/dist/handlers/capture.d.ts.map +1 -1
- package/dist/handlers/capture.js +146 -2
- package/dist/handlers/capture.js.map +1 -1
- package/dist/handlers/causality.d.ts +7 -0
- package/dist/handlers/causality.d.ts.map +1 -0
- package/dist/handlers/causality.js +114 -0
- package/dist/handlers/causality.js.map +1 -0
- package/dist/handlers/cloud.d.ts +7 -0
- package/dist/handlers/cloud.d.ts.map +1 -0
- package/dist/handlers/cloud.js +382 -0
- package/dist/handlers/cloud.js.map +1 -0
- package/dist/handlers/companion.d.ts +7 -0
- package/dist/handlers/companion.d.ts.map +1 -0
- package/dist/handlers/companion.js +459 -0
- package/dist/handlers/companion.js.map +1 -0
- package/dist/handlers/datalake.d.ts +7 -0
- package/dist/handlers/datalake.d.ts.map +1 -0
- package/dist/handlers/datalake.js +187 -0
- package/dist/handlers/datalake.js.map +1 -0
- package/dist/handlers/dispatch-context.d.ts +153 -0
- package/dist/handlers/dispatch-context.d.ts.map +1 -0
- package/dist/handlers/dispatch-context.js +22 -0
- package/dist/handlers/dispatch-context.js.map +1 -0
- package/dist/handlers/entity.d.ts +7 -0
- package/dist/handlers/entity.d.ts.map +1 -0
- package/dist/handlers/entity.js +256 -0
- package/dist/handlers/entity.js.map +1 -0
- package/dist/handlers/events.d.ts +7 -0
- package/dist/handlers/events.d.ts.map +1 -0
- package/dist/handlers/events.js +335 -0
- package/dist/handlers/events.js.map +1 -0
- package/dist/handlers/intelligence.d.ts +7 -0
- package/dist/handlers/intelligence.d.ts.map +1 -0
- package/dist/handlers/intelligence.js +674 -0
- package/dist/handlers/intelligence.js.map +1 -0
- package/dist/handlers/invoicing.d.ts +7 -0
- package/dist/handlers/invoicing.d.ts.map +1 -0
- package/dist/handlers/invoicing.js +70 -0
- package/dist/handlers/invoicing.js.map +1 -0
- package/dist/handlers/mcpclient.d.ts +7 -0
- package/dist/handlers/mcpclient.d.ts.map +1 -0
- package/dist/handlers/mcpclient.js +137 -0
- package/dist/handlers/mcpclient.js.map +1 -0
- package/dist/handlers/orchestration.d.ts +7 -0
- package/dist/handlers/orchestration.d.ts.map +1 -0
- package/dist/handlers/orchestration.js +125 -0
- package/dist/handlers/orchestration.js.map +1 -0
- package/dist/handlers/presence.d.ts +7 -0
- package/dist/handlers/presence.d.ts.map +1 -0
- package/dist/handlers/presence.js +99 -0
- package/dist/handlers/presence.js.map +1 -0
- package/dist/handlers/project.d.ts +7 -0
- package/dist/handlers/project.d.ts.map +1 -0
- package/dist/handlers/project.js +182 -0
- package/dist/handlers/project.js.map +1 -0
- package/dist/handlers/prompts.d.ts.map +1 -1
- package/dist/handlers/prompts.js +3 -2
- package/dist/handlers/prompts.js.map +1 -1
- package/dist/handlers/recall.d.ts +3 -3
- package/dist/handlers/recall.d.ts.map +1 -1
- package/dist/handlers/recall.js +33 -3
- package/dist/handlers/recall.js.map +1 -1
- package/dist/handlers/registry.d.ts.map +1 -1
- package/dist/handlers/registry.js +45 -0
- package/dist/handlers/registry.js.map +1 -1
- package/dist/handlers/resources.d.ts +131 -0
- package/dist/handlers/resources.d.ts.map +1 -0
- package/dist/handlers/resources.js +288 -0
- package/dist/handlers/resources.js.map +1 -0
- package/dist/handlers/review.d.ts.map +1 -1
- package/dist/handlers/review.js +8 -0
- package/dist/handlers/review.js.map +1 -1
- package/dist/handlers/session.d.ts.map +1 -1
- package/dist/handlers/session.js +3 -2
- package/dist/handlers/session.js.map +1 -1
- package/dist/handlers/share.d.ts +7 -0
- package/dist/handlers/share.d.ts.map +1 -0
- package/dist/handlers/share.js +184 -0
- package/dist/handlers/share.js.map +1 -0
- package/dist/handlers/shims.d.ts.map +1 -1
- package/dist/handlers/shims.js +1 -0
- package/dist/handlers/shims.js.map +1 -1
- package/dist/handlers/skill.d.ts +7 -0
- package/dist/handlers/skill.d.ts.map +1 -0
- package/dist/handlers/skill.js +449 -0
- package/dist/handlers/skill.js.map +1 -0
- package/dist/handlers/survivors.d.ts +19 -0
- package/dist/handlers/survivors.d.ts.map +1 -1
- package/dist/handlers/survivors.js +19 -0
- package/dist/handlers/survivors.js.map +1 -1
- package/dist/handlers/symbols.d.ts +7 -0
- package/dist/handlers/symbols.d.ts.map +1 -0
- package/dist/handlers/symbols.js +109 -0
- package/dist/handlers/symbols.js.map +1 -0
- package/dist/handlers/syncops.d.ts +7 -0
- package/dist/handlers/syncops.d.ts.map +1 -0
- package/dist/handlers/syncops.js +310 -0
- package/dist/handlers/syncops.js.map +1 -0
- package/dist/handlers/types.d.ts +39 -4
- package/dist/handlers/types.d.ts.map +1 -1
- package/dist/handlers/types.js +7 -1
- package/dist/handlers/types.js.map +1 -1
- package/dist/harvest.d.ts +1 -1
- package/dist/harvest.js +1 -1
- package/dist/hours.d.ts +1 -1
- package/dist/hours.js +1 -1
- package/dist/http-auth.d.ts +1 -1
- package/dist/http-auth.js +1 -1
- package/dist/icons.d.ts +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +217 -4344
- package/dist/index.js.map +1 -1
- package/dist/indexer.d.ts +1 -1
- package/dist/indexer.js +1 -1
- package/dist/intelligence.d.ts +1 -1
- package/dist/intelligence.js +1 -1
- package/dist/internal-dispatch.d.ts +35 -0
- package/dist/internal-dispatch.d.ts.map +1 -0
- package/dist/internal-dispatch.js +217 -0
- package/dist/internal-dispatch.js.map +1 -0
- package/dist/keyset.d.ts +78 -0
- package/dist/keyset.d.ts.map +1 -0
- package/dist/keyset.js +110 -0
- package/dist/keyset.js.map +1 -0
- package/dist/knowledge-graph.d.ts +1 -1
- package/dist/knowledge-graph.js +1 -1
- package/dist/license.d.ts +1 -1
- package/dist/license.js +1 -1
- package/dist/logger.d.ts +1 -1
- package/dist/logger.js +1 -1
- package/dist/mcp-client.d.ts +1 -1
- package/dist/mcp-client.js +1 -1
- package/dist/memory-artifacts.d.ts +20 -1
- package/dist/memory-artifacts.d.ts.map +1 -1
- package/dist/memory-artifacts.js +48 -1
- package/dist/memory-artifacts.js.map +1 -1
- package/dist/migrate-prompt.d.ts +1 -1
- package/dist/migrate-prompt.js +1 -1
- package/dist/migrations.d.ts +1 -1
- package/dist/migrations.d.ts.map +1 -1
- package/dist/migrations.js +33 -1
- package/dist/migrations.js.map +1 -1
- package/dist/presence.d.ts +1 -1
- package/dist/presence.js +1 -1
- package/dist/priority-embed.d.ts +1 -1
- package/dist/priority-embed.js +1 -1
- package/dist/providers/embedding-provider.d.ts +1 -1
- package/dist/providers/embedding-provider.js +1 -1
- package/dist/rehydration.d.ts +1 -1
- package/dist/rehydration.js +1 -1
- package/dist/render-target.d.ts +302 -0
- package/dist/render-target.d.ts.map +1 -0
- package/dist/render-target.js +535 -0
- package/dist/render-target.js.map +1 -0
- package/dist/repl-guard.d.ts +1 -1
- package/dist/repl-guard.js +1 -1
- package/dist/replication-daemon-entrypoint.d.ts +1 -1
- package/dist/replication-daemon-entrypoint.js +1 -1
- package/dist/replication-daemon.d.ts +1 -1
- package/dist/replication-daemon.js +1 -1
- package/dist/resilience.d.ts +1 -1
- package/dist/resilience.js +1 -1
- package/dist/reverse-bridge.d.ts +253 -0
- package/dist/reverse-bridge.d.ts.map +1 -0
- package/dist/reverse-bridge.js +363 -0
- package/dist/reverse-bridge.js.map +1 -0
- package/dist/security.d.ts +1 -1
- package/dist/security.js +1 -1
- package/dist/session-seen.d.ts +1 -1
- package/dist/session-seen.js +1 -1
- package/dist/setup.d.ts +1 -1
- package/dist/setup.js +1 -1
- package/dist/skill-author.d.ts +1 -1
- package/dist/skill-author.js +1 -1
- package/dist/spec-kit.d.ts +1 -1
- package/dist/spec-kit.js +1 -1
- package/dist/statusline.d.ts +1 -1
- package/dist/statusline.js +1 -1
- package/dist/sub-agent.d.ts +1 -1
- package/dist/sub-agent.js +1 -1
- package/dist/symbols.d.ts +1 -1
- package/dist/symbols.js +1 -1
- package/dist/sync.d.ts +1 -1
- package/dist/sync.js +1 -1
- package/dist/tasks-dispatch.d.ts +48 -0
- package/dist/tasks-dispatch.d.ts.map +1 -0
- package/dist/tasks-dispatch.js +84 -0
- package/dist/tasks-dispatch.js.map +1 -0
- package/dist/tasks.d.ts +214 -0
- package/dist/tasks.d.ts.map +1 -0
- package/dist/tasks.js +282 -0
- package/dist/tasks.js.map +1 -0
- package/dist/token-budget.d.ts +1 -1
- package/dist/token-budget.js +1 -1
- package/dist/tool-analytics.d.ts +1 -1
- package/dist/tool-analytics.js +1 -1
- package/dist/tool-annotations.d.ts.map +1 -1
- package/dist/tool-annotations.js +3 -0
- package/dist/tool-annotations.js.map +1 -1
- package/dist/tool-manifest-v2.json +84 -0
- package/dist/tool-manifest.json +1 -1
- package/dist/tool-profiles.d.ts +1 -1
- package/dist/tool-profiles.js +1 -1
- package/dist/trace-harvest.d.ts +78 -0
- package/dist/trace-harvest.d.ts.map +1 -0
- package/dist/trace-harvest.js +244 -0
- package/dist/trace-harvest.js.map +1 -0
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/ui-dashboard.d.ts +1 -1
- package/dist/ui-dashboard.js +1 -1
- package/dist/vault.js +1 -1
- package/dist/vectors.d.ts +1 -1
- package/dist/vectors.js +1 -1
- package/dist/version-check.d.ts +1 -1
- package/dist/version-check.js +1 -1
- package/dist/visibility.d.ts +1 -1
- package/dist/visibility.js +1 -1
- package/dist/wyrm-cli.d.ts +1 -1
- package/dist/wyrm-cli.js +171 -1
- package/dist/wyrm-cli.js.map +1 -1
- package/dist/wyrm-loop.d.ts +1 -1
- package/dist/wyrm-loop.js +1 -1
- package/dist/wyrm-manifest.json +219 -1
- package/dist/wyrm-statusline-daemon.d.ts +1 -1
- package/dist/wyrm-statusline-daemon.js +1 -1
- package/dist/wyrm-statusline.d.ts +1 -1
- package/dist/wyrm-statusline.js +1 -1
- package/dist/wyrm-ui.d.ts +1 -1
- package/dist/wyrm-ui.js +1 -1
- package/package.json +3 -2
package/LICENSE
CHANGED
|
@@ -661,7 +661,7 @@ For more information on this, and how to apply and follow the GNU AGPL, see
|
|
|
661
661
|
<https://www.gnu.org/licenses/>.
|
|
662
662
|
|
|
663
663
|
---
|
|
664
|
-
Copyright (c)
|
|
664
|
+
Copyright (c) 2026 Ghost Protocol (Pvt) Ltd
|
|
665
665
|
https://ghosts.lk
|
|
666
666
|
|
|
667
667
|
For commercial licensing inquiries: ghosts.lk@proton.me
|
package/NOTICE
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Wyrm — Persistent Memory for AI Agents
|
|
2
|
+
Copyright © 2026 Ghost Protocol (Pvt) Ltd. All rights reserved.
|
|
3
|
+
|
|
4
|
+
This software ("Wyrm", published as the npm package "wyrm-mcp") and its source
|
|
5
|
+
code, documentation, and associated materials are the original work and
|
|
6
|
+
intellectual property of Ghost Protocol (Pvt) Ltd, Colombo, Sri Lanka.
|
|
7
|
+
|
|
8
|
+
LICENSE — dual-licensed:
|
|
9
|
+
|
|
10
|
+
1. Open source: GNU Affero General Public License, version 3 or later
|
|
11
|
+
(AGPL-3.0-or-later). See the LICENSE file for the full terms. Note in
|
|
12
|
+
particular AGPL section 13: if you run a modified version of this software
|
|
13
|
+
to provide a network service, you must offer the complete corresponding
|
|
14
|
+
source code of your modified version to the users of that service.
|
|
15
|
+
|
|
16
|
+
2. Commercial: a separate, non-copyleft commercial license is available for
|
|
17
|
+
embedding Wyrm in a closed-source product, or operating it as a managed
|
|
18
|
+
service without AGPL's source-sharing obligations. Contact:
|
|
19
|
+
ghosts.lk@proton.me
|
|
20
|
+
|
|
21
|
+
Trademarks: "Wyrm", "Ghost Protocol", and the silver-dragon mark are trademarks
|
|
22
|
+
of Ghost Protocol (Pvt) Ltd. Use of the AGPL license does not grant any
|
|
23
|
+
trademark rights.
|
|
24
|
+
|
|
25
|
+
Unauthorized copying, reverse engineering to circumvent the license, or
|
|
26
|
+
distribution of derivative works outside the terms above is prohibited and may
|
|
27
|
+
infringe the copyright and other rights of Ghost Protocol (Pvt) Ltd.
|
|
28
|
+
|
|
29
|
+
Ghost Protocol (Pvt) Ltd · Colombo, Sri Lanka · ghosts.lk · ghosts.lk@proton.me
|
package/dist/agent-daemon.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* alive, `start()` refuses (no fork-bomb). `restart()` is provided as
|
|
16
16
|
* an explicit operation.
|
|
17
17
|
*
|
|
18
|
-
* @copyright
|
|
18
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
19
19
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
20
20
|
*/
|
|
21
21
|
import type Database from 'better-sqlite3';
|
package/dist/agent-daemon.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* alive, `start()` refuses (no fork-bomb). `restart()` is provided as
|
|
16
16
|
* an explicit operation.
|
|
17
17
|
*
|
|
18
|
-
* @copyright
|
|
18
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
19
19
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
20
20
|
*/
|
|
21
21
|
import { spawn } from 'child_process';
|
package/dist/agent-loop.d.ts
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* {"thought":"...","action":"done","summary":"..."} or
|
|
27
27
|
* {"thought":"...","action":"block","reason":"..."}
|
|
28
28
|
*
|
|
29
|
-
* @copyright
|
|
29
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
30
30
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
31
31
|
*/
|
|
32
32
|
import type Database from 'better-sqlite3';
|
package/dist/agent-loop.js
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* {"thought":"...","action":"done","summary":"..."} or
|
|
27
27
|
* {"thought":"...","action":"block","reason":"..."}
|
|
28
28
|
*
|
|
29
|
-
* @copyright
|
|
29
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
30
30
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
31
31
|
*/
|
|
32
32
|
import { Goals } from './goals.js';
|
package/dist/analytics.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wyrm Analytics — Persistent Usage Tracking & Cost Monitoring
|
|
3
3
|
*
|
|
4
|
-
* @copyright
|
|
4
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
5
5
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
6
6
|
* @module analytics
|
|
7
7
|
* @version 3.2.0
|
package/dist/analytics.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wyrm Analytics — Persistent Usage Tracking & Cost Monitoring
|
|
3
3
|
*
|
|
4
|
-
* @copyright
|
|
4
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
5
5
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
6
6
|
* @module analytics
|
|
7
7
|
* @version 3.2.0
|
package/dist/audit.d.ts
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
* unsigned, byte-identical to 6.x behavior. `WYRM_AUDIT_SIGNING_KEY` holds a
|
|
60
60
|
* PEM-encoded (pkcs8) Ed25519 private key, or a path to one.
|
|
61
61
|
*
|
|
62
|
-
* @copyright
|
|
62
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
63
63
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
64
64
|
*/
|
|
65
65
|
import type Database from 'better-sqlite3';
|
package/dist/audit.js
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
* unsigned, byte-identical to 6.x behavior. `WYRM_AUDIT_SIGNING_KEY` holds a
|
|
60
60
|
* PEM-encoded (pkcs8) Ed25519 private key, or a path to one.
|
|
61
61
|
*
|
|
62
|
-
* @copyright
|
|
62
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
63
63
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
64
64
|
*/
|
|
65
65
|
import { createHash, createPrivateKey, createPublicKey, sign as edSign, verify as edVerify, } from 'crypto';
|
package/dist/auto-capture.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* stored with needs_review=1 so the operator vets them (wyrm_review) — nothing
|
|
13
13
|
* auto-trusted, matching Wyrm's distillation-queue discipline.
|
|
14
14
|
*
|
|
15
|
-
* @copyright
|
|
15
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
16
16
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
17
17
|
*/
|
|
18
18
|
import { classifyCapture } from './capture.js';
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* - Task Decomposition: Large features via subtasks + parallel execution
|
|
11
11
|
* - Verification: High-risk code changes via multi-angle review
|
|
12
12
|
*
|
|
13
|
-
* @copyright
|
|
13
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
14
14
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
15
15
|
*/
|
|
16
16
|
export type TaskType = 'decision' | 'generation' | 'research' | 'verification' | 'decomposition';
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* - Task Decomposition: Large features via subtasks + parallel execution
|
|
11
11
|
* - Verification: High-risk code changes via multi-angle review
|
|
12
12
|
*
|
|
13
|
-
* @copyright
|
|
13
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
14
14
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
15
15
|
*/
|
|
16
16
|
/**
|
package/dist/autoconfig.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Cursor, Windsurf, Zed, etc.) and configures Wyrm's MCP server in each.
|
|
6
6
|
* Handles provider switching seamlessly — change your AI, Wyrm follows.
|
|
7
7
|
*
|
|
8
|
-
* @copyright
|
|
8
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
9
9
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
10
10
|
* @module autoconfig
|
|
11
11
|
* @version 3.0.0
|
package/dist/autoconfig.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Cursor, Windsurf, Zed, etc.) and configures Wyrm's MCP server in each.
|
|
6
6
|
* Handles provider switching seamlessly — change your AI, Wyrm follows.
|
|
7
7
|
*
|
|
8
|
-
* @copyright
|
|
8
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
9
9
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
10
10
|
* @module autoconfig
|
|
11
11
|
* @version 3.0.0
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Companion-buddy runner (v7 F4 T036 - extracted from the index.ts monolith).
|
|
3
|
+
* The buddy fold's ONE implementation: wyrm_buddy calls it directly and the
|
|
4
|
+
* well-known `buddy` tool calls it when any companion param is present. Lifted
|
|
5
|
+
* VERBATIM behind a factory that captures the same singletons it always closed
|
|
6
|
+
* over (db / mcpClient / our version string for cycle-prevention).
|
|
7
|
+
*
|
|
8
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
9
|
+
* @license AGPL-3.0-or-later
|
|
10
|
+
*/
|
|
11
|
+
import type { WyrmDB } from "./database.js";
|
|
12
|
+
import type { OutboundMcpClient } from "./mcp-client.js";
|
|
13
|
+
export interface BuddyRunnerDeps {
|
|
14
|
+
db: WyrmDB;
|
|
15
|
+
mcpClient: OutboundMcpClient;
|
|
16
|
+
version: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function makeRunCompanionBuddy(deps: BuddyRunnerDeps): (args: Record<string, unknown>) => Promise<{
|
|
19
|
+
content: Array<{
|
|
20
|
+
type: string;
|
|
21
|
+
text: string;
|
|
22
|
+
}>;
|
|
23
|
+
}>;
|
|
24
|
+
//# sourceMappingURL=buddy-runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buddy-runner.d.ts","sourceRoot":"","sources":["../src/buddy-runner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIzD,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,iBAAiB,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,eAAe,UA0DpB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAoC3H"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Companion-buddy runner (v7 F4 T036 - extracted from the index.ts monolith).
|
|
3
|
+
* The buddy fold's ONE implementation: wyrm_buddy calls it directly and the
|
|
4
|
+
* well-known `buddy` tool calls it when any companion param is present. Lifted
|
|
5
|
+
* VERBATIM behind a factory that captures the same singletons it always closed
|
|
6
|
+
* over (db / mcpClient / our version string for cycle-prevention).
|
|
7
|
+
*
|
|
8
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
9
|
+
* @license AGPL-3.0-or-later
|
|
10
|
+
*/
|
|
11
|
+
import { gatherBuddyInputs, buildBuddyOutput } from "./buddy.js";
|
|
12
|
+
export function makeRunCompanionBuddy(deps) {
|
|
13
|
+
const { db, mcpClient, version } = deps;
|
|
14
|
+
/**
|
|
15
|
+
* Spec 015 — buddy federation.
|
|
16
|
+
*
|
|
17
|
+
* For each registered + enabled outbound MCP server, list its tools and
|
|
18
|
+
* call any whose name matches /^(buddy_|.+_buddy$)/ (case-insensitive).
|
|
19
|
+
* Collects up to 3 replies; budget-frugal, best-effort.
|
|
20
|
+
*/
|
|
21
|
+
async function collectExternalBuddyReplies(projectId) {
|
|
22
|
+
const replies = [];
|
|
23
|
+
const servers = mcpClient.list().filter((r) => r.enabled);
|
|
24
|
+
// Identify ourselves for cycle prevention per Buddy Protocol v1.0 §4.
|
|
25
|
+
const fromBuddy = `wyrm@${version}`;
|
|
26
|
+
// Try to give peers context — name of the project the local buddy is on.
|
|
27
|
+
let projectHint;
|
|
28
|
+
try {
|
|
29
|
+
const row = db.getDatabase().prepare('SELECT name FROM projects WHERE id = ?').get(projectId);
|
|
30
|
+
projectHint = row?.name;
|
|
31
|
+
}
|
|
32
|
+
catch { /* fine */ }
|
|
33
|
+
for (const srv of servers) {
|
|
34
|
+
if (replies.length >= 3)
|
|
35
|
+
break;
|
|
36
|
+
let tools = null;
|
|
37
|
+
try {
|
|
38
|
+
tools = await mcpClient.listTools(srv.server_name);
|
|
39
|
+
}
|
|
40
|
+
catch {
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
if (!tools)
|
|
44
|
+
continue;
|
|
45
|
+
// Prefer well-known `buddy` (Buddy Protocol v1.0); fall back to `*_buddy` / `buddy_*` patterns.
|
|
46
|
+
const wellKnown = tools.find((t) => t.name.toLowerCase() === 'buddy');
|
|
47
|
+
const buddyTools = wellKnown
|
|
48
|
+
? [wellKnown]
|
|
49
|
+
: tools.filter((t) => /^(buddy_|.*_buddy)$/i.test(t.name));
|
|
50
|
+
for (const t of buddyTools) {
|
|
51
|
+
if (replies.length >= 3)
|
|
52
|
+
break;
|
|
53
|
+
try {
|
|
54
|
+
const r = await mcpClient.call(srv.server_name, t.name, {
|
|
55
|
+
from_buddy: fromBuddy,
|
|
56
|
+
project_hint: projectHint,
|
|
57
|
+
size: 'compact',
|
|
58
|
+
});
|
|
59
|
+
const text = typeof r.result === 'string' ? r.result : JSON.stringify(r.result).slice(0, 800);
|
|
60
|
+
if (text)
|
|
61
|
+
replies.push({ server: srv.server_name, tool: t.name, reply: text });
|
|
62
|
+
}
|
|
63
|
+
catch { /* skip on error */ }
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return replies;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* v7 F3 (T021) — the companion buddy code path, extracted VERBATIM from the
|
|
70
|
+
* wyrm_buddy switch case so the buddy fold shares ONE implementation:
|
|
71
|
+
* `wyrm_buddy` calls it directly, and the well-known `buddy` tool calls it
|
|
72
|
+
* whenever any companion param (persona/persona_name/mood/federate/
|
|
73
|
+
* project_path — handlers/alias-adapters.ts) is present. Never a duplicate;
|
|
74
|
+
* the alias spine routes wyrm_buddy → buddy with an argument adapter and the
|
|
75
|
+
* golden replay CI proves both entries byte-equivalent.
|
|
76
|
+
*/
|
|
77
|
+
async function runCompanionBuddy(args) {
|
|
78
|
+
const { project_path: bdPath, mood: bdMood, persona: bdPersona, persona_name: bdPersonaName, federate: bdFederate, size: bdSize } = args;
|
|
79
|
+
// Resolve project: explicit path > cwd > nothing
|
|
80
|
+
const cwd = bdPath ?? process.cwd();
|
|
81
|
+
const project = db.getProject(cwd);
|
|
82
|
+
if (!project) {
|
|
83
|
+
return {
|
|
84
|
+
content: [{
|
|
85
|
+
type: 'text',
|
|
86
|
+
text: ` I don't see *${cwd}* in my hoard yet — scan it first with \`wyrm_scan_projects\`, then come back.`,
|
|
87
|
+
}],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
const persona = bdPersona ?? process.env.WYRM_BUDDY_DEFAULT_PERSONA ?? 'wyrm';
|
|
91
|
+
const inputs = gatherBuddyInputs(db.getDatabase(), project.id);
|
|
92
|
+
// Federate with other "*_buddy" tools on registered external MCPs.
|
|
93
|
+
// Skipped in quiet mode (token-frugal) and on explicit federate:false.
|
|
94
|
+
if (bdFederate !== false && bdMood !== 'quiet') {
|
|
95
|
+
try {
|
|
96
|
+
const externals = await collectExternalBuddyReplies(project.id);
|
|
97
|
+
if (externals.length > 0)
|
|
98
|
+
inputs.externalBuddies = externals;
|
|
99
|
+
}
|
|
100
|
+
catch {
|
|
101
|
+
// Federation is best-effort. Don't fail the local buddy on a remote hiccup.
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
const out = buildBuddyOutput(inputs, { mood: bdMood, persona, personaName: bdPersonaName, size: bdSize });
|
|
105
|
+
return { content: [{ type: 'text', text: out.markdown }] };
|
|
106
|
+
}
|
|
107
|
+
return runCompanionBuddy;
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=buddy-runner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buddy-runner.js","sourceRoot":"","sources":["../src/buddy-runner.ts"],"names":[],"mappings":"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"}
|
package/dist/buddy.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* `buddy_*` is queried via `wyrm_call_external` and its output is
|
|
11
11
|
* folded into the response.
|
|
12
12
|
*
|
|
13
|
-
* @copyright
|
|
13
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
14
14
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
15
15
|
*/
|
|
16
16
|
import type Database from 'better-sqlite3';
|
package/dist/buddy.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* `buddy_*` is queried via `wyrm_call_external` and its output is
|
|
11
11
|
* folded into the response.
|
|
12
12
|
*
|
|
13
|
-
* @copyright
|
|
13
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
14
14
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
15
15
|
*/
|
|
16
16
|
import { ICON } from './icons.js';
|
package/dist/capabilities.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Also used as the body of the `wyrm_capabilities` MCP tool, the
|
|
11
11
|
* `wyrm_inject_prompt` block, and the postinstall pitch.
|
|
12
12
|
*
|
|
13
|
-
* @copyright
|
|
13
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
14
14
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
15
15
|
*/
|
|
16
16
|
import type Database from 'better-sqlite3';
|
package/dist/capabilities.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Also used as the body of the `wyrm_capabilities` MCP tool, the
|
|
11
11
|
* `wyrm_inject_prompt` block, and the postinstall pitch.
|
|
12
12
|
*
|
|
13
|
-
* @copyright
|
|
13
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
14
14
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
15
15
|
*/
|
|
16
16
|
import { homedir } from 'os';
|
package/dist/capture.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wyrm Capture Helpers — Classification logic for unified auto-capture.
|
|
3
3
|
*
|
|
4
|
-
* @copyright
|
|
4
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
5
5
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
6
6
|
*/
|
|
7
7
|
export type CaptureType = 'quest' | 'truth' | 'memory';
|
package/dist/capture.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wyrm Capture Helpers — Classification logic for unified auto-capture.
|
|
3
3
|
*
|
|
4
|
-
* @copyright
|
|
4
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
5
5
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
package/dist/causality.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* ground truth flips to stale or gets superseded, the invalidation
|
|
10
10
|
* cascade walks the edge graph and flags downstream decisions.
|
|
11
11
|
*
|
|
12
|
-
* @copyright
|
|
12
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
13
13
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
14
14
|
*/
|
|
15
15
|
import type Database from 'better-sqlite3';
|
package/dist/causality.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* ground truth flips to stale or gets superseded, the invalidation
|
|
10
10
|
* cascade walks the edge graph and flags downstream decisions.
|
|
11
11
|
*
|
|
12
|
-
* @copyright
|
|
12
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
13
13
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
14
14
|
*/
|
|
15
15
|
import { emitEvent } from './events.js';
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wyrm CLI - Beautiful command-line interface
|
|
3
3
|
*
|
|
4
|
-
* @copyright
|
|
4
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
5
5
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
6
6
|
* @module cli
|
|
7
7
|
* @version 3.0.0
|
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wyrm CLI - Beautiful command-line interface
|
|
3
3
|
*
|
|
4
|
-
* @copyright
|
|
4
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
5
5
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
6
6
|
* @module cli
|
|
7
7
|
* @version 3.0.0
|
package/dist/cloud-backup.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wyrm Cloud Backup — Encrypted backup/restore to Cloudflare R2
|
|
3
3
|
*
|
|
4
|
-
* @copyright
|
|
4
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
5
5
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
6
6
|
* @module cloud-backup
|
|
7
7
|
* @version 3.2.0
|
package/dist/cloud-backup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wyrm Cloud Backup — Encrypted backup/restore to Cloudflare R2
|
|
3
3
|
*
|
|
4
|
-
* @copyright
|
|
4
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
5
5
|
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
6
6
|
* @module cloud-backup
|
|
7
7
|
* @version 3.2.0
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* v7 F4 (T042) — Cloud parity v2: the cloud-capable subset of the STANDARD tier.
|
|
3
|
+
*
|
|
4
|
+
* Cloud parity v1 (`cloud-tools.json`, contract `wyrm-cloud-memory-v1`) was a
|
|
5
|
+
* HAND-CURATED 9-name list: the memory/search/truth/quest/stats core the
|
|
6
|
+
* mcp.wyrm.ghosts.lk edge first shipped. v2 makes the cloud subset a
|
|
7
|
+
* MEASURABLE PROPERTY of the frozen surface instead of a guess (spec FR-4 /
|
|
8
|
+
* §7 criterion 12, Article V — "per-tool cloudSupported flags generated from
|
|
9
|
+
* the registry, cannot lie; cloud parity is a measurable property").
|
|
10
|
+
*
|
|
11
|
+
* THE v2 RULE (spec.md:334-336):
|
|
12
|
+
*
|
|
13
|
+
* cloud-capable v2 = STANDARD tier
|
|
14
|
+
* − device-local
|
|
15
|
+
* − egress
|
|
16
|
+
* − subprocess
|
|
17
|
+
*
|
|
18
|
+
* The three exclusion classes below are the tools a STATELESS WORKER cannot
|
|
19
|
+
* honestly serve against a remote D1/KV-backed store:
|
|
20
|
+
*
|
|
21
|
+
* - SUBPROCESS — spawns a local OS process / long-running loop / index build
|
|
22
|
+
* on the operator's machine. Meaningless on the edge (no process to spawn,
|
|
23
|
+
* no local Ollama, no daemon). wyrm_run (the agent run loop) +
|
|
24
|
+
* wyrm_maintenance (reindex / vector-backfill).
|
|
25
|
+
*
|
|
26
|
+
* - EGRESS — reaches OUT to another network endpoint (a peer Worker, a third
|
|
27
|
+
* -party MCP server, a federation peer, a companion model). The edge is the
|
|
28
|
+
* server, not a client; it must not fan out. wyrm_call_external + wyrm_mcp
|
|
29
|
+
* (outbound MCP client) + wyrm_replication (peer push/pull) + wyrm_share
|
|
30
|
+
* (federation egress) + buddy (companion external replies).
|
|
31
|
+
*
|
|
32
|
+
* - DEVICE-LOCAL — semantically bound to THIS machine / process / on-disk
|
|
33
|
+
* session, or a multi-action shim with a device-local action that touches
|
|
34
|
+
* the local filesystem. A stateless Worker has no "this device", no local
|
|
35
|
+
* agent presence, no per-process OODA loop, no server-self capability report
|
|
36
|
+
* that matches the edge's surface, no local disk to write SKILL.md to, and no
|
|
37
|
+
* local tree to scan. wyrm_act + wyrm_presence + wyrm_session +
|
|
38
|
+
* wyrm_capabilities + wyrm_skill (create/register write SKILL.md) +
|
|
39
|
+
* wyrm_project (scan walks the tree; sync reads/writes local .wyrm folders).
|
|
40
|
+
*
|
|
41
|
+
* Everything else on the standard tier is a pure local-DB memory op (capture /
|
|
42
|
+
* recall / search / truth / quest / goal / review / entity / reference / audit /
|
|
43
|
+
* causality / design-token / stats / failure / context) — the edge serves these
|
|
44
|
+
* against its remote store with identical semantics. (NOTE: skill and project
|
|
45
|
+
* are NOT in this list — their multi-action surfaces include a device-local FS
|
|
46
|
+
* write/scan, so they are excluded above, not served pure-DB.)
|
|
47
|
+
*
|
|
48
|
+
* The sets are CLOSED over the standard tier: cloud-profile.test.ts asserts
|
|
49
|
+
* every excluded name is a standard-tier member and the three classes are
|
|
50
|
+
* disjoint, so the subtraction can never silently include a legacy/core-only
|
|
51
|
+
* name or double-count. The measured v2 count is whatever this derivation
|
|
52
|
+
* yields — published, never asserted to a magic literal beyond the spec's
|
|
53
|
+
* ~18-22 sanity band.
|
|
54
|
+
*
|
|
55
|
+
* Article V (vendor-neutral): the exclusion is by TOOL CAPABILITY CLASS, never
|
|
56
|
+
* by client/vendor name. Article VI (back-compat): every v1 name still
|
|
57
|
+
* resolves under v2 — the 9 v1 names are either v2 members or aliases whose
|
|
58
|
+
* target is a v2 member (cloudV1ResolvesUnderV2).
|
|
59
|
+
*
|
|
60
|
+
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
61
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
62
|
+
*/
|
|
63
|
+
/** Contract names. v1 stays for back-compat; v2 is the expanded subset. */
|
|
64
|
+
export declare const CLOUD_CONTRACT_V1: "wyrm-cloud-memory-v1";
|
|
65
|
+
export declare const CLOUD_CONTRACT_V2: "wyrm-cloud-memory-v2";
|
|
66
|
+
/**
|
|
67
|
+
* SUBPROCESS — spawns a local process / loop / index build. Cannot run on a
|
|
68
|
+
* stateless edge Worker.
|
|
69
|
+
*/
|
|
70
|
+
export declare const CLOUD_EXCLUDE_SUBPROCESS: ReadonlySet<string>;
|
|
71
|
+
/**
|
|
72
|
+
* EGRESS — reaches out to another network endpoint. The edge is the server,
|
|
73
|
+
* not a fan-out client.
|
|
74
|
+
*/
|
|
75
|
+
export declare const CLOUD_EXCLUDE_EGRESS: ReadonlySet<string>;
|
|
76
|
+
/**
|
|
77
|
+
* DEVICE-LOCAL — bound to THIS machine / process / on-disk session; has no
|
|
78
|
+
* meaning on a stateless Worker.
|
|
79
|
+
*/
|
|
80
|
+
export declare const CLOUD_EXCLUDE_DEVICE_LOCAL: ReadonlySet<string>;
|
|
81
|
+
/** The union of all three exclusion classes (device-local ∪ egress ∪ subprocess). */
|
|
82
|
+
export declare const CLOUD_EXCLUDED_FROM_STANDARD: ReadonlySet<string>;
|
|
83
|
+
/**
|
|
84
|
+
* THE cloud-capable v2 set — STANDARD tier minus the three exclusion classes.
|
|
85
|
+
* Computed (never hand-listed) so the manifest cannot lie about parity.
|
|
86
|
+
*/
|
|
87
|
+
export declare const CLOUD_CAPABLE_V2: ReadonlySet<string>;
|
|
88
|
+
/** Sorted array view (codepoint order) — deterministic iteration / manifests. */
|
|
89
|
+
export declare const CLOUD_CAPABLE_V2_NAMES: readonly string[];
|
|
90
|
+
/** The measured v2 tool count (whatever the derivation yields). */
|
|
91
|
+
export declare const CLOUD_CAPABLE_V2_COUNT: number;
|
|
92
|
+
/**
|
|
93
|
+
* v1 → v2 resolution check (Article VI): every v1 cloud name must still be
|
|
94
|
+
* answered under v2 — either it IS a v2 member, or it is a hidden alias whose
|
|
95
|
+
* routed target is a v2 member. `aliasTargetOf` is injected (the alias spine
|
|
96
|
+
* lives in handlers/aliases.ts; passing it keeps cloud-profile.ts free of a
|
|
97
|
+
* registry import cycle).
|
|
98
|
+
*/
|
|
99
|
+
export declare function cloudV1ResolvesUnderV2(v1Names: readonly string[], aliasTargetOf: (name: string) => string | undefined): {
|
|
100
|
+
resolves: boolean;
|
|
101
|
+
unresolved: string[];
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=cloud-profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloud-profile.d.ts","sourceRoot":"","sources":["../src/cloud-profile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAIH,2EAA2E;AAC3E,eAAO,MAAM,iBAAiB,EAAG,sBAA+B,CAAC;AACjE,eAAO,MAAM,iBAAiB,EAAG,sBAA+B,CAAC;AAEjE;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,WAAW,CAAC,MAAM,CAGvD,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAMnD,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,WAAW,CAAC,MAAM,CAazD,CAAC;AAEH,qFAAqF;AACrF,eAAO,MAAM,4BAA4B,EAAE,WAAW,CAAC,MAAM,CAI3D,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAEhD,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,sBAAsB,EAAE,SAAS,MAAM,EAAiC,CAAC;AAEtF,mEAAmE;AACnE,eAAO,MAAM,sBAAsB,QAAwB,CAAC;AAE5D;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,GAClD;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAA;CAAE,CAS7C"}
|