@ganglion/xacpx 0.17.0 → 0.17.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.
- package/dist/bridge/bridge-main.js +5 -7
- package/dist/cli.js +5 -7
- package/package.json +1 -1
|
@@ -2197,7 +2197,7 @@ function resolveClaudeConfigDir(env, homeDir, platform) {
|
|
|
2197
2197
|
function installSettingsProfile(env, sourceConfigDir, policy, settings, options, platform) {
|
|
2198
2198
|
const serialized = `${JSON.stringify(settings, null, 2)}
|
|
2199
2199
|
`;
|
|
2200
|
-
const digest = createHash("sha256").update(sourceConfigDir).update("\x00").update(policy).update("\x00").update(serialized).digest("hex").slice(0, 20);
|
|
2200
|
+
const digest = createHash("sha256").update(sourceConfigDir).update("\x00").update(policy).update("\x00").update(CLAUDE_SETTINGS_PROFILE_LAYOUT_VERSION).update("\x00").update(serialized).digest("hex").slice(0, 20);
|
|
2201
2201
|
const profileDir = join(options.profileRoot ?? join(tmpdir(), "xacpx-claude-profiles"), digest);
|
|
2202
2202
|
const settingsPath = join(profileDir, "settings.json");
|
|
2203
2203
|
(options.writeProfile ?? writePrivateFileSync)(settingsPath, serialized);
|
|
@@ -2205,7 +2205,7 @@ function installSettingsProfile(env, sourceConfigDir, policy, settings, options,
|
|
|
2205
2205
|
setEnvironmentValue(env, "CLAUDE_CONFIG_DIR", profileDir, platform);
|
|
2206
2206
|
}
|
|
2207
2207
|
function linkClaudeSessionState(sourceConfigDir, profileDir, platform) {
|
|
2208
|
-
for (const name of
|
|
2208
|
+
for (const name of CLAUDE_PERSISTENT_SESSION_STATE_DIRS) {
|
|
2209
2209
|
const source = join(sourceConfigDir, name);
|
|
2210
2210
|
mkdirSync2(source, { recursive: true });
|
|
2211
2211
|
const target = join(profileDir, name);
|
|
@@ -2302,20 +2302,18 @@ function setEnvironmentValue(env, name, value, platform) {
|
|
|
2302
2302
|
deleteEnvironmentValue(env, name, platform);
|
|
2303
2303
|
env[name] = value;
|
|
2304
2304
|
}
|
|
2305
|
-
var DEFAULT_CLAUDE_SETTINGS_POLICY = "provider-only",
|
|
2305
|
+
var DEFAULT_CLAUDE_SETTINGS_POLICY = "provider-only", CLAUDE_SETTINGS_PROFILE_LAYOUT_VERSION = "persistent-state-links-v1", CLAUDE_PERSISTENT_SESSION_STATE_DIRS;
|
|
2306
2306
|
var init_claude_settings_policy = __esm(() => {
|
|
2307
2307
|
init_private_file();
|
|
2308
|
-
|
|
2308
|
+
CLAUDE_PERSISTENT_SESSION_STATE_DIRS = [
|
|
2309
2309
|
"projects",
|
|
2310
2310
|
"file-history",
|
|
2311
2311
|
"plans",
|
|
2312
2312
|
"todos",
|
|
2313
|
-
"session-env",
|
|
2314
2313
|
"tasks",
|
|
2315
2314
|
"teams",
|
|
2316
2315
|
"sessions",
|
|
2317
|
-
"transcripts"
|
|
2318
|
-
"shell-snapshots"
|
|
2316
|
+
"transcripts"
|
|
2319
2317
|
];
|
|
2320
2318
|
});
|
|
2321
2319
|
|
package/dist/cli.js
CHANGED
|
@@ -4624,7 +4624,7 @@ function resolveClaudeConfigDir(env, homeDir, platform) {
|
|
|
4624
4624
|
function installSettingsProfile(env, sourceConfigDir, policy, settings, options, platform) {
|
|
4625
4625
|
const serialized = `${JSON.stringify(settings, null, 2)}
|
|
4626
4626
|
`;
|
|
4627
|
-
const digest = createHash("sha256").update(sourceConfigDir).update("\x00").update(policy).update("\x00").update(serialized).digest("hex").slice(0, 20);
|
|
4627
|
+
const digest = createHash("sha256").update(sourceConfigDir).update("\x00").update(policy).update("\x00").update(CLAUDE_SETTINGS_PROFILE_LAYOUT_VERSION).update("\x00").update(serialized).digest("hex").slice(0, 20);
|
|
4628
4628
|
const profileDir = join3(options.profileRoot ?? join3(tmpdir(), "xacpx-claude-profiles"), digest);
|
|
4629
4629
|
const settingsPath = join3(profileDir, "settings.json");
|
|
4630
4630
|
(options.writeProfile ?? writePrivateFileSync)(settingsPath, serialized);
|
|
@@ -4632,7 +4632,7 @@ function installSettingsProfile(env, sourceConfigDir, policy, settings, options,
|
|
|
4632
4632
|
setEnvironmentValue(env, "CLAUDE_CONFIG_DIR", profileDir, platform);
|
|
4633
4633
|
}
|
|
4634
4634
|
function linkClaudeSessionState(sourceConfigDir, profileDir, platform) {
|
|
4635
|
-
for (const name of
|
|
4635
|
+
for (const name of CLAUDE_PERSISTENT_SESSION_STATE_DIRS) {
|
|
4636
4636
|
const source = join3(sourceConfigDir, name);
|
|
4637
4637
|
mkdirSync3(source, { recursive: true });
|
|
4638
4638
|
const target = join3(profileDir, name);
|
|
@@ -4729,20 +4729,18 @@ function setEnvironmentValue(env, name, value, platform) {
|
|
|
4729
4729
|
deleteEnvironmentValue(env, name, platform);
|
|
4730
4730
|
env[name] = value;
|
|
4731
4731
|
}
|
|
4732
|
-
var DEFAULT_CLAUDE_SETTINGS_POLICY = "provider-only",
|
|
4732
|
+
var DEFAULT_CLAUDE_SETTINGS_POLICY = "provider-only", CLAUDE_SETTINGS_PROFILE_LAYOUT_VERSION = "persistent-state-links-v1", CLAUDE_PERSISTENT_SESSION_STATE_DIRS;
|
|
4733
4733
|
var init_claude_settings_policy = __esm(() => {
|
|
4734
4734
|
init_private_file();
|
|
4735
|
-
|
|
4735
|
+
CLAUDE_PERSISTENT_SESSION_STATE_DIRS = [
|
|
4736
4736
|
"projects",
|
|
4737
4737
|
"file-history",
|
|
4738
4738
|
"plans",
|
|
4739
4739
|
"todos",
|
|
4740
|
-
"session-env",
|
|
4741
4740
|
"tasks",
|
|
4742
4741
|
"teams",
|
|
4743
4742
|
"sessions",
|
|
4744
|
-
"transcripts"
|
|
4745
|
-
"shell-snapshots"
|
|
4743
|
+
"transcripts"
|
|
4746
4744
|
];
|
|
4747
4745
|
});
|
|
4748
4746
|
|