wyrm-mcp 6.9.0 → 6.9.2
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/README.md +7 -4
- package/dist/agent-daemon.d.ts +2 -2
- package/dist/agent-daemon.js +2 -2
- package/dist/agent-loop.d.ts +2 -2
- package/dist/agent-loop.js +2 -2
- package/dist/analytics.d.ts +2 -2
- package/dist/analytics.js +2 -2
- package/dist/audit.d.ts +2 -2
- package/dist/audit.js +2 -2
- package/dist/auto-orchestrator.d.ts +2 -2
- package/dist/auto-orchestrator.js +2 -2
- package/dist/autoconfig.d.ts +2 -2
- package/dist/autoconfig.js +2 -2
- package/dist/buddy.d.ts +2 -2
- package/dist/buddy.js +2 -2
- package/dist/capabilities.d.ts +2 -2
- package/dist/capabilities.js +2 -2
- package/dist/capture.d.ts +2 -2
- package/dist/capture.js +2 -2
- package/dist/causality.d.ts +2 -2
- package/dist/causality.js +2 -2
- package/dist/cli.d.ts +2 -2
- package/dist/cli.js +2 -2
- package/dist/cloud-backup.d.ts +2 -2
- package/dist/cloud-backup.js +2 -2
- package/dist/cloud-sync-entrypoint.d.ts +2 -2
- package/dist/cloud-sync-entrypoint.js +2 -2
- package/dist/cloud-sync.d.ts +2 -2
- package/dist/cloud-sync.js +2 -2
- package/dist/constellation.d.ts +2 -2
- package/dist/constellation.js +2 -2
- package/dist/context-ranking.d.ts +2 -2
- package/dist/context-ranking.js +2 -2
- package/dist/crypto.d.ts +2 -2
- package/dist/crypto.js +2 -2
- package/dist/database.d.ts +2 -2
- package/dist/database.js +2 -2
- package/dist/design.d.ts +2 -2
- package/dist/design.js +2 -2
- package/dist/event-replication.d.ts +2 -2
- package/dist/event-replication.js +2 -2
- package/dist/events-sse.d.ts +2 -2
- package/dist/events-sse.js +2 -2
- package/dist/events.js +2 -2
- package/dist/failure-patterns.d.ts +2 -2
- package/dist/failure-patterns.js +2 -2
- package/dist/federation.d.ts +2 -2
- package/dist/federation.js +2 -2
- package/dist/goals.d.ts +2 -2
- package/dist/goals.js +2 -2
- package/dist/harvest.d.ts +2 -2
- package/dist/harvest.js +2 -2
- package/dist/hours.d.ts +2 -2
- package/dist/hours.js +2 -2
- package/dist/http-auth.d.ts +2 -2
- package/dist/http-auth.js +2 -2
- package/dist/http-server.d.ts +2 -2
- package/dist/http-server.js +2 -2
- package/dist/icons.d.ts +2 -2
- package/dist/icons.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/indexer.d.ts +2 -2
- package/dist/indexer.js +2 -2
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +2 -2
- package/dist/knowledge-graph.d.ts +2 -2
- package/dist/knowledge-graph.js +2 -2
- package/dist/license.d.ts +2 -2
- package/dist/license.js +2 -2
- package/dist/logger.d.ts +2 -2
- package/dist/logger.js +2 -2
- package/dist/mcp-client.d.ts +2 -2
- package/dist/mcp-client.js +2 -2
- package/dist/memory-artifacts.d.ts +2 -2
- package/dist/memory-artifacts.d.ts.map +1 -1
- package/dist/memory-artifacts.js +32 -19
- package/dist/memory-artifacts.js.map +1 -1
- package/dist/migrate-prompt.d.ts +2 -2
- package/dist/migrate-prompt.js +2 -2
- package/dist/migrations.d.ts +2 -2
- package/dist/migrations.js +2 -2
- package/dist/presence.d.ts +2 -2
- package/dist/presence.js +2 -2
- package/dist/priority-embed.d.ts +2 -2
- package/dist/priority-embed.js +2 -2
- package/dist/providers/embedding-provider.d.ts +2 -2
- package/dist/providers/embedding-provider.js +2 -2
- package/dist/rehydration.d.ts +2 -2
- package/dist/rehydration.js +2 -2
- package/dist/repl-guard.d.ts +2 -2
- package/dist/repl-guard.js +2 -2
- package/dist/replication-daemon-entrypoint.d.ts +2 -2
- package/dist/replication-daemon-entrypoint.js +2 -2
- package/dist/replication-daemon.d.ts +2 -2
- package/dist/replication-daemon.js +2 -2
- package/dist/resilience.d.ts +2 -2
- package/dist/resilience.js +2 -2
- package/dist/security.d.ts +2 -2
- package/dist/security.js +2 -2
- package/dist/session-seen.d.ts +2 -2
- package/dist/session-seen.js +2 -2
- package/dist/setup.d.ts +2 -2
- package/dist/setup.js +2 -2
- package/dist/skill-author.d.ts +2 -2
- package/dist/skill-author.js +2 -2
- package/dist/statusline.d.ts +2 -2
- package/dist/statusline.js +2 -2
- package/dist/sub-agent.d.ts +2 -2
- package/dist/sub-agent.js +2 -2
- package/dist/symbols.d.ts +2 -2
- package/dist/symbols.js +2 -2
- package/dist/sync.d.ts +2 -2
- package/dist/sync.js +2 -2
- package/dist/token-budget.d.ts +2 -2
- package/dist/token-budget.js +2 -2
- package/dist/tool-analytics.d.ts +2 -2
- package/dist/tool-analytics.js +2 -2
- package/dist/tool-profiles.d.ts +2 -2
- package/dist/tool-profiles.js +2 -2
- package/dist/types.d.ts +2 -2
- package/dist/types.js +2 -2
- package/dist/ui-dashboard.d.ts +2 -2
- package/dist/ui-dashboard.js +2 -2
- package/dist/vectors.d.ts +2 -2
- package/dist/vectors.js +2 -2
- package/dist/version-check.d.ts +2 -2
- package/dist/version-check.js +2 -2
- package/dist/visibility.d.ts +2 -2
- package/dist/visibility.js +2 -2
- package/dist/wyrm-cli.d.ts +2 -2
- package/dist/wyrm-cli.js +2 -2
- package/dist/wyrm-loop.d.ts +1 -1
- package/dist/wyrm-loop.js +1 -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 +2 -2
- package/dist/wyrm-ui.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
> Your AI doesn't just need memory. It needs the *layer* that turns memory into compounding leverage.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/wyrm-mcp)
|
|
6
|
-
[](LICENSE)
|
|
7
|
+
[](packages/mcp-server)
|
|
8
8
|
[](https://www.typescriptlang.org/)
|
|
9
9
|
[](https://modelcontextprotocol.io)
|
|
10
10
|
|
|
@@ -483,9 +483,12 @@ Found a vulnerability? Please open an issue or email security@ghosts.lk.
|
|
|
483
483
|
|
|
484
484
|
## License
|
|
485
485
|
|
|
486
|
-
|
|
486
|
+
**Open standard + protected implementation:**
|
|
487
487
|
|
|
488
|
-
|
|
488
|
+
- **The Wyrm Memory Protocol** ([`PROTOCOL.md`](../../PROTOCOL.md)) is an **open spec, freely implementable** by anyone (CC-BY-4.0) — build a WMP-compatible memory without touching Wyrm's code.
|
|
489
|
+
- **This implementation** (`wyrm-mcp`) is **[AGPL-3.0-or-later](LICENSE)** — Copyright © 2024-2026 [Ghost Protocol (Pvt) Ltd](https://ghosts.lk).
|
|
490
|
+
|
|
491
|
+
For a **commercial license** (embedding Wyrm in a closed product, or running it as a managed service without AGPL's source-sharing obligations), contact [ghosts.lk@proton.me](mailto:ghosts.lk@proton.me).
|
|
489
492
|
|
|
490
493
|
---
|
|
491
494
|
|
package/dist/agent-daemon.d.ts
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* alive, `start()` refuses (no fork-bomb). `restart()` is provided as
|
|
16
16
|
* an explicit operation.
|
|
17
17
|
*
|
|
18
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
19
|
-
* @license
|
|
18
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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';
|
|
22
22
|
export interface DaemonStatus {
|
package/dist/agent-daemon.js
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* alive, `start()` refuses (no fork-bomb). `restart()` is provided as
|
|
16
16
|
* an explicit operation.
|
|
17
17
|
*
|
|
18
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
19
|
-
* @license
|
|
18
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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';
|
|
22
22
|
import { existsSync, readFileSync, writeFileSync, statSync, openSync, closeSync, renameSync, unlinkSync, mkdirSync } from 'fs';
|
package/dist/agent-loop.d.ts
CHANGED
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
* {"thought":"...","action":"done","summary":"..."} or
|
|
27
27
|
* {"thought":"...","action":"block","reason":"..."}
|
|
28
28
|
*
|
|
29
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
30
|
-
* @license
|
|
29
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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';
|
|
33
33
|
import { OutboundMcpClient } from './mcp-client.js';
|
package/dist/agent-loop.js
CHANGED
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
* {"thought":"...","action":"done","summary":"..."} or
|
|
27
27
|
* {"thought":"...","action":"block","reason":"..."}
|
|
28
28
|
*
|
|
29
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
30
|
-
* @license
|
|
29
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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';
|
|
33
33
|
import { SubAgent } from './sub-agent.js';
|
package/dist/analytics.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wyrm Analytics — Persistent Usage Tracking & Cost Monitoring
|
|
3
3
|
*
|
|
4
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
5
|
-
* @license
|
|
4
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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
|
|
8
8
|
*/
|
package/dist/analytics.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wyrm Analytics — Persistent Usage Tracking & Cost Monitoring
|
|
3
3
|
*
|
|
4
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
5
|
-
* @license
|
|
4
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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
|
|
8
8
|
*/
|
package/dist/audit.d.ts
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* 2. Verify Ed25519 signatures against the operator's public key.
|
|
14
14
|
* 3. Confirm no gaps in IDs.
|
|
15
15
|
*
|
|
16
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
17
|
-
* @license
|
|
16
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
17
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
18
18
|
*/
|
|
19
19
|
import type Database from 'better-sqlite3';
|
|
20
20
|
export interface AuditEntry {
|
package/dist/audit.js
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* 2. Verify Ed25519 signatures against the operator's public key.
|
|
14
14
|
* 3. Confirm no gaps in IDs.
|
|
15
15
|
*
|
|
16
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
17
|
-
* @license
|
|
16
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
17
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
18
18
|
*/
|
|
19
19
|
import { createHash } from 'crypto';
|
|
20
20
|
const GENESIS_HASH = 'genesis';
|
|
@@ -10,8 +10,8 @@
|
|
|
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 2026 Ghost Protocol (Pvt) Ltd.
|
|
14
|
-
* @license
|
|
13
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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';
|
|
17
17
|
export interface ClassifiedTask {
|
|
@@ -10,8 +10,8 @@
|
|
|
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 2026 Ghost Protocol (Pvt) Ltd.
|
|
14
|
-
* @license
|
|
13
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
14
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
15
15
|
*/
|
|
16
16
|
/**
|
|
17
17
|
* Classify incoming task based on multiple signals
|
package/dist/autoconfig.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
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 2026 Ghost Protocol (Pvt) Ltd.
|
|
9
|
-
* @license
|
|
8
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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
|
|
12
12
|
*/
|
package/dist/autoconfig.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
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 2026 Ghost Protocol (Pvt) Ltd.
|
|
9
|
-
* @license
|
|
8
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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
|
|
12
12
|
*/
|
package/dist/buddy.d.ts
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* `buddy_*` is queried via `wyrm_call_external` and its output is
|
|
11
11
|
* folded into the response.
|
|
12
12
|
*
|
|
13
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
14
|
-
* @license
|
|
13
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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';
|
|
17
17
|
export type BuddyMood = 'normal' | 'celebratory' | 'stuck' | 'quiet';
|
package/dist/buddy.js
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* `buddy_*` is queried via `wyrm_call_external` and its output is
|
|
11
11
|
* folded into the response.
|
|
12
12
|
*
|
|
13
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
14
|
-
* @license
|
|
13
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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';
|
|
17
17
|
// ---------------------------------------------------------------------------
|
package/dist/capabilities.d.ts
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
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 2026 Ghost Protocol (Pvt) Ltd.
|
|
14
|
-
* @license
|
|
13
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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';
|
|
17
17
|
export interface CapabilityFeature {
|
package/dist/capabilities.js
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
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 2026 Ghost Protocol (Pvt) Ltd.
|
|
14
|
-
* @license
|
|
13
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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';
|
|
17
17
|
import { join, dirname } from 'path';
|
package/dist/capture.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wyrm Capture Helpers — Classification logic for unified auto-capture.
|
|
3
3
|
*
|
|
4
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
5
|
-
* @license
|
|
4
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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';
|
|
8
8
|
export interface ClassifyResult {
|
package/dist/capture.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wyrm Capture Helpers — Classification logic for unified auto-capture.
|
|
3
3
|
*
|
|
4
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
5
|
-
* @license
|
|
4
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
5
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
8
|
* Classify a piece of content into quest/truth/memory using heuristic patterns.
|
package/dist/causality.d.ts
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
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 2026 Ghost Protocol (Pvt) Ltd.
|
|
13
|
-
* @license
|
|
12
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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';
|
|
16
16
|
export type EdgeKind = 'truth' | 'artifact' | 'quest' | 'session' | 'data';
|
package/dist/causality.js
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
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 2026 Ghost Protocol (Pvt) Ltd.
|
|
13
|
-
* @license
|
|
12
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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';
|
|
16
16
|
export class Causality {
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wyrm CLI - Beautiful command-line interface
|
|
3
3
|
*
|
|
4
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
5
|
-
* @license
|
|
4
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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
|
|
8
8
|
*/
|
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wyrm CLI - Beautiful command-line interface
|
|
3
3
|
*
|
|
4
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
5
|
-
* @license
|
|
4
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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
|
|
8
8
|
*/
|
package/dist/cloud-backup.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wyrm Cloud Backup — Encrypted backup/restore to Cloudflare R2
|
|
3
3
|
*
|
|
4
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
5
|
-
* @license
|
|
4
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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
|
|
8
8
|
*/
|
package/dist/cloud-backup.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wyrm Cloud Backup — Encrypted backup/restore to Cloudflare R2
|
|
3
3
|
*
|
|
4
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
5
|
-
* @license
|
|
4
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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
|
|
8
8
|
*/
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* argv[2] = interval_ms
|
|
12
12
|
* argv[3] = keep_count
|
|
13
13
|
*
|
|
14
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
15
|
-
* @license
|
|
14
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
15
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
16
16
|
*/
|
|
17
17
|
export {};
|
|
18
18
|
//# sourceMappingURL=cloud-sync-entrypoint.d.ts.map
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* argv[2] = interval_ms
|
|
12
12
|
* argv[3] = keep_count
|
|
13
13
|
*
|
|
14
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
15
|
-
* @license
|
|
14
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
15
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
16
16
|
*/
|
|
17
17
|
import { WyrmCloudBackup } from './cloud-backup.js';
|
|
18
18
|
import { CloudSyncDaemon, DEFAULT_INTERVAL_MS, DEFAULT_KEEP_COUNT, DEFAULT_DB_PATH } from './cloud-sync.js';
|
package/dist/cloud-sync.d.ts
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Architecture is documented in docs/CLOUD-SYNC.md.
|
|
10
10
|
*
|
|
11
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
12
|
-
* @license
|
|
11
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
12
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
13
13
|
*/
|
|
14
14
|
import type { WyrmCloudBackup } from './cloud-backup.js';
|
|
15
15
|
declare const DEFAULT_DB_PATH: string;
|
package/dist/cloud-sync.js
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Architecture is documented in docs/CLOUD-SYNC.md.
|
|
10
10
|
*
|
|
11
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
12
|
-
* @license
|
|
11
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
12
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
13
13
|
*/
|
|
14
14
|
import { spawn } from 'child_process';
|
|
15
15
|
import { existsSync, readFileSync, writeFileSync, statSync, mkdirSync, openSync, closeSync, unlinkSync, renameSync, } from 'fs';
|
package/dist/constellation.d.ts
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* migration 14, default `'within'`). Only artifacts explicitly flagged
|
|
12
12
|
* `'org'` or `'public'` leak across the project boundary.
|
|
13
13
|
*
|
|
14
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
15
|
-
* @license
|
|
14
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
15
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
16
16
|
*/
|
|
17
17
|
import type Database from 'better-sqlite3';
|
|
18
18
|
export type ConstellationKind = 'truth' | 'artifact' | 'quest' | 'decision' | 'reference';
|
package/dist/constellation.js
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* migration 14, default `'within'`). Only artifacts explicitly flagged
|
|
12
12
|
* `'org'` or `'public'` leak across the project boundary.
|
|
13
13
|
*
|
|
14
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
15
|
-
* @license
|
|
14
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
15
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
16
16
|
*/
|
|
17
17
|
const SAFE_KINDS = new Set(['truth', 'artifact', 'quest', 'decision', 'reference']);
|
|
18
18
|
const SAFE_VIS = new Set(['within', 'org', 'public']);
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Weights load from WYRM_RANK_WEIGHTS env (JSON) with sane defaults.
|
|
9
9
|
*
|
|
10
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
11
|
-
* @license
|
|
10
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
11
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
12
12
|
*/
|
|
13
13
|
export interface RankWeights {
|
|
14
14
|
confidence: number;
|
package/dist/context-ranking.js
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Weights load from WYRM_RANK_WEIGHTS env (JSON) with sane defaults.
|
|
9
9
|
*
|
|
10
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
11
|
-
* @license
|
|
10
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
11
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
12
12
|
*/
|
|
13
13
|
import { logger } from './logger.js';
|
|
14
14
|
export const DEFAULT_WEIGHTS = {
|
package/dist/crypto.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Wyrm Encryption Module
|
|
3
3
|
* AES-256-GCM encryption for sensitive memory data
|
|
4
4
|
*
|
|
5
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
6
|
-
* @license
|
|
5
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
6
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
7
7
|
* @module crypto
|
|
8
8
|
* @version 3.0.0
|
|
9
9
|
*/
|
package/dist/crypto.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Wyrm Encryption Module
|
|
3
3
|
* AES-256-GCM encryption for sensitive memory data
|
|
4
4
|
*
|
|
5
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
6
|
-
* @license
|
|
5
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
6
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
7
7
|
* @module crypto
|
|
8
8
|
* @version 3.0.0
|
|
9
9
|
*/
|
package/dist/database.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wyrm Database - SQLite storage for infinite memory with data lake support
|
|
3
3
|
*
|
|
4
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
5
|
-
* @license
|
|
4
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
5
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
6
6
|
*
|
|
7
7
|
* Features:
|
|
8
8
|
* - Auto-discovers projects in configured directories
|
package/dist/database.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wyrm Database - SQLite storage for infinite memory with data lake support
|
|
3
3
|
*
|
|
4
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
5
|
-
* @license
|
|
4
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
5
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
6
6
|
*
|
|
7
7
|
* Features:
|
|
8
8
|
* - Auto-discovers projects in configured directories
|
package/dist/design.d.ts
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* with tags, so a designer accreting visual references over time has a
|
|
11
11
|
* searchable library.
|
|
12
12
|
*
|
|
13
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
14
|
-
* @license
|
|
13
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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';
|
|
17
17
|
export type TokenCategory = 'color' | 'type' | 'spacing' | 'motion' | 'shadow' | 'radius' | 'breakpoint' | 'custom';
|
package/dist/design.js
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* with tags, so a designer accreting visual references over time has a
|
|
11
11
|
* searchable library.
|
|
12
12
|
*
|
|
13
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
14
|
-
* @license
|
|
13
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
14
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
15
15
|
*/
|
|
16
16
|
const VALID_CATEGORIES = new Set([
|
|
17
17
|
'color', 'type', 'spacing', 'motion', 'shadow', 'radius', 'breakpoint', 'custom',
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* The DB dependency is a structural interface (`ReplDb`) and `fetch` is injected,
|
|
16
16
|
* so this whole module is unit-testable with a fake peer and no real sockets.
|
|
17
17
|
*
|
|
18
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
19
|
-
* @license
|
|
18
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
19
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
20
20
|
*/
|
|
21
21
|
import type { WyrmEvent, RemoteEvent, IngestResult } from './events.js';
|
|
22
22
|
/** The slice of WyrmDB this module needs — structural, so tests can fake it. */
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* The DB dependency is a structural interface (`ReplDb`) and `fetch` is injected,
|
|
16
16
|
* so this whole module is unit-testable with a fake peer and no real sockets.
|
|
17
17
|
*
|
|
18
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
19
|
-
* @license
|
|
18
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
19
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
20
20
|
*/
|
|
21
21
|
import { logger } from './logger.js';
|
|
22
22
|
import { guardedFetchJson, checkPeerUrl } from './repl-guard.js';
|
package/dist/events-sse.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* unit-tested in isolation: importing `http-fast.ts` runs its top-level
|
|
6
6
|
* `new WyrmDB()` and would open the real ~/.wyrm/wyrm.db at module load.
|
|
7
7
|
*
|
|
8
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
9
|
-
* @license
|
|
8
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
9
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
10
10
|
*/
|
|
11
11
|
export interface SseEventLike {
|
|
12
12
|
cursor: number;
|
package/dist/events-sse.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* unit-tested in isolation: importing `http-fast.ts` runs its top-level
|
|
6
6
|
* `new WyrmDB()` and would open the real ~/.wyrm/wyrm.db at module load.
|
|
7
7
|
*
|
|
8
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
9
|
-
* @license
|
|
8
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
9
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
10
10
|
*/
|
|
11
11
|
/**
|
|
12
12
|
* Serialize one event as an SSE frame. The `id:` line is the event cursor, so a
|
package/dist/events.js
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* or private rows are reference-only (`payload_json = NULL`) so the event log
|
|
15
15
|
* never becomes a copy of data the encryption/federation layer protects.
|
|
16
16
|
*
|
|
17
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
18
|
-
* @license
|
|
17
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
18
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
19
19
|
*/
|
|
20
20
|
import { randomUUID } from 'node:crypto';
|
|
21
21
|
import { hostname } from 'node:os';
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* coalesce — re-recording the same failure increments `occurrences`
|
|
10
10
|
* rather than creating a new row.
|
|
11
11
|
*
|
|
12
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
13
|
-
* @license
|
|
12
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
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';
|
|
16
16
|
export type FailureScope = 'file' | 'symbol' | 'command' | 'prompt' | 'edit';
|
package/dist/failure-patterns.js
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* coalesce — re-recording the same failure increments `occurrences`
|
|
10
10
|
* rather than creating a new row.
|
|
11
11
|
*
|
|
12
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
13
|
-
* @license
|
|
12
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
13
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
14
14
|
*/
|
|
15
15
|
import { sanitizeFtsQuery } from './security.js';
|
|
16
16
|
import { emitEvent } from './events.js';
|
package/dist/federation.d.ts
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
* resolve. Last-write-wins is the failure mode of every team sync tool;
|
|
17
17
|
* Wyrm refuses to silently lose work.
|
|
18
18
|
*
|
|
19
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
20
|
-
* @license
|
|
19
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
20
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
21
21
|
*/
|
|
22
22
|
import type Database from 'better-sqlite3';
|
|
23
23
|
export type SyncableKind = 'session' | 'quest' | 'truth' | 'artifact' | 'edge';
|
package/dist/federation.js
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
* resolve. Last-write-wins is the failure mode of every team sync tool;
|
|
17
17
|
* Wyrm refuses to silently lose work.
|
|
18
18
|
*
|
|
19
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
20
|
-
* @license
|
|
19
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
20
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
21
21
|
*/
|
|
22
22
|
const KIND_TO_TABLE = {
|
|
23
23
|
session: { table: 'sessions', ts: 'created_at' },
|
package/dist/goals.d.ts
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* unresolvable objectives. `success_criteria` is the operator-defined
|
|
12
12
|
* "done when X" — the LLM checks against it each iteration.
|
|
13
13
|
*
|
|
14
|
-
* @copyright 2026 Ghost Protocol (Pvt) Ltd.
|
|
15
|
-
* @license
|
|
14
|
+
* @copyright 2024-2026 Ghost Protocol (Pvt) Ltd.
|
|
15
|
+
* @license AGPL-3.0-or-later — dual-licensed; commercial terms: ghosts.lk@proton.me. See LICENSE.
|
|
16
16
|
*/
|
|
17
17
|
import type Database from 'better-sqlite3';
|
|
18
18
|
export type GoalStatus = 'active' | 'paused' | 'completed' | 'abandoned';
|