@xemahq/agent-session-api-client 0.2.0 → 0.3.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/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/sessionDebugAgentNodeDto.d.ts +20 -0
- package/dist/models/sessionDebugAgentNodeDto.js +9 -0
- package/dist/models/sessionDebugInfoDto.d.ts +2 -2
- package/dist/models/sessionResponseDto.d.ts +1 -1
- package/package.json +2 -3
package/dist/models/index.d.ts
CHANGED
|
@@ -107,7 +107,7 @@ export * from './sessionBlobAttachmentDto';
|
|
|
107
107
|
export * from './sessionBlobAttachmentDtoDataArrayEnvelope';
|
|
108
108
|
export * from './sessionBlobAttachmentDtoRequiredHeaders';
|
|
109
109
|
export * from './sessionContextWindowSnapshotDto';
|
|
110
|
-
export * from './
|
|
110
|
+
export * from './sessionDebugAgentNodeDto';
|
|
111
111
|
export * from './sessionDebugInfoDto';
|
|
112
112
|
export * from './sessionDebugInfoDtoDataEnvelope';
|
|
113
113
|
export * from './sessionDebugInfoDtoMountPlan';
|
package/dist/models/index.js
CHANGED
|
@@ -124,7 +124,7 @@ __exportStar(require("./sessionBlobAttachmentDto"), exports);
|
|
|
124
124
|
__exportStar(require("./sessionBlobAttachmentDtoDataArrayEnvelope"), exports);
|
|
125
125
|
__exportStar(require("./sessionBlobAttachmentDtoRequiredHeaders"), exports);
|
|
126
126
|
__exportStar(require("./sessionContextWindowSnapshotDto"), exports);
|
|
127
|
-
__exportStar(require("./
|
|
127
|
+
__exportStar(require("./sessionDebugAgentNodeDto"), exports);
|
|
128
128
|
__exportStar(require("./sessionDebugInfoDto"), exports);
|
|
129
129
|
__exportStar(require("./sessionDebugInfoDtoDataEnvelope"), exports);
|
|
130
130
|
__exportStar(require("./sessionDebugInfoDtoMountPlan"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Interactive Session API
|
|
5
|
+
* Real-time interactive AI coding sessions with agent management, file browsing, and activity streaming
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export interface SessionDebugAgentNodeDto {
|
|
9
|
+
/** Agent slug at this node. */
|
|
10
|
+
agentSlug: string;
|
|
11
|
+
/** Tree depth — 0 is the root (primary agent). */
|
|
12
|
+
depth: number;
|
|
13
|
+
/**
|
|
14
|
+
* Per-node model override resolved from the composition, when one is pinned.
|
|
15
|
+
* @nullable
|
|
16
|
+
*/
|
|
17
|
+
modelOverride?: string | null;
|
|
18
|
+
/** Skill slugs attached at this node. */
|
|
19
|
+
skillSlugs: string[];
|
|
20
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.16.0 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Interactive Session API
|
|
6
|
+
* Real-time interactive AI coding sessions with agent management, file browsing, and activity streaming
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Real-time interactive AI coding sessions with agent management, file browsing, and activity streaming
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type {
|
|
8
|
+
import type { SessionDebugAgentNodeDto } from './sessionDebugAgentNodeDto.js';
|
|
9
9
|
import type { SessionDebugInfoDtoMountPlan } from './sessionDebugInfoDtoMountPlan.js';
|
|
10
10
|
import type { SessionDebugModelDecisionDto } from './sessionDebugModelDecisionDto.js';
|
|
11
11
|
import type { SessionDebugSkillDto } from './sessionDebugSkillDto.js';
|
|
@@ -21,7 +21,7 @@ export interface SessionDebugInfoDto {
|
|
|
21
21
|
*/
|
|
22
22
|
compositionReference?: string | null;
|
|
23
23
|
/** The resolved composition tree (primary agent + sub-agent tree, per-node model + skills). */
|
|
24
|
-
compositionTree:
|
|
24
|
+
compositionTree: SessionDebugAgentNodeDto[];
|
|
25
25
|
/** Model Resolution Matrix decision trace for the primary agent — which rule won and why. Null when llm-registry-api could not be reached. */
|
|
26
26
|
primaryModelDecision?: SessionDebugModelDecisionDto | null;
|
|
27
27
|
/** Skills currently mounted into the session, with attach provenance. */
|
|
@@ -115,7 +115,7 @@ export interface SessionResponseDto {
|
|
|
115
115
|
/** Tool selection for this session — a flat list of ToolSelectionEntry records from `@xemahq/kernel-contracts/mcp-tool`. Either `{kind: "provider", providerKind, resourceId}` (all tools from the resource) or `{kind: "tool", providerKind, resourceId, toolName}` (narrowed). Empty array (default) means OpenCode built-ins only — no MCP auto-mounted at session boot. Updated via PATCH /sessions/:id/tools. */
|
|
116
116
|
toolSelection: SessionResponseDtoToolSelectionItem[];
|
|
117
117
|
/**
|
|
118
|
-
* Agent reference (`slug@version`) — the single source of truth for this session: agent + sub-agent tree, per-node skills, tools, model overrides, and the `/workspace/` filesystem layout. Resolved via llm-registry-api `GET /compositions/resolve/:ref` at launch and on resume. Null for a sandbox session (it resolves its DRAFT composition by `
|
|
118
|
+
* Agent reference (`slug@version`) — the single source of truth for this session: agent + sub-agent tree, per-node skills, tools, model overrides, and the `/workspace/` filesystem layout. Resolved via llm-registry-api `GET /compositions/resolve/:ref` at launch and on resume. Null for a sandbox session (it resolves its DRAFT composition by `sandboxAgentId` instead) or a session created before the Phase 6 cutover backfill.
|
|
119
119
|
* @nullable
|
|
120
120
|
*/
|
|
121
121
|
agentRef: string | null;
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/agent-session-api-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"publishConfig": {
|
|
10
|
-
"registry": "https://
|
|
11
|
-
"access": "public"
|
|
10
|
+
"registry": "https://npm.pkg.github.com"
|
|
12
11
|
},
|
|
13
12
|
"devDependencies": {
|
|
14
13
|
"typescript": "5.9.3"
|