@agency-tbd/cli 0.0.0-stage → 0.2.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 +179 -2
- package/dist/agent.js +154 -0
- package/dist/args.js +40 -0
- package/dist/auth.js +102 -0
- package/dist/catalog.js +95 -0
- package/dist/commands.js +101 -0
- package/dist/config.js +93 -0
- package/dist/errors.js +92 -0
- package/dist/execute.js +110 -0
- package/dist/files.js +83 -0
- package/dist/help.js +112 -0
- package/dist/input.js +53 -0
- package/dist/main.js +88 -0
- package/dist/output.js +33 -0
- package/dist/schema.js +36 -0
- package/dist/support.js +116 -0
- package/dist/transport.js +48 -0
- package/dist/version.js +11 -0
- package/package.json +39 -3
package/dist/main.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { agentGuide } from "./agent.js";
|
|
3
|
+
import { parse, positive } from "./args.js";
|
|
4
|
+
import { login } from "./auth.js";
|
|
5
|
+
import { resources, httpRoutes } from "./catalog.js";
|
|
6
|
+
import { executeCommand } from "./commands.js";
|
|
7
|
+
import { baseUrl, loadToken, selectedOrigin } from "./config.js";
|
|
8
|
+
import { CliError, failure, isFailedResult } from "./errors.js";
|
|
9
|
+
import { commandHelp, help, skill } from "./help.js";
|
|
10
|
+
import { json } from "./input.js";
|
|
11
|
+
import { offlineSupport } from "./support.js";
|
|
12
|
+
import { cliVersion } from "./version.js";
|
|
13
|
+
async function offlineCommand(parsed) {
|
|
14
|
+
const { values, positionals } = parsed;
|
|
15
|
+
const [command, subcommand] = positionals;
|
|
16
|
+
if (values.version)
|
|
17
|
+
return { handled: true, result: { version: cliVersion } };
|
|
18
|
+
const topic = command === "help"
|
|
19
|
+
? subcommand
|
|
20
|
+
: values.help || (command === "support" && !subcommand)
|
|
21
|
+
? command
|
|
22
|
+
: undefined;
|
|
23
|
+
if (topic && commandHelp[topic] && (command !== "help" || positionals.length === 2)) {
|
|
24
|
+
if (values.json)
|
|
25
|
+
return { handled: true, result: { command: topic, usage: commandHelp[topic] } };
|
|
26
|
+
process.stdout.write(`${commandHelp[topic]}\n`);
|
|
27
|
+
return { handled: true };
|
|
28
|
+
}
|
|
29
|
+
if (command === "skill" || command === "guide") {
|
|
30
|
+
if (values.json)
|
|
31
|
+
return { handled: true, result: agentGuide };
|
|
32
|
+
process.stdout.write(skill);
|
|
33
|
+
return { handled: true };
|
|
34
|
+
}
|
|
35
|
+
if (!command ||
|
|
36
|
+
(values.help && !subcommand && !resources.some((resource) => resource === command)) ||
|
|
37
|
+
(command === "help" && !subcommand)) {
|
|
38
|
+
if (values.json)
|
|
39
|
+
return { handled: true, result: { usage: help, agent: agentGuide } };
|
|
40
|
+
process.stdout.write(help);
|
|
41
|
+
return { handled: true };
|
|
42
|
+
}
|
|
43
|
+
if (command === "resources")
|
|
44
|
+
return {
|
|
45
|
+
handled: true,
|
|
46
|
+
result: {
|
|
47
|
+
resources: resources.filter((item) => !values.search || item.includes(values.search)),
|
|
48
|
+
httpRoutes: httpRoutes.filter((item) => !values.search || item.includes(values.search)),
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
if (command === "support" && ["draft", "preview"].includes(subcommand ?? ""))
|
|
52
|
+
return { handled: true, result: await offlineSupport(parsed) };
|
|
53
|
+
return { handled: false };
|
|
54
|
+
}
|
|
55
|
+
async function dispatch() {
|
|
56
|
+
const parsed = parse(process.argv.slice(2));
|
|
57
|
+
const offline = await offlineCommand(parsed);
|
|
58
|
+
if (offline.handled)
|
|
59
|
+
return offline.result;
|
|
60
|
+
const { values, positionals: [command, subcommand], } = parsed;
|
|
61
|
+
const configuredUrl = values.url ?? process.env["INFLUMODE_URL"] ?? (await selectedOrigin());
|
|
62
|
+
if (!configuredUrl)
|
|
63
|
+
throw new CliError("SERVER_REQUIRED", "Set INFLUMODE_URL or pass --url with your tenant application origin", 2);
|
|
64
|
+
const origin = baseUrl(configuredUrl);
|
|
65
|
+
if (command === "auth" && subcommand === "login")
|
|
66
|
+
return login(origin, values["no-browser"] ?? false);
|
|
67
|
+
return executeCommand({
|
|
68
|
+
origin,
|
|
69
|
+
token: await loadToken(origin),
|
|
70
|
+
timeout: positive(values.timeout, 30_000),
|
|
71
|
+
...(values["sponsor-tenant"] ? { sponsorshipTenantId: values["sponsor-tenant"] } : {}),
|
|
72
|
+
}, parsed);
|
|
73
|
+
}
|
|
74
|
+
try {
|
|
75
|
+
const result = await dispatch();
|
|
76
|
+
if (result !== undefined) {
|
|
77
|
+
const ok = !isFailedResult(result);
|
|
78
|
+
process.stdout.write(`${json({ ok, data: result })}\n`);
|
|
79
|
+
if (!ok)
|
|
80
|
+
process.exitCode = 1;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
catch (error) {
|
|
84
|
+
const detail = failure(error);
|
|
85
|
+
process.stderr.write(`${json({ ok: false, error: detail })}\n`);
|
|
86
|
+
process.exitCode = detail.exitCode;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=main.js.map
|
package/dist/output.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { open, stat, unlink } from "node:fs/promises";
|
|
2
|
+
import { isFailedResult } from "./errors.js";
|
|
3
|
+
import { json } from "./input.js";
|
|
4
|
+
/** Reserve the destination before making any request, so EEXIST cannot follow a successful mutation. */
|
|
5
|
+
export async function saveOutput(filename, produce) {
|
|
6
|
+
const handle = await open(filename, "wx", 0o600);
|
|
7
|
+
const owned = await handle.stat();
|
|
8
|
+
let complete = false;
|
|
9
|
+
try {
|
|
10
|
+
const value = await produce();
|
|
11
|
+
const data = value instanceof Response
|
|
12
|
+
? new Uint8Array(await value.arrayBuffer())
|
|
13
|
+
: value instanceof Blob
|
|
14
|
+
? new Uint8Array(await value.arrayBuffer())
|
|
15
|
+
: `${json(value)}\n`;
|
|
16
|
+
await handle.writeFile(data);
|
|
17
|
+
complete = true;
|
|
18
|
+
return { saved: filename, ...(isFailedResult(value) ? { ok: false, result: value } : {}) };
|
|
19
|
+
}
|
|
20
|
+
finally {
|
|
21
|
+
await handle.close();
|
|
22
|
+
if (!complete) {
|
|
23
|
+
const current = await stat(filename).catch((error) => {
|
|
24
|
+
if (error && typeof error === "object" && "code" in error && error.code === "ENOENT")
|
|
25
|
+
return null;
|
|
26
|
+
throw error;
|
|
27
|
+
});
|
|
28
|
+
if (current?.ino === owned.ino && current.dev === owned.dev)
|
|
29
|
+
await unlink(filename);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=output.js.map
|
package/dist/schema.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { resources } from "./catalog.js";
|
|
2
|
+
import { CliError } from "./errors.js";
|
|
3
|
+
import { rpc } from "./transport.js";
|
|
4
|
+
export function operationPath(resource, parts) {
|
|
5
|
+
if (!resources.includes(resource))
|
|
6
|
+
throw new CliError("UNKNOWN_RESOURCE", `Unknown resource: ${resource}. Run resources.`, 2);
|
|
7
|
+
if (!parts.length ||
|
|
8
|
+
parts.some((part) => !/^[a-zA-Z0-9_-]+$/.test(part) ||
|
|
9
|
+
["__proto__", "constructor", "prototype", "__cli"].includes(part)))
|
|
10
|
+
throw new CliError("INVALID_OPERATION", "Provide a valid operation path; run schema <resource>", 2);
|
|
11
|
+
return parts;
|
|
12
|
+
}
|
|
13
|
+
export async function describe(connection, resource, path) {
|
|
14
|
+
if (connection.sponsorshipTenantId && resource !== "sponsorships")
|
|
15
|
+
throw new CliError("INVALID_TENANT_SCOPE", "--sponsor-tenant applies only to sponsorships", 2);
|
|
16
|
+
if (connection.sponsorshipTenantId && !/^[0-9a-f-]{36}$/i.test(connection.sponsorshipTenantId))
|
|
17
|
+
throw new CliError("INVALID_TENANT_SCOPE", "Invalid sponsorship tenant identifier", 2);
|
|
18
|
+
operationPath(resource, path?.length ? path : ["schema"]);
|
|
19
|
+
const result = await rpc(connection, resource, ["__cli", "schema"], path?.length ? { path } : undefined, "GET");
|
|
20
|
+
if (!result ||
|
|
21
|
+
typeof result !== "object" ||
|
|
22
|
+
!("protocolVersion" in result) ||
|
|
23
|
+
result.protocolVersion !== 1 ||
|
|
24
|
+
!("operations" in result) ||
|
|
25
|
+
!Array.isArray(result.operations))
|
|
26
|
+
throw new CliError("INCOMPATIBLE_SERVER", "Server does not support CLI discovery v1; deploy the matching server changes", 5);
|
|
27
|
+
return result;
|
|
28
|
+
}
|
|
29
|
+
export async function resolveOperation(connection, resource, path) {
|
|
30
|
+
const result = await describe(connection, resource, operationPath(resource, path));
|
|
31
|
+
const operation = result.operations.find((item) => item.path.join(".") === path.join("."));
|
|
32
|
+
if (!operation)
|
|
33
|
+
throw new CliError("UNKNOWN_OPERATION", "Select a concrete operation from schema", 2);
|
|
34
|
+
return operation;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=schema.js.map
|
package/dist/support.js
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
import { ORPCError } from "@orpc/client";
|
|
3
|
+
import { CliError } from "./errors.js";
|
|
4
|
+
import { readJson } from "./input.js";
|
|
5
|
+
import { saveOutput } from "./output.js";
|
|
6
|
+
import { rpc } from "./transport.js";
|
|
7
|
+
import { cliVersion } from "./version.js";
|
|
8
|
+
const categories = new Set(["bug", "compatibility", "feature", "question"]);
|
|
9
|
+
const uuid = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
10
|
+
function object(value) {
|
|
11
|
+
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
12
|
+
}
|
|
13
|
+
function report(value) {
|
|
14
|
+
if (!object(value) ||
|
|
15
|
+
typeof value["category"] !== "string" ||
|
|
16
|
+
!categories.has(value["category"]) ||
|
|
17
|
+
typeof value["title"] !== "string" ||
|
|
18
|
+
value["title"].trim().length < 5 ||
|
|
19
|
+
value["title"].trim().length > 160 ||
|
|
20
|
+
/[\r\n]/.test(value["title"]) ||
|
|
21
|
+
typeof value["description"] !== "string" ||
|
|
22
|
+
value["description"].trim().length < 20 ||
|
|
23
|
+
value["description"].trim().length > 12000)
|
|
24
|
+
throw new CliError("SUPPORT_INPUT", 'Use --input with {"category":"bug|compatibility|feature|question","title":"Short summary","description":"Steps, expected and actual behavior; at least 20 characters"}. Remove passwords, tokens, cookies and private customer data.', 2);
|
|
25
|
+
return {
|
|
26
|
+
category: value["category"],
|
|
27
|
+
title: value["title"].trim(),
|
|
28
|
+
description: value["description"].trim(),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function draft(value) {
|
|
32
|
+
const text = report(value);
|
|
33
|
+
if (!object(value) ||
|
|
34
|
+
typeof value["requestId"] !== "string" ||
|
|
35
|
+
!uuid.test(value["requestId"]) ||
|
|
36
|
+
!object(value["diagnostics"]))
|
|
37
|
+
throw new CliError("SUPPORT_DRAFT_REQUIRED", "First run influmode support draft --input @report.json --output support-draft.json. Reuse that saved draft for submission and recovery.", 2);
|
|
38
|
+
return { requestId: value["requestId"], ...text, diagnostics: value["diagnostics"] };
|
|
39
|
+
}
|
|
40
|
+
function preview(value) {
|
|
41
|
+
return {
|
|
42
|
+
destination: "InfluMode team, private GitHub issue tracker",
|
|
43
|
+
report: value,
|
|
44
|
+
sent: false,
|
|
45
|
+
privacy: "Only this report, the listed runtime diagnostics and your authenticated account/tenant IDs are sent. No logs, files, environment variables or credentials are collected. Review text for private data before sharing.",
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
/** Draft and preview are offline and never need login or network access. */
|
|
49
|
+
export async function offlineSupport({ values, positionals }) {
|
|
50
|
+
const action = positionals[1];
|
|
51
|
+
if (action === "preview")
|
|
52
|
+
return preview(draft(await readJson(values.input)));
|
|
53
|
+
if (!values.output)
|
|
54
|
+
throw new CliError("SUPPORT_OUTPUT_REQUIRED", "Save a reusable draft: influmode support draft --input @report.json --output support-draft.json", 2);
|
|
55
|
+
const input = await readJson(values.input);
|
|
56
|
+
const value = {
|
|
57
|
+
requestId: randomUUID(),
|
|
58
|
+
...report(input),
|
|
59
|
+
diagnostics: {
|
|
60
|
+
cliVersion,
|
|
61
|
+
nodeVersion: process.version,
|
|
62
|
+
platform: process.platform,
|
|
63
|
+
arch: process.arch,
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
const saved = await saveOutput(values.output, () => Promise.resolve(value));
|
|
67
|
+
return {
|
|
68
|
+
...saved,
|
|
69
|
+
...preview(value),
|
|
70
|
+
next: "Show this exact report and destination to the user. After approval, run influmode support submit with this saved file as --input and --confirm. Keep this same file to recover with support status --input.",
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export async function supportCommand(connection, { values, positionals }) {
|
|
74
|
+
const [, action, reference] = positionals;
|
|
75
|
+
if (action === "info")
|
|
76
|
+
return rpc(connection, "support", ["info"], {}, "GET");
|
|
77
|
+
if (action === "list")
|
|
78
|
+
return rpc(connection, "support", ["list"], {}, "GET");
|
|
79
|
+
if (action === "status") {
|
|
80
|
+
const input = reference
|
|
81
|
+
? { reference }
|
|
82
|
+
: { requestId: draft(await readJson(values.input)).requestId };
|
|
83
|
+
return rpc(connection, "support", ["status"], input, "GET");
|
|
84
|
+
}
|
|
85
|
+
if (action !== "submit")
|
|
86
|
+
throw new CliError("USAGE", "Run influmode support --help for drafting, submitting and checking support requests.", 2);
|
|
87
|
+
const input = draft(await readJson(values.input));
|
|
88
|
+
if (values["dry-run"])
|
|
89
|
+
return {
|
|
90
|
+
...preview(input),
|
|
91
|
+
validation: await rpc(connection, "support", ["__cli", "validate"], {
|
|
92
|
+
path: ["submit"],
|
|
93
|
+
input,
|
|
94
|
+
}),
|
|
95
|
+
};
|
|
96
|
+
if (!values.confirm)
|
|
97
|
+
throw new CliError("SUPPORT_CONFIRM_REQUIRED", "Show the saved draft and destination to the user, obtain approval, then submit with --confirm. Preview with influmode support preview --input @support-draft.json.", 2);
|
|
98
|
+
try {
|
|
99
|
+
const receipt = await rpc(connection, "support", ["submit"], input);
|
|
100
|
+
return {
|
|
101
|
+
ok: object(receipt) && receipt["submitted"] === true,
|
|
102
|
+
receipt,
|
|
103
|
+
next: "Check receipt.submitted and receipt.state. Pending means delivery is uncertain, not failed. Keep your draft; use support status --input @support-draft.json to reconcile.",
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
catch (error) {
|
|
107
|
+
if (error instanceof ORPCError &&
|
|
108
|
+
["UNAUTHORIZED", "FORBIDDEN", "BAD_REQUEST", "CONFLICT"].includes(String(error.code)))
|
|
109
|
+
throw error;
|
|
110
|
+
throw new CliError("SUPPORT_SUBMISSION_UNCONFIRMED", "Submission was not confirmed. Run influmode support status with the same --input @draft file before doing anything else. Do not create a new draft or assume it failed.", 1, {
|
|
111
|
+
requestId: input.requestId,
|
|
112
|
+
cause: error instanceof Error ? error.message : "Request failed",
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=support.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
import { RPCLink } from "@orpc/client/fetch";
|
|
3
|
+
import { CliError } from "./errors.js";
|
|
4
|
+
import { cliVersion } from "./version.js";
|
|
5
|
+
export function rpc(connection, resource, path, input, method = "POST") {
|
|
6
|
+
const link = new RPCLink({
|
|
7
|
+
url: `${connection.origin}/api/v1/${resource}`,
|
|
8
|
+
method: method === "GET" ? "GET" : "POST",
|
|
9
|
+
headers: {
|
|
10
|
+
Authorization: `Bearer ${connection.token}`,
|
|
11
|
+
"x-correlation-id": connection.requestId ?? randomUUID(),
|
|
12
|
+
"x-influmode-cli-version": cliVersion,
|
|
13
|
+
...(connection.sponsorshipTenantId && resource === "sponsorships"
|
|
14
|
+
? { "x-sponsorship-tenant-id": connection.sponsorshipTenantId }
|
|
15
|
+
: {}),
|
|
16
|
+
},
|
|
17
|
+
fetch: (request, init) => fetch(request, { ...init, redirect: "error" }),
|
|
18
|
+
});
|
|
19
|
+
return link.call(path, input, { context: {}, signal: AbortSignal.timeout(connection.timeout) });
|
|
20
|
+
}
|
|
21
|
+
export function apiPath(origin, value) {
|
|
22
|
+
const url = new URL(value, origin);
|
|
23
|
+
if (url.origin !== origin ||
|
|
24
|
+
!url.pathname.startsWith("/api/") ||
|
|
25
|
+
url.username ||
|
|
26
|
+
url.password ||
|
|
27
|
+
url.hash)
|
|
28
|
+
throw new CliError("INVALID_PATH", "HTTP requests must target /api/ on the selected Influmode origin", 2);
|
|
29
|
+
return url;
|
|
30
|
+
}
|
|
31
|
+
export async function http(connection, pathname, method = "GET", body, extraHeaders = {}) {
|
|
32
|
+
const response = await fetch(apiPath(connection.origin, pathname), {
|
|
33
|
+
method,
|
|
34
|
+
headers: {
|
|
35
|
+
Authorization: `Bearer ${connection.token}`,
|
|
36
|
+
...extraHeaders,
|
|
37
|
+
"content-type": "application/json",
|
|
38
|
+
"x-correlation-id": connection.requestId ?? randomUUID(),
|
|
39
|
+
},
|
|
40
|
+
...(body === undefined ? {} : { body: JSON.stringify(body) }),
|
|
41
|
+
redirect: "manual",
|
|
42
|
+
signal: AbortSignal.timeout(connection.timeout),
|
|
43
|
+
});
|
|
44
|
+
if (!response.ok)
|
|
45
|
+
throw new CliError("HTTP_ERROR", `HTTP ${response.status}`, response.status === 401 ? 3 : response.status === 403 ? 4 : 1, { status: response.status, requestId: response.headers.get("x-request-id") });
|
|
46
|
+
return response;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=transport.js.map
|
package/dist/version.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
const INVALID_PACKAGE_VERSION = "INFLUMODE_PACKAGE_VERSION_MISSING";
|
|
3
|
+
const manifest = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
|
|
4
|
+
if (!manifest ||
|
|
5
|
+
typeof manifest !== "object" ||
|
|
6
|
+
!("version" in manifest) ||
|
|
7
|
+
typeof manifest.version !== "string" ||
|
|
8
|
+
!manifest.version)
|
|
9
|
+
throw new Error(INVALID_PACKAGE_VERSION);
|
|
10
|
+
export const cliVersion = manifest.version;
|
|
11
|
+
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agency-tbd/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Operate InfluMode from your terminal or AI assistant using your own account and permissions",
|
|
5
|
+
"homepage": "https://www.influmode.com",
|
|
6
|
+
"bin": {
|
|
7
|
+
"influmode": "dist/main.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/*.js"
|
|
11
|
+
],
|
|
12
|
+
"type": "module",
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public",
|
|
15
|
+
"registry": "https://registry.npmjs.org/"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@orpc/client": "^1.16.0"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@agency-tbd/config": "0.0.0",
|
|
22
|
+
"@orpc/server": "^1.16.0",
|
|
23
|
+
"@types/node": "24.19.2",
|
|
24
|
+
"tsx": "^4.23.15",
|
|
25
|
+
"typescript": "^6.0.3",
|
|
26
|
+
"vitest": "^5.0.5",
|
|
27
|
+
"zod": "^4.6.7"
|
|
28
|
+
},
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=24.22.1"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "tsc",
|
|
34
|
+
"catalog:check": "node scripts/catalog.mjs --check",
|
|
35
|
+
"catalog:generate": "node scripts/catalog.mjs",
|
|
36
|
+
"check-types": "tsc --noEmit",
|
|
37
|
+
"dev": "tsx src/main.ts",
|
|
38
|
+
"release:check": "pnpm check-types && pnpm test && node scripts/check-package.mjs",
|
|
39
|
+
"release:publish": "pnpm release:check && pnpm publish --access public",
|
|
40
|
+
"test": "pnpm build && vitest run --config vitest.config.ts"
|
|
41
|
+
}
|
|
6
42
|
}
|