@sagentlab/navarch-runtime 0.1.116 → 0.1.117
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 +43 -17
- package/bin/muse-mcp-bridge.cjs +3 -0
- package/dist/adapters/index.cjs +6 -1
- package/dist/adapters/muse.cjs +433 -0
- package/dist/agent-auth.cjs +2 -1
- package/dist/config.cjs +8 -1
- package/dist/conversation/capability.cjs +1 -1
- package/dist/exit-conditions.cjs +1 -1
- package/dist/muse-mcp-bridge.cjs +167 -0
- package/dist/session.cjs +30 -8
- package/node_modules/@muse-code/sdk/LICENSE +21 -0
- package/node_modules/@muse-code/sdk/README.md +88 -0
- package/node_modules/@muse-code/sdk/dist/src/connection/connection.d.ts +149 -0
- package/node_modules/@muse-code/sdk/dist/src/connection/connection.js +581 -0
- package/node_modules/@muse-code/sdk/dist/src/connection/spawn.d.ts +188 -0
- package/node_modules/@muse-code/sdk/dist/src/connection/spawn.js +496 -0
- package/node_modules/@muse-code/sdk/dist/src/errors.d.ts +71 -0
- package/node_modules/@muse-code/sdk/dist/src/errors.js +76 -0
- package/node_modules/@muse-code/sdk/dist/src/facade/approval.d.ts +96 -0
- package/node_modules/@muse-code/sdk/dist/src/facade/approval.js +293 -0
- package/node_modules/@muse-code/sdk/dist/src/facade/client.d.ts +171 -0
- package/node_modules/@muse-code/sdk/dist/src/facade/client.js +442 -0
- package/node_modules/@muse-code/sdk/dist/src/facade/discarded.d.ts +36 -0
- package/node_modules/@muse-code/sdk/dist/src/facade/discarded.js +36 -0
- package/node_modules/@muse-code/sdk/dist/src/facade/gap-fill.d.ts +80 -0
- package/node_modules/@muse-code/sdk/dist/src/facade/gap-fill.js +388 -0
- package/node_modules/@muse-code/sdk/dist/src/facade/host-death.d.ts +139 -0
- package/node_modules/@muse-code/sdk/dist/src/facade/host-death.js +96 -0
- package/node_modules/@muse-code/sdk/dist/src/facade/host-start.d.ts +62 -0
- package/node_modules/@muse-code/sdk/dist/src/facade/host-start.js +81 -0
- package/node_modules/@muse-code/sdk/dist/src/facade/session.d.ts +309 -0
- package/node_modules/@muse-code/sdk/dist/src/facade/session.js +654 -0
- package/node_modules/@muse-code/sdk/dist/src/facade/turn-handle.d.ts +156 -0
- package/node_modules/@muse-code/sdk/dist/src/facade/turn-handle.js +271 -0
- package/node_modules/@muse-code/sdk/dist/src/facade/turn-submit.d.ts +72 -0
- package/node_modules/@muse-code/sdk/dist/src/facade/turn-submit.js +183 -0
- package/node_modules/@muse-code/sdk/dist/src/fingerprint.d.ts +37 -0
- package/node_modules/@muse-code/sdk/dist/src/fingerprint.js +54 -0
- package/node_modules/@muse-code/sdk/dist/src/fold/item-store.d.ts +110 -0
- package/node_modules/@muse-code/sdk/dist/src/fold/item-store.js +169 -0
- package/node_modules/@muse-code/sdk/dist/src/fold/session-fold.d.ts +536 -0
- package/node_modules/@muse-code/sdk/dist/src/fold/session-fold.js +427 -0
- package/node_modules/@muse-code/sdk/dist/src/fold/state-store.d.ts +68 -0
- package/node_modules/@muse-code/sdk/dist/src/fold/state-store.js +89 -0
- package/node_modules/@muse-code/sdk/dist/src/index.d.ts +65 -0
- package/node_modules/@muse-code/sdk/dist/src/index.js +57 -0
- package/node_modules/@muse-code/sdk/dist/src/msp.d.ts +3380 -0
- package/node_modules/@muse-code/sdk/dist/src/pending/pending-command-set.d.ts +361 -0
- package/node_modules/@muse-code/sdk/dist/src/pending/pending-command-set.js +468 -0
- package/node_modules/@muse-code/sdk/package.json +47 -0
- package/package.json +8 -4
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
* `@muse-code/sdk` — the MSP TypeScript facade (tdd SS7.1).
|
|
4
|
+
*
|
|
5
|
+
* (The tag above is load-bearing: without it TypeDoc attaches this header to
|
|
6
|
+
* the first re-export, whose generated reference page then publishes this
|
|
7
|
+
* prose instead of the export's own TSDoc.)
|
|
8
|
+
*
|
|
9
|
+
* Slices 1 and 2 (spec `14990-muse-sdk`, plan.md) ship the workspace, the schema
|
|
10
|
+
* fingerprint pin, and the transport-less core: the item/state fold algebra,
|
|
11
|
+
* `SessionFold` binding it to the generated wire types, the complete SS4.13
|
|
12
|
+
* pending-command fold, and the duplex-agnostic NDJSON connection with its
|
|
13
|
+
* typed stdio handshake.
|
|
14
|
+
*
|
|
15
|
+
* Slice 3 ships the SS7.1 facade: `MuseClient` (incl. `spawn`), `Session`,
|
|
16
|
+
* `TurnHandle`'s iterators and INV-014 turn-wait, the SS2.13.3b host-death
|
|
17
|
+
* discharge on BOTH notifications (process exit and transport EOF), the
|
|
18
|
+
* `sendUserTurn` and `approval/decide` submit verbs, the SS4.13 retirement
|
|
19
|
+
* drivers those verbs made reachable, and the SS4.8 gap splice-fill inside the
|
|
20
|
+
* iterators (FR-020).
|
|
21
|
+
*
|
|
22
|
+
* Not here yet, each with its named dependency; the condition and the command
|
|
23
|
+
* that re-derives it live once, in `specs/14990-muse-sdk/tasks.md` under "The
|
|
24
|
+
* slice-3 blocker".
|
|
25
|
+
* - Snapshot ingestion (FR-008) — sequenced behind spec 210 T061's corpus
|
|
26
|
+
* regeneration, not behind a shape.
|
|
27
|
+
* - Corpus replay + checkpoint equality (slice 1c) — runnable now; own PR.
|
|
28
|
+
*/
|
|
29
|
+
export { EXPECTED_SCHEMA_FINGERPRINT, checkServedFingerprint, fingerprintMismatchMessage, } from "./fingerprint.js";
|
|
30
|
+
export { ItemStore } from "./fold/item-store.js";
|
|
31
|
+
export { SessionStateStore } from "./fold/state-store.js";
|
|
32
|
+
export { SessionFold } from "./fold/session-fold.js";
|
|
33
|
+
export { COMMAND_REJECTED_CODE, COMMAND_REJECTED_KIND, PendingCommandSet, } from "./pending/pending-command-set.js";
|
|
34
|
+
export { Connection, createUuidV7Mint, MspError, ProtocolError, } from "./connection/connection.js";
|
|
35
|
+
export { MspHandshake, MuseServeChild, SpawnedMspConnection, spawnMspConnection, } from "./connection/spawn.js";
|
|
36
|
+
export { MuseClient } from "./facade/client.js";
|
|
37
|
+
// The client-scoped SS2.13.3b discard memory. Exported as
|
|
38
|
+
// `SessionOptions.discarded`'s type: a consumer composing bare `Session`s can
|
|
39
|
+
// share one registry across them. `MuseClient` builds its own and accepts
|
|
40
|
+
// none — the cross-client sharing knob was declined (Constitution XI; see the
|
|
41
|
+
// constructor note in `facade/client.ts`).
|
|
42
|
+
export { DiscardedSessions } from "./facade/discarded.js";
|
|
43
|
+
export { MuseForeignSessionError, MuseGapFillError, MuseSessionDiscardedError, PermissionProfileNotApplied, } from "./errors.js";
|
|
44
|
+
// Trimmed deliberately (Constitution XI): `isAbnormalHostDeath`,
|
|
45
|
+
// `isItemInProgress`, and `survivesHostDeath` are `Session`'s own internals
|
|
46
|
+
// with no consumer, and a barrel export would freeze them into `@muse-code/sdk`'s
|
|
47
|
+
// contract the moment #211 adopts the package.
|
|
48
|
+
export { MuseHostDiedError, readSessionDurability } from "./facade/host-death.js";
|
|
49
|
+
// The #49791 handshake-failure arm of Scenario 4: `MuseClient.spawn`'s typed
|
|
50
|
+
// rejection when the host is lost before the handshake completes. The
|
|
51
|
+
// reader `hostStartFailure` stays OFF the barrel (Constitution XI): it is
|
|
52
|
+
// `spawn`'s internal with no consumer.
|
|
53
|
+
export { MuseHostStartError } from "./facade/host-start.js";
|
|
54
|
+
export { Session } from "./facade/session.js";
|
|
55
|
+
// `Turn` (the narrow consumer view), not `TurnHandle`: the concrete class's
|
|
56
|
+
// Session-fed mutators would let an embedder fabricate a terminal (INV-006).
|
|
57
|
+
export { isLaunchFailure } from "./facade/turn-handle.js";
|