@artis-lab/cli 0.13.0 → 0.14.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/README.md CHANGED
@@ -96,7 +96,23 @@ and dark themes, and reports every slide whose content runs past its
96
96
  1920×1080 (4:3: 1440×1080) canvas. The server never runs these checks, so
97
97
  run `verify` before every publish and revise.
98
98
 
99
- Run `artis help` for the full command and flag reference.
99
+ Discover commands progressively; help is local and never authenticates:
100
+
101
+ ```bash
102
+ artis -h
103
+ artis artifact -h
104
+ artis artifact files -h
105
+ artis help data set
106
+ artis help --all # full legacy reference
107
+ ```
108
+
109
+ The CLI prints concise suggested next actions to stderr after publish, revise
110
+ and feedback when applicable (e.g. inspect files when there are open review
111
+ threads, or watch from the returned cursor when there are none). They are optional, not executed automatically. Existing
112
+ `--json` responses are unchanged. Use `--json --next` on those commands
113
+ for a structured `{ data, nextActions }` response; each action has an
114
+ `argv` array, description, kind and effect. Error recovery hints go to stderr,
115
+ and raw file output and watch event streams remain untouched.
100
116
 
101
117
  ## Install the agent skill
102
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artis-lab/cli",
3
- "version": "0.13.0",
3
+ "version": "0.14.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
  "main": "./src/index.js",
@@ -42,6 +42,9 @@
42
42
  "artifacts",
43
43
  "review"
44
44
  ],
45
+ "dependencies": {
46
+ "@stricli/core": "^1.3.0"
47
+ },
45
48
  "optionalDependencies": {
46
49
  "playwright-core": "^1.64.1"
47
50
  },
package/src/bin.js CHANGED
@@ -1,21 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- runArtisCli
4
- } from "./lib/chunk-2M77TQDV.js";
5
- import "./lib/chunk-JYMG2Y6C.js";
6
- import "./lib/chunk-JYLA7E3H.js";
7
- import "./lib/chunk-QZFIUZXT.js";
8
- import "./lib/chunk-IZYFOV2K.js";
9
- import "./lib/chunk-U3ZF6SRR.js";
10
- import "./lib/chunk-46DMRA3V.js";
11
- import "./lib/chunk-MEPQKMK5.js";
3
+ runAgentCli
4
+ } from "./lib/chunk-CCCATRMP.js";
5
+ import "./lib/chunk-Q5KBGVKT.js";
6
+ import "./lib/chunk-KJV7R7DE.js";
12
7
  import {
13
8
  exitCodeFor
14
9
  } from "./lib/chunk-H32QAUSA.js";
15
- import "./lib/chunk-43WVFZLO.js";
16
10
 
17
11
  // packages/cli/src/bin.ts
18
- runArtisCli().catch((error) => {
12
+ runAgentCli().catch((error) => {
19
13
  const message = error instanceof Error ? error.message : String(error);
20
14
  if (message) {
21
15
  console.error(message);
package/src/index.js CHANGED
@@ -7,6 +7,7 @@ import {
7
7
  dataFromCli,
8
8
  deleteArtifactFromCli,
9
9
  editAnnotationFromCli,
10
+ executeArtisCommand,
10
11
  getArtifactFeedbackFromCli,
11
12
  getArtifactFilesFromCli,
12
13
  getArtifactFromCli,
@@ -26,20 +27,21 @@ import {
26
27
  verifyFromCli,
27
28
  watchArtifactFromCli,
28
29
  whoamiFromCli
29
- } from "./lib/chunk-2M77TQDV.js";
30
+ } from "./lib/chunk-PG7WDW5F.js";
31
+ import "./lib/chunk-43WVFZLO.js";
30
32
  import "./lib/chunk-JYMG2Y6C.js";
31
33
  import {
32
34
  installSkillFromCli
33
- } from "./lib/chunk-JYLA7E3H.js";
35
+ } from "./lib/chunk-CT5TD6L2.js";
34
36
  import "./lib/chunk-QZFIUZXT.js";
35
37
  import {
36
38
  artisCliVersion
37
39
  } from "./lib/chunk-IZYFOV2K.js";
38
- import "./lib/chunk-U3ZF6SRR.js";
40
+ import "./lib/chunk-Q5KBGVKT.js";
41
+ import "./lib/chunk-KJV7R7DE.js";
39
42
  import "./lib/chunk-46DMRA3V.js";
40
43
  import "./lib/chunk-MEPQKMK5.js";
41
44
  import "./lib/chunk-H32QAUSA.js";
42
- import "./lib/chunk-43WVFZLO.js";
43
45
  export {
44
46
  artisCliVersion,
45
47
  assertSafeLoginUrl,
@@ -50,6 +52,7 @@ export {
50
52
  dataFromCli,
51
53
  deleteArtifactFromCli,
52
54
  editAnnotationFromCli,
55
+ executeArtisCommand,
53
56
  getArtifactFeedbackFromCli,
54
57
  getArtifactFilesFromCli,
55
58
  getArtifactFromCli,
@@ -0,0 +1,3 @@
1
+ /** Public executable entry. A private process facade lets us preserve Artis
2
+ * exit codes instead of exposing framework-specific exit codes. */
3
+ export declare function runAgentCli(args?: string[]): Promise<void>;
package/src/lib/app.js ADDED
@@ -0,0 +1,9 @@
1
+ import {
2
+ runAgentCli
3
+ } from "./chunk-CCCATRMP.js";
4
+ import "./chunk-Q5KBGVKT.js";
5
+ import "./chunk-KJV7R7DE.js";
6
+ import "./chunk-H32QAUSA.js";
7
+ export {
8
+ runAgentCli
9
+ };
package/src/lib/args.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export declare const valueFlags: Set<string>;
1
2
  export declare function parseFlagValue(args: string[], name: string): string | undefined;
2
3
  export declare function hasFlag(args: string[], name: string): boolean;
3
4
  export declare function collectFlagValues(args: string[], name: string): string[];
package/src/lib/args.js CHANGED
@@ -1,10 +1,12 @@
1
1
  import {
2
2
  collectFlagValues,
3
3
  hasFlag,
4
- parseFlagValue
5
- } from "./chunk-U3ZF6SRR.js";
4
+ parseFlagValue,
5
+ valueFlags
6
+ } from "./chunk-KJV7R7DE.js";
6
7
  export {
7
8
  collectFlagValues,
8
9
  hasFlag,
9
- parseFlagValue
10
+ parseFlagValue,
11
+ valueFlags
10
12
  };