@nt-ai-lab/deterministic-agent-workflow-opencode 0.4.0 → 0.4.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.
@@ -123,7 +123,10 @@ export function createOpenCodeWorkflowPlugin(config) {
123
123
  // Session already exists for the default non-router path.
124
124
  }
125
125
  else {
126
- engine.startSession(hookInput.sessionID, dbPath);
126
+ const repository = getRepositoryName(process.cwd());
127
+ if (repository === undefined)
128
+ throw new TypeError('repository must be a non-empty string.');
129
+ engine.startSession(hookInput.sessionID, dbPath, repository);
127
130
  }
128
131
  }
129
132
  else if (engine.hasSessionStarted(hookInput.sessionID)) {
@@ -258,5 +261,5 @@ function resolveWorkflowEventsDatabasePath() {
258
261
  const configured = process.env['WORKFLOW_EVENTS_DB'];
259
262
  if (configured !== undefined && configured !== '')
260
263
  return configured;
261
- return join(homedir(), '.workflow-events.db');
264
+ return join(homedir(), 'ai-workflow-database', '.workflow-events.db');
262
265
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nt-ai-lab/deterministic-agent-workflow-opencode",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "repository": {
@@ -18,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "@opencode-ai/plugin": "^1.4.3",
20
20
  "zod": "^3.25.76",
21
- "@nt-ai-lab/deterministic-agent-workflow-cli": "0.4.0",
22
- "@nt-ai-lab/deterministic-agent-workflow-event-store": "0.4.0",
23
- "@nt-ai-lab/deterministic-agent-workflow-engine": "0.4.0"
21
+ "@nt-ai-lab/deterministic-agent-workflow-cli": "0.4.2",
22
+ "@nt-ai-lab/deterministic-agent-workflow-engine": "0.4.2",
23
+ "@nt-ai-lab/deterministic-agent-workflow-event-store": "0.4.2"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"