@aabadin/project-memory-context 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/cli/setup.mjs +13 -1
  2. package/package.json +1 -1
package/cli/setup.mjs CHANGED
@@ -7,7 +7,8 @@ import { spawnSync } from 'node:child_process';
7
7
 
8
8
  import { bootstrapProjectInstall } from '../src/setup-bootstrap.mjs';
9
9
  import { runDoctor } from '../src/doctor.mjs';
10
- import { resolvePythonBin } from '../src/platform.mjs';
10
+ import { detectAgentType, resolveConfigDirs, resolvePythonBin } from '../src/platform.mjs';
11
+ import { installAgentTemplates } from '../src/template-installer.mjs';
11
12
 
12
13
  const packageRoot = dirname(dirname(fileURLToPath(import.meta.url)));
13
14
 
@@ -49,6 +50,17 @@ try {
49
50
  ollamaModel,
50
51
  });
51
52
 
53
+ const agent = detectAgentType(cwd);
54
+ const { globalConfig } = resolveConfigDirs(cwd);
55
+ console.log(`\n Detected agent: ${agent}`);
56
+ await installAgentTemplates({
57
+ projectRoot: cwd,
58
+ agent,
59
+ packageRoot,
60
+ globalConfigDir: agent === 'opencode' ? globalConfig : undefined,
61
+ });
62
+ console.log(` Installed ${agent} templates.`);
63
+
52
64
  console.log('\n─── Installation complete ───────────────────────────\n');
53
65
  console.log(` Memory DB path: ${result.installState.memoryDbPath}`);
54
66
  console.log(` Embedding cache: ${result.installState.embeddingCachePath}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aabadin/project-memory-context",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Portable project memory context CLI — bootstraps semantic enrichment workflows for any AI coding agent.",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "type": "module",