@nt-ai-lab/deterministic-agent-workflow-cli 0.1.4 → 0.2.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.
@@ -138,9 +138,14 @@ function handleHook(engine, resolvedHandler, readStdin) {
138
138
  };
139
139
  const common = commonParse.data;
140
140
  if (common.hook_event_name === 'SessionStart') {
141
- const result = engine.startSession(common.session_id, common.transcript_path, getRepositoryName(common.cwd));
142
141
  engine.persistSessionId(common.session_id);
143
- return engineResultToRunnerResult(result);
142
+ if (!engine.hasSessionStarted(common.session_id)) {
143
+ return {
144
+ output: '',
145
+ exitCode: EXIT_ALLOW
146
+ };
147
+ }
148
+ return engineResultToRunnerResult(engine.startSession(common.session_id, common.transcript_path, getRepositoryName(common.cwd)));
144
149
  }
145
150
  if (!engine.hasSession(common.session_id))
146
151
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nt-ai-lab/deterministic-agent-workflow-cli",
3
- "version": "0.1.4",
3
+ "version": "0.2.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -11,10 +11,10 @@
11
11
  "dist"
12
12
  ],
13
13
  "dependencies": {
14
- "zod": "^3.25.76",
15
- "@nt-ai-lab/deterministic-agent-workflow-engine": "0.1.4",
16
- "@nt-ai-lab/deterministic-agent-workflow-event-store": "0.1.4",
17
- "@nt-ai-lab/deterministic-agent-workflow-dsl": "0.1.4"
14
+ "@nt-ai-lab/deterministic-agent-workflow-engine": "0.2.0",
15
+ "@nt-ai-lab/deterministic-agent-workflow-dsl": "0.2.0",
16
+ "@nt-ai-lab/deterministic-agent-workflow-event-store": "0.2.0",
17
+ "zod": "^3.25.76"
18
18
  },
19
19
  "publishConfig": {
20
20
  "access": "public"