@xemahq/agent-session-runtime 0.3.0 → 0.4.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.
@@ -43,7 +43,7 @@ class DefaultWorkspaceImageComposer {
43
43
  orgId: req.orgId,
44
44
  projectId: req.projectId,
45
45
  agentSlug: req.manifest.agent.slug,
46
- groupKey: req.manifest.agent.groupKey,
46
+ stageKey: req.manifest.agent.stageKey,
47
47
  role,
48
48
  ...(deliverableSpecRef === undefined ? {} : { deliverableSpecRef }),
49
49
  ...(req.workflowRun?.runId === undefined ? {} : { runId: req.workflowRun.runId }),
@@ -101,7 +101,7 @@ class DefaultWorkspaceImageComposer {
101
101
  kind: 'agent-definition',
102
102
  orgId: req.orgId,
103
103
  agentSlug: req.manifest.agent.slug,
104
- groupKey: req.manifest.agent.groupKey,
104
+ stageKey: req.manifest.agent.stageKey,
105
105
  agentMode: 'primary',
106
106
  },
107
107
  }));
@@ -117,7 +117,7 @@ class DefaultWorkspaceImageComposer {
117
117
  kind: 'agent-definition',
118
118
  orgId: req.orgId,
119
119
  agentSlug: sub,
120
- groupKey: req.manifest.agent.groupKey,
120
+ stageKey: req.manifest.agent.stageKey,
121
121
  agentMode: 'subagent',
122
122
  },
123
123
  }));
@@ -160,7 +160,7 @@ class DefaultWorkspaceImageComposer {
160
160
  orgId: req.orgId,
161
161
  sectionKey,
162
162
  agentSlug: req.manifest.agent.slug,
163
- groupKey: req.manifest.agent.groupKey,
163
+ stageKey: req.manifest.agent.stageKey,
164
164
  },
165
165
  }));
166
166
  }
@@ -6,7 +6,7 @@ export declare class CompositionMountLayoutError extends Error {
6
6
  constructor(compositionRef: string, detail: string);
7
7
  }
8
8
  export interface CompositionAgentRunConfigInput {
9
- readonly phase: string;
9
+ readonly stage: string;
10
10
  readonly role: string;
11
11
  readonly deliverableSpecRef?: string;
12
12
  }
@@ -42,7 +42,7 @@ function compileCompositionWorkspaceManifest(source, bindInputs) {
42
42
  mounts: mountLayout.mounts,
43
43
  agent: {
44
44
  slug: source.primaryAgentSlug,
45
- phase: mountLayout.agentRunConfig.phase,
45
+ stage: mountLayout.agentRunConfig.stage,
46
46
  role: mountLayout.agentRunConfig.role,
47
47
  ...(mountLayout.agentRunConfig.deliverableSpecRef !== undefined
48
48
  ? { deliverableSpecRef: mountLayout.agentRunConfig.deliverableSpecRef }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/agent-session-runtime",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -37,8 +37,8 @@
37
37
  "typescript": "5.9.3"
38
38
  },
39
39
  "dependencies": {
40
- "@xemahq/dsl": "^0.1.1",
41
- "@xemahq/kernel-contracts": "^0.3.7"
40
+ "@xemahq/dsl": "^0.2.0",
41
+ "@xemahq/kernel-contracts": "^0.4.0"
42
42
  },
43
43
  "scripts": {
44
44
  "clean": "rm -rf dist",
@@ -203,7 +203,7 @@ export class DefaultWorkspaceImageComposer implements WorkspaceImageComposer {
203
203
  orgId: req.orgId,
204
204
  projectId: req.projectId,
205
205
  agentSlug: req.manifest.agent.slug,
206
- groupKey: req.manifest.agent.groupKey,
206
+ stageKey: req.manifest.agent.stageKey,
207
207
  role,
208
208
  ...(deliverableSpecRef === undefined ? {} : { deliverableSpecRef }),
209
209
  ...(req.workflowRun?.runId === undefined ? {} : { runId: req.workflowRun.runId }),
@@ -280,7 +280,7 @@ export class DefaultWorkspaceImageComposer implements WorkspaceImageComposer {
280
280
  kind: 'agent-definition',
281
281
  orgId: req.orgId,
282
282
  agentSlug: req.manifest.agent.slug,
283
- groupKey: req.manifest.agent.groupKey,
283
+ stageKey: req.manifest.agent.stageKey,
284
284
  agentMode: 'primary',
285
285
  },
286
286
  }),
@@ -297,7 +297,7 @@ export class DefaultWorkspaceImageComposer implements WorkspaceImageComposer {
297
297
  kind: 'agent-definition',
298
298
  orgId: req.orgId,
299
299
  agentSlug: sub,
300
- groupKey: req.manifest.agent.groupKey,
300
+ stageKey: req.manifest.agent.stageKey,
301
301
  agentMode: 'subagent',
302
302
  },
303
303
  }),
@@ -366,7 +366,7 @@ export class DefaultWorkspaceImageComposer implements WorkspaceImageComposer {
366
366
  orgId: req.orgId,
367
367
  sectionKey,
368
368
  agentSlug: req.manifest.agent.slug,
369
- groupKey: req.manifest.agent.groupKey,
369
+ stageKey: req.manifest.agent.stageKey,
370
370
  },
371
371
  }),
372
372
  );
@@ -78,8 +78,8 @@ export class CompositionMountLayoutError extends Error {
78
78
  * importing the generated client.
79
79
  */
80
80
  export interface CompositionAgentRunConfigInput {
81
- /** Phase key. */
82
- readonly phase: string;
81
+ /** Stage key. */
82
+ readonly stage: string;
83
83
  /** Canonical `AgentRunRole` — drives renderer + system-overlay framing. */
84
84
  readonly role: string;
85
85
  /**
@@ -301,7 +301,7 @@ export function compileCompositionWorkspaceManifest(
301
301
  mounts: mountLayout.mounts as unknown as ManifestMountsBlock,
302
302
  agent: {
303
303
  slug: source.primaryAgentSlug,
304
- phase: mountLayout.agentRunConfig.phase,
304
+ stage: mountLayout.agentRunConfig.stage,
305
305
  role: mountLayout.agentRunConfig.role as AgentRunRole,
306
306
  ...(mountLayout.agentRunConfig.deliverableSpecRef !== undefined
307
307
  ? { deliverableSpecRef: mountLayout.agentRunConfig.deliverableSpecRef }