@xemahq/kernel-contracts 0.22.0 → 0.22.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.
@@ -1,6 +1,7 @@
1
1
  export * from './lib/capability-layer';
2
2
  export * from './lib/agent';
3
3
  export * from './lib/agent-reach-tier';
4
+ export * from './lib/agent-session-lifecycle';
4
5
  export * from './lib/agent-workspace-sharing';
5
6
  export * from './lib/agent-limits-schema';
6
7
  export * from './lib/agent-workspace-config';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agent-composition/index.ts"],"names":[],"mappings":"AAWA,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agent-composition/index.ts"],"names":[],"mappings":"AAWA,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC"}
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./lib/capability-layer"), exports);
18
18
  __exportStar(require("./lib/agent"), exports);
19
19
  __exportStar(require("./lib/agent-reach-tier"), exports);
20
+ __exportStar(require("./lib/agent-session-lifecycle"), exports);
20
21
  __exportStar(require("./lib/agent-workspace-sharing"), exports);
21
22
  __exportStar(require("./lib/agent-limits-schema"), exports);
22
23
  __exportStar(require("./lib/agent-workspace-config"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agent-composition/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAWA,yDAAuC;AACvC,8CAA4B;AAC5B,yDAAuC;AACvC,gEAA8C;AAC9C,4DAA0C;AAC1C,+DAA6C;AAC7C,wDAAsC;AACtC,2DAAyC;AACzC,gEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agent-composition/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAWA,yDAAuC;AACvC,8CAA4B;AAC5B,yDAAuC;AACvC,gEAA8C;AAC9C,gEAA8C;AAC9C,4DAA0C;AAC1C,+DAA6C;AAC7C,wDAAsC;AACtC,2DAAyC;AACzC,gEAA8C"}
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ export declare enum AgentSessionLifecycle {
3
+ Ephemeral = "ephemeral",
4
+ Persistent = "persistent"
5
+ }
6
+ export declare const AgentSessionLifecycleSchema: z.ZodEnum<typeof AgentSessionLifecycle>;
7
+ //# sourceMappingURL=agent-session-lifecycle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-session-lifecycle.d.ts","sourceRoot":"","sources":["../../../src/agent-composition/lib/agent-session-lifecycle.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,oBAAY,qBAAqB;IAC/B,SAAS,cAAc;IACvB,UAAU,eAAe;CAC1B;AAGD,eAAO,MAAM,2BAA2B,yCAAsC,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentSessionLifecycleSchema = exports.AgentSessionLifecycle = void 0;
4
+ const zod_1 = require("zod");
5
+ var AgentSessionLifecycle;
6
+ (function (AgentSessionLifecycle) {
7
+ AgentSessionLifecycle["Ephemeral"] = "ephemeral";
8
+ AgentSessionLifecycle["Persistent"] = "persistent";
9
+ })(AgentSessionLifecycle || (exports.AgentSessionLifecycle = AgentSessionLifecycle = {}));
10
+ exports.AgentSessionLifecycleSchema = zod_1.z.nativeEnum(AgentSessionLifecycle);
11
+ //# sourceMappingURL=agent-session-lifecycle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-session-lifecycle.js","sourceRoot":"","sources":["../../../src/agent-composition/lib/agent-session-lifecycle.ts"],"names":[],"mappings":";;;AAoBA,6BAAwB;AAMxB,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,kDAAyB,CAAA;AAC3B,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAGY,QAAA,2BAA2B,GAAG,OAAC,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://xema.dev/schemas/awp-spec.v1.json",
3
- "emittedAt": "2026-06-29T09:35:56.778Z",
3
+ "emittedAt": "2026-07-01T10:48:07.595Z",
4
4
  "spec": {
5
5
  "id": "awp/v1",
6
6
  "version": "1.2.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/kernel-contracts",
3
- "version": "0.22.0",
3
+ "version": "0.22.2",
4
4
  "description": "Consolidated Xema OS kernel wire contracts — pure types + zod schemas for the 32 kernel protocol surfaces. One package, one npm scope, wildcard per-surface subpath exports. No framework/runtime deps.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -12,6 +12,7 @@
12
12
  export * from './lib/capability-layer';
13
13
  export * from './lib/agent';
14
14
  export * from './lib/agent-reach-tier';
15
+ export * from './lib/agent-session-lifecycle';
15
16
  export * from './lib/agent-workspace-sharing';
16
17
  export * from './lib/agent-limits-schema';
17
18
  export * from './lib/agent-workspace-config';
@@ -0,0 +1,33 @@
1
+ // ═══════════════════════════════════════════════════════════════════════════
2
+ // ── AgentSessionLifecycle — closed session-lifecycle enum ──
3
+ //
4
+ // The default session lifecycle an Agent definition DECLARES. Closed set,
5
+ // value-identical to agent-session-api's `SessionLifecyclePolicy`
6
+ // (`ephemeral` | `persistent`):
7
+ // • `ephemeral` — a launched session idle-auto-pauses after the idle window.
8
+ // • `persistent` — a launched session is always-on (never idle-auto-paused).
9
+ //
10
+ // A launched session INHERITS this value as its `lifecyclePolicy` unless the
11
+ // launch passes an explicit override. A NULL stored column means the agent
12
+ // declares NO preference — agent-session-api then applies its own documented
13
+ // `ephemeral` default (the sole, last-applied default). The agent-owning
14
+ // service only OWNS + exposes the field; the idle/persistence behavior lives
15
+ // in agent-session-api.
16
+ //
17
+ // This is the canonical kernel-shared enum; llm-registry-api and
18
+ // agent-session-api consume it rather than mirroring their own copies.
19
+ // ═══════════════════════════════════════════════════════════════════════════
20
+
21
+ import { z } from 'zod';
22
+
23
+ /**
24
+ * Default session lifecycle an Agent definition declares. Closed set,
25
+ * value-identical to agent-session-api's `SessionLifecyclePolicy`.
26
+ */
27
+ export enum AgentSessionLifecycle {
28
+ Ephemeral = 'ephemeral',
29
+ Persistent = 'persistent',
30
+ }
31
+
32
+ /** Zod schema for {@link AgentSessionLifecycle}. Mirrors the sibling enum schemas. */
33
+ export const AgentSessionLifecycleSchema = z.nativeEnum(AgentSessionLifecycle);