@arjunkhera/atlas 0.4.56 → 0.4.57
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.
package/door/lib/install.mjs
CHANGED
|
@@ -175,9 +175,12 @@ export async function install({ packageRoot, options = {}, line = console.log, e
|
|
|
175
175
|
exec('claude', hasCatalog ? ['plugin', 'marketplace', 'update', CATALOG_NAME] : ['plugin', 'marketplace', 'add', catalogDir(env)]);
|
|
176
176
|
const installArgs = ['plugin', 'install', PLUGIN_ID, '--scope', 'user'];
|
|
177
177
|
exec('claude', installArgs);
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
// Read the file again now: `claude plugin install` has just written its
|
|
179
|
+
// own keys into it, and a copy read before that would drop them (0.4.56).
|
|
180
|
+
const now = timeout ? cloudTimeout(env) : null;
|
|
181
|
+
if (now?.state === 'add') {
|
|
182
|
+
mkdirSync(join(now.file, '..'), { recursive: true });
|
|
183
|
+
writeFileSync(now.file, now.text);
|
|
181
184
|
}
|
|
182
185
|
line('');
|
|
183
186
|
// A cloud setup script runs before any session: the key comes from the
|
package/package.json
CHANGED