@artis-lab/cli 0.14.0 → 0.16.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 (41) hide show
  1. package/README.md +28 -21
  2. package/package.json +3 -7
  3. package/src/bin.js +13 -4
  4. package/src/lib/app.js +13 -4
  5. package/src/lib/chunk-2GXGXTAO.js +1229 -0
  6. package/src/lib/{chunk-CT5TD6L2.js → chunk-2LRPXCLL.js} +24 -47
  7. package/src/lib/chunk-4O5BCFCD.js +60 -0
  8. package/src/lib/chunk-6PK46UOP.js +1804 -0
  9. package/src/lib/{chunk-MEPQKMK5.js → chunk-FSJVBXCW.js} +4 -32
  10. package/src/lib/{chunk-H32QAUSA.js → chunk-HUWOFEEU.js} +7 -0
  11. package/src/lib/chunk-I5P3FLKO.js +929 -0
  12. package/src/lib/chunk-IKQ5U3DH.js +146 -0
  13. package/src/lib/chunk-XZYT3B5O.js +113 -0
  14. package/src/lib/cli.js +87 -61
  15. package/src/lib/commands.js +25 -0
  16. package/src/lib/exit-codes.js +5 -3
  17. package/src/lib/files.js +3 -2
  18. package/src/lib/next-actions.js +12 -5
  19. package/src/lib/skill-install.js +9 -4
  20. package/src/lib/verify.js +2 -3
  21. package/src/bin.d.ts +0 -2
  22. package/src/index.d.ts +0 -1
  23. package/src/index.js +0 -76
  24. package/src/lib/app.d.ts +0 -3
  25. package/src/lib/args.d.ts +0 -4
  26. package/src/lib/args.js +0 -12
  27. package/src/lib/chunk-CCCATRMP.js +0 -591
  28. package/src/lib/chunk-KJV7R7DE.js +0 -82
  29. package/src/lib/chunk-PG7WDW5F.js +0 -2420
  30. package/src/lib/chunk-Q5KBGVKT.js +0 -155
  31. package/src/lib/chunk-QZFIUZXT.js +0 -10954
  32. package/src/lib/cli.d.ts +0 -147
  33. package/src/lib/config.d.ts +0 -50
  34. package/src/lib/exit-codes.d.ts +0 -28
  35. package/src/lib/files.d.ts +0 -19
  36. package/src/lib/next-actions.d.ts +0 -13
  37. package/src/lib/oauth.d.ts +0 -45
  38. package/src/lib/revision-bases.d.ts +0 -9
  39. package/src/lib/skill-install.d.ts +0 -50
  40. package/src/lib/verify.d.ts +0 -152
  41. package/src/lib/version.d.ts +0 -9
@@ -0,0 +1,146 @@
1
+ import {
2
+ exitCodes
3
+ } from "./chunk-HUWOFEEU.js";
4
+
5
+ // packages/cli/src/lib/next-actions.ts
6
+ function action(id, description, argv, kind = "suggestion", effect = "read") {
7
+ return { id, description, argv, kind, effect };
8
+ }
9
+ function publishedActions(artifactId) {
10
+ return [
11
+ action("read-feedback", "Read review feedback", [
12
+ "artifact",
13
+ "feedback",
14
+ artifactId
15
+ ])
16
+ ];
17
+ }
18
+ function feedbackActions(artifactId, cursor, openThreads) {
19
+ if (openThreads > 0) {
20
+ return [
21
+ action("read-source", "List the current revision files before editing", [
22
+ "artifact",
23
+ "files",
24
+ artifactId
25
+ ])
26
+ ];
27
+ }
28
+ if (cursor !== void 0 && /^\d+$/.test(String(cursor))) {
29
+ return [
30
+ action("watch-feedback", "Wait up to 30s for new feedback", [
31
+ "watch",
32
+ artifactId,
33
+ "--since",
34
+ String(cursor),
35
+ "--once",
36
+ "--timeout",
37
+ "30s"
38
+ ])
39
+ ];
40
+ }
41
+ return [];
42
+ }
43
+ function reviseConflictActions(artifact) {
44
+ return [
45
+ action(
46
+ "read-latest",
47
+ "Inspect latest files, download to a new path and reconcile before revising",
48
+ ["artifact", "files", artifact],
49
+ "recovery"
50
+ )
51
+ ];
52
+ }
53
+ function signInActions(host) {
54
+ return [
55
+ action(
56
+ "sign-in",
57
+ "Sign in to this server in the browser",
58
+ host ? ["login", "--host", host] : ["login"],
59
+ "recovery",
60
+ "write"
61
+ )
62
+ ];
63
+ }
64
+ function dataConflictActions(artifact, path) {
65
+ return [
66
+ action(
67
+ "read-latest",
68
+ "Re-read the document and reapply the intended change before retrying",
69
+ ["data", "get", artifact, path],
70
+ "recovery"
71
+ )
72
+ ];
73
+ }
74
+ function recoveryActions(code, route) {
75
+ const help = (id, description, argv) => action(id, description, [...argv, "-h"], "recovery");
76
+ switch (code) {
77
+ case exitCodes.usage:
78
+ return [help("usage", "Read the relevant command help", route)];
79
+ case exitCodes.auth:
80
+ return [
81
+ action(
82
+ "check-identity",
83
+ "Check identity and permissions; login if credentials expired",
84
+ ["whoami"],
85
+ "recovery"
86
+ )
87
+ ];
88
+ case exitCodes.revisionConflict:
89
+ return [
90
+ help(
91
+ "read-latest",
92
+ "Re-read and reconcile the latest state before retrying",
93
+ route
94
+ )
95
+ ];
96
+ case exitCodes.notFound:
97
+ return [
98
+ help(
99
+ "find-resource",
100
+ "Check the resource ID and command arguments",
101
+ route
102
+ )
103
+ ];
104
+ case exitCodes.verifyFailed:
105
+ return [
106
+ help("verify", "Fix reported findings before publishing or revising", [
107
+ "verify"
108
+ ])
109
+ ];
110
+ default:
111
+ return [];
112
+ }
113
+ }
114
+ function displayArg(arg) {
115
+ return /^[a-zA-Z0-9_./:@%+=,-]+$/.test(arg) ? arg : "'" + arg.replace(/'/g, "'\\''") + "'";
116
+ }
117
+ function renderNextActions(actions) {
118
+ for (const item of actions) {
119
+ console.error(
120
+ `Next: artis ${item.argv.map(displayArg).join(" ")} \u2014 ${item.description}`
121
+ );
122
+ }
123
+ }
124
+ function printJson(value) {
125
+ console.log(JSON.stringify(value, null, 2));
126
+ }
127
+ function emit(flags, { data, actions = [], text }) {
128
+ if (flags.json) {
129
+ printJson(flags.next ? { data, nextActions: actions } : data);
130
+ return;
131
+ }
132
+ text?.();
133
+ renderNextActions(actions);
134
+ }
135
+
136
+ export {
137
+ publishedActions,
138
+ feedbackActions,
139
+ reviseConflictActions,
140
+ signInActions,
141
+ dataConflictActions,
142
+ recoveryActions,
143
+ renderNextActions,
144
+ printJson,
145
+ emit
146
+ };
@@ -0,0 +1,113 @@
1
+ import {
2
+ commandRoutes,
3
+ commandTree,
4
+ getCliHelp,
5
+ valueFlags
6
+ } from "./chunk-2GXGXTAO.js";
7
+ import {
8
+ recoveryActions,
9
+ renderNextActions
10
+ } from "./chunk-IKQ5U3DH.js";
11
+ import {
12
+ CliError,
13
+ exitCodeFor,
14
+ exitCodes,
15
+ usageError
16
+ } from "./chunk-HUWOFEEU.js";
17
+
18
+ // packages/cli/src/lib/app.ts
19
+ import { buildApplication, run } from "@stricli/core";
20
+ var app = buildApplication(commandTree, {
21
+ name: "artis",
22
+ documentation: { onlyRequiredInUsageLine: true, disableAnsiColor: true }
23
+ });
24
+ function protectFlagValues(inputs) {
25
+ const argv = [];
26
+ for (let i = 0; i < inputs.length; i += 1) {
27
+ const input = inputs[i];
28
+ const separator = input.indexOf("=");
29
+ const name = separator < 0 ? input : input.slice(0, separator);
30
+ if (!valueFlags.has(name)) {
31
+ argv.push(input);
32
+ continue;
33
+ }
34
+ argv.push(name);
35
+ if (separator >= 0) {
36
+ argv.push(" " + input.slice(separator + 1));
37
+ } else if (i + 1 < inputs.length) {
38
+ i += 1;
39
+ argv.push(" " + inputs[i]);
40
+ }
41
+ }
42
+ return argv;
43
+ }
44
+ function recognizedRoute(inputs) {
45
+ const [first, second] = inputs;
46
+ if (commandRoutes.has(`${first} ${second}`)) return [first, second];
47
+ if (commandRoutes.has(first) || [...commandRoutes].some((route) => route.startsWith(`${first} `))) {
48
+ return [first];
49
+ }
50
+ return [];
51
+ }
52
+ async function runAgentCli(args = process.argv.slice(2)) {
53
+ if (args.length === 2 && args[0] === "help" && args[1] === "--all") {
54
+ console.log(getCliHelp());
55
+ return;
56
+ }
57
+ if (args.length === 1 && commandTree.getRoutingTargetForInput(args[0])?.kind === commandTree.kind) {
58
+ throw usageError(`Missing subcommand. Run artis ${args[0]} -h.`);
59
+ }
60
+ const inputs = args[0] === "help" ? [...protectFlagValues(args.slice(1)), "--help"] : args.length === 1 && (args[0] === "-v" || args[0] === "--version") ? ["version"] : protectFlagValues(args);
61
+ let diagnostic = "";
62
+ let stdout = "";
63
+ let failure;
64
+ let invoked = false;
65
+ const runtime = {
66
+ // Stricli writes only help and its own errors here; commands write to
67
+ // the real stdout, so streams and raw content are never buffered.
68
+ stdout: {
69
+ write: (message) => {
70
+ stdout += message;
71
+ }
72
+ },
73
+ stderr: {
74
+ write: (message) => {
75
+ diagnostic += message;
76
+ }
77
+ },
78
+ env: process.env,
79
+ // Stricli only assigns its exit code when the existing value is nullish.
80
+ exitCode: void 0
81
+ };
82
+ const context = {
83
+ process: runtime,
84
+ async execute(route, handler) {
85
+ invoked = true;
86
+ try {
87
+ await handler();
88
+ } catch (error) {
89
+ failure = { error, route };
90
+ }
91
+ }
92
+ };
93
+ await run(app, inputs, context);
94
+ if (failure) {
95
+ const { error, route } = failure;
96
+ renderNextActions(
97
+ error instanceof CliError && error.recovery || recoveryActions(exitCodeFor(error), [...route])
98
+ );
99
+ throw error;
100
+ }
101
+ if (runtime.exitCode !== void 0 && runtime.exitCode !== 0) {
102
+ renderNextActions(
103
+ recoveryActions(exitCodes.usage, recognizedRoute(inputs))
104
+ );
105
+ throw usageError(diagnostic.trim() || "Invalid command. Run artis -h.");
106
+ }
107
+ if (stdout) console.log(stdout.trimEnd());
108
+ if (diagnostic && !invoked) console.error(diagnostic.trimEnd());
109
+ }
110
+
111
+ export {
112
+ runAgentCli
113
+ };
package/src/lib/cli.js CHANGED
@@ -1,76 +1,102 @@
1
1
  import {
2
+ artifactIdArg,
2
3
  assertSafeLoginUrl,
3
- assetFromCli,
4
- capabilitiesFromCli,
5
- commands,
6
- createAnnotationFromCli,
7
- dataFromCli,
8
- deleteArtifactFromCli,
9
- editAnnotationFromCli,
10
- executeArtisCommand,
11
- getArtifactFeedbackFromCli,
12
- getArtifactFilesFromCli,
13
- getArtifactFromCli,
14
- getCliHelp,
15
- guidelinesFromCli,
16
- listArtifactsFromCli,
17
- loginFromCli,
18
- parseDataCommand,
19
- publishArtifactFromCli,
20
- replyFromCli,
21
- retractAnnotationFromCli,
22
- reviseArtifactFromCli,
4
+ batchDocuments,
5
+ createAnnotation,
6
+ deleteArtifact,
7
+ deleteDocument,
8
+ describeType,
9
+ downloadAsset,
10
+ editAnnotation,
11
+ exportDocuments,
12
+ getArtifact,
13
+ getAsset,
14
+ getDataUsage,
15
+ getDocument,
16
+ listArtifactFiles,
17
+ listArtifacts,
18
+ listAssets,
19
+ listDocuments,
20
+ listTypes,
21
+ login,
22
+ prepareVerify,
23
+ publishArtifact,
24
+ readArtifactFile,
25
+ readCapabilities,
26
+ readFeedback,
27
+ readGuidelines,
28
+ readType,
29
+ readTypeReference,
30
+ removeAsset,
31
+ replyToAnnotation,
32
+ retractAnnotation,
33
+ reviseArtifact,
23
34
  runArtisCli,
24
- setArtifactVisibilityFromCli,
25
- shareArtifactFromCli,
26
- typesFromCli,
27
- verifyFromCli,
28
- watchArtifactFromCli,
29
- whoamiFromCli
30
- } from "./chunk-PG7WDW5F.js";
35
+ setArtifactVisibility,
36
+ setCapabilities,
37
+ setDocument,
38
+ shareArtifact,
39
+ updateDocument,
40
+ uploadAsset,
41
+ watchArtifact,
42
+ whoami
43
+ } from "./chunk-6PK46UOP.js";
31
44
  import "./chunk-43WVFZLO.js";
32
45
  import "./chunk-JYMG2Y6C.js";
33
46
  import {
34
- installSkillFromCli
35
- } from "./chunk-CT5TD6L2.js";
36
- import "./chunk-QZFIUZXT.js";
47
+ installSkill,
48
+ listSkillHarnesses
49
+ } from "./chunk-2LRPXCLL.js";
37
50
  import {
38
51
  artisCliVersion
39
52
  } from "./chunk-IZYFOV2K.js";
40
- import "./chunk-Q5KBGVKT.js";
41
- import "./chunk-KJV7R7DE.js";
42
53
  import "./chunk-46DMRA3V.js";
43
- import "./chunk-MEPQKMK5.js";
44
- import "./chunk-H32QAUSA.js";
54
+ import "./chunk-FSJVBXCW.js";
55
+ import "./chunk-4O5BCFCD.js";
56
+ import "./chunk-HUWOFEEU.js";
45
57
  export {
58
+ artifactIdArg,
46
59
  artisCliVersion,
47
60
  assertSafeLoginUrl,
48
- assetFromCli,
49
- capabilitiesFromCli,
50
- commands,
51
- createAnnotationFromCli,
52
- dataFromCli,
53
- deleteArtifactFromCli,
54
- editAnnotationFromCli,
55
- executeArtisCommand,
56
- getArtifactFeedbackFromCli,
57
- getArtifactFilesFromCli,
58
- getArtifactFromCli,
59
- getCliHelp,
60
- guidelinesFromCli,
61
- installSkillFromCli,
62
- listArtifactsFromCli,
63
- loginFromCli,
64
- parseDataCommand,
65
- publishArtifactFromCli,
66
- replyFromCli,
67
- retractAnnotationFromCli,
68
- reviseArtifactFromCli,
61
+ batchDocuments,
62
+ createAnnotation,
63
+ deleteArtifact,
64
+ deleteDocument,
65
+ describeType,
66
+ downloadAsset,
67
+ editAnnotation,
68
+ exportDocuments,
69
+ getArtifact,
70
+ getAsset,
71
+ getDataUsage,
72
+ getDocument,
73
+ installSkill,
74
+ listArtifactFiles,
75
+ listArtifacts,
76
+ listAssets,
77
+ listDocuments,
78
+ listSkillHarnesses,
79
+ listTypes,
80
+ login,
81
+ prepareVerify,
82
+ publishArtifact,
83
+ readArtifactFile,
84
+ readCapabilities,
85
+ readFeedback,
86
+ readGuidelines,
87
+ readType,
88
+ readTypeReference,
89
+ removeAsset,
90
+ replyToAnnotation,
91
+ retractAnnotation,
92
+ reviseArtifact,
69
93
  runArtisCli,
70
- setArtifactVisibilityFromCli,
71
- shareArtifactFromCli,
72
- typesFromCli,
73
- verifyFromCli,
74
- watchArtifactFromCli,
75
- whoamiFromCli
94
+ setArtifactVisibility,
95
+ setCapabilities,
96
+ setDocument,
97
+ shareArtifact,
98
+ updateDocument,
99
+ uploadAsset,
100
+ watchArtifact,
101
+ whoami
76
102
  };
@@ -0,0 +1,25 @@
1
+ import {
2
+ commandEntries,
3
+ commandRoutes,
4
+ commandTree,
5
+ getCliHelp,
6
+ valueFlags
7
+ } from "./chunk-2GXGXTAO.js";
8
+ import "./chunk-I5P3FLKO.js";
9
+ import "./chunk-6PK46UOP.js";
10
+ import "./chunk-43WVFZLO.js";
11
+ import "./chunk-JYMG2Y6C.js";
12
+ import "./chunk-2LRPXCLL.js";
13
+ import "./chunk-IZYFOV2K.js";
14
+ import "./chunk-46DMRA3V.js";
15
+ import "./chunk-FSJVBXCW.js";
16
+ import "./chunk-4O5BCFCD.js";
17
+ import "./chunk-IKQ5U3DH.js";
18
+ import "./chunk-HUWOFEEU.js";
19
+ export {
20
+ commandEntries,
21
+ commandRoutes,
22
+ commandTree,
23
+ getCliHelp,
24
+ valueFlags
25
+ };
@@ -3,12 +3,14 @@ import {
3
3
  exitCodeFor,
4
4
  exitCodeForResponse,
5
5
  exitCodes,
6
- usageError
7
- } from "./chunk-H32QAUSA.js";
6
+ usageError,
7
+ withRecovery
8
+ } from "./chunk-HUWOFEEU.js";
8
9
  export {
9
10
  CliError,
10
11
  exitCodeFor,
11
12
  exitCodeForResponse,
12
13
  exitCodes,
13
- usageError
14
+ usageError,
15
+ withRecovery
14
16
  };
package/src/lib/files.js CHANGED
@@ -3,8 +3,9 @@ import {
3
3
  readFilesDir,
4
4
  sha256Hex,
5
5
  writeFilesDir
6
- } from "./chunk-MEPQKMK5.js";
7
- import "./chunk-H32QAUSA.js";
6
+ } from "./chunk-FSJVBXCW.js";
7
+ import "./chunk-4O5BCFCD.js";
8
+ import "./chunk-HUWOFEEU.js";
8
9
  export {
9
10
  changedFiles,
10
11
  readFilesDir,
@@ -1,16 +1,23 @@
1
1
  import {
2
+ dataConflictActions,
3
+ emit,
2
4
  feedbackActions,
5
+ printJson,
3
6
  publishedActions,
4
7
  recoveryActions,
5
8
  renderNextActions,
6
- renderResult
7
- } from "./chunk-Q5KBGVKT.js";
8
- import "./chunk-KJV7R7DE.js";
9
- import "./chunk-H32QAUSA.js";
9
+ reviseConflictActions,
10
+ signInActions
11
+ } from "./chunk-IKQ5U3DH.js";
12
+ import "./chunk-HUWOFEEU.js";
10
13
  export {
14
+ dataConflictActions,
15
+ emit,
11
16
  feedbackActions,
17
+ printJson,
12
18
  publishedActions,
13
19
  recoveryActions,
14
20
  renderNextActions,
15
- renderResult
21
+ reviseConflictActions,
22
+ signInActions
16
23
  };
@@ -1,15 +1,20 @@
1
1
  import {
2
2
  ARTIS_SKILL_MD,
3
3
  getSkillHarnessReports,
4
- installSkillFromCli,
4
+ installSkill,
5
+ listSkillHarnesses,
5
6
  parseHarnessIds,
7
+ printHarnessTable,
8
+ printInstallResults,
6
9
  skillPathFor
7
- } from "./chunk-CT5TD6L2.js";
8
- import "./chunk-KJV7R7DE.js";
10
+ } from "./chunk-2LRPXCLL.js";
9
11
  export {
10
12
  ARTIS_SKILL_MD,
11
13
  getSkillHarnessReports,
12
- installSkillFromCli,
14
+ installSkill,
15
+ listSkillHarnesses,
13
16
  parseHarnessIds,
17
+ printHarnessTable,
18
+ printInstallResults,
14
19
  skillPathFor
15
20
  };
package/src/lib/verify.js CHANGED
@@ -11,9 +11,9 @@ import {
11
11
  verifyFiles,
12
12
  verifyHtml,
13
13
  verifyThemes,
14
- verifyTypes,
15
14
  verifyWidths
16
- } from "./chunk-QZFIUZXT.js";
15
+ } from "./chunk-I5P3FLKO.js";
16
+ import "./chunk-4O5BCFCD.js";
17
17
  export {
18
18
  GOOGLE_FONTS_FONT_ORIGIN,
19
19
  GOOGLE_FONTS_STYLE_ORIGIN,
@@ -27,6 +27,5 @@ export {
27
27
  verifyFiles,
28
28
  verifyHtml,
29
29
  verifyThemes,
30
- verifyTypes,
31
30
  verifyWidths
32
31
  };
package/src/bin.d.ts DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
package/src/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './lib/cli.js';
package/src/index.js DELETED
@@ -1,76 +0,0 @@
1
- import {
2
- assertSafeLoginUrl,
3
- assetFromCli,
4
- capabilitiesFromCli,
5
- commands,
6
- createAnnotationFromCli,
7
- dataFromCli,
8
- deleteArtifactFromCli,
9
- editAnnotationFromCli,
10
- executeArtisCommand,
11
- getArtifactFeedbackFromCli,
12
- getArtifactFilesFromCli,
13
- getArtifactFromCli,
14
- getCliHelp,
15
- guidelinesFromCli,
16
- listArtifactsFromCli,
17
- loginFromCli,
18
- parseDataCommand,
19
- publishArtifactFromCli,
20
- replyFromCli,
21
- retractAnnotationFromCli,
22
- reviseArtifactFromCli,
23
- runArtisCli,
24
- setArtifactVisibilityFromCli,
25
- shareArtifactFromCli,
26
- typesFromCli,
27
- verifyFromCli,
28
- watchArtifactFromCli,
29
- whoamiFromCli
30
- } from "./lib/chunk-PG7WDW5F.js";
31
- import "./lib/chunk-43WVFZLO.js";
32
- import "./lib/chunk-JYMG2Y6C.js";
33
- import {
34
- installSkillFromCli
35
- } from "./lib/chunk-CT5TD6L2.js";
36
- import "./lib/chunk-QZFIUZXT.js";
37
- import {
38
- artisCliVersion
39
- } from "./lib/chunk-IZYFOV2K.js";
40
- import "./lib/chunk-Q5KBGVKT.js";
41
- import "./lib/chunk-KJV7R7DE.js";
42
- import "./lib/chunk-46DMRA3V.js";
43
- import "./lib/chunk-MEPQKMK5.js";
44
- import "./lib/chunk-H32QAUSA.js";
45
- export {
46
- artisCliVersion,
47
- assertSafeLoginUrl,
48
- assetFromCli,
49
- capabilitiesFromCli,
50
- commands,
51
- createAnnotationFromCli,
52
- dataFromCli,
53
- deleteArtifactFromCli,
54
- editAnnotationFromCli,
55
- executeArtisCommand,
56
- getArtifactFeedbackFromCli,
57
- getArtifactFilesFromCli,
58
- getArtifactFromCli,
59
- getCliHelp,
60
- guidelinesFromCli,
61
- installSkillFromCli,
62
- listArtifactsFromCli,
63
- loginFromCli,
64
- parseDataCommand,
65
- publishArtifactFromCli,
66
- replyFromCli,
67
- retractAnnotationFromCli,
68
- reviseArtifactFromCli,
69
- runArtisCli,
70
- setArtifactVisibilityFromCli,
71
- shareArtifactFromCli,
72
- typesFromCli,
73
- verifyFromCli,
74
- watchArtifactFromCli,
75
- whoamiFromCli
76
- };
package/src/lib/app.d.ts DELETED
@@ -1,3 +0,0 @@
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/args.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export declare const valueFlags: Set<string>;
2
- export declare function parseFlagValue(args: string[], name: string): string | undefined;
3
- export declare function hasFlag(args: string[], name: string): boolean;
4
- export declare function collectFlagValues(args: string[], name: string): string[];
package/src/lib/args.js DELETED
@@ -1,12 +0,0 @@
1
- import {
2
- collectFlagValues,
3
- hasFlag,
4
- parseFlagValue,
5
- valueFlags
6
- } from "./chunk-KJV7R7DE.js";
7
- export {
8
- collectFlagValues,
9
- hasFlag,
10
- parseFlagValue,
11
- valueFlags
12
- };