@piceofpentogramm/alterclaude 0.1.5 → 0.1.7
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/cli.mjs +32 -36
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -53202,9 +53202,9 @@ async function buildLaunchEnv(options) {
|
|
|
53202
53202
|
};
|
|
53203
53203
|
delete env4.CLAUDE_CODE_USE_OPENAI;
|
|
53204
53204
|
delete env4.CLAUDE_CODE_USE_GITHUB;
|
|
53205
|
-
env4.GEMINI_MODEL =
|
|
53206
|
-
env4.GEMINI_BASE_URL =
|
|
53207
|
-
const geminiKey =
|
|
53205
|
+
env4.GEMINI_MODEL = persistedGeminiModel || shellGeminiModel || DEFAULT_GEMINI_MODEL;
|
|
53206
|
+
env4.GEMINI_BASE_URL = persistedGeminiBaseUrl || shellGeminiBaseUrl || DEFAULT_GEMINI_BASE_URL;
|
|
53207
|
+
const geminiKey = persistedGeminiKey || shellGeminiKey;
|
|
53208
53208
|
if (geminiKey) {
|
|
53209
53209
|
env4.GEMINI_API_KEY = geminiKey;
|
|
53210
53210
|
} else {
|
|
@@ -53231,9 +53231,9 @@ async function buildLaunchEnv(options) {
|
|
|
53231
53231
|
const shellOpenRouterModel = sanitizeProviderConfigValue(processEnv.OPENROUTER_MODEL, processEnv);
|
|
53232
53232
|
const persistedOpenRouterBaseUrl = sanitizeProviderConfigValue(persistedEnv.OPENROUTER_BASE_URL, persistedEnv);
|
|
53233
53233
|
const shellOpenRouterBaseUrl = sanitizeProviderConfigValue(processEnv.OPENROUTER_BASE_URL, processEnv);
|
|
53234
|
-
env4.OPENROUTER_MODEL =
|
|
53235
|
-
env4.OPENROUTER_BASE_URL =
|
|
53236
|
-
const openRouterKey = sanitizeApiKey(
|
|
53234
|
+
env4.OPENROUTER_MODEL = persistedOpenRouterModel || shellOpenRouterModel || DEFAULT_OPENROUTER_MODEL;
|
|
53235
|
+
env4.OPENROUTER_BASE_URL = persistedOpenRouterBaseUrl || shellOpenRouterBaseUrl || DEFAULT_OPENROUTER_BASE_URL;
|
|
53236
|
+
const openRouterKey = sanitizeApiKey(persistedEnv.OPENROUTER_API_KEY) || sanitizeApiKey(processEnv.OPENROUTER_API_KEY);
|
|
53237
53237
|
if (openRouterKey) {
|
|
53238
53238
|
env4.OPENROUTER_API_KEY = openRouterKey;
|
|
53239
53239
|
} else {
|
|
@@ -53295,7 +53295,7 @@ async function buildLaunchEnv(options) {
|
|
|
53295
53295
|
env3.OPENAI_BASE_URL = persistedOpenAIBaseUrl && isCodexBaseUrl(persistedOpenAIBaseUrl) ? persistedOpenAIBaseUrl : DEFAULT_CODEX_BASE_URL;
|
|
53296
53296
|
env3.OPENAI_MODEL = persistedOpenAIModel || "codexplan";
|
|
53297
53297
|
delete env3.OPENAI_API_KEY;
|
|
53298
|
-
const codexKey = sanitizeApiKey(
|
|
53298
|
+
const codexKey = sanitizeApiKey(persistedEnv.CODEX_API_KEY) || sanitizeApiKey(processEnv.CODEX_API_KEY);
|
|
53299
53299
|
const liveCodexCredentials = resolveCodexApiCredentials(processEnv);
|
|
53300
53300
|
const codexAccountId = processEnv.CHATGPT_ACCOUNT_ID || processEnv.CODEX_ACCOUNT_ID || liveCodexCredentials.accountId || persistedEnv.CHATGPT_ACCOUNT_ID || persistedEnv.CODEX_ACCOUNT_ID;
|
|
53301
53301
|
if (codexKey) {
|
|
@@ -53324,9 +53324,9 @@ async function buildLaunchEnv(options) {
|
|
|
53324
53324
|
});
|
|
53325
53325
|
const useShellOpenAIConfig = shellOpenAIRequest.transport === "chat_completions";
|
|
53326
53326
|
const usePersistedOpenAIConfig = !persistedOpenAIModel && !persistedOpenAIBaseUrl || persistedOpenAIRequest.transport === "chat_completions";
|
|
53327
|
-
env3.OPENAI_BASE_URL = (
|
|
53328
|
-
env3.OPENAI_MODEL = (
|
|
53329
|
-
env3.OPENAI_API_KEY =
|
|
53327
|
+
env3.OPENAI_BASE_URL = (usePersistedOpenAIConfig ? persistedOpenAIBaseUrl : undefined) || (useShellOpenAIConfig ? shellOpenAIBaseUrl : undefined) || DEFAULT_OPENAI_BASE_URL;
|
|
53328
|
+
env3.OPENAI_MODEL = (usePersistedOpenAIConfig ? persistedOpenAIModel : undefined) || (useShellOpenAIConfig ? shellOpenAIModel : undefined) || defaultOpenAIModel;
|
|
53329
|
+
env3.OPENAI_API_KEY = persistedEnv.OPENAI_API_KEY || processEnv.OPENAI_API_KEY;
|
|
53330
53330
|
delete env3.CODEX_API_KEY;
|
|
53331
53331
|
delete env3.CHATGPT_ACCOUNT_ID;
|
|
53332
53332
|
delete env3.CODEX_ACCOUNT_ID;
|
|
@@ -110747,23 +110747,19 @@ class OpenAIShimMessages {
|
|
|
110747
110747
|
chatCompletionsUrl = `${request.baseUrl}/chat/completions`;
|
|
110748
110748
|
}
|
|
110749
110749
|
if (isOpenRouter && process.env.ALTERCLAUDE_DEBUG) {
|
|
110750
|
-
|
|
110751
|
-
|
|
110752
|
-
`
|
|
110753
|
-
|
|
110754
|
-
`)
|
|
110755
|
-
|
|
110756
|
-
`
|
|
110757
|
-
|
|
110758
|
-
`
|
|
110759
|
-
|
|
110760
|
-
`
|
|
110761
|
-
process.stderr.write(`[ALTERCLAUDE_DEBUG] CLAUDE_CODE_USE_OPENROUTER: ${process.env.CLAUDE_CODE_USE_OPENROUTER}
|
|
110762
|
-
`);
|
|
110763
|
-
process.stderr.write(`[ALTERCLAUDE_DEBUG] ANTHROPIC_AUTH_TOKEN env: ${!!process.env.ANTHROPIC_AUTH_TOKEN}
|
|
110764
|
-
`);
|
|
110765
|
-
process.stderr.write(`[ALTERCLAUDE_DEBUG] Chat URL: ${chatCompletionsUrl}
|
|
110750
|
+
const fs2 = await import("fs");
|
|
110751
|
+
const msg = [
|
|
110752
|
+
`
|
|
110753
|
+
[ALTERCLAUDE_DEBUG] OR key set: ${!!headers.Authorization}`,
|
|
110754
|
+
`[ALTERCLAUDE_DEBUG] Auth header: ${headers.Authorization || "(none)"}`,
|
|
110755
|
+
`[ALTERCLAUDE_DEBUG] OPENROUTER_API_KEY env: ${!!process.env.OPENROUTER_API_KEY}`,
|
|
110756
|
+
`[ALTERCLAUDE_DEBUG] OPENAI_API_KEY env: ${!!process.env.OPENAI_API_KEY}`,
|
|
110757
|
+
`[ALTERCLAUDE_DEBUG] CLAUDE_CODE_USE_OPENROUTER: ${process.env.CLAUDE_CODE_USE_OPENROUTER}`,
|
|
110758
|
+
`[ALTERCLAUDE_DEBUG] ANTHROPIC_AUTH_TOKEN env: ${!!process.env.ANTHROPIC_AUTH_TOKEN}`,
|
|
110759
|
+
`[ALTERCLAUDE_DEBUG] Chat URL: ${chatCompletionsUrl}`
|
|
110760
|
+
].join(`
|
|
110766
110761
|
`);
|
|
110762
|
+
fs2.appendFileSync("C:\\Users\\Kris\\alterclaude-debug.log", msg);
|
|
110767
110763
|
}
|
|
110768
110764
|
const fetchInit = {
|
|
110769
110765
|
method: "POST",
|
|
@@ -120205,7 +120201,7 @@ function printStartupScreen() {
|
|
|
120205
120201
|
const sLen = ` ● ${sL} Ready — type /help to begin`.length;
|
|
120206
120202
|
out.push(boxRow(sRow, W2, sLen));
|
|
120207
120203
|
out.push(`${rgb(...BORDER)}╚${"═".repeat(W2 - 2)}╝${RESET}`);
|
|
120208
|
-
out.push(` ${DIM}${rgb(...DIMCOL)}alterclaude ${RESET}${rgb(...ACCENT)}v${"0.1.
|
|
120204
|
+
out.push(` ${DIM}${rgb(...DIMCOL)}alterclaude ${RESET}${rgb(...ACCENT)}v${"0.1.7"}${RESET}`);
|
|
120209
120205
|
out.push("");
|
|
120210
120206
|
process.stdout.write(out.join(`
|
|
120211
120207
|
`) + `
|
|
@@ -358959,7 +358955,7 @@ function getAnthropicEnvMetadata() {
|
|
|
358959
358955
|
function getBuildAgeMinutes() {
|
|
358960
358956
|
if (false)
|
|
358961
358957
|
;
|
|
358962
|
-
const buildTime = new Date("2026-05-29T16:
|
|
358958
|
+
const buildTime = new Date("2026-05-29T16:53:03.131Z").getTime();
|
|
358963
358959
|
if (isNaN(buildTime))
|
|
358964
358960
|
return;
|
|
358965
358961
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -451551,7 +451547,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
451551
451547
|
var call58 = async () => {
|
|
451552
451548
|
return {
|
|
451553
451549
|
type: "text",
|
|
451554
|
-
value: `${"99.0.0"} (built ${"2026-05-29T16:
|
|
451550
|
+
value: `${"99.0.0"} (built ${"2026-05-29T16:53:03.131Z"})`
|
|
451555
451551
|
};
|
|
451556
451552
|
}, version2, version_default;
|
|
451557
451553
|
var init_version = __esm(() => {
|
|
@@ -524692,7 +524688,7 @@ function WelcomeV2() {
|
|
|
524692
524688
|
dimColor: true,
|
|
524693
524689
|
children: [
|
|
524694
524690
|
"v",
|
|
524695
|
-
"0.1.
|
|
524691
|
+
"0.1.7",
|
|
524696
524692
|
" "
|
|
524697
524693
|
]
|
|
524698
524694
|
}, undefined, true, undefined, this)
|
|
@@ -524892,7 +524888,7 @@ function WelcomeV2() {
|
|
|
524892
524888
|
dimColor: true,
|
|
524893
524889
|
children: [
|
|
524894
524890
|
"v",
|
|
524895
|
-
"0.1.
|
|
524891
|
+
"0.1.7",
|
|
524896
524892
|
" "
|
|
524897
524893
|
]
|
|
524898
524894
|
}, undefined, true, undefined, this)
|
|
@@ -525118,7 +525114,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
525118
525114
|
dimColor: true,
|
|
525119
525115
|
children: [
|
|
525120
525116
|
"v",
|
|
525121
|
-
"0.1.
|
|
525117
|
+
"0.1.7",
|
|
525122
525118
|
" "
|
|
525123
525119
|
]
|
|
525124
525120
|
}, undefined, true, undefined, this);
|
|
@@ -525372,7 +525368,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
525372
525368
|
dimColor: true,
|
|
525373
525369
|
children: [
|
|
525374
525370
|
"v",
|
|
525375
|
-
"0.1.
|
|
525371
|
+
"0.1.7",
|
|
525376
525372
|
" "
|
|
525377
525373
|
]
|
|
525378
525374
|
}, undefined, true, undefined, this);
|
|
@@ -545920,7 +545916,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
545920
545916
|
pendingHookMessages
|
|
545921
545917
|
}, renderAndRun);
|
|
545922
545918
|
}
|
|
545923
|
-
}).version("0.1.
|
|
545919
|
+
}).version("0.1.7 (Alter Claude)", "-v, --version", "Output the version number");
|
|
545924
545920
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
545925
545921
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
545926
545922
|
if (canUserConfigureAdvisor()) {
|
|
@@ -546500,7 +546496,7 @@ function validateProviderEnvOrExit() {
|
|
|
546500
546496
|
async function main2() {
|
|
546501
546497
|
const args = process.argv.slice(2);
|
|
546502
546498
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
546503
|
-
console.log(`${"0.1.
|
|
546499
|
+
console.log(`${"0.1.7"} (Alter Claude)`);
|
|
546504
546500
|
return;
|
|
546505
546501
|
}
|
|
546506
546502
|
{
|
|
@@ -546612,4 +546608,4 @@ async function main2() {
|
|
|
546612
546608
|
}
|
|
546613
546609
|
main2();
|
|
546614
546610
|
|
|
546615
|
-
//# debugId=
|
|
546611
|
+
//# debugId=4DD517C37DA804A664756E2164756E21
|