@botconnector/bccli 0.4.0-beta.9 → 0.4.1
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.en.md +253 -0
- package/README.md +93 -6
- package/dist/abort.d.ts +5 -0
- package/dist/acp-3PHBAI64.js +182 -0
- package/dist/acp.d.ts +27 -0
- package/dist/agent.d.ts +143 -0
- package/dist/agents.d.ts +4 -0
- package/dist/args-W6BNKY7K.js +13 -0
- package/dist/args.d.ts +51 -0
- package/dist/budget.d.ts +23 -0
- package/dist/checkpoints.d.ts +34 -0
- package/dist/{chunk-BFZXRKW5.js → chunk-24JN75FZ.js} +29 -7
- package/dist/chunk-45SDLMTV.js +341 -0
- package/dist/chunk-75BECX4F.js +56 -0
- package/dist/{chunk-SJH3YLW4.js → chunk-BC7UXFE4.js} +69 -6
- package/dist/chunk-BGXNR74O.js +733 -0
- package/dist/chunk-BKGFA2PT.js +8 -0
- package/dist/{chunk-CLN4Z5E3.js → chunk-BLOYFIAD.js} +6 -3
- package/dist/chunk-BXQQCUAC.js +145 -0
- package/dist/chunk-FLQPE4S5.js +373 -0
- package/dist/chunk-GN4W3T6E.js +76 -0
- package/dist/{chunk-7S6JXQCH.js → chunk-JHPGOAXU.js} +2 -1
- package/dist/chunk-MFHCQQEN.js +201 -0
- package/dist/chunk-MHIYLXJC.js +143 -0
- package/dist/chunk-PSO7R5AD.js +10 -0
- package/dist/chunk-PZRKU4UM.js +2143 -0
- package/dist/chunk-QZKLZELZ.js +64 -0
- package/dist/chunk-R5RE46CW.js +231 -0
- package/dist/chunk-UZWJQF67.js +500 -0
- package/dist/{chunk-DX7CZTBB.js → chunk-WI22M2ID.js} +14 -9
- package/dist/chunk-WNACAUDK.js +946 -0
- package/dist/chunk-XV7ZVL4J.js +235 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +150 -1382
- package/dist/clipboardImage.d.ts +17 -0
- package/dist/commands.d.ts +16 -0
- package/dist/completion-HPPFDAPB.js +125 -0
- package/dist/completion.d.ts +14 -0
- package/dist/{config-YUNKPCNB.js → config-DIDLDONU.js} +5 -2
- package/dist/config-IU76CPK2.js +34 -0
- package/dist/config.d.ts +97 -0
- package/dist/context.d.ts +13 -0
- package/dist/contextWindow.d.ts +3 -0
- package/dist/diff.d.ts +7 -0
- package/dist/exit.d.ts +9 -0
- package/dist/extensions.d.ts +34 -0
- package/dist/ghBotCli-E3VPHNZY.js +677 -0
- package/dist/ghBotCli.d.ts +9 -0
- package/dist/ghBotDispatch.d.ts +68 -0
- package/dist/ghBotRunner.d.ts +82 -0
- package/dist/ghBotServe.d.ts +21 -0
- package/dist/ghBotWebhook.d.ts +45 -0
- package/dist/hooks.d.ts +27 -0
- package/dist/i18n/id.d.ts +1 -0
- package/dist/i18n.d.ts +16 -0
- package/dist/integrationCli-Q2YPDTPG.js +685 -0
- package/dist/integrationCli.d.ts +9 -0
- package/dist/keybinds.d.ts +22 -0
- package/dist/login-FP3BB44A.js +16 -0
- package/dist/login.d.ts +19 -0
- package/dist/lsp.d.ts +47 -0
- package/dist/mcp/catalog.d.ts +14 -0
- package/dist/mcp/config.d.ts +36 -0
- package/dist/mcp/manager.d.ts +34 -0
- package/dist/mcp/oauth.d.ts +82 -0
- package/dist/{mcpCli-DZWQPTOS.js → mcpCli-SNBDUWJN.js} +42 -9
- package/dist/mcpCli.d.ts +3 -0
- package/dist/mcpServer/serve.d.ts +8 -0
- package/dist/mcpServer/server.d.ts +19 -0
- package/dist/models.d.ts +13 -0
- package/dist/modelsCli-CZ2HNGKR.js +36 -0
- package/dist/modelsCli.d.ts +15 -0
- package/dist/npmRunner-LU43GM3W.js +46 -0
- package/dist/npmRunner.d.ts +21 -0
- package/dist/oauthLogin-6FWQABJ7.js +210 -0
- package/dist/oauthLogin.d.ts +47 -0
- package/dist/permissions.d.ts +30 -0
- package/dist/pluginSpec.d.ts +25 -0
- package/dist/plugins.d.ts +45 -0
- package/dist/pluginsCli-LPIUUDWB.js +284 -0
- package/dist/pluginsCli.d.ts +16 -0
- package/dist/prCli-5IMV3VNQ.js +78 -0
- package/dist/prCli.d.ts +33 -0
- package/dist/presets.d.ts +8 -0
- package/dist/print.d.ts +14 -0
- package/dist/provider.d.ts +140 -0
- package/dist/providerCli-NMUFXAAS.js +15 -0
- package/dist/providerCli.d.ts +17 -0
- package/dist/providers.d.ts +6 -0
- package/dist/reasoning.d.ts +12 -0
- package/dist/repomap.d.ts +10 -0
- package/dist/sdk.d.ts +57 -0
- package/dist/sdk.js +5571 -0
- package/dist/serve-KWOECK5W.js +178 -0
- package/dist/serve-X2ZV4S5U.js +521 -0
- package/dist/serve.d.ts +37 -0
- package/dist/serveHeartbeat.d.ts +14 -0
- package/dist/serveProtocol.d.ts +47 -0
- package/dist/session-GKEXDJKZ.js +12 -0
- package/dist/session.d.ts +30 -0
- package/dist/setup-OV3NWQN5.js +24 -0
- package/dist/setup.d.ts +74 -0
- package/dist/slash/copy.d.ts +1 -0
- package/dist/slash/diff.d.ts +1 -0
- package/dist/slash/doctor.d.ts +18 -0
- package/dist/slash/export.d.ts +2 -0
- package/dist/slash/info.d.ts +45 -0
- package/dist/slash/memory.d.ts +10 -0
- package/dist/statsCli-CF3R7ATL.js +353 -0
- package/dist/statsCli.d.ts +62 -0
- package/dist/textToolCalls.d.ts +6 -0
- package/dist/thinking.d.ts +17 -0
- package/dist/tokenBudget.d.ts +22 -0
- package/dist/tools/bash.d.ts +52 -0
- package/dist/tools/diagnostics.d.ts +5 -0
- package/dist/tools/edit.d.ts +7 -0
- package/dist/tools/fetch.d.ts +41 -0
- package/dist/tools/glob.d.ts +5 -0
- package/dist/tools/globSafety.d.ts +7 -0
- package/dist/tools/grep.d.ts +13 -0
- package/dist/tools/ignore.d.ts +2 -0
- package/dist/tools/index.d.ts +12 -0
- package/dist/tools/memory.d.ts +13 -0
- package/dist/tools/paths.d.ts +2 -0
- package/dist/tools/plan.d.ts +10 -0
- package/dist/tools/read.d.ts +16 -0
- package/dist/tools/repomap.d.ts +2 -0
- package/dist/tools/sandbox.d.ts +12 -0
- package/dist/tools/shell.d.ts +18 -0
- package/dist/tools/skill.d.ts +3 -0
- package/dist/tools/task.d.ts +28 -0
- package/dist/tools/todo.d.ts +13 -0
- package/dist/tools/types.d.ts +52 -0
- package/dist/tools/websearch.d.ts +9 -0
- package/dist/tools/write.d.ts +5 -0
- package/dist/transferCli-YUFPI6AH.js +71 -0
- package/dist/transferCli.d.ts +23 -0
- package/dist/ui/App.d.ts +7 -0
- package/dist/ui/DiffView.d.ts +3 -0
- package/dist/ui/EditableText.d.ts +7 -0
- package/dist/ui/LinePrompt.d.ts +6 -0
- package/dist/ui/ListPicker.d.ts +11 -0
- package/dist/ui/Markdown.d.ts +8 -0
- package/dist/ui/McpMenu.d.ts +11 -0
- package/dist/ui/ModelPicker.d.ts +6 -0
- package/dist/ui/PermissionPrompt.d.ts +5 -0
- package/dist/ui/PlanApproval.d.ts +5 -0
- package/dist/ui/PromptInput.d.ts +18 -0
- package/dist/ui/ProviderMenu.d.ts +10 -0
- package/dist/ui/Spinner.d.ts +4 -0
- package/dist/ui/StatusBar.d.ts +9 -0
- package/dist/ui/TodoList.d.ts +4 -0
- package/dist/ui/ToolBlock.d.ts +14 -0
- package/dist/ui/complete.d.ts +1 -0
- package/dist/ui/focusReport.d.ts +1 -0
- package/dist/ui/index.d.ts +7 -0
- package/dist/ui/lineEdit.d.ts +42 -0
- package/dist/ui/replay.d.ts +4 -0
- package/dist/ui/table.d.ts +20 -0
- package/dist/ui/theme.d.ts +5 -0
- package/dist/ui/thinkingMouse.d.ts +33 -0
- package/dist/ui/transcript.d.ts +55 -0
- package/dist/ui/vim.d.ts +26 -0
- package/dist/ui-IVIFNUCC.js +2367 -0
- package/dist/update-TZ2G6KQ3.js +145 -0
- package/dist/update.d.ts +30 -0
- package/dist/verify.d.ts +16 -0
- package/dist/version.d.ts +1 -0
- package/dist/webBudget.d.ts +25 -0
- package/dist/worktree.d.ts +12 -0
- package/package.json +42 -8
- package/dist/args-JPVSGCGY.js +0 -12
- package/dist/chunk-2MGINW4O.js +0 -114
- package/dist/chunk-ELML4KVQ.js +0 -76
- package/dist/chunk-ISGBGFSU.js +0 -52
- package/dist/chunk-KV27KTOX.js +0 -254
- package/dist/chunk-U7GK73CK.js +0 -341
- package/dist/chunk-ZYCYTEKD.js +0 -96
- package/dist/integrationCli-BGT5UZU4.js +0 -223
- package/dist/login-6K32PIXV.js +0 -9
- package/dist/providerCli-Q7LRM2NP.js +0 -12
- package/dist/session-7UB77CEG.js +0 -9
- package/dist/ui-6GTQUJOE.js +0 -1415
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
MODE_ORDER
|
|
4
|
+
} from "./chunk-MHIYLXJC.js";
|
|
5
|
+
import {
|
|
6
|
+
REASONING_LEVELS,
|
|
7
|
+
isReasoningLevel
|
|
8
|
+
} from "./chunk-BLOYFIAD.js";
|
|
9
|
+
import {
|
|
10
|
+
ConfigError
|
|
11
|
+
} from "./chunk-FLQPE4S5.js";
|
|
12
|
+
import {
|
|
13
|
+
parseLang,
|
|
14
|
+
t
|
|
15
|
+
} from "./chunk-UZWJQF67.js";
|
|
16
|
+
|
|
17
|
+
// src/args.ts
|
|
18
|
+
import { parseArgs } from "util";
|
|
19
|
+
|
|
20
|
+
// src/serveProtocol.ts
|
|
21
|
+
import { randomBytes, timingSafeEqual } from "crypto";
|
|
22
|
+
var MAX_FRAME_BYTES = 262144;
|
|
23
|
+
function parseClientFrame(raw) {
|
|
24
|
+
let value;
|
|
25
|
+
try {
|
|
26
|
+
value = JSON.parse(raw);
|
|
27
|
+
} catch {
|
|
28
|
+
return { error: "invalid JSON frame" };
|
|
29
|
+
}
|
|
30
|
+
const f = value;
|
|
31
|
+
if (typeof f?.streamId !== "string" || f.streamId === "") return { error: "frame requires a streamId" };
|
|
32
|
+
if (f.type === "open") {
|
|
33
|
+
if (typeof f.target !== "string" || f.target === "") return { error: "open requires a target" };
|
|
34
|
+
return { type: "open", streamId: f.streamId, target: f.target };
|
|
35
|
+
}
|
|
36
|
+
if (f.type === "cancel") return { type: "cancel", streamId: f.streamId };
|
|
37
|
+
return { error: `unknown frame type: ${String(f?.type)}` };
|
|
38
|
+
}
|
|
39
|
+
var LOOPBACK_HOSTS = /* @__PURE__ */ new Set(["127.0.0.1", "localhost", "[::1]", "::1"]);
|
|
40
|
+
var LOOPBACK_BIND = /* @__PURE__ */ new Set(["127.0.0.1", "localhost", "::1"]);
|
|
41
|
+
function trustFence(headers, port) {
|
|
42
|
+
const host = headers.host;
|
|
43
|
+
if (!host) return "missing Host header";
|
|
44
|
+
const sep = host.lastIndexOf(":");
|
|
45
|
+
const hostname = sep > -1 ? host.slice(0, sep) : host;
|
|
46
|
+
const hostPort = sep > -1 ? Number(host.slice(sep + 1)) : 80;
|
|
47
|
+
if (!LOOPBACK_HOSTS.has(hostname)) return `non-loopback Host: ${hostname}`;
|
|
48
|
+
if (hostPort !== port) return `Host port ${hostPort} does not match listener ${port}`;
|
|
49
|
+
if (headers.origin) {
|
|
50
|
+
let origin;
|
|
51
|
+
try {
|
|
52
|
+
origin = new URL(headers.origin);
|
|
53
|
+
} catch {
|
|
54
|
+
return "malformed Origin header";
|
|
55
|
+
}
|
|
56
|
+
const originHost = origin.hostname === "::1" ? "[::1]" : origin.hostname;
|
|
57
|
+
const originPort = origin.port ? Number(origin.port) : origin.protocol === "https:" ? 443 : 80;
|
|
58
|
+
if (!LOOPBACK_HOSTS.has(originHost)) return `cross-origin Origin: ${headers.origin}`;
|
|
59
|
+
if (originPort !== port) return "Origin port mismatch";
|
|
60
|
+
}
|
|
61
|
+
if (headers["sec-fetch-site"] === "cross-site") return "cross-site request";
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
function bearerOk(header, token) {
|
|
65
|
+
if (!header?.startsWith("Bearer ")) return false;
|
|
66
|
+
const got = Buffer.from(header.slice(7));
|
|
67
|
+
const want = Buffer.from(token);
|
|
68
|
+
return got.length === want.length && timingSafeEqual(got, want);
|
|
69
|
+
}
|
|
70
|
+
function randomToken() {
|
|
71
|
+
return randomBytes(32).toString("hex");
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// src/args.ts
|
|
75
|
+
var HELP = `BCCLI \u2014 BotConnector's AI coding agent for the terminal
|
|
76
|
+
|
|
77
|
+
Usage:
|
|
78
|
+
bccli [task] interactive mode (optionally start with a task)
|
|
79
|
+
bccli -p "task" run one task without interaction (scripts/CI)
|
|
80
|
+
bccli login [provider] OAuth login (or --key paste API key, --logout remove)
|
|
81
|
+
bccli models [provider] list models (default: the active provider)
|
|
82
|
+
bccli update install the newest bccli from npm
|
|
83
|
+
bccli acp run as an ACP agent for editors (Zed, ...)
|
|
84
|
+
bccli serve [--port N] serve sessions over HTTP+WS for IDEs/bots
|
|
85
|
+
bccli plugins list, install, remove, or update plugins
|
|
86
|
+
bccli gh-bot [serve] GitHub comment bot (off-by-default; needs config)
|
|
87
|
+
bccli provider list|add <id>|remove <id> manage providers (custom: --url <url> [--name N] [--key-env ENV])
|
|
88
|
+
bccli mcp list|add <name>|remove <name>|auth <name>|logout <name>|serve [--base-url <url>] manage MCP servers, or serve this account's tools over stdio
|
|
89
|
+
bccli completion <shell> print a shell completion script (bash, zsh, fish, powershell)
|
|
90
|
+
bccli stats [--days N] [--tools N] [--models [N|all]] [--project slug]
|
|
91
|
+
show token usage from local sessions (default: last 7 days)
|
|
92
|
+
bccli export [session] [file] copy a session JSONL to a file (default: last session here)
|
|
93
|
+
bccli import <file> import a session JSONL into the current project
|
|
94
|
+
bccli pr <number> [--repo owner/name] [task] check out a GitHub PR and run a task on it
|
|
95
|
+
bccli integrations show the status of external agent integrations
|
|
96
|
+
bccli connect <agent> opencode, aider, cline, dsh, codex, claude-code, cursor, openai-cli, openai-sdk, openai-compatible, openclaw, hermes
|
|
97
|
+
bccli disconnect <agent> remove an integration and restore the previous config
|
|
98
|
+
|
|
99
|
+
Options:
|
|
100
|
+
-m, --model <provider/model> choose a model, e.g. bc-cloud/glm-5.3-flash
|
|
101
|
+
--reasoning <level> auto | off | low | medium | high | max
|
|
102
|
+
-c, --continue continue the last session in this folder
|
|
103
|
+
-r, --resume pick a session to continue
|
|
104
|
+
--allow-all run all tools without asking for permission
|
|
105
|
+
--allowed-tools <a,b> tools allowed without asking: bash, edit, fetch
|
|
106
|
+
-w, --worktree <name> run in git worktree ../<repo>.worktrees/<name> (created, or reused if it exists)
|
|
107
|
+
--output-format <fmt> text | json | stream-json for -p (machine-readable output)
|
|
108
|
+
--permission-mode <mode> default | acceptEdits | plan | allowAll
|
|
109
|
+
--lang <en|id> interface language (default: en; or BCCLI_LANG, or "language" in config)
|
|
110
|
+
-v, --version version
|
|
111
|
+
-h, --help this help`;
|
|
112
|
+
var helpText = () => t(HELP);
|
|
113
|
+
function parseCliArgs(argv) {
|
|
114
|
+
const expanded = argv.map(
|
|
115
|
+
(a, i) => a === "--models" && (i + 1 >= argv.length || argv[i + 1].startsWith("-")) ? "--models=all" : a
|
|
116
|
+
);
|
|
117
|
+
const { values, positionals } = parseArgs({
|
|
118
|
+
args: expanded,
|
|
119
|
+
allowPositionals: true,
|
|
120
|
+
options: {
|
|
121
|
+
print: { type: "boolean", short: "p" },
|
|
122
|
+
model: { type: "string", short: "m" },
|
|
123
|
+
reasoning: { type: "string" },
|
|
124
|
+
lang: { type: "string" },
|
|
125
|
+
continue: { type: "boolean", short: "c" },
|
|
126
|
+
resume: { type: "boolean", short: "r" },
|
|
127
|
+
"allow-all": { type: "boolean" },
|
|
128
|
+
"allowed-tools": { type: "string" },
|
|
129
|
+
worktree: { type: "string", short: "w" },
|
|
130
|
+
"output-format": { type: "string" },
|
|
131
|
+
"permission-mode": { type: "string" },
|
|
132
|
+
help: { type: "boolean", short: "h" },
|
|
133
|
+
version: { type: "boolean", short: "v" },
|
|
134
|
+
url: { type: "string" },
|
|
135
|
+
name: { type: "string" },
|
|
136
|
+
"key-env": { type: "string" },
|
|
137
|
+
value: { type: "string", multiple: true },
|
|
138
|
+
key: { type: "boolean" },
|
|
139
|
+
logout: { type: "boolean" },
|
|
140
|
+
port: { type: "string" },
|
|
141
|
+
host: { type: "string" },
|
|
142
|
+
token: { type: "string" },
|
|
143
|
+
"base-url": { type: "string" },
|
|
144
|
+
days: { type: "string" },
|
|
145
|
+
tools: { type: "string" },
|
|
146
|
+
models: { type: "string" },
|
|
147
|
+
project: { type: "string" },
|
|
148
|
+
repo: { type: "string" }
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
const reasoning = values.reasoning;
|
|
152
|
+
if (reasoning && !isReasoningLevel(reasoning)) {
|
|
153
|
+
throw new ConfigError(t("--reasoning must be one of: {levels}", { levels: REASONING_LEVELS.join(", ") }));
|
|
154
|
+
}
|
|
155
|
+
const mode = values["permission-mode"];
|
|
156
|
+
if (mode && !MODE_ORDER.includes(mode)) {
|
|
157
|
+
throw new ConfigError(t("--permission-mode must be one of: {modes}", { modes: MODE_ORDER.join(", ") }));
|
|
158
|
+
}
|
|
159
|
+
if (values.lang !== void 0 && !parseLang(values.lang)) throw new ConfigError(t("--lang must be one of: en, id"));
|
|
160
|
+
const outputFormat = values["output-format"];
|
|
161
|
+
if (outputFormat !== void 0 && !["text", "json", "stream-json"].includes(outputFormat)) {
|
|
162
|
+
throw new ConfigError(t("--output-format must be one of: {formats}", { formats: "text, json, stream-json" }));
|
|
163
|
+
}
|
|
164
|
+
const [first, ...rest] = positionals;
|
|
165
|
+
const SUBCOMMANDS = ["login", "models", "update", "acp", "serve", "plugins", "gh-bot", "provider", "mcp", "connect", "disconnect", "integrations", "completion", "stats", "export", "import", "pr"];
|
|
166
|
+
const command = SUBCOMMANDS.includes(first) ? first : "run";
|
|
167
|
+
const words = command === "run" ? positionals : rest;
|
|
168
|
+
const port = values.port !== void 0 ? Number(values.port) : void 0;
|
|
169
|
+
if (port !== void 0 && (!Number.isInteger(port) || port < 0 || port > 65535)) {
|
|
170
|
+
throw new ConfigError(t("--port must be a number between 0 and 65535"));
|
|
171
|
+
}
|
|
172
|
+
const days = values.days !== void 0 ? Number(values.days) : void 0;
|
|
173
|
+
if (days !== void 0 && (!Number.isInteger(days) || days < 1)) {
|
|
174
|
+
throw new ConfigError(t("--days must be a positive integer"));
|
|
175
|
+
}
|
|
176
|
+
const tools = values.tools !== void 0 ? Number(values.tools) : void 0;
|
|
177
|
+
if (tools !== void 0 && (!Number.isInteger(tools) || tools < 1)) {
|
|
178
|
+
throw new ConfigError(t("--tools must be a positive integer"));
|
|
179
|
+
}
|
|
180
|
+
let models;
|
|
181
|
+
if (values.models !== void 0) {
|
|
182
|
+
models = values.models === "" || values.models === "all" ? "all" : values.models;
|
|
183
|
+
if (models !== "all" && (!Number.isInteger(Number(models)) || Number(models) < 1)) {
|
|
184
|
+
throw new ConfigError(t('--models must be a positive integer or "all"'));
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
if (values.host !== void 0 && !LOOPBACK_BIND.has(values.host)) {
|
|
188
|
+
throw new ConfigError(t("serve only accepts loopback --host (127.0.0.1, localhost, ::1)"));
|
|
189
|
+
}
|
|
190
|
+
return {
|
|
191
|
+
command,
|
|
192
|
+
prompt: command === "run" && words.length ? words.join(" ") : void 0,
|
|
193
|
+
print: !!values.print,
|
|
194
|
+
model: values.model,
|
|
195
|
+
reasoning,
|
|
196
|
+
lang: parseLang(values.lang),
|
|
197
|
+
continue: !!values.continue,
|
|
198
|
+
resume: !!values.resume,
|
|
199
|
+
allowAll: !!values["allow-all"],
|
|
200
|
+
allowedTools: (values["allowed-tools"] ?? "").split(",").map((s) => s.trim()).filter(Boolean),
|
|
201
|
+
worktree: values.worktree,
|
|
202
|
+
outputFormat,
|
|
203
|
+
permissionMode: mode,
|
|
204
|
+
help: !!values.help,
|
|
205
|
+
version: !!values.version,
|
|
206
|
+
loginProvider: command === "login" ? rest[0] ?? "bc-cloud" : void 0,
|
|
207
|
+
key: !!values.key,
|
|
208
|
+
logout: !!values.logout,
|
|
209
|
+
subArgs: ["models", "plugins", "gh-bot", "provider", "mcp", "connect", "disconnect", "integrations", "completion", "stats", "export", "import", "pr"].includes(command) ? rest : [],
|
|
210
|
+
url: values.url,
|
|
211
|
+
name: values.name,
|
|
212
|
+
keyEnv: values["key-env"],
|
|
213
|
+
values: values.value ?? [],
|
|
214
|
+
port,
|
|
215
|
+
host: values.host,
|
|
216
|
+
token: values.token,
|
|
217
|
+
baseUrl: values["base-url"],
|
|
218
|
+
days,
|
|
219
|
+
tools,
|
|
220
|
+
models,
|
|
221
|
+
project: values.project,
|
|
222
|
+
repo: values.repo
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export {
|
|
227
|
+
MAX_FRAME_BYTES,
|
|
228
|
+
parseClientFrame,
|
|
229
|
+
LOOPBACK_BIND,
|
|
230
|
+
trustFence,
|
|
231
|
+
bearerOk,
|
|
232
|
+
randomToken,
|
|
233
|
+
helpText,
|
|
234
|
+
parseCliArgs
|
|
235
|
+
};
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|