@artis-lab/cli 0.16.0 → 0.17.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/package.json +1 -1
- package/src/bin.js +3 -3
- package/src/lib/app.js +3 -3
- package/src/lib/{chunk-2GXGXTAO.js → chunk-P4O6TXMP.js} +9 -4
- package/src/lib/{chunk-XZYT3B5O.js → chunk-T24DNA2K.js} +1 -1
- package/src/lib/{chunk-6PK46UOP.js → chunk-XTAKEL34.js} +0 -2
- package/src/lib/cli.js +1 -1
- package/src/lib/commands.js +2 -2
package/package.json
CHANGED
package/src/bin.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runAgentCli
|
|
4
|
-
} from "./lib/chunk-
|
|
5
|
-
import "./lib/chunk-
|
|
4
|
+
} from "./lib/chunk-T24DNA2K.js";
|
|
5
|
+
import "./lib/chunk-P4O6TXMP.js";
|
|
6
6
|
import "./lib/chunk-I5P3FLKO.js";
|
|
7
|
-
import "./lib/chunk-
|
|
7
|
+
import "./lib/chunk-XTAKEL34.js";
|
|
8
8
|
import "./lib/chunk-43WVFZLO.js";
|
|
9
9
|
import "./lib/chunk-JYMG2Y6C.js";
|
|
10
10
|
import "./lib/chunk-2LRPXCLL.js";
|
package/src/lib/app.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runAgentCli
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-T24DNA2K.js";
|
|
4
|
+
import "./chunk-P4O6TXMP.js";
|
|
5
5
|
import "./chunk-I5P3FLKO.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-XTAKEL34.js";
|
|
7
7
|
import "./chunk-43WVFZLO.js";
|
|
8
8
|
import "./chunk-JYMG2Y6C.js";
|
|
9
9
|
import "./chunk-2LRPXCLL.js";
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
uploadAsset,
|
|
44
44
|
watchArtifact,
|
|
45
45
|
whoami
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-XTAKEL34.js";
|
|
47
47
|
import {
|
|
48
48
|
installSkill,
|
|
49
49
|
listSkillHarnesses,
|
|
@@ -247,7 +247,7 @@ function command(spec) {
|
|
|
247
247
|
...Object.fromEntries(
|
|
248
248
|
[...spec.flags, ...removedFlags].map((name) => [
|
|
249
249
|
name,
|
|
250
|
-
flagCatalog[name]
|
|
250
|
+
spec.removed?.includes(name) ? refused(name) : flagCatalog[name]
|
|
251
251
|
])
|
|
252
252
|
)
|
|
253
253
|
},
|
|
@@ -282,7 +282,7 @@ function command(spec) {
|
|
|
282
282
|
route,
|
|
283
283
|
usage: spec.usage,
|
|
284
284
|
brief: spec.brief,
|
|
285
|
-
flags: spec.flags,
|
|
285
|
+
flags: spec.flags.filter((name) => !spec.removed?.includes(name)),
|
|
286
286
|
hidden: spec.hidden ?? false,
|
|
287
287
|
command: command2
|
|
288
288
|
};
|
|
@@ -477,8 +477,14 @@ ${type.references.map((path) => ` ${path}`).join("\n")}`
|
|
|
477
477
|
"capabilities",
|
|
478
478
|
"reload-pages"
|
|
479
479
|
],
|
|
480
|
+
removed: ["capabilities"],
|
|
480
481
|
args: [artifactArg, optionalArg("file", "Edited HTML file.")],
|
|
481
482
|
async run(flags, artifact, file) {
|
|
483
|
+
if (flags.capabilities !== void 0) {
|
|
484
|
+
throw usageError(
|
|
485
|
+
'--capabilities was removed from revise: a revision changes only content. Set them with "artis capabilities set <artifact> <json|file>": before revising to add one the new content uses, after to drop one.'
|
|
486
|
+
);
|
|
487
|
+
}
|
|
482
488
|
const result = await onConflict(
|
|
483
489
|
() => reviseArtifact({
|
|
484
490
|
artifact,
|
|
@@ -488,7 +494,6 @@ ${type.references.map((path) => ` ${path}`).join("\n")}`
|
|
|
488
494
|
base: flags.base,
|
|
489
495
|
type: flags.type,
|
|
490
496
|
author: flags.author,
|
|
491
|
-
capabilities: flags.capabilities,
|
|
492
497
|
reloadPages: flags["reload-pages"]
|
|
493
498
|
}),
|
|
494
499
|
() => reviseConflictActions(artifact)
|
|
@@ -1183,7 +1183,6 @@ async function reviseArtifact(input) {
|
|
|
1183
1183
|
if (!summary) {
|
|
1184
1184
|
throw usageError("Missing --summary for revision.");
|
|
1185
1185
|
}
|
|
1186
|
-
const capabilities = await parseCapabilitiesFlag(input.capabilities);
|
|
1187
1186
|
const type = parseTypeFlag(input.type);
|
|
1188
1187
|
const credentials = await resolveCredentials(input);
|
|
1189
1188
|
const explicitBase = input.base;
|
|
@@ -1193,7 +1192,6 @@ async function reviseArtifact(input) {
|
|
|
1193
1192
|
baseRevisionId,
|
|
1194
1193
|
source: "cli",
|
|
1195
1194
|
summary,
|
|
1196
|
-
capabilities,
|
|
1197
1195
|
reloadPages: input.reloadPages || void 0,
|
|
1198
1196
|
type
|
|
1199
1197
|
};
|
package/src/lib/cli.js
CHANGED
package/src/lib/commands.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
commandTree,
|
|
5
5
|
getCliHelp,
|
|
6
6
|
valueFlags
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-P4O6TXMP.js";
|
|
8
8
|
import "./chunk-I5P3FLKO.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-XTAKEL34.js";
|
|
10
10
|
import "./chunk-43WVFZLO.js";
|
|
11
11
|
import "./chunk-JYMG2Y6C.js";
|
|
12
12
|
import "./chunk-2LRPXCLL.js";
|