@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artis-lab/cli",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "Agent-first CLI for creating, sharing and maintaining artifacts on Artis, an open-source, self-hostable place for what AI agents build.",
5
5
  "type": "module",
6
6
  "bin": {
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-XZYT3B5O.js";
5
- import "./lib/chunk-2GXGXTAO.js";
4
+ } from "./lib/chunk-T24DNA2K.js";
5
+ import "./lib/chunk-P4O6TXMP.js";
6
6
  import "./lib/chunk-I5P3FLKO.js";
7
- import "./lib/chunk-6PK46UOP.js";
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-XZYT3B5O.js";
4
- import "./chunk-2GXGXTAO.js";
3
+ } from "./chunk-T24DNA2K.js";
4
+ import "./chunk-P4O6TXMP.js";
5
5
  import "./chunk-I5P3FLKO.js";
6
- import "./chunk-6PK46UOP.js";
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-6PK46UOP.js";
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)
@@ -3,7 +3,7 @@ import {
3
3
  commandTree,
4
4
  getCliHelp,
5
5
  valueFlags
6
- } from "./chunk-2GXGXTAO.js";
6
+ } from "./chunk-P4O6TXMP.js";
7
7
  import {
8
8
  recoveryActions,
9
9
  renderNextActions
@@ -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
@@ -40,7 +40,7 @@ import {
40
40
  uploadAsset,
41
41
  watchArtifact,
42
42
  whoami
43
- } from "./chunk-6PK46UOP.js";
43
+ } from "./chunk-XTAKEL34.js";
44
44
  import "./chunk-43WVFZLO.js";
45
45
  import "./chunk-JYMG2Y6C.js";
46
46
  import {
@@ -4,9 +4,9 @@ import {
4
4
  commandTree,
5
5
  getCliHelp,
6
6
  valueFlags
7
- } from "./chunk-2GXGXTAO.js";
7
+ } from "./chunk-P4O6TXMP.js";
8
8
  import "./chunk-I5P3FLKO.js";
9
- import "./chunk-6PK46UOP.js";
9
+ import "./chunk-XTAKEL34.js";
10
10
  import "./chunk-43WVFZLO.js";
11
11
  import "./chunk-JYMG2Y6C.js";
12
12
  import "./chunk-2LRPXCLL.js";