@cortexkit/opencode-anthropic-auth 2.0.1 → 2.0.3
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/README.md +35 -845
- package/dist/cli-failure.d.ts +6 -5
- package/dist/cli.js +57 -103
- package/dist/custody-mode.d.ts +1 -0
- package/dist/{index-52r2e1h9.js → index-5hyennzm.js} +1 -1
- package/dist/{index-p4wvcwhh.js → index-fncp6r0j.js} +1 -1
- package/dist/index-jmjevtm1.js +2 -0
- package/dist/index-kd89hcr3.js +2 -0
- package/dist/index-mdpyfkv3.js +464 -0
- package/dist/index-nfcp0m1t.js +42 -0
- package/dist/index-qttfa42y.js +2 -0
- package/dist/{index-3xqv3rw3.js → index-rftced5v.js} +1 -1
- package/dist/{index-zdgceztz.js → index-vjehtqnb.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/quota-preflight.d.ts +1 -0
- package/dist/rpc/port-file.js +1 -1
- package/dist/rpc/protocol.js +1 -1
- package/dist/rpc/rpc-client.js +1 -1
- package/dist/rpc/rpc-dir.js +1 -1
- package/dist/setup/command.d.ts +5 -14
- package/dist/setup/native-activation.d.ts +14 -6
- package/dist/setup/native-enrollment.d.ts +15 -0
- package/dist/setup/native-local.d.ts +31 -1
- package/dist/setup/process-fence.d.ts +0 -6
- package/dist/setup/types.d.ts +9 -0
- package/dist/sidebar-state.d.ts +20 -2
- package/dist/sidebar-state.js +1 -1
- package/dist/transform.d.ts +17 -2
- package/dist/tui-preferences.js +1 -1
- package/dist/tui.d.ts +0 -2
- package/dist/v2/activation.d.ts +2 -0
- package/dist/v2/adapter.d.ts +8 -2
- package/dist/v2/cachekeep.d.ts +19 -0
- package/dist/v2/menu.d.ts +2 -1
- package/dist/v2/server.js +4 -4
- package/dist/v2/setup.d.ts +2 -0
- package/dist/v2/source.d.ts +1 -0
- package/dist/v2/tui.js +1 -1
- package/package.json +5 -5
- package/src/sidebar-state.ts +165 -29
- package/src/tui-compiled/sidebar-state.ts +165 -29
- package/src/tui-compiled/tui.tsx +363 -239
- package/src/tui.tsx +149 -48
- package/dist/index-04syas8a.js +0 -2
- package/dist/index-b3mxpp4w.js +0 -2
- package/dist/index-ynq181e8.js +0 -42
- package/dist/index-yxtdke11.js +0 -449
- package/dist/setup/activation.d.ts +0 -7
- package/dist/setup/command.test.d.ts +0 -1
- package/dist/setup/detect.d.ts +0 -8
- package/dist/setup/host-executable.d.ts +0 -3
- package/dist/setup/jsonc.d.ts +0 -9
- package/dist/setup/opencode-config.d.ts +0 -18
- package/dist/setup/pi.d.ts +0 -18
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ProcessFence } from './types.ts';
|
|
2
|
-
export interface WriteOpenCodeTombstoneOptions {
|
|
3
|
-
authPath: string;
|
|
4
|
-
fence?: ProcessFence;
|
|
5
|
-
beforeRename?: () => Promise<void>;
|
|
6
|
-
}
|
|
7
|
-
export declare function writeOpenCodeTombstoneAuth(options: WriteOpenCodeTombstoneOptions): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/setup/detect.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ClaustrumDetection, CommandRunner, HostDetection, SetupDetection } from './types.ts';
|
|
2
|
-
export interface DetectionOptions {
|
|
3
|
-
platform?: NodeJS.Platform;
|
|
4
|
-
}
|
|
5
|
-
export declare function detectOpenCode(env?: NodeJS.ProcessEnv, runner?: CommandRunner, options?: DetectionOptions): Promise<HostDetection>;
|
|
6
|
-
export declare function detectPi(env?: NodeJS.ProcessEnv, runner?: CommandRunner, options?: DetectionOptions): Promise<HostDetection>;
|
|
7
|
-
export declare function detectClaustrum(env?: NodeJS.ProcessEnv, runner?: CommandRunner, options?: DetectionOptions): Promise<ClaustrumDetection>;
|
|
8
|
-
export declare function detectAll(env?: NodeJS.ProcessEnv, runner?: CommandRunner, options?: DetectionOptions): Promise<SetupDetection>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { CommandRunner, CommandRunnerResult } from './types.ts';
|
|
2
|
-
export declare function findHostExecutable(name: string, env: NodeJS.ProcessEnv, platform: NodeJS.Platform): string | null;
|
|
3
|
-
export declare function probeHostVersion(executable: string | null, env: NodeJS.ProcessEnv, runner: CommandRunner, platform: NodeJS.Platform): Promise<CommandRunnerResult | null>;
|
package/dist/setup/jsonc.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare function readJsonc<T = unknown>(path: string): {
|
|
2
|
-
value: T | null;
|
|
3
|
-
text: string;
|
|
4
|
-
exists: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare function updateJsoncArray(originalText: string, arrayPath: (string | number)[], entryToInsertOrUpdate: string, matcher: (existing: string) => boolean): {
|
|
7
|
-
text: string;
|
|
8
|
-
changed: boolean;
|
|
9
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare function detectOpenCodeConfigFile(configDir: string): {
|
|
2
|
-
path: string;
|
|
3
|
-
exists: boolean;
|
|
4
|
-
};
|
|
5
|
-
export declare function detectOpenCodeTuiConfigFile(configDir: string): {
|
|
6
|
-
path: string;
|
|
7
|
-
exists: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare function ensureOpenCodePluginConfig(version: string, env?: NodeJS.ProcessEnv): Promise<{
|
|
10
|
-
configPath: string;
|
|
11
|
-
changed: boolean;
|
|
12
|
-
created: boolean;
|
|
13
|
-
}>;
|
|
14
|
-
export declare function ensureOpenCodeTuiConfig(version: string, env?: NodeJS.ProcessEnv): Promise<{
|
|
15
|
-
configPath: string;
|
|
16
|
-
changed: boolean;
|
|
17
|
-
created: boolean;
|
|
18
|
-
}>;
|
package/dist/setup/pi.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { CommandRunner } from './types.ts';
|
|
2
|
-
export declare function isPiPackageInstalled(env?: NodeJS.ProcessEnv, agentDir?: string): boolean;
|
|
3
|
-
export declare function hasPiLocalAnthropicAuth(env?: NodeJS.ProcessEnv): Promise<boolean>;
|
|
4
|
-
export declare function cleanPiLocalAnthropicAuth(env?: NodeJS.ProcessEnv): Promise<boolean>;
|
|
5
|
-
/**
|
|
6
|
-
* A failed install carries the child's raw exit code and stderr for the
|
|
7
|
-
* diagnostic log only; stderr can echo credentials from the environment, so it
|
|
8
|
-
* is never meant for the screen.
|
|
9
|
-
*/
|
|
10
|
-
export type PiInstallResult = {
|
|
11
|
-
ok: true;
|
|
12
|
-
message: string;
|
|
13
|
-
} | {
|
|
14
|
-
ok: false;
|
|
15
|
-
exitCode: number;
|
|
16
|
-
stderr: string;
|
|
17
|
-
};
|
|
18
|
-
export declare function installPiExtension(version: string, runner?: CommandRunner, env?: NodeJS.ProcessEnv): Promise<PiInstallResult>;
|