@aexhq/cli 0.19.0 → 0.20.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.
- package/dist/cli.mjs +90 -2
- package/dist/cli.mjs.sha256 +1 -1
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -126,6 +126,34 @@ var PROVIDER_PUBLIC_SUPPORT = {
|
|
|
126
126
|
runtimeEvidence: {
|
|
127
127
|
managed: COMMON_EVIDENCE
|
|
128
128
|
}
|
|
129
|
+
},
|
|
130
|
+
// Doubao (ByteDance) via the official Ark API — international BytePlus gateway.
|
|
131
|
+
// Wired + parser/routing-verified but not yet proven against a live BytePlus
|
|
132
|
+
// account, so `live-unverified`. Promote to `supported` (and swap COMMON_EVIDENCE
|
|
133
|
+
// for a DOUBAO_MANAGED_EVIDENCE pointer to live-sdk-doubao.test.ts) once the
|
|
134
|
+
// live run passes.
|
|
135
|
+
doubao: {
|
|
136
|
+
displayName: "Doubao",
|
|
137
|
+
status: "live-unverified",
|
|
138
|
+
docsAnchor: "doubao",
|
|
139
|
+
docs: COMMON_DOCS,
|
|
140
|
+
evidence: COMMON_EVIDENCE,
|
|
141
|
+
runtimeEvidence: {
|
|
142
|
+
managed: COMMON_EVIDENCE
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
// Doubao (ByteDance) via the official Ark API — China Volcengine gateway.
|
|
146
|
+
// Same wiring as `doubao`; additionally gated on CF Worker egress reaching the
|
|
147
|
+
// Beijing host (see apps/egress-probe). `live-unverified` until proven live.
|
|
148
|
+
"doubao-cn": {
|
|
149
|
+
displayName: "Doubao (China)",
|
|
150
|
+
status: "live-unverified",
|
|
151
|
+
docsAnchor: "doubao-cn",
|
|
152
|
+
docs: COMMON_DOCS,
|
|
153
|
+
evidence: COMMON_EVIDENCE,
|
|
154
|
+
runtimeEvidence: {
|
|
155
|
+
managed: COMMON_EVIDENCE
|
|
156
|
+
}
|
|
129
157
|
}
|
|
130
158
|
};
|
|
131
159
|
|
|
@@ -144,7 +172,21 @@ var MODEL_PROVIDER_IDS = {
|
|
|
144
172
|
"gemini-2.0-flash": { gemini: "gemini-2.0-flash", openrouter: "google/gemini-2.0-flash-001" },
|
|
145
173
|
"gemini-2.5-flash": { gemini: "gemini-2.5-flash" },
|
|
146
174
|
"mistral-large-latest": { mistral: "mistral-large-latest" },
|
|
147
|
-
"mistral-small-latest": { mistral: "mistral-small-latest" }
|
|
175
|
+
"mistral-small-latest": { mistral: "mistral-small-latest" },
|
|
176
|
+
// Doubao (ByteDance) via the official Ark API. Served by both the
|
|
177
|
+
// international BytePlus ModelArk gateway (`doubao`, the default) and the
|
|
178
|
+
// China Volcengine Ark gateway (`doubao-cn`). Ark accepts the API-format
|
|
179
|
+
// model NAME directly in the chat-completions `model` field (no `ep-…`
|
|
180
|
+
// inference-endpoint id). The native strings are the same Ark catalog ids on
|
|
181
|
+
// both gateways; BytePlus per-account availability is confirmed at live-verify
|
|
182
|
+
// (both providers ship `live-unverified` until then — provider-support.ts).
|
|
183
|
+
// pro — Doubao Seed 1.8 (flagship, 256K context).
|
|
184
|
+
// flash — Doubao Seed 1.6 Flash (fast/cheap, 256K context).
|
|
185
|
+
"doubao-seed-pro": { doubao: "doubao-seed-1-8-251228", "doubao-cn": "doubao-seed-1-8-251228" },
|
|
186
|
+
"doubao-seed-flash": {
|
|
187
|
+
doubao: "doubao-seed-1-6-flash-250828",
|
|
188
|
+
"doubao-cn": "doubao-seed-1-6-flash-250828"
|
|
189
|
+
}
|
|
148
190
|
};
|
|
149
191
|
var RUN_MODELS = Object.keys(MODEL_PROVIDER_IDS);
|
|
150
192
|
var PROVIDERS_BY_MODEL = (() => {
|
|
@@ -743,7 +785,9 @@ var RUN_PROVIDERS = [
|
|
|
743
785
|
"openai",
|
|
744
786
|
"gemini",
|
|
745
787
|
"mistral",
|
|
746
|
-
"openrouter"
|
|
788
|
+
"openrouter",
|
|
789
|
+
"doubao",
|
|
790
|
+
"doubao-cn"
|
|
747
791
|
];
|
|
748
792
|
var DEFAULT_RUN_PROVIDER = "anthropic";
|
|
749
793
|
var RUNTIME_KINDS = ["managed"];
|
|
@@ -1246,11 +1290,13 @@ __export(operations_exports, {
|
|
|
1246
1290
|
createAgentsMd: () => createAgentsMd,
|
|
1247
1291
|
createFile: () => createFile,
|
|
1248
1292
|
createOutputLink: () => createOutputLink,
|
|
1293
|
+
createSecret: () => createSecret,
|
|
1249
1294
|
createSkillBundle: () => createSkillBundle,
|
|
1250
1295
|
createSkillBundleDirect: () => createSkillBundleDirect,
|
|
1251
1296
|
deleteAgentsMd: () => deleteAgentsMd,
|
|
1252
1297
|
deleteFile: () => deleteFile,
|
|
1253
1298
|
deleteRun: () => deleteRun,
|
|
1299
|
+
deleteSecret: () => deleteSecret,
|
|
1254
1300
|
deleteSkill: () => deleteSkill,
|
|
1255
1301
|
deleteWorkspaceAsset: () => deleteWorkspaceAsset,
|
|
1256
1302
|
download: () => download,
|
|
@@ -1265,13 +1311,17 @@ __export(operations_exports, {
|
|
|
1265
1311
|
getFile: () => getFile,
|
|
1266
1312
|
getRun: () => getRun,
|
|
1267
1313
|
getRunUnit: () => getRunUnit,
|
|
1314
|
+
getSecret: () => getSecret,
|
|
1268
1315
|
getSkill: () => getSkill,
|
|
1269
1316
|
listAgentsMd: () => listAgentsMd,
|
|
1270
1317
|
listFiles: () => listFiles,
|
|
1271
1318
|
listOutputs: () => listOutputs,
|
|
1272
1319
|
listRunEvents: () => listRunEvents,
|
|
1320
|
+
listSecrets: () => listSecrets,
|
|
1273
1321
|
listSkills: () => listSkills,
|
|
1274
1322
|
resolveOutputFileSelector: () => resolveOutputFileSelector,
|
|
1323
|
+
revealSecret: () => revealSecret,
|
|
1324
|
+
rotateSecret: () => rotateSecret,
|
|
1275
1325
|
submitRun: () => submitRun,
|
|
1276
1326
|
submitRunMultipart: () => submitRunMultipart,
|
|
1277
1327
|
uploadWorkspaceAsset: () => uploadWorkspaceAsset,
|
|
@@ -2380,6 +2430,44 @@ function unwrapFile(result) {
|
|
|
2380
2430
|
}
|
|
2381
2431
|
return result;
|
|
2382
2432
|
}
|
|
2433
|
+
async function createSecret(http, args) {
|
|
2434
|
+
const result = await http.request("/api/secrets", {
|
|
2435
|
+
method: "POST",
|
|
2436
|
+
body: JSON.stringify({ name: args.name, value: args.value })
|
|
2437
|
+
});
|
|
2438
|
+
return unwrapSecret(result);
|
|
2439
|
+
}
|
|
2440
|
+
async function listSecrets(http) {
|
|
2441
|
+
const result = await http.request("/api/secrets");
|
|
2442
|
+
if (Array.isArray(result)) {
|
|
2443
|
+
return result;
|
|
2444
|
+
}
|
|
2445
|
+
return result.secrets;
|
|
2446
|
+
}
|
|
2447
|
+
async function getSecret(http, name) {
|
|
2448
|
+
const result = await http.request(`/api/secrets/${encodeURIComponent(name)}`);
|
|
2449
|
+
return unwrapSecret(result);
|
|
2450
|
+
}
|
|
2451
|
+
async function revealSecret(http, name) {
|
|
2452
|
+
return http.request(`/api/secrets/${encodeURIComponent(name)}/reveal`, {
|
|
2453
|
+
method: "POST"
|
|
2454
|
+
});
|
|
2455
|
+
}
|
|
2456
|
+
async function rotateSecret(http, args) {
|
|
2457
|
+
const result = await http.request(`/api/secrets/${encodeURIComponent(args.name)}/rotate`, { method: "POST", body: JSON.stringify({ value: args.value }) });
|
|
2458
|
+
return unwrapSecret(result);
|
|
2459
|
+
}
|
|
2460
|
+
async function deleteSecret(http, name) {
|
|
2461
|
+
await http.request(`/api/secrets/${encodeURIComponent(name)}`, {
|
|
2462
|
+
method: "DELETE"
|
|
2463
|
+
});
|
|
2464
|
+
}
|
|
2465
|
+
function unwrapSecret(result) {
|
|
2466
|
+
if (result && typeof result === "object" && "secret" in result) {
|
|
2467
|
+
return result.secret;
|
|
2468
|
+
}
|
|
2469
|
+
return result;
|
|
2470
|
+
}
|
|
2383
2471
|
function unwrapSkill(result) {
|
|
2384
2472
|
if (result && typeof result === "object" && "skill" in result) {
|
|
2385
2473
|
return result.skill;
|
package/dist/cli.mjs.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
cbf31722f64f1ca909287456236e1e689291516e227dcdd69935300bbc0994c9 cli.mjs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aexhq/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/aexhq/aex.git"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"fflate": "^0.8.2",
|
|
30
|
-
"@aexhq/contracts": "0.
|
|
30
|
+
"@aexhq/contracts": "0.20.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"esbuild": "^0.28.0"
|