@cryer/star-cli 0.3.12 → 0.3.13
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/chunk-4IRY44TG.js +0 -0
- package/dist/{chunk-LSYGHLRU.js → chunk-6PLZ3FLG.js} +106 -63
- package/dist/chunk-6PLZ3FLG.js.map +1 -0
- package/dist/chunk-MVAMPVTA.js +0 -0
- package/dist/{chunk-2GAUAYCU.js → chunk-NMB3TNQU.js} +3 -3
- package/dist/{chunk-Q5FJN4LN.js → chunk-OF42OVM4.js} +11 -2
- package/dist/chunk-OF42OVM4.js.map +1 -0
- package/dist/{chunk-F5RWZMQY.js → chunk-QELCMXQX.js} +83 -15
- package/dist/chunk-QELCMXQX.js.map +1 -0
- package/dist/{chunk-MYHD3SZB.js → chunk-RD4S5LKM.js} +2 -2
- package/dist/{loop-BYXBNFFY.js → loop-DWQ5WTPD.js} +5 -5
- package/dist/main.js +5 -5
- package/dist/provider-EWMUPBLH.js +0 -0
- package/dist/{repl-SSCURTAH.js → repl-ZABBT33D.js} +6 -6
- package/dist/{tools-BH55BVIS.js → tools-4OLADVDR.js} +3 -3
- package/package.json +16 -25
- package/dist/chunk-F5RWZMQY.js.map +0 -1
- package/dist/chunk-LSYGHLRU.js.map +0 -1
- package/dist/chunk-Q5FJN4LN.js.map +0 -1
- /package/dist/{chunk-2GAUAYCU.js.map → chunk-NMB3TNQU.js.map} +0 -0
- /package/dist/{chunk-MYHD3SZB.js.map → chunk-RD4S5LKM.js.map} +0 -0
- /package/dist/{loop-BYXBNFFY.js.map → loop-DWQ5WTPD.js.map} +0 -0
- /package/dist/{repl-SSCURTAH.js.map → repl-ZABBT33D.js.map} +0 -0
- /package/dist/{tools-BH55BVIS.js.map → tools-4OLADVDR.js.map} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
gitTreesDir,
|
|
4
4
|
isSensitivePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6PLZ3FLG.js";
|
|
6
6
|
|
|
7
7
|
// src/core/messages.ts
|
|
8
8
|
function toStarMessage(message) {
|
|
@@ -502,4 +502,4 @@ export {
|
|
|
502
502
|
restoreTree,
|
|
503
503
|
diffTreeNames
|
|
504
504
|
};
|
|
505
|
-
//# sourceMappingURL=chunk-
|
|
505
|
+
//# sourceMappingURL=chunk-RD4S5LKM.js.map
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
AgentLoop,
|
|
4
4
|
PLAN_MODE_PROMPT,
|
|
5
5
|
attachTurnContext
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-QELCMXQX.js";
|
|
7
|
+
import "./chunk-RD4S5LKM.js";
|
|
8
8
|
import "./chunk-MVAMPVTA.js";
|
|
9
9
|
import "./chunk-4IRY44TG.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-OF42OVM4.js";
|
|
11
|
+
import "./chunk-6PLZ3FLG.js";
|
|
12
12
|
export {
|
|
13
13
|
AgentLoop,
|
|
14
14
|
PLAN_MODE_PROMPT,
|
|
15
15
|
attachTurnContext
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=loop-
|
|
17
|
+
//# sourceMappingURL=loop-DWQ5WTPD.js.map
|
package/dist/main.js
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
resolveMentions,
|
|
17
17
|
resolveSessionId,
|
|
18
18
|
summarizeArgs
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NMB3TNQU.js";
|
|
20
20
|
import {
|
|
21
21
|
ConfigSchema,
|
|
22
22
|
HookConfigSchema,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
ProviderConfigSchema,
|
|
26
26
|
contextWindowTokens,
|
|
27
27
|
reconcileStarMessages
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-RD4S5LKM.js";
|
|
29
29
|
import {
|
|
30
30
|
resolveModelConfig,
|
|
31
31
|
resolveStartupModel
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
registerSensitivePatterns,
|
|
42
42
|
setTodoSession,
|
|
43
43
|
setWebFetchAllowPrivateHosts
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-6PLZ3FLG.js";
|
|
45
45
|
|
|
46
46
|
// src/main.tsx
|
|
47
47
|
import { Command } from "commander";
|
|
@@ -405,7 +405,7 @@ function wireRuntimeSettings(config) {
|
|
|
405
405
|
|
|
406
406
|
// src/main.tsx
|
|
407
407
|
async function createLoop(config, modelName, cwd, sessionStore) {
|
|
408
|
-
const [{ AgentLoop }, { createModel, reasoningEffortMetadata }, { createDefaultRegistry }] = await Promise.all([import("./loop-
|
|
408
|
+
const [{ AgentLoop }, { createModel, reasoningEffortMetadata }, { createDefaultRegistry }] = await Promise.all([import("./loop-DWQ5WTPD.js"), import("./provider-EWMUPBLH.js"), import("./tools-4OLADVDR.js")]);
|
|
409
409
|
const model = createModel(config, modelName);
|
|
410
410
|
const registry = createDefaultRegistry();
|
|
411
411
|
const modelConfig = resolveModelConfig(config, modelName);
|
|
@@ -658,7 +658,7 @@ program.name("star").description("Star CLI \u2014 an AI agent command-line inter
|
|
|
658
658
|
console.error(ttyError);
|
|
659
659
|
process.exit(1);
|
|
660
660
|
}
|
|
661
|
-
const { renderRepl } = await import("./repl-
|
|
661
|
+
const { renderRepl } = await import("./repl-ZABBT33D.js");
|
|
662
662
|
renderRepl(loop, {
|
|
663
663
|
model: modelName,
|
|
664
664
|
permissionMode: config.permissionMode,
|
|
File without changes
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
thinkingIcon,
|
|
32
32
|
toTerminalSafe,
|
|
33
33
|
toolIcon
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-NMB3TNQU.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentLoop,
|
|
37
37
|
WORKING_DIFF_MAX_LINES,
|
|
@@ -48,14 +48,14 @@ import {
|
|
|
48
48
|
isDangerousCommand,
|
|
49
49
|
isGitRepo,
|
|
50
50
|
summarizeMessages
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-QELCMXQX.js";
|
|
52
52
|
import {
|
|
53
53
|
contextWindowTokens,
|
|
54
54
|
coreMessageText,
|
|
55
55
|
diffTreeNames,
|
|
56
56
|
reconcileStarMessages,
|
|
57
57
|
toCoreMessages
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-RD4S5LKM.js";
|
|
59
59
|
import {
|
|
60
60
|
createModel,
|
|
61
61
|
reasoningEffortMetadata
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
formatTaskFinished,
|
|
70
70
|
formatTaskList,
|
|
71
71
|
formatTaskStarted
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-OF42OVM4.js";
|
|
73
73
|
import {
|
|
74
74
|
MAX_IMAGE_DIMENSION,
|
|
75
75
|
SKIP_DIRS,
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
starHome,
|
|
99
99
|
upsertEnvContent,
|
|
100
100
|
userMemoryPath
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-6PLZ3FLG.js";
|
|
102
102
|
|
|
103
103
|
// src/cli/repl.tsx
|
|
104
104
|
import { Box as Box13, Text as Text14, render, useApp } from "ink";
|
|
@@ -5899,4 +5899,4 @@ export {
|
|
|
5899
5899
|
Repl,
|
|
5900
5900
|
renderRepl
|
|
5901
5901
|
};
|
|
5902
|
-
//# sourceMappingURL=repl-
|
|
5902
|
+
//# sourceMappingURL=repl-ZABBT33D.js.map
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ToolRegistry,
|
|
4
4
|
createDefaultRegistry
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OF42OVM4.js";
|
|
6
6
|
import {
|
|
7
7
|
TodoStore,
|
|
8
8
|
createTodoTools,
|
|
9
9
|
setTodoPersistGuard
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6PLZ3FLG.js";
|
|
11
11
|
export {
|
|
12
12
|
TodoStore,
|
|
13
13
|
ToolRegistry,
|
|
@@ -15,4 +15,4 @@ export {
|
|
|
15
15
|
createTodoTools,
|
|
16
16
|
setTodoPersistGuard
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=tools-
|
|
18
|
+
//# sourceMappingURL=tools-4OLADVDR.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryer/star-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.13",
|
|
4
4
|
"description": "An AI agent command-line interface",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,27 +11,29 @@
|
|
|
11
11
|
},
|
|
12
12
|
"homepage": "https://github.com/cryer/star-cli#readme",
|
|
13
13
|
"bugs": "https://github.com/cryer/star-cli/issues",
|
|
14
|
-
"keywords": [
|
|
15
|
-
"ai",
|
|
16
|
-
"agent",
|
|
17
|
-
"cli",
|
|
18
|
-
"llm",
|
|
19
|
-
"openai",
|
|
20
|
-
"anthropic",
|
|
21
|
-
"terminal"
|
|
22
|
-
],
|
|
14
|
+
"keywords": ["ai", "agent", "cli", "llm", "openai", "anthropic", "terminal"],
|
|
23
15
|
"bin": {
|
|
24
16
|
"star": "./dist/main.js"
|
|
25
17
|
},
|
|
26
|
-
"files": [
|
|
27
|
-
"dist"
|
|
28
|
-
],
|
|
18
|
+
"files": ["dist"],
|
|
29
19
|
"publishConfig": {
|
|
30
20
|
"access": "public"
|
|
31
21
|
},
|
|
32
22
|
"engines": {
|
|
33
23
|
"node": ">=20.3"
|
|
34
24
|
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsup",
|
|
27
|
+
"dev": "tsup --watch",
|
|
28
|
+
"start": "node dist/main.js",
|
|
29
|
+
"test": "vitest run",
|
|
30
|
+
"test:watch": "vitest",
|
|
31
|
+
"test:pipeline": "node scripts/pipeline.mjs",
|
|
32
|
+
"typecheck": "tsc --noEmit",
|
|
33
|
+
"lint": "biome check .",
|
|
34
|
+
"lint:fix": "biome check --write .",
|
|
35
|
+
"prepublishOnly": "pnpm test:pipeline"
|
|
36
|
+
},
|
|
35
37
|
"dependencies": {
|
|
36
38
|
"@ai-sdk/anthropic": "^1.2.0",
|
|
37
39
|
"@ai-sdk/openai": "^1",
|
|
@@ -53,16 +55,5 @@
|
|
|
53
55
|
"tsx": "^4.19.0",
|
|
54
56
|
"typescript": "^5.7.0",
|
|
55
57
|
"vitest": "^3.0.0"
|
|
56
|
-
},
|
|
57
|
-
"scripts": {
|
|
58
|
-
"build": "tsup",
|
|
59
|
-
"dev": "tsup --watch",
|
|
60
|
-
"start": "node dist/main.js",
|
|
61
|
-
"test": "vitest run",
|
|
62
|
-
"test:watch": "vitest",
|
|
63
|
-
"test:pipeline": "node scripts/pipeline.mjs",
|
|
64
|
-
"typecheck": "tsc --noEmit",
|
|
65
|
-
"lint": "biome check .",
|
|
66
|
-
"lint:fix": "biome check --write ."
|
|
67
58
|
}
|
|
68
|
-
}
|
|
59
|
+
}
|