@gaoding/cli 3.0.3 → 3.0.5
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.
|
@@ -194,6 +194,9 @@ export function createProductionRuntime(options = {}) {
|
|
|
194
194
|
const sso = createSsoService({
|
|
195
195
|
ssoApi: endpoints.ssoApi,
|
|
196
196
|
clientId: product.deviceClientId,
|
|
197
|
+
...(product.id === "gaoding" && host.host_application && host.host_application !== "unknown"
|
|
198
|
+
? { hostApplication: host.host_application }
|
|
199
|
+
: {}),
|
|
197
200
|
userAgent,
|
|
198
201
|
traceparent: () => telemetry.traceparent(),
|
|
199
202
|
fetch,
|
|
@@ -17,6 +17,7 @@ export function registerAgentCommands(program, runtime) {
|
|
|
17
17
|
.allowExcessArguments(false);
|
|
18
18
|
send.addHelpText("after", [
|
|
19
19
|
"",
|
|
20
|
+
text(runtime.product, "同一组图用一次 agent send 提交,例如「横版和竖版封面各做一张」。把返回的图片全部交给用户。要找回这组图,用 gd-cli task get <taskId> 查原任务。", "Request the whole set in one call, for example, “Make one landscape cover and one portrait cover.” Deliver all returned images. To retrieve them again, run insmind-cli task get <taskId>."),
|
|
20
21
|
text(runtime.product, "用于业务策划、多步骤或持续创作;明确的单次媒体处理也可从 tool list 发现。先保存完整 JSON 再用 --input request.json 执行;--input - 必须在同一条 shell 命令中经管道或重定向提供完整 JSON,不交互填参。", "Use agent send to plan a design, complete a task in several steps, or continue earlier work. For a single media edit, run tool list to find a tool. Save complete JSON before using --input request.json. With --input -, pipe or redirect complete JSON in the same shell command; input is not an interactive form."),
|
|
21
22
|
text(runtime.product, "完整结果已校验但最终本地记录保存失败时仍返回结果和退出码 0;stderr 警告 task get 可能无法恢复,请保留输出。", "A validated complete result is delivered with exit code 0 even if its final local record cannot be saved; stderr warns that task get may not recover it. Keep the output."),
|
|
22
23
|
text(runtime.product, "最终错误为 stderr 中的 JSON error 对象;stderr 也可能有进度和警告。中断退出码 130 只表示本地停止等待。", "The final error is a JSON error object on stderr, which may also contain progress and warnings. Exit code 130 means local waiting stopped."),
|
|
@@ -112,9 +112,10 @@ export function createSsoService(options) {
|
|
|
112
112
|
}
|
|
113
113
|
return {
|
|
114
114
|
async startDeviceAuthorization(signal) {
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
const query = new URLSearchParams({ clientId: options.clientId ?? "gdhub-cli" });
|
|
116
|
+
if (options.hostApplication)
|
|
117
|
+
query.set("host_application", options.hostApplication);
|
|
118
|
+
const response = await request(`oauth/device-authorization?${query}`, signal);
|
|
118
119
|
if (!response.ok)
|
|
119
120
|
throw await responseError(response);
|
|
120
121
|
const body = await responseRecord(response);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gaoding/cli",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "Gaoding command-line interface for agents and people.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"gaodingRelease": {
|
|
68
|
-
"sourceCommit": "
|
|
69
|
-
"pipelineId": "
|
|
70
|
-
"pipelineUrl": "https://git.intra.gaoding.com/gtt/gaoding-cli/-/pipelines/
|
|
68
|
+
"sourceCommit": "6e50596ce82b0968db6b25349688a967984de80b",
|
|
69
|
+
"pipelineId": "293644",
|
|
70
|
+
"pipelineUrl": "https://git.intra.gaoding.com/gtt/gaoding-cli/-/pipelines/293644"
|
|
71
71
|
}
|
|
72
72
|
}
|