@xemahq/agent-session-runtime 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +61 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/composer.d.ts +14 -0
- package/dist/lib/composer.d.ts.map +1 -0
- package/dist/lib/composer.js +595 -0
- package/dist/lib/composer.js.map +1 -0
- package/dist/lib/composition-workspace-manifest.d.ts +44 -0
- package/dist/lib/composition-workspace-manifest.d.ts.map +1 -0
- package/dist/lib/composition-workspace-manifest.js +143 -0
- package/dist/lib/composition-workspace-manifest.js.map +1 -0
- package/dist/lib/dispatch-contract.d.ts +48 -0
- package/dist/lib/dispatch-contract.d.ts.map +1 -0
- package/dist/lib/dispatch-contract.js +8 -0
- package/dist/lib/dispatch-contract.js.map +1 -0
- package/dist/lib/drift-detector.d.ts +40 -0
- package/dist/lib/drift-detector.d.ts.map +1 -0
- package/dist/lib/drift-detector.js +386 -0
- package/dist/lib/drift-detector.js.map +1 -0
- package/dist/lib/environment-resolver.d.ts +84 -0
- package/dist/lib/environment-resolver.d.ts.map +1 -0
- package/dist/lib/environment-resolver.js +181 -0
- package/dist/lib/environment-resolver.js.map +1 -0
- package/dist/lib/errors.d.ts +12 -0
- package/dist/lib/errors.d.ts.map +1 -0
- package/dist/lib/errors.js +27 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/lib/lifecycle-state.d.ts +23 -0
- package/dist/lib/lifecycle-state.d.ts.map +1 -0
- package/dist/lib/lifecycle-state.js +70 -0
- package/dist/lib/lifecycle-state.js.map +1 -0
- package/dist/lib/skill-bundle-template-resolver.d.ts +23 -0
- package/dist/lib/skill-bundle-template-resolver.d.ts.map +1 -0
- package/dist/lib/skill-bundle-template-resolver.js +54 -0
- package/dist/lib/skill-bundle-template-resolver.js.map +1 -0
- package/dist/lib/types.d.ts +141 -0
- package/dist/lib/types.d.ts.map +1 -0
- package/dist/lib/types.js +3 -0
- package/dist/lib/types.js.map +1 -0
- package/package.json +45 -0
- package/src/index.ts +34 -0
- package/src/lib/composer.ts +1041 -0
- package/src/lib/composition-workspace-manifest.ts +432 -0
- package/src/lib/dispatch-contract.ts +156 -0
- package/src/lib/drift-detector.ts +497 -0
- package/src/lib/environment-resolver.ts +480 -0
- package/src/lib/errors.ts +43 -0
- package/src/lib/lifecycle-state.ts +139 -0
- package/src/lib/skill-bundle-template-resolver.ts +147 -0
- package/src/lib/types.ts +443 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
+
// ── @xemahq/agent-session-runtime — Kernel layer ──
|
|
3
|
+
//
|
|
4
|
+
// Runtime-agnostic interfaces and the workspace-image composer that
|
|
5
|
+
// turns a compiled workspace manifest + bind context into a typed
|
|
6
|
+
// mount plan. The Kernel does NOT know which agent runtime executes
|
|
7
|
+
// the session — that lives in `@xemahq/agent-runtime-bridge`,
|
|
8
|
+
// which implements the concrete HTTP driver + SSE-protocol decoders.
|
|
9
|
+
//
|
|
10
|
+
// Provided here:
|
|
11
|
+
//
|
|
12
|
+
// • Abstract interfaces:
|
|
13
|
+
// - `AgentSessionDriver` — drives a session to completion
|
|
14
|
+
// - `WorkspaceImageApplier` — applies a mount plan
|
|
15
|
+
// - `WorkspaceImageComposer` — composes a mount plan
|
|
16
|
+
// • `DefaultWorkspaceImageComposer` — pure mount-plan composition
|
|
17
|
+
// • `SessionFrame` discriminator + supporting types
|
|
18
|
+
//
|
|
19
|
+
// Entry-point services (workflow agent.activity, agent-session
|
|
20
|
+
// bootstrap) compose the abstract substrate with the concrete bridge
|
|
21
|
+
// implementation when wiring DI. Adding a new runtime adapter is one
|
|
22
|
+
// new Platform package implementing these interfaces — the Kernel
|
|
23
|
+
// does not change.
|
|
24
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
25
|
+
|
|
26
|
+
export * from './lib/types';
|
|
27
|
+
export * from './lib/composer';
|
|
28
|
+
export * from './lib/composition-workspace-manifest';
|
|
29
|
+
export * from './lib/skill-bundle-template-resolver';
|
|
30
|
+
export * from './lib/errors';
|
|
31
|
+
export * from './lib/environment-resolver';
|
|
32
|
+
export * from './lib/drift-detector';
|
|
33
|
+
export * from './lib/lifecycle-state';
|
|
34
|
+
export * from './lib/dispatch-contract';
|