@ganglion/xacpx 0.17.0-beta.8 → 0.17.0
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/adapters/claude-settings-policy.d.ts +33 -0
- package/dist/bridge/bridge-main.js +2540 -89
- package/dist/channels/subagent-notice.d.ts +15 -0
- package/dist/channels/types.d.ts +4 -0
- package/dist/cli.js +1892 -577
- package/dist/config/types.d.ts +3 -0
- package/dist/control/control-service.d.ts +15 -5
- package/dist/control/workspace-git.d.ts +10 -3
- package/dist/i18n/types.d.ts +1 -0
- package/dist/plugin-api.d.ts +1 -0
- package/dist/plugin-api.js +30 -1
- package/dist/sessions/session-service.d.ts +17 -0
- package/dist/state/types.d.ts +2 -0
- package/dist/transport/command-timeouts.d.ts +2 -2
- package/dist/transport/types.d.ts +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type ClaudeSettingsPolicy = "provider-only" | "isolated" | "full-user";
|
|
2
|
+
export declare const DEFAULT_CLAUDE_SETTINGS_POLICY: ClaudeSettingsPolicy;
|
|
3
|
+
export declare function isClaudeSettingsPolicy(value: unknown): value is ClaudeSettingsPolicy;
|
|
4
|
+
export interface ClaudeExecutionSettings {
|
|
5
|
+
driver?: string;
|
|
6
|
+
settingsPolicy?: ClaudeSettingsPolicy;
|
|
7
|
+
model?: string;
|
|
8
|
+
}
|
|
9
|
+
interface ResolveClaudeSpawnEnvironmentOptions {
|
|
10
|
+
baseEnv?: NodeJS.ProcessEnv;
|
|
11
|
+
homeDir?: string;
|
|
12
|
+
platform?: NodeJS.Platform;
|
|
13
|
+
profileRoot?: string;
|
|
14
|
+
readTextFile?: (path: string) => string;
|
|
15
|
+
writeProfile?: (path: string, content: string) => void;
|
|
16
|
+
linkSessionState?: (sourceConfigDir: string, profileDir: string) => void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Builds the environment for one acpx invocation without ever putting provider
|
|
20
|
+
* credentials on the bridge protocol or in xacpx state. The default policy is
|
|
21
|
+
* intentionally inert for normal Claude OAuth/API-key users: it only imports
|
|
22
|
+
* the narrow provider/model fields when a third-party marker is present.
|
|
23
|
+
*/
|
|
24
|
+
export declare function resolveClaudeSpawnEnvironment(input: ClaudeExecutionSettings, options?: ResolveClaudeSpawnEnvironmentOptions): NodeJS.ProcessEnv | undefined;
|
|
25
|
+
declare function linkClaudeSessionState(sourceConfigDir: string, profileDir: string, platform: NodeJS.Platform): void;
|
|
26
|
+
declare function sanitizeClaudeModelConfig(settings: Record<string, unknown> | undefined): Record<string, unknown>;
|
|
27
|
+
declare function sanitizeClaudeSettings(settings: Record<string, unknown> | undefined, includeModel: boolean): Record<string, unknown>;
|
|
28
|
+
export declare const __claudeSettingsPolicyForTests: {
|
|
29
|
+
sanitizeClaudeModelConfig: typeof sanitizeClaudeModelConfig;
|
|
30
|
+
sanitizeClaudeSettings: typeof sanitizeClaudeSettings;
|
|
31
|
+
linkClaudeSessionState: typeof linkClaudeSessionState;
|
|
32
|
+
};
|
|
33
|
+
export {};
|