opencode-orchestrator 0.6.22 → 0.6.24

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,6 @@
1
1
  /**
2
2
  * Document Cache Constants
3
3
  */
4
- export declare const CACHE_DIR = ".cache/docs";
5
- export declare const METADATA_FILE = ".cache/docs/_metadata.json";
4
+ export declare const CACHE_DIR: ".opencode/docs";
5
+ export declare const METADATA_FILE: ".opencode/docs/_metadata.json";
6
6
  export declare const DEFAULT_TTL_MS: number;
package/dist/index.js CHANGED
@@ -74,8 +74,18 @@ var MEMORY_LIMITS = {
74
74
  // Remove errors after 10 min
75
75
  };
76
76
  var PATHS = {
77
- TASK_ARCHIVE: ".cache/task-archive",
78
- DOC_CACHE: ".cache/docs"
77
+ // Base directory
78
+ OPENCODE: ".opencode",
79
+ // Subdirectories
80
+ DOCS: ".opencode/docs",
81
+ ARCHIVE: ".opencode/archive",
82
+ TASK_ARCHIVE: ".opencode/archive/tasks",
83
+ DOC_ARCHIVE: ".opencode/archive/docs",
84
+ // Files
85
+ TODO: ".opencode/todo.md",
86
+ CONTEXT: ".opencode/context.md",
87
+ SUMMARY: ".opencode/summary.md",
88
+ DOC_METADATA: ".opencode/docs/_metadata.json"
79
89
  };
80
90
  var BACKGROUND_TASK = {
81
91
  DEFAULT_TIMEOUT_MS: 5 * TIME.MINUTE,
@@ -14197,7 +14207,7 @@ var presets = {
14197
14207
  }),
14198
14208
  documentCached: (filename) => show({
14199
14209
  title: "\u{1F4C4} Document Cached",
14200
- message: `.cache/docs/${filename}`,
14210
+ message: `${PATHS.DOCS}/${filename}`,
14201
14211
  variant: "info",
14202
14212
  duration: 2e3
14203
14213
  }),
@@ -15137,8 +15147,8 @@ Request a fresh plan from Architect with reduced scope.
15137
15147
  </critical_anomaly>`;
15138
15148
 
15139
15149
  // src/core/cache/constants.ts
15140
- var CACHE_DIR = ".cache/docs";
15141
- var METADATA_FILE = ".cache/docs/_metadata.json";
15150
+ var CACHE_DIR = PATHS.DOCS;
15151
+ var METADATA_FILE = PATHS.DOC_METADATA;
15142
15152
  var DEFAULT_TTL_MS = 24 * 60 * 60 * 1e3;
15143
15153
 
15144
15154
  // src/core/cache/operations.ts
@@ -15362,7 +15372,7 @@ ${cached2.content}`;
15362
15372
  const content = JSON.stringify(JSON.parse(html), null, 2);
15363
15373
  if (cache) {
15364
15374
  const filename = await set2(url2, content, "JSON Response");
15365
- return `\u{1F4C4} **JSON fetched** (cached: .cache/docs/${filename})
15375
+ return `\u{1F4C4} **JSON fetched** (cached: ${PATHS.DOCS}/${filename})
15366
15376
 
15367
15377
  \`\`\`json
15368
15378
  ${content.slice(0, 5e3)}
@@ -15377,7 +15387,7 @@ ${content.slice(0, 5e3)}
15377
15387
  if (contentType.includes("text/plain")) {
15378
15388
  if (cache) {
15379
15389
  const filename = await set2(url2, html, "Plain Text");
15380
- return `\u{1F4C4} **Text fetched** (cached: .cache/docs/${filename})
15390
+ return `\u{1F4C4} **Text fetched** (cached: ${PATHS.DOCS}/${filename})
15381
15391
 
15382
15392
  ${html.slice(0, 1e4)}`;
15383
15393
  }
@@ -15393,7 +15403,7 @@ ${html.slice(0, 1e4)}`;
15393
15403
  const filename = await set2(url2, truncated, title);
15394
15404
  return `\u{1F4DA} **${title}**
15395
15405
  Source: ${url2}
15396
- Cached: .cache/docs/${filename}
15406
+ Cached: ${PATHS.DOCS}/${filename}
15397
15407
 
15398
15408
  ---
15399
15409
 
@@ -36,8 +36,15 @@ export declare const MEMORY_LIMITS: {
36
36
  readonly ERROR_CLEANUP_AGE_MS: number;
37
37
  };
38
38
  export declare const PATHS: {
39
- readonly TASK_ARCHIVE: ".cache/task-archive";
40
- readonly DOC_CACHE: ".cache/docs";
39
+ readonly OPENCODE: ".opencode";
40
+ readonly DOCS: ".opencode/docs";
41
+ readonly ARCHIVE: ".opencode/archive";
42
+ readonly TASK_ARCHIVE: ".opencode/archive/tasks";
43
+ readonly DOC_ARCHIVE: ".opencode/archive/docs";
44
+ readonly TODO: ".opencode/todo.md";
45
+ readonly CONTEXT: ".opencode/context.md";
46
+ readonly SUMMARY: ".opencode/summary.md";
47
+ readonly DOC_METADATA: ".opencode/docs/_metadata.json";
41
48
  };
42
49
  export declare const BACKGROUND_TASK: {
43
50
  readonly DEFAULT_TIMEOUT_MS: number;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "opencode-orchestrator",
3
3
  "displayName": "OpenCode Orchestrator",
4
4
  "description": "Distributed Cognitive Architecture for OpenCode. Turns simple prompts into specialized multi-agent workflows (Planner, Coder, Reviewer).",
5
- "version": "0.6.22",
5
+ "version": "0.6.24",
6
6
  "author": "agnusdei1207",
7
7
  "license": "MIT",
8
8
  "repository": {
@@ -56,7 +56,6 @@
56
56
  "dev:unlink": "npm unlink -g opencode-orchestrator 2>/dev/null; /opt/homebrew/bin/npm unlink -g opencode-orchestrator 2>/dev/null; npm run dev:clean && echo 'SUCCESS: Unlinked from all'",
57
57
  "dev:status": "echo '=== NVM ===' && ls -la $(npm root -g)/opencode-orchestrator 2>/dev/null || echo 'Not linked'; echo '=== Homebrew ===' && ls -la /opt/homebrew/lib/node_modules/opencode-orchestrator 2>/dev/null || echo 'Not linked'",
58
58
  "dev:test": "node dist/scripts/postinstall.js && echo '---' && node dist/scripts/preuninstall.js",
59
- "dev:cache": "npm run build && rm -rf ~/.cache/opencode/node_modules/opencode-orchestrator && cp -r . ~/.cache/opencode/node_modules/opencode-orchestrator && echo 'SUCCESS: Copied to OpenCode cache. Restart OpenCode.'",
60
59
  "reset:local": "brew uninstall opencode 2>/dev/null; rm -rf ~/.config/opencode ~/.opencode ~/.local/share/opencode ~/.cache/opencode/node_modules/opencode-orchestrator && echo '=== Clean done ===' && brew install opencode && echo '{\"plugin\": [\"opencode-orchestrator\"], \"$schema\": \"https://opencode.ai/config.json\"}' > ~/.config/opencode/opencode.json && echo '=== Reset (Dev) complete. Run: opencode ==='",
61
60
  "reset:prod": "brew uninstall opencode 2>/dev/null; rm -rf ~/.config/opencode ~/.opencode ~/.local/share/opencode ~/.cache/opencode/node_modules/opencode-orchestrator && echo '=== Clean done ===' && brew install opencode && echo '{\"plugin\": [\"opencode-orchestrator\"], \"$schema\": \"https://opencode.ai/config.json\"}' > ~/.config/opencode/opencode.json && npm install -g opencode-orchestrator && echo '=== Reset (Prod) complete. Run: opencode ==='",
62
61
  "ginstall": "npm install -g opencode-orchestrator",