orbit-code-ai 0.1.11 → 0.1.12
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 +63 -16
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -83661,9 +83661,56 @@ function boxRow(content, width, rawLen) {
|
|
|
83661
83661
|
const pad = Math.max(0, width - 2 - rawLen);
|
|
83662
83662
|
return `${rgb(...BORDER)}│${RESET}${content}${" ".repeat(pad)}${rgb(...BORDER)}│${RESET}`;
|
|
83663
83663
|
}
|
|
83664
|
-
function
|
|
83664
|
+
function introEnabled() {
|
|
83665
|
+
if (process.env.ORBIT_NO_INTRO)
|
|
83666
|
+
return false;
|
|
83667
|
+
if (process.env.ORBIT_FORCE_INTRO)
|
|
83668
|
+
return true;
|
|
83665
83669
|
if (process.env.CI || !process.stdout.isTTY)
|
|
83670
|
+
return false;
|
|
83671
|
+
return true;
|
|
83672
|
+
}
|
|
83673
|
+
async function playOrbitIntro() {
|
|
83674
|
+
const W2 = 37;
|
|
83675
|
+
const center = 18;
|
|
83676
|
+
const amp = 16;
|
|
83677
|
+
const FRAMES = 44;
|
|
83678
|
+
const REVS = 2;
|
|
83679
|
+
process.stdout.write("\x1B[?25l");
|
|
83680
|
+
try {
|
|
83681
|
+
for (let f = 0;f <= FRAMES; f++) {
|
|
83682
|
+
const phase = f / FRAMES * Math.PI * 2 * REVS;
|
|
83683
|
+
const cells = new Array(W2).fill(undefined);
|
|
83684
|
+
cells[center] = `${rgb(...ACCENT)}${f % 2 === 0 ? "✦" : "✧"}${RESET}`;
|
|
83685
|
+
const trail = [
|
|
83686
|
+
[0, "●", [170, 215, 255]],
|
|
83687
|
+
[0.16, "•", [90, 140, 220]],
|
|
83688
|
+
[0.32, "·", [55, 85, 150]]
|
|
83689
|
+
];
|
|
83690
|
+
for (const [lag, ch, col] of trail) {
|
|
83691
|
+
const c5 = Math.round(center + amp * Math.sin(phase - lag));
|
|
83692
|
+
if (c5 >= 0 && c5 < W2 && cells[c5] === undefined)
|
|
83693
|
+
cells[c5] = `${rgb(...col)}${ch}${RESET}`;
|
|
83694
|
+
}
|
|
83695
|
+
let line = "";
|
|
83696
|
+
for (let c5 = 0;c5 < W2; c5++)
|
|
83697
|
+
line += cells[c5] ?? " ";
|
|
83698
|
+
process.stdout.write("\r " + line);
|
|
83699
|
+
await sleep3(45);
|
|
83700
|
+
}
|
|
83701
|
+
process.stdout.write("\r\x1B[2K");
|
|
83702
|
+
} finally {
|
|
83703
|
+
process.stdout.write("\x1B[?25h");
|
|
83704
|
+
}
|
|
83705
|
+
}
|
|
83706
|
+
async function printStartupScreen() {
|
|
83707
|
+
if ((process.env.CI || !process.stdout.isTTY) && !process.env.ORBIT_FORCE_INTRO)
|
|
83666
83708
|
return;
|
|
83709
|
+
if (introEnabled()) {
|
|
83710
|
+
try {
|
|
83711
|
+
await playOrbitIntro();
|
|
83712
|
+
} catch {}
|
|
83713
|
+
}
|
|
83667
83714
|
const p = detectProvider();
|
|
83668
83715
|
const W2 = 62;
|
|
83669
83716
|
const out = [];
|
|
@@ -83712,13 +83759,13 @@ function printStartupScreen() {
|
|
|
83712
83759
|
const sLen = ` ● ${sL} Ready — type /help to begin`.length;
|
|
83713
83760
|
out.push(boxRow(sRow, W2, sLen));
|
|
83714
83761
|
out.push(`${rgb(...BORDER)}╚${"═".repeat(W2 - 2)}╝${RESET}`);
|
|
83715
|
-
out.push(` ${DIM}${rgb(...DIMCOL)}orbit-code ${RESET}${rgb(...ACCENT)}v${"0.1.
|
|
83762
|
+
out.push(` ${DIM}${rgb(...DIMCOL)}orbit-code ${RESET}${rgb(...ACCENT)}v${"0.1.12"}${RESET}`);
|
|
83716
83763
|
out.push("");
|
|
83717
83764
|
process.stdout.write(out.join(`
|
|
83718
83765
|
`) + `
|
|
83719
83766
|
`);
|
|
83720
83767
|
}
|
|
83721
|
-
var ESC = "\x1B[", RESET, DIM, rgb = (r, g, b) => `${ESC}38;2;${r};${g};${b}m`, BLUE_GRAD, ACCENT, CREAM, DIMCOL, BORDER, LOGO_ORBIT, LOGO_CODE;
|
|
83768
|
+
var ESC = "\x1B[", RESET, DIM, rgb = (r, g, b) => `${ESC}38;2;${r};${g};${b}m`, BLUE_GRAD, ACCENT, CREAM, DIMCOL, BORDER, LOGO_ORBIT, LOGO_CODE, sleep3 = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
83722
83769
|
var init_StartupScreen = __esm(() => {
|
|
83723
83770
|
RESET = `${ESC}0m`;
|
|
83724
83771
|
DIM = `${ESC}2m`;
|
|
@@ -334183,7 +334230,7 @@ function getAnthropicEnvMetadata() {
|
|
|
334183
334230
|
function getBuildAgeMinutes() {
|
|
334184
334231
|
if (false)
|
|
334185
334232
|
;
|
|
334186
|
-
const buildTime = new Date("2026-06-
|
|
334233
|
+
const buildTime = new Date("2026-06-25T08:09:32.296Z").getTime();
|
|
334187
334234
|
if (isNaN(buildTime))
|
|
334188
334235
|
return;
|
|
334189
334236
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -358600,7 +358647,7 @@ function buildPrimarySection() {
|
|
|
358600
358647
|
}, undefined, false, undefined, this);
|
|
358601
358648
|
return [{
|
|
358602
358649
|
label: "Version",
|
|
358603
|
-
value: "0.1.
|
|
358650
|
+
value: "0.1.12"
|
|
358604
358651
|
}, {
|
|
358605
358652
|
label: "Session name",
|
|
358606
358653
|
value: nameValue
|
|
@@ -421888,9 +421935,9 @@ var init_pyright = __esm(() => {
|
|
|
421888
421935
|
});
|
|
421889
421936
|
|
|
421890
421937
|
// src/utils/bash/specs/sleep.ts
|
|
421891
|
-
var
|
|
421938
|
+
var sleep5, sleep_default;
|
|
421892
421939
|
var init_sleep = __esm(() => {
|
|
421893
|
-
|
|
421940
|
+
sleep5 = {
|
|
421894
421941
|
name: "sleep",
|
|
421895
421942
|
description: "Delay for a specified amount of time",
|
|
421896
421943
|
args: {
|
|
@@ -421899,7 +421946,7 @@ var init_sleep = __esm(() => {
|
|
|
421899
421946
|
isOptional: false
|
|
421900
421947
|
}
|
|
421901
421948
|
};
|
|
421902
|
-
sleep_default =
|
|
421949
|
+
sleep_default = sleep5;
|
|
421903
421950
|
});
|
|
421904
421951
|
|
|
421905
421952
|
// src/utils/bash/specs/srun.ts
|
|
@@ -470842,7 +470889,7 @@ function WelcomeV2() {
|
|
|
470842
470889
|
dimColor: true,
|
|
470843
470890
|
children: [
|
|
470844
470891
|
"v",
|
|
470845
|
-
"0.1.
|
|
470892
|
+
"0.1.12",
|
|
470846
470893
|
" "
|
|
470847
470894
|
]
|
|
470848
470895
|
}, undefined, true, undefined, this)
|
|
@@ -471042,7 +471089,7 @@ function WelcomeV2() {
|
|
|
471042
471089
|
dimColor: true,
|
|
471043
471090
|
children: [
|
|
471044
471091
|
"v",
|
|
471045
|
-
"0.1.
|
|
471092
|
+
"0.1.12",
|
|
471046
471093
|
" "
|
|
471047
471094
|
]
|
|
471048
471095
|
}, undefined, true, undefined, this)
|
|
@@ -471268,7 +471315,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
471268
471315
|
dimColor: true,
|
|
471269
471316
|
children: [
|
|
471270
471317
|
"v",
|
|
471271
|
-
"0.1.
|
|
471318
|
+
"0.1.12",
|
|
471272
471319
|
" "
|
|
471273
471320
|
]
|
|
471274
471321
|
}, undefined, true, undefined, this);
|
|
@@ -471522,7 +471569,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
471522
471569
|
dimColor: true,
|
|
471523
471570
|
children: [
|
|
471524
471571
|
"v",
|
|
471525
|
-
"0.1.
|
|
471572
|
+
"0.1.12",
|
|
471526
471573
|
" "
|
|
471527
471574
|
]
|
|
471528
471575
|
}, undefined, true, undefined, this);
|
|
@@ -492143,7 +492190,7 @@ Usage: orbitcode --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
492143
492190
|
pendingHookMessages
|
|
492144
492191
|
}, renderAndRun);
|
|
492145
492192
|
}
|
|
492146
|
-
}).version("0.1.
|
|
492193
|
+
}).version("0.1.12 (Orbit AI)", "-v, --version", "Output the version number");
|
|
492147
492194
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
492148
492195
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
492149
492196
|
if (canUserConfigureAdvisor()) {
|
|
@@ -492665,7 +492712,7 @@ if (false) {}
|
|
|
492665
492712
|
async function main2() {
|
|
492666
492713
|
const args = process.argv.slice(2);
|
|
492667
492714
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
492668
|
-
console.log(`${"0.1.
|
|
492715
|
+
console.log(`${"0.1.12"} (Orbit AI)`);
|
|
492669
492716
|
return;
|
|
492670
492717
|
}
|
|
492671
492718
|
if (args.includes("--provider")) {
|
|
@@ -492685,7 +492732,7 @@ async function main2() {
|
|
|
492685
492732
|
applySafeConfigEnvironmentVariables2();
|
|
492686
492733
|
}
|
|
492687
492734
|
const { printStartupScreen: printStartupScreen2 } = await Promise.resolve().then(() => (init_StartupScreen(), exports_StartupScreen));
|
|
492688
|
-
printStartupScreen2();
|
|
492735
|
+
await printStartupScreen2();
|
|
492689
492736
|
const {
|
|
492690
492737
|
profileCheckpoint: profileCheckpoint2
|
|
492691
492738
|
} = await Promise.resolve().then(() => (init_startupProfiler(), exports_startupProfiler));
|
|
@@ -492769,4 +492816,4 @@ async function main2() {
|
|
|
492769
492816
|
}
|
|
492770
492817
|
main2();
|
|
492771
492818
|
|
|
492772
|
-
//# debugId=
|
|
492819
|
+
//# debugId=F40BD992B27CA4F464756E2164756E21
|