superun-ai-cli 0.1.0

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.
Files changed (247) hide show
  1. package/INSTALL.md +118 -0
  2. package/README.en.md +257 -0
  3. package/README.md +255 -0
  4. package/dist/api/agent-command-api.d.ts +39 -0
  5. package/dist/api/agent-command-api.js +69 -0
  6. package/dist/api/agent-command-api.js.map +1 -0
  7. package/dist/api/agent-query-api.d.ts +14 -0
  8. package/dist/api/agent-query-api.js +72 -0
  9. package/dist/api/agent-query-api.js.map +1 -0
  10. package/dist/api/config-api.d.ts +9 -0
  11. package/dist/api/config-api.js +17 -0
  12. package/dist/api/config-api.js.map +1 -0
  13. package/dist/api/conversation-api.d.ts +15 -0
  14. package/dist/api/conversation-api.js +29 -0
  15. package/dist/api/conversation-api.js.map +1 -0
  16. package/dist/api/integration-api.d.ts +9 -0
  17. package/dist/api/integration-api.js +17 -0
  18. package/dist/api/integration-api.js.map +1 -0
  19. package/dist/api/plugin-api.d.ts +9 -0
  20. package/dist/api/plugin-api.js +14 -0
  21. package/dist/api/plugin-api.js.map +1 -0
  22. package/dist/api/preview-version-api.d.ts +6 -0
  23. package/dist/api/preview-version-api.js +31 -0
  24. package/dist/api/preview-version-api.js.map +1 -0
  25. package/dist/api/publish-api.d.ts +19 -0
  26. package/dist/api/publish-api.js +17 -0
  27. package/dist/api/publish-api.js.map +1 -0
  28. package/dist/api/upload-api.d.ts +8 -0
  29. package/dist/api/upload-api.js +71 -0
  30. package/dist/api/upload-api.js.map +1 -0
  31. package/dist/auth/browser-login.d.ts +11 -0
  32. package/dist/auth/browser-login.js +77 -0
  33. package/dist/auth/browser-login.js.map +1 -0
  34. package/dist/auth/pat-store.d.ts +15 -0
  35. package/dist/auth/pat-store.js +131 -0
  36. package/dist/auth/pat-store.js.map +1 -0
  37. package/dist/auto-tools/read-logs.d.ts +3 -0
  38. package/dist/auto-tools/read-logs.js +4 -0
  39. package/dist/auto-tools/read-logs.js.map +1 -0
  40. package/dist/auto-tools/registry.d.ts +8 -0
  41. package/dist/auto-tools/registry.js +26 -0
  42. package/dist/auto-tools/registry.js.map +1 -0
  43. package/dist/cli.d.ts +2 -0
  44. package/dist/cli.js +10 -0
  45. package/dist/cli.js.map +1 -0
  46. package/dist/commands/auth/index.d.ts +4 -0
  47. package/dist/commands/auth/index.js +10 -0
  48. package/dist/commands/auth/index.js.map +1 -0
  49. package/dist/commands/auth/login.d.ts +3 -0
  50. package/dist/commands/auth/login.js +23 -0
  51. package/dist/commands/auth/login.js.map +1 -0
  52. package/dist/commands/auth/logout.d.ts +4 -0
  53. package/dist/commands/auth/logout.js +15 -0
  54. package/dist/commands/auth/logout.js.map +1 -0
  55. package/dist/commands/auth/status.d.ts +4 -0
  56. package/dist/commands/auth/status.js +14 -0
  57. package/dist/commands/auth/status.js.map +1 -0
  58. package/dist/commands/chat/create.d.ts +4 -0
  59. package/dist/commands/chat/create.js +8 -0
  60. package/dist/commands/chat/create.js.map +1 -0
  61. package/dist/commands/chat/demo.d.ts +4 -0
  62. package/dist/commands/chat/demo.js +11 -0
  63. package/dist/commands/chat/demo.js.map +1 -0
  64. package/dist/commands/chat/develop.d.ts +4 -0
  65. package/dist/commands/chat/develop.js +10 -0
  66. package/dist/commands/chat/develop.js.map +1 -0
  67. package/dist/commands/chat/index.d.ts +4 -0
  68. package/dist/commands/chat/index.js +26 -0
  69. package/dist/commands/chat/index.js.map +1 -0
  70. package/dist/commands/chat/interaction.d.ts +4 -0
  71. package/dist/commands/chat/interaction.js +22 -0
  72. package/dist/commands/chat/interaction.js.map +1 -0
  73. package/dist/commands/chat/message.d.ts +6 -0
  74. package/dist/commands/chat/message.js +78 -0
  75. package/dist/commands/chat/message.js.map +1 -0
  76. package/dist/commands/chat/plugin.d.ts +4 -0
  77. package/dist/commands/chat/plugin.js +82 -0
  78. package/dist/commands/chat/plugin.js.map +1 -0
  79. package/dist/commands/chat/publish.d.ts +3 -0
  80. package/dist/commands/chat/publish.js +207 -0
  81. package/dist/commands/chat/publish.js.map +1 -0
  82. package/dist/commands/chat/send.d.ts +4 -0
  83. package/dist/commands/chat/send.js +5 -0
  84. package/dist/commands/chat/send.js.map +1 -0
  85. package/dist/commands/chat/state.d.ts +4 -0
  86. package/dist/commands/chat/state.js +26 -0
  87. package/dist/commands/chat/state.js.map +1 -0
  88. package/dist/commands/chat/stop.d.ts +4 -0
  89. package/dist/commands/chat/stop.js +16 -0
  90. package/dist/commands/chat/stop.js.map +1 -0
  91. package/dist/commands/chat/style.d.ts +4 -0
  92. package/dist/commands/chat/style.js +45 -0
  93. package/dist/commands/chat/style.js.map +1 -0
  94. package/dist/commands/chat/wait.d.ts +4 -0
  95. package/dist/commands/chat/wait.js +11 -0
  96. package/dist/commands/chat/wait.js.map +1 -0
  97. package/dist/commands/session/get.d.ts +4 -0
  98. package/dist/commands/session/get.js +15 -0
  99. package/dist/commands/session/get.js.map +1 -0
  100. package/dist/commands/session/index.d.ts +4 -0
  101. package/dist/commands/session/index.js +8 -0
  102. package/dist/commands/session/index.js.map +1 -0
  103. package/dist/commands/session/list.d.ts +4 -0
  104. package/dist/commands/session/list.js +43 -0
  105. package/dist/commands/session/list.js.map +1 -0
  106. package/dist/commands/shared.d.ts +33 -0
  107. package/dist/commands/shared.js +127 -0
  108. package/dist/commands/shared.js.map +1 -0
  109. package/dist/commands/system/update.d.ts +6 -0
  110. package/dist/commands/system/update.js +10 -0
  111. package/dist/commands/system/update.js.map +1 -0
  112. package/dist/commands/system/version.d.ts +4 -0
  113. package/dist/commands/system/version.js +8 -0
  114. package/dist/commands/system/version.js.map +1 -0
  115. package/dist/config/constants.d.ts +9 -0
  116. package/dist/config/constants.js +22 -0
  117. package/dist/config/constants.js.map +1 -0
  118. package/dist/config/runtime-config.d.ts +9 -0
  119. package/dist/config/runtime-config.js +28 -0
  120. package/dist/config/runtime-config.js.map +1 -0
  121. package/dist/contracts/cli-output.d.ts +110 -0
  122. package/dist/contracts/cli-output.js +2 -0
  123. package/dist/contracts/cli-output.js.map +1 -0
  124. package/dist/contracts/node-wire.d.ts +36381 -0
  125. package/dist/contracts/node-wire.js +102 -0
  126. package/dist/contracts/node-wire.js.map +1 -0
  127. package/dist/contracts/value.d.ts +6 -0
  128. package/dist/contracts/value.js +20 -0
  129. package/dist/contracts/value.js.map +1 -0
  130. package/dist/conversation/demo-preview.d.ts +7 -0
  131. package/dist/conversation/demo-preview.js +62 -0
  132. package/dist/conversation/demo-preview.js.map +1 -0
  133. package/dist/conversation/development-snapshot.d.ts +5 -0
  134. package/dist/conversation/development-snapshot.js +52 -0
  135. package/dist/conversation/development-snapshot.js.map +1 -0
  136. package/dist/conversation/next-actions.d.ts +4 -0
  137. package/dist/conversation/next-actions.js +199 -0
  138. package/dist/conversation/next-actions.js.map +1 -0
  139. package/dist/conversation/round-selector.d.ts +4 -0
  140. package/dist/conversation/round-selector.js +25 -0
  141. package/dist/conversation/round-selector.js.map +1 -0
  142. package/dist/conversation/session-waiter.d.ts +28 -0
  143. package/dist/conversation/session-waiter.js +176 -0
  144. package/dist/conversation/session-waiter.js.map +1 -0
  145. package/dist/conversation/state-resolver.d.ts +8 -0
  146. package/dist/conversation/state-resolver.js +90 -0
  147. package/dist/conversation/state-resolver.js.map +1 -0
  148. package/dist/conversation/text-projector.d.ts +5 -0
  149. package/dist/conversation/text-projector.js +45 -0
  150. package/dist/conversation/text-projector.js.map +1 -0
  151. package/dist/development.d.ts +1 -0
  152. package/dist/development.js +16 -0
  153. package/dist/development.js.map +1 -0
  154. package/dist/interactions/context.d.ts +23 -0
  155. package/dist/interactions/context.js +50 -0
  156. package/dist/interactions/context.js.map +1 -0
  157. package/dist/interactions/handlers/index.d.ts +2 -0
  158. package/dist/interactions/handlers/index.js +52 -0
  159. package/dist/interactions/handlers/index.js.map +1 -0
  160. package/dist/interactions/handlers/reply-ask.d.ts +2 -0
  161. package/dist/interactions/handlers/reply-ask.js +33 -0
  162. package/dist/interactions/handlers/reply-ask.js.map +1 -0
  163. package/dist/interactions/handlers/reply-ddl.d.ts +2 -0
  164. package/dist/interactions/handlers/reply-ddl.js +8 -0
  165. package/dist/interactions/handlers/reply-ddl.js.map +1 -0
  166. package/dist/interactions/handlers/reply-plugin.d.ts +3 -0
  167. package/dist/interactions/handlers/reply-plugin.js +56 -0
  168. package/dist/interactions/handlers/reply-plugin.js.map +1 -0
  169. package/dist/interactions/handlers/reply-prd.d.ts +2 -0
  170. package/dist/interactions/handlers/reply-prd.js +35 -0
  171. package/dist/interactions/handlers/reply-prd.js.map +1 -0
  172. package/dist/interactions/handlers/reply-secret.d.ts +2 -0
  173. package/dist/interactions/handlers/reply-secret.js +27 -0
  174. package/dist/interactions/handlers/reply-secret.js.map +1 -0
  175. package/dist/interactions/handlers/reply-semantic.d.ts +2 -0
  176. package/dist/interactions/handlers/reply-semantic.js +98 -0
  177. package/dist/interactions/handlers/reply-semantic.js.map +1 -0
  178. package/dist/interactions/handlers/reply-style.d.ts +2 -0
  179. package/dist/interactions/handlers/reply-style.js +9 -0
  180. package/dist/interactions/handlers/reply-style.js.map +1 -0
  181. package/dist/interactions/handlers/reply-universal-ask.d.ts +2 -0
  182. package/dist/interactions/handlers/reply-universal-ask.js +13 -0
  183. package/dist/interactions/handlers/reply-universal-ask.js.map +1 -0
  184. package/dist/interactions/handlers/types.d.ts +10 -0
  185. package/dist/interactions/handlers/types.js +2 -0
  186. package/dist/interactions/handlers/types.js.map +1 -0
  187. package/dist/interactions/interaction-id.d.ts +2 -0
  188. package/dist/interactions/interaction-id.js +15 -0
  189. package/dist/interactions/interaction-id.js.map +1 -0
  190. package/dist/interactions/parsers/ask-user-tool.d.ts +2 -0
  191. package/dist/interactions/parsers/ask-user-tool.js +14 -0
  192. package/dist/interactions/parsers/ask-user-tool.js.map +1 -0
  193. package/dist/interactions/parsers/ddl-approval.d.ts +2 -0
  194. package/dist/interactions/parsers/ddl-approval.js +12 -0
  195. package/dist/interactions/parsers/ddl-approval.js.map +1 -0
  196. package/dist/interactions/parsers/plugin-action.d.ts +2 -0
  197. package/dist/interactions/parsers/plugin-action.js +19 -0
  198. package/dist/interactions/parsers/plugin-action.js.map +1 -0
  199. package/dist/interactions/parsers/prd-clarification.d.ts +2 -0
  200. package/dist/interactions/parsers/prd-clarification.js +26 -0
  201. package/dist/interactions/parsers/prd-clarification.js.map +1 -0
  202. package/dist/interactions/parsers/secret-input.d.ts +2 -0
  203. package/dist/interactions/parsers/secret-input.js +27 -0
  204. package/dist/interactions/parsers/secret-input.js.map +1 -0
  205. package/dist/interactions/parsers/semantic-action.d.ts +4 -0
  206. package/dist/interactions/parsers/semantic-action.js +84 -0
  207. package/dist/interactions/parsers/semantic-action.js.map +1 -0
  208. package/dist/interactions/parsers/style-selection.d.ts +15 -0
  209. package/dist/interactions/parsers/style-selection.js +77 -0
  210. package/dist/interactions/parsers/style-selection.js.map +1 -0
  211. package/dist/interactions/parsers/universal-ask-user.d.ts +2 -0
  212. package/dist/interactions/parsers/universal-ask-user.js +15 -0
  213. package/dist/interactions/parsers/universal-ask-user.js.map +1 -0
  214. package/dist/interactions/questions.d.ts +46 -0
  215. package/dist/interactions/questions.js +95 -0
  216. package/dist/interactions/questions.js.map +1 -0
  217. package/dist/interactions/registry.d.ts +4 -0
  218. package/dist/interactions/registry.js +64 -0
  219. package/dist/interactions/registry.js.map +1 -0
  220. package/dist/output/exit-codes.d.ts +22 -0
  221. package/dist/output/exit-codes.js +27 -0
  222. package/dist/output/exit-codes.js.map +1 -0
  223. package/dist/output/writer.d.ts +13 -0
  224. package/dist/output/writer.js +53 -0
  225. package/dist/output/writer.js.map +1 -0
  226. package/dist/program.d.ts +9 -0
  227. package/dist/program.js +39 -0
  228. package/dist/program.js.map +1 -0
  229. package/dist/runner.d.ts +11 -0
  230. package/dist/runner.js +54 -0
  231. package/dist/runner.js.map +1 -0
  232. package/dist/runtime.d.ts +48 -0
  233. package/dist/runtime.js +404 -0
  234. package/dist/runtime.js.map +1 -0
  235. package/dist/transport/api-client.d.ts +17 -0
  236. package/dist/transport/api-client.js +37 -0
  237. package/dist/transport/api-client.js.map +1 -0
  238. package/dist/transport/http-client.d.ts +20 -0
  239. package/dist/transport/http-client.js +79 -0
  240. package/dist/transport/http-client.js.map +1 -0
  241. package/dist/update/update-lock.d.ts +1 -0
  242. package/dist/update/update-lock.js +57 -0
  243. package/dist/update/update-lock.js.map +1 -0
  244. package/dist/update/version-gate.d.ts +6 -0
  245. package/dist/update/version-gate.js +118 -0
  246. package/dist/update/version-gate.js.map +1 -0
  247. package/package.json +43 -0
@@ -0,0 +1,33 @@
1
+ import type { Command } from 'commander';
2
+ import { PatStore } from '../auth/pat-store.js';
3
+ import { runtimeConfig } from '../config/runtime-config.js';
4
+ import { CreationRuntime } from '../runtime.js';
5
+ import type { OutputWriter } from '../output/writer.js';
6
+ import type { JsonObject } from '../contracts/value.js';
7
+ export type CommandContext = {
8
+ output: OutputWriter;
9
+ patStore: PatStore;
10
+ signal: AbortSignal;
11
+ makeRuntime?: (config: ReturnType<typeof runtimeConfig>, pat: string) => CreationRuntime;
12
+ connection?: Promise<CredentialContext>;
13
+ };
14
+ export type CredentialContext = {
15
+ service: CreationRuntime;
16
+ credentialSource: 'env' | 'file';
17
+ };
18
+ /** 已有 PAT 直接复用;允许浏览器登录时自动补齐缺失的凭据。 */
19
+ export declare function requireCredentials(context: CommandContext, command: Command, allowBrowser?: boolean): Promise<CredentialContext>;
20
+ export declare function runtime(context: CommandContext, command: Command): Promise<CreationRuntime>;
21
+ export declare function positive(value: string): number;
22
+ export declare function waitOptions(command: Command): {
23
+ timeout?: number;
24
+ interval?: number;
25
+ messageId?: string;
26
+ };
27
+ export declare function withWait(command: Command, noWaitDescription?: string): Command;
28
+ export declare function readInput(path: string): Promise<JsonObject>;
29
+ export declare function businessWrite(context: CommandContext, service: CreationRuntime, sessionId: string | undefined, action: () => Promise<unknown>): Promise<unknown>;
30
+ export declare function pollOperation<T>(read: () => Promise<T>, isTerminal: (value: T) => boolean, options: {
31
+ timeout?: number;
32
+ signal?: AbortSignal;
33
+ }): Promise<T>;
@@ -0,0 +1,127 @@
1
+ /** 命令输入、连接上下文与结果等待。@author xiuyu.yi */
2
+ import { readFile } from 'node:fs/promises';
3
+ import { setTimeout as delay } from 'node:timers/promises';
4
+ import { InvalidArgumentError } from 'commander';
5
+ import { z } from 'zod';
6
+ import { PatStore } from '../auth/pat-store.js';
7
+ import { ensurePat } from '../auth/browser-login.js';
8
+ import { runtimeConfig } from '../config/runtime-config.js';
9
+ import { ApiClient } from '../transport/api-client.js';
10
+ import { CreationRuntime } from '../runtime.js';
11
+ import { CliError } from '../output/exit-codes.js';
12
+ import { object, text } from '../contracts/value.js';
13
+ async function loadCredentialContext(context, command, allowBrowser) {
14
+ const options = object(command.optsWithGlobals());
15
+ const config = runtimeConfig({
16
+ endpoint: text(options.endpoint),
17
+ locale: text(options.locale),
18
+ });
19
+ const credential = await ensurePat({
20
+ store: context.patStore,
21
+ config,
22
+ output: context.output,
23
+ signal: context.signal,
24
+ allowBrowser,
25
+ });
26
+ context.output.registerSecret(credential.pat);
27
+ const service = context.makeRuntime?.(config, credential.pat) ??
28
+ new CreationRuntime(new ApiClient(config, credential.pat, undefined, context.signal), context.output);
29
+ return { service, credentialSource: credential.source };
30
+ }
31
+ /** 已有 PAT 直接复用;允许浏览器登录时自动补齐缺失的凭据。 */
32
+ export async function requireCredentials(context, command, allowBrowser = false) {
33
+ context.connection ??= loadCredentialContext(context, command, allowBrowser);
34
+ return context.connection;
35
+ }
36
+ export async function runtime(context, command) {
37
+ return (await requireCredentials(context, command)).service;
38
+ }
39
+ export function positive(value) {
40
+ const number = Number(value);
41
+ if (!Number.isSafeInteger(number) || number < 1)
42
+ throw new InvalidArgumentError('参数必须是正整数');
43
+ return number;
44
+ }
45
+ export function waitOptions(command) {
46
+ const options = object(command.opts());
47
+ return {
48
+ timeout: typeof options.timeout === 'number' ? options.timeout : undefined,
49
+ interval: typeof options.interval === 'number' ? options.interval : undefined,
50
+ messageId: text(options.messageId),
51
+ };
52
+ }
53
+ export function withWait(command, noWaitDescription = '服务端接受请求后立即返回') {
54
+ return command
55
+ .option('--wait', '等待交互或终态', true)
56
+ .option('--no-wait', noWaitDescription)
57
+ .option('--timeout <seconds>', '本地等待上限;不传则持续等待', positive);
58
+ }
59
+ export async function readInput(path) {
60
+ let content = '';
61
+ if (path === '-') {
62
+ for await (const chunk of process.stdin) {
63
+ content += String(chunk);
64
+ if (Buffer.byteLength(content) > 2_000_000)
65
+ throw new CliError('INVALID_ARGUMENT', 'JSON 输入不能超过 2MB');
66
+ }
67
+ }
68
+ else {
69
+ try {
70
+ content = await readFile(path, 'utf8');
71
+ }
72
+ catch {
73
+ throw new CliError('INVALID_ARGUMENT', '无法读取输入文件');
74
+ }
75
+ if (Buffer.byteLength(content) > 2_000_000)
76
+ throw new CliError('INVALID_ARGUMENT', 'JSON 输入不能超过 2MB');
77
+ }
78
+ try {
79
+ const value = JSON.parse(content);
80
+ return z.record(z.unknown()).parse(value);
81
+ }
82
+ catch {
83
+ throw new CliError('INVALID_ARGUMENT', '输入必须是有效的 JSON 对象');
84
+ }
85
+ }
86
+ export async function businessWrite(context, service, sessionId, action) {
87
+ try {
88
+ return await action();
89
+ }
90
+ catch (error) {
91
+ if (error instanceof CliError && error.code === 'OUTCOME_UNKNOWN' && sessionId) {
92
+ let observedState;
93
+ try {
94
+ observedState = await service.state(sessionId);
95
+ }
96
+ catch {
97
+ /* 查询失败仍保留原始不确定结果。 */
98
+ }
99
+ throw new CliError('OUTCOME_UNKNOWN', '写请求结果不确定,已查询当前会话;请核对后再决定下一步', {
100
+ ...error.details,
101
+ sessionId,
102
+ observedState,
103
+ retryable: false,
104
+ });
105
+ }
106
+ if (context.signal.aborted)
107
+ throw new CliError('INTERRUPTED', '命令已中断,远端任务不受影响', { sessionId });
108
+ throw error;
109
+ }
110
+ }
111
+ export async function pollOperation(read, isTerminal, options) {
112
+ const deadline = options.timeout === undefined ? Number.POSITIVE_INFINITY : Date.now() + options.timeout * 1000;
113
+ while (true) {
114
+ const value = await read();
115
+ if (isTerminal(value))
116
+ return value;
117
+ if (Date.now() >= deadline)
118
+ throw new CliError('LOCAL_WAIT_TIMEOUT', '本地等待超时,远端操作仍可能进行中');
119
+ try {
120
+ await delay(2000, undefined, { signal: options.signal });
121
+ }
122
+ catch {
123
+ throw new CliError('INTERRUPTED', '已停止本地等待');
124
+ }
125
+ }
126
+ }
127
+ //# sourceMappingURL=shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/commands/shared.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAEjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAerD,KAAK,UAAU,qBAAqB,CAClC,OAAuB,EACvB,OAAgB,EAChB,YAAqB;IAErB,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;IAClD,MAAM,MAAM,GAAG,aAAa,CAAC;QAC3B,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QAChC,MAAM,EAAE,IAAI,CAAC,OAAO,CAA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QAAQ,CAAC,aAAa,EAAE,gBAAgB,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;QACrE,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AACD,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,IAAsB,EACtB,UAAiC,EACjC,OAAmD;IAEnD,MAAM,QAAQ,GACZ,OAAO,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IACjG,OAAO,IAAI,EAAE,CAAC;QACZ,MAAM,KAAK,GAAG,MAAM,IAAI,EAAE,CAAC;QAC3B,IAAI,UAAU,CAAC,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;QACpC,IAAI,IAAI,CAAC,GAAG,EAAE,IAAI,QAAQ;YACxB,MAAM,IAAI,QAAQ,CAAC,oBAAoB,EAAE,mBAAmB,CAAC,CAAC;QAChE,IAAI,CAAC;YACH,MAAM,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;QAC3D,CAAC;QAAC,MAAM,CAAC;YACP,MAAM,IAAI,QAAQ,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;QAC/C,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -0,0 +1,6 @@
1
+ /** 安装当前发布渠道指定的版本。@author xiuyu.yi */
2
+ import type { Command } from 'commander';
3
+ import type { OutputWriter } from '../../output/writer.js';
4
+ export declare function registerUpdate(program: Command, output: OutputWriter, update: () => Promise<{
5
+ version: string;
6
+ }>): void;
@@ -0,0 +1,10 @@
1
+ export function registerUpdate(program, output, update) {
2
+ program
3
+ .command('update')
4
+ .description('检查并安装指定版本')
5
+ .action(async () => {
6
+ const result = await update();
7
+ output.write({ state: 'COMPLETED', version: result.version });
8
+ });
9
+ }
10
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/commands/system/update.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,cAAc,CAC5B,OAAgB,EAChB,MAAoB,EACpB,MAA0C;IAE1C,OAAO;SACJ,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,WAAW,CAAC;SACxB,MAAM,CAAC,KAAK,IAAI,EAAE;QACjB,MAAM,MAAM,GAAG,MAAM,MAAM,EAAE,CAAC;QAC9B,MAAM,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,4 @@
1
+ /** 显示本地版本与输出协议版本。@author xiuyu.yi */
2
+ import type { Command } from 'commander';
3
+ import type { OutputWriter } from '../../output/writer.js';
4
+ export declare function registerVersion(program: Command, output: OutputWriter): void;
@@ -0,0 +1,8 @@
1
+ import { PACKAGE_VERSION, SCHEMA_VERSION } from '../../config/constants.js';
2
+ export function registerVersion(program, output) {
3
+ program
4
+ .command('version')
5
+ .description('显示本地版本与输出协议版本')
6
+ .action(() => output.write({ version: PACKAGE_VERSION, schemaVersion: SCHEMA_VERSION }));
7
+ }
8
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/commands/system/version.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG5E,MAAM,UAAU,eAAe,CAAC,OAAgB,EAAE,MAAoB;IACpE,OAAO;SACJ,OAAO,CAAC,SAAS,CAAC;SAClB,WAAW,CAAC,eAAe,CAAC;SAC5B,MAAM,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC;AAC7F,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare const PACKAGE_NAME: string;
2
+ export declare const PACKAGE_VERSION: string;
3
+ export declare const PACKAGE_PRIVATE: boolean;
4
+ export declare const NPM_REGISTRY: string;
5
+ export declare const COMMAND_NAME = "superun-ai";
6
+ export declare const SCHEMA_VERSION = "1";
7
+ export declare const DEFAULT_ENDPOINT = "https://superun.com";
8
+ export declare const PAT_PREFIX = "sup_pat_";
9
+ export declare const DEFAULT_WAIT_SECONDS = 1800;
@@ -0,0 +1,22 @@
1
+ /** CLI 固定配置与包元数据。@author xiuyu.yi */
2
+ import { createRequire } from 'node:module';
3
+ import { z } from 'zod';
4
+ const require = createRequire(import.meta.url);
5
+ const metadata = z
6
+ .object({
7
+ name: z.string(),
8
+ version: z.string(),
9
+ private: z.boolean().optional(),
10
+ publishConfig: z.object({ registry: z.string().url() }),
11
+ })
12
+ .parse(require('../../package.json'));
13
+ export const PACKAGE_NAME = metadata.name;
14
+ export const PACKAGE_VERSION = metadata.version;
15
+ export const PACKAGE_PRIVATE = metadata.private === true;
16
+ export const NPM_REGISTRY = metadata.publishConfig.registry;
17
+ export const COMMAND_NAME = 'superun-ai';
18
+ export const SCHEMA_VERSION = '1';
19
+ export const DEFAULT_ENDPOINT = 'https://superun.com';
20
+ export const PAT_PREFIX = 'sup_pat_';
21
+ export const DEFAULT_WAIT_SECONDS = 1800;
22
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/config/constants.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,QAAQ,GAAG,CAAC;KACf,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/B,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC;CACxD,CAAC;KACD,KAAK,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC;AAExC,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC;AAC1C,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,CAAC;AAChD,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,KAAK,IAAI,CAAC;AACzD,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC;AAC5D,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC;AACzC,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAC;AAClC,MAAM,CAAC,MAAM,gBAAgB,GAAG,qBAAqB,CAAC;AACtD,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAAC;AACrC,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC"}
@@ -0,0 +1,9 @@
1
+ export type RuntimeConfig = {
2
+ endpoint: string;
3
+ locale: string;
4
+ timeoutMs: number;
5
+ };
6
+ export declare function runtimeConfig(options: {
7
+ endpoint?: string;
8
+ locale?: string;
9
+ }): RuntimeConfig;
@@ -0,0 +1,28 @@
1
+ /** 本次命令的连接配置。@author xiuyu.yi */
2
+ import { DEFAULT_ENDPOINT } from './constants.js';
3
+ import { CliError } from '../output/exit-codes.js';
4
+ export function runtimeConfig(options) {
5
+ const endpoint = options.endpoint ?? process.env.SUPERUN_ENDPOINT ?? DEFAULT_ENDPOINT;
6
+ let url;
7
+ try {
8
+ url = new URL(endpoint);
9
+ }
10
+ catch {
11
+ throw new CliError('INVALID_ARGUMENT', 'endpoint 必须为有效的 HTTP(S) 地址');
12
+ }
13
+ const loopback = ['localhost', '127.0.0.1', '[::1]'].includes(url.hostname);
14
+ if ((url.protocol !== 'https:' && !(url.protocol === 'http:' && loopback)) ||
15
+ url.username ||
16
+ url.password ||
17
+ url.search ||
18
+ url.hash ||
19
+ url.pathname !== '/') {
20
+ throw new CliError('INVALID_ARGUMENT', 'endpoint 只接受 HTTPS 源站地址;本机开发可使用 HTTP');
21
+ }
22
+ return {
23
+ endpoint: url.origin,
24
+ locale: options.locale ?? 'zh-CN',
25
+ timeoutMs: 65_000,
26
+ };
27
+ }
28
+ //# sourceMappingURL=runtime-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-config.js","sourceRoot":"","sources":["../../src/config/runtime-config.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAQnD,MAAM,UAAU,aAAa,CAAC,OAA+C;IAC3E,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,gBAAgB,CAAC;IACtF,IAAI,GAAQ,CAAC;IACb,IAAI,CAAC;QACH,GAAG,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC1B,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,QAAQ,CAAC,kBAAkB,EAAE,4BAA4B,CAAC,CAAC;IACvE,CAAC;IACD,MAAM,QAAQ,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC5E,IACE,CAAC,GAAG,CAAC,QAAQ,KAAK,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,QAAQ,KAAK,OAAO,IAAI,QAAQ,CAAC,CAAC;QACtE,GAAG,CAAC,QAAQ;QACZ,GAAG,CAAC,QAAQ;QACZ,GAAG,CAAC,MAAM;QACV,GAAG,CAAC,IAAI;QACR,GAAG,CAAC,QAAQ,KAAK,GAAG,EACpB,CAAC;QACD,MAAM,IAAI,QAAQ,CAAC,kBAAkB,EAAE,sCAAsC,CAAC,CAAC;IACjF,CAAC;IACD,OAAO;QACL,QAAQ,EAAE,GAAG,CAAC,MAAM;QACpB,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,OAAO;QACjC,SAAS,EAAE,MAAM;KAClB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,110 @@
1
+ /** 面向终端、Agent 和 MCP 调用方的稳定输出协议。@author xiuyu.yi */
2
+ export type CreationState = 'ACCEPTED' | 'QUEUED' | 'RUNNING' | 'PAUSED' | 'NEEDS_INPUT' | 'NEEDS_SELECTION' | 'COMPLETED' | 'FAILED' | 'INTERRUPTED' | 'CANCELLED';
3
+ export type InteractionKind = 'PRD_CLARIFICATION' | 'ASK_USER_TOOL' | 'ASK_USER_MESSAGE' | 'SECRET_INPUT' | 'PLUGIN_SECRET_INPUT' | 'PLUGIN_ACTION' | 'DDL_CONFIRMATION' | 'STYLE_SELECTION' | 'ENTER_IDEATION' | 'APPROVE_ARCHITECTURE_PLAN' | 'SELECT_FEATURES' | 'START_EXECUTION';
4
+ export type Question = {
5
+ id: string;
6
+ question: string;
7
+ header?: string;
8
+ multiSelect: boolean;
9
+ allowOther: boolean;
10
+ options: Array<{
11
+ index: number;
12
+ label: string;
13
+ description?: string;
14
+ preview?: string;
15
+ }>;
16
+ recommendedIndices?: Array<number>;
17
+ };
18
+ export type Interaction = {
19
+ interactionId: string;
20
+ kind: InteractionKind;
21
+ source: {
22
+ roundId: string;
23
+ messageId: string;
24
+ contentId: string;
25
+ variant: string;
26
+ toolId?: string;
27
+ };
28
+ questions: Array<Question>;
29
+ actions: Array<string>;
30
+ answerSchema: Record<string, unknown>;
31
+ details?: Record<string, unknown>;
32
+ };
33
+ export type Choice = {
34
+ choiceId: string;
35
+ batchVersion?: number;
36
+ index: number;
37
+ preReplyMessageId: string;
38
+ replyMessageId: string;
39
+ lastReplyMessageId?: string;
40
+ status: 'running' | 'success' | 'failed';
41
+ previewUrl?: string;
42
+ screenshotUrl?: string;
43
+ errorType?: string;
44
+ selected?: boolean;
45
+ };
46
+ export type NextAction = {
47
+ action: string;
48
+ instruction: string;
49
+ requiresUserInput: boolean;
50
+ /** 完整命令的参数数组;仅提供引导,不会自动执行。 */
51
+ command: Array<string>;
52
+ interactionId?: string;
53
+ choiceId?: string;
54
+ /** 回复的固定字段,用户数据仍需按对应交互的 answerSchema 补齐。 */
55
+ input?: {
56
+ action: string;
57
+ };
58
+ };
59
+ export type DemoPreview = {
60
+ snapshotId: string;
61
+ messageId: string;
62
+ url: string;
63
+ viewed: boolean;
64
+ };
65
+ export type DevelopmentSnapshot = {
66
+ status: 'READY';
67
+ snapshotId: string;
68
+ messageId: string;
69
+ url: string;
70
+ } | {
71
+ status: 'PENDING' | 'UNAVAILABLE';
72
+ messageId: string;
73
+ reason: string;
74
+ };
75
+ export type DevelopmentProgress = {
76
+ stage: 'READY' | 'PLANNING' | 'PLAN_REVIEW' | 'FEATURE_SELECTION' | 'EXECUTION_REVIEW' | 'DEVELOPING' | 'COMPLETED';
77
+ started: boolean;
78
+ planApproved: boolean;
79
+ /** 当前研发轮的快照;规划与问答轮不要求产生快照。 */
80
+ snapshot?: DevelopmentSnapshot;
81
+ };
82
+ export type CreationResult = {
83
+ state: CreationState;
84
+ sessionId: string;
85
+ messageId?: string;
86
+ replyMessageId?: string;
87
+ topic?: string;
88
+ messages: Array<{
89
+ id: string;
90
+ role: 'user' | 'assistant';
91
+ text: string;
92
+ }>;
93
+ progress: Array<{
94
+ id: string;
95
+ text: string;
96
+ status?: string;
97
+ }>;
98
+ interactions: Array<Interaction>;
99
+ choices?: Array<Choice>;
100
+ demo?: DemoPreview;
101
+ development?: DevelopmentProgress;
102
+ cursor?: {
103
+ messageId?: string;
104
+ etag?: string;
105
+ branchAnchor?: string;
106
+ };
107
+ attachments?: Array<Record<string, unknown>>;
108
+ waitTimedOut?: boolean;
109
+ nextActions?: Array<NextAction>;
110
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=cli-output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-output.js","sourceRoot":"","sources":["../../src/contracts/cli-output.ts"],"names":[],"mappings":""}