oortcodex-cli 0.0.1 → 0.0.2
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 +21 -2
- package/dist/zcode.cjs +4193 -2632
- package/node_modules/@zcode/tui/dist/index.js +36 -3
- package/node_modules/@zcode/tui/package.json +1 -1
- package/package.json +11 -3
|
@@ -38,6 +38,7 @@ Options:
|
|
|
38
38
|
-h, --help Show help
|
|
39
39
|
-v, --version Show version
|
|
40
40
|
-p, --prompt <text> Run a single prompt without opening the TUI
|
|
41
|
+
--model <provider/model> Override the model for this --prompt run only
|
|
41
42
|
--memory-bench With --prompt, enable automatic Memory extraction and wait before exiting (requires Memory enabled)
|
|
42
43
|
--browser-use <mode> Enable Browser Use backend (supported: headless)
|
|
43
44
|
--surface <surface> Presentation surface for headless prompts/app-server: terminal or desktop
|
|
@@ -400,6 +401,7 @@ var zhCN = {
|
|
|
400
401
|
-h, --help \u663E\u793A\u5E2E\u52A9
|
|
401
402
|
-v, --version \u663E\u793A\u7248\u672C
|
|
402
403
|
-p, --prompt <text> \u5355\u6B21\u8FD0\u884C prompt\uFF0C\u4E0D\u6253\u5F00 TUI
|
|
404
|
+
--model <provider/model> \u914D\u5408 --prompt \u4E34\u65F6\u6307\u5B9A\u672C\u6B21\u6A21\u578B
|
|
403
405
|
--memory-bench \u914D\u5408 --prompt \u5F00\u542F\u81EA\u52A8 Memory \u63D0\u53D6\u5E76\u7B49\u5F85\u540E\u9000\u51FA\uFF08\u9700\u5DF2\u5F00\u542F Memory\uFF09
|
|
404
406
|
--browser-use <mode> \u542F\u7528 Browser Use backend\uFF08\u5F53\u524D\u652F\u6301\uFF1Aheadless\uFF09
|
|
405
407
|
--surface <surface> \u8BBE\u7F6E\u65E0\u5934 prompt/app-server \u7684\u5448\u73B0\u9762\uFF1Aterminal \u6216 desktop
|
|
@@ -1020,6 +1022,22 @@ function readHexComponent(color, offset) {
|
|
|
1020
1022
|
// src/app-model.ts
|
|
1021
1023
|
var approvalDecisions = ["allow_once", "allow_project", "deny"];
|
|
1022
1024
|
|
|
1025
|
+
// ../../../../packages/shared/src/protocol.ts
|
|
1026
|
+
var SUPPORTED_LOCALES2 = [
|
|
1027
|
+
"en-US",
|
|
1028
|
+
"zh-CN",
|
|
1029
|
+
"es-ES",
|
|
1030
|
+
"ar-SA",
|
|
1031
|
+
"de-DE",
|
|
1032
|
+
"fr-FR",
|
|
1033
|
+
"ja-JP",
|
|
1034
|
+
"pt-BR",
|
|
1035
|
+
"ru-RU",
|
|
1036
|
+
"ko-KR",
|
|
1037
|
+
"id-ID",
|
|
1038
|
+
"tr-TR"
|
|
1039
|
+
];
|
|
1040
|
+
|
|
1023
1041
|
// ../../../../packages/shared/src/shortcutCommands.ts
|
|
1024
1042
|
var NAMED_KEYS = /* @__PURE__ */ new Set([
|
|
1025
1043
|
...Array.from({ length: 12 }, (_, index) => `F${index + 1}`),
|
|
@@ -25165,8 +25183,9 @@ var appSettingsOccupationSchema = external_exports.enum([
|
|
|
25165
25183
|
"other"
|
|
25166
25184
|
]);
|
|
25167
25185
|
var nonEmptyStringSchema2 = external_exports.string().trim().min(1);
|
|
25168
|
-
var localeSchema = external_exports.enum(
|
|
25169
|
-
var
|
|
25186
|
+
var localeSchema = external_exports.enum(SUPPORTED_LOCALES2);
|
|
25187
|
+
var LOCALE_PREFERENCE_VALUES = ["system", ...SUPPORTED_LOCALES2];
|
|
25188
|
+
var localePreferenceSchema = external_exports.enum(LOCALE_PREFERENCE_VALUES);
|
|
25170
25189
|
var zcodeInteractionBehaviorSchema = external_exports.enum(["queue", "guide"]);
|
|
25171
25190
|
var electronReleaseChannelSchema = external_exports.enum(["stable", "preview"]);
|
|
25172
25191
|
var desktopZoomLevelSchema = external_exports.number().int().min(-3).max(5);
|
|
@@ -29169,6 +29188,18 @@ var hostSessionCreateTelemetryResponseSchema = external_exports.object({
|
|
|
29169
29188
|
type: external_exports.literal("session-create-telemetry"),
|
|
29170
29189
|
event: automationSessionCreateTelemetrySchema
|
|
29171
29190
|
}).strict();
|
|
29191
|
+
var hostOortPresenceContextSchema = external_exports.object({
|
|
29192
|
+
identityKey: nonEmptyStringSchema3,
|
|
29193
|
+
userId: external_exports.string().min(1).max(64),
|
|
29194
|
+
userName: external_exports.string().min(1).max(128),
|
|
29195
|
+
tenantId: external_exports.string().max(64).optional(),
|
|
29196
|
+
presenceBaseUrl: nonEmptyStringSchema3
|
|
29197
|
+
}).strict();
|
|
29198
|
+
var hostOortPresenceContextResponseSchema = external_exports.object({
|
|
29199
|
+
type: external_exports.literal("oort-presence-context"),
|
|
29200
|
+
reason: external_exports.enum(["login", "logout", "restore", "switch", "refresh", "expire"]),
|
|
29201
|
+
context: hostOortPresenceContextSchema.nullable()
|
|
29202
|
+
}).strict();
|
|
29172
29203
|
var hostAgentRunningTaskCountChangedResponseSchema = external_exports.object({
|
|
29173
29204
|
type: external_exports.literal("agent-running-task-count-changed"),
|
|
29174
29205
|
runningTaskCount: external_exports.number().int().nonnegative()
|
|
@@ -29354,6 +29385,7 @@ var hostResponseMessageSchema = external_exports.discriminatedUnion("type", [
|
|
|
29354
29385
|
hostMcpResourceSamplesResponseSchema,
|
|
29355
29386
|
hostToolExecResourceResponseSchema,
|
|
29356
29387
|
hostSessionCreateTelemetryResponseSchema,
|
|
29388
|
+
hostOortPresenceContextResponseSchema,
|
|
29357
29389
|
hostAgentRunningTaskCountChangedResponseSchema,
|
|
29358
29390
|
hostWorkspaceRunningTaskCountChangedResponseSchema,
|
|
29359
29391
|
hostCuaOperationStateResponseSchema,
|
|
@@ -29893,10 +29925,11 @@ var OORT_CLI_LOGIN_CALLBACK_PORT_CANDIDATES = Array.from(
|
|
|
29893
29925
|
(_, index) => 32007 + index
|
|
29894
29926
|
);
|
|
29895
29927
|
var OORT_ENVIRONMENT_CACHE_TTL_MS = 7 * 24 * 60 * 60 * 1e3;
|
|
29928
|
+
var OORT_MODEL_CATALOG_TTL_MS = 60 * 1e3;
|
|
29896
29929
|
|
|
29897
29930
|
// ../../../../packages/shared/src/feedback.ts
|
|
29898
29931
|
var FEEDBACK_FRAMEWORK_NONE = "none";
|
|
29899
|
-
var FEEDBACK_TICKET_FRAMEWORK_OPTIONS = [{ value: "zcode-agent", label: "
|
|
29932
|
+
var FEEDBACK_TICKET_FRAMEWORK_OPTIONS = [{ value: "zcode-agent", label: "OortCodex Agent" }];
|
|
29900
29933
|
var FEEDBACK_TICKET_FRAMEWORKS = [{ value: FEEDBACK_FRAMEWORK_NONE, label: "\u672A\u6307\u5B9A" }, ...FEEDBACK_TICKET_FRAMEWORK_OPTIONS];
|
|
29901
29934
|
|
|
29902
29935
|
// ../../../../packages/shared/src/helpAppConfig.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oortcodex-cli",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Open-source AI coding agent for your terminal",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"oortcodex",
|
|
7
|
+
"ai",
|
|
8
|
+
"coding-agent",
|
|
9
|
+
"cli",
|
|
10
|
+
"terminal",
|
|
11
|
+
"developer-tools"
|
|
12
|
+
],
|
|
5
13
|
"license": "Apache-2.0",
|
|
6
14
|
"bin": {
|
|
7
15
|
"oortcodex": "dist/zcode.cjs"
|
|
@@ -10,7 +18,7 @@
|
|
|
10
18
|
"node": ">=24.14.0"
|
|
11
19
|
},
|
|
12
20
|
"dependencies": {
|
|
13
|
-
"@zcode/tui": "0.0.
|
|
21
|
+
"@zcode/tui": "0.0.2",
|
|
14
22
|
"@mbears/opentui-core": "0.2.15",
|
|
15
23
|
"@mbears/opentui-react": "0.2.15",
|
|
16
24
|
"koffi": "2.15.6",
|