@aicraftalchemy/aca 0.0.3 → 0.0.4

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/install.cjs +17 -0
  2. package/package.json +1 -1
package/install.cjs CHANGED
@@ -92,6 +92,23 @@ async function main() {
92
92
  }
93
93
  }
94
94
 
95
+ // Also fetch the IDE companion extension (.vsix) — platform-independent. The
96
+ // CLI installs it into VS Code / Cursor / Windsurf from this local file, so
97
+ // there is no VS Code Marketplace dependency. Best-effort: a failure here must
98
+ // not block install (in-editor diffs just won't be available).
99
+ if (manifest.extension) {
100
+ try {
101
+ const vsixBuf = await get(`${BASE}/${manifest.extension.file}`)
102
+ const vsixSha = crypto.createHash('sha256').update(vsixBuf).digest('hex')
103
+ if (vsixSha !== manifest.extension.sha256) {
104
+ throw new Error(`expected ${manifest.extension.sha256}, got ${vsixSha}`)
105
+ }
106
+ fs.writeFileSync(path.join(binDir, 'aca.vsix'), vsixBuf)
107
+ } catch (e) {
108
+ console.warn(`ACA: IDE extension unavailable (${e.message}); in-editor diffs may be limited.`)
109
+ }
110
+ }
111
+
95
112
  console.log(`ACA ${VERSION} installed for ${key}.`)
96
113
  }
97
114
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aicraftalchemy/aca",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "ACA — agentic coding CLI. Any model, any provider (Claude, Gemini, OpenAI, NVIDIA, Groq, Cerebras, OpenRouter, Hugging Face). Developed by Aicraftalchemy.",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {