@kubb/cli 5.5.6 → 5.6.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/dist/{Telemetry-CMXOVUKB.js → Telemetry-RBcAjNxj.js} +18 -43
- package/dist/Telemetry-RBcAjNxj.js.map +1 -0
- package/dist/{Telemetry-DDHXBdEz.cjs → Telemetry-bGdFBaGt.cjs} +27 -89
- package/dist/Telemetry-bGdFBaGt.cjs.map +1 -0
- package/dist/agent-BPIqnEl2.js +59 -0
- package/dist/agent-BPIqnEl2.js.map +1 -0
- package/dist/agent-DElUuYuy.cjs +120 -0
- package/dist/agent-DElUuYuy.cjs.map +1 -0
- package/dist/{background-DxlRE9O5.js → background-0PMj56FJ.js} +6 -5
- package/dist/background-0PMj56FJ.js.map +1 -0
- package/dist/background-BqS01QDb.js +2 -0
- package/dist/{background-Bbcc2TdN.cjs → background-R0T_7Szu.cjs} +8 -7
- package/dist/background-R0T_7Szu.cjs.map +1 -0
- package/dist/commands-BAgGrcvc.js +65 -0
- package/dist/commands-BAgGrcvc.js.map +1 -0
- package/dist/commands-Si-RFAS6.cjs +71 -0
- package/dist/commands-Si-RFAS6.cjs.map +1 -0
- package/dist/config-8Xl4yZmw.js +146 -0
- package/dist/config-8Xl4yZmw.js.map +1 -0
- package/dist/config-ByfJSj3q.cjs +164 -0
- package/dist/config-ByfJSj3q.cjs.map +1 -0
- package/dist/constants-CdxpgX3_.cjs.map +1 -1
- package/dist/constants-DHRspBTo.js.map +1 -1
- package/dist/{errors-C-wEou02.cjs → errors-CMbMAwyW.cjs} +2 -2
- package/dist/{errors-C-wEou02.cjs.map → errors-CMbMAwyW.cjs.map} +1 -1
- package/dist/index.cjs +431 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +429 -20
- package/dist/index.js.map +1 -1
- package/dist/output-B6Ondw0g.js +776 -0
- package/dist/output-B6Ondw0g.js.map +1 -0
- package/dist/output-i3s5c4Xu.cjs +878 -0
- package/dist/output-i3s5c4Xu.cjs.map +1 -0
- package/dist/run-3I2NPeXG.cjs +31 -0
- package/dist/run-3I2NPeXG.cjs.map +1 -0
- package/dist/{run-C-jBKNbI.cjs → run-BkLJ5mXn.cjs} +22 -43
- package/dist/run-BkLJ5mXn.cjs.map +1 -0
- package/dist/run-CZlkqkDc.js +30 -0
- package/dist/run-CZlkqkDc.js.map +1 -0
- package/dist/run-CmNDNEjR.js +346 -0
- package/dist/run-CmNDNEjR.js.map +1 -0
- package/dist/{run-BdTwxLCW.js → run-D5AeacqK.js} +9 -23
- package/dist/run-D5AeacqK.js.map +1 -0
- package/dist/{run-y6LRyWdS.cjs → run-D8Wz_17X.cjs} +41 -60
- package/dist/run-D8Wz_17X.cjs.map +1 -0
- package/dist/{run-Dn8HVjnM.js → run-DQoKTiGk.js} +23 -44
- package/dist/run-DQoKTiGk.js.map +1 -0
- package/dist/{run-BDaZPU-1.js → run-Dgph0WYk.js} +25 -49
- package/dist/run-Dgph0WYk.js.map +1 -0
- package/dist/run-t8nm7zcT.cjs +348 -0
- package/dist/run-t8nm7zcT.cjs.map +1 -0
- package/dist/{run-CZz_GbE4.cjs → run-yvuot2N9.cjs} +12 -26
- package/dist/run-yvuot2N9.cjs.map +1 -0
- package/dist/{snapshot-B5mc4gpC.js → snapshot-CkHXR0Nl.js} +5 -5
- package/dist/snapshot-CkHXR0Nl.js.map +1 -0
- package/dist/{snapshot-DnCxZfmM.cjs → snapshot-D4nKbwkw.cjs} +9 -9
- package/dist/snapshot-D4nKbwkw.cjs.map +1 -0
- package/dist/studioWorker.js +2 -2
- package/package.json +7 -7
- package/dist/Telemetry-CMXOVUKB.js.map +0 -1
- package/dist/Telemetry-DDHXBdEz.cjs.map +0 -1
- package/dist/agent-DiB4CRre.cjs +0 -38
- package/dist/agent-DiB4CRre.cjs.map +0 -1
- package/dist/agent-yA5vrXJB.js +0 -26
- package/dist/agent-yA5vrXJB.js.map +0 -1
- package/dist/background-Bbcc2TdN.cjs.map +0 -1
- package/dist/background-CFNncNYT.js +0 -2
- package/dist/background-DxlRE9O5.js.map +0 -1
- package/dist/connect-C9tTngda.js +0 -11
- package/dist/connect-C9tTngda.js.map +0 -1
- package/dist/connect-CJ7BhOcs.cjs +0 -11
- package/dist/connect-CJ7BhOcs.cjs.map +0 -1
- package/dist/generate-BUqZ_7GB.cjs +0 -92
- package/dist/generate-BUqZ_7GB.cjs.map +0 -1
- package/dist/generate-q2m01zRd.js +0 -92
- package/dist/generate-q2m01zRd.js.map +0 -1
- package/dist/gunshiDryRun-DdKJuVn1.js +0 -2
- package/dist/init-Ckpwkfvz.cjs +0 -58
- package/dist/init-Ckpwkfvz.cjs.map +0 -1
- package/dist/init-DukE9Uw4.js +0 -58
- package/dist/init-DukE9Uw4.js.map +0 -1
- package/dist/login-Bc19oiFE.cjs +0 -11
- package/dist/login-Bc19oiFE.cjs.map +0 -1
- package/dist/login-Do3nns0B.js +0 -11
- package/dist/login-Do3nns0B.js.map +0 -1
- package/dist/logout-BvHFvCeI.cjs +0 -16
- package/dist/logout-BvHFvCeI.cjs.map +0 -1
- package/dist/logout-COxoIMum.js +0 -16
- package/dist/logout-COxoIMum.js.map +0 -1
- package/dist/mcp-B-GxGgVr.js +0 -19
- package/dist/mcp-B-GxGgVr.js.map +0 -1
- package/dist/mcp-B3B-rE7W.cjs +0 -18
- package/dist/mcp-B3B-rE7W.cjs.map +0 -1
- package/dist/output-CVLosNZq.cjs +0 -411
- package/dist/output-CVLosNZq.cjs.map +0 -1
- package/dist/output-FDo-db-w.js +0 -321
- package/dist/output-FDo-db-w.js.map +0 -1
- package/dist/package-Ci2fcoOV.js +0 -6
- package/dist/package-Ci2fcoOV.js.map +0 -1
- package/dist/package-Do9rJ7D3.cjs +0 -11
- package/dist/package-Do9rJ7D3.cjs.map +0 -1
- package/dist/rolldown-runtime-qbf5tadS.cjs +0 -38
- package/dist/run-BDaZPU-1.js.map +0 -1
- package/dist/run-BdTwxLCW.js.map +0 -1
- package/dist/run-C-jBKNbI.cjs.map +0 -1
- package/dist/run-CAcQlhub.js +0 -295
- package/dist/run-CAcQlhub.js.map +0 -1
- package/dist/run-CSoFhDyK.cjs +0 -297
- package/dist/run-CSoFhDyK.cjs.map +0 -1
- package/dist/run-CZz_GbE4.cjs.map +0 -1
- package/dist/run-CaEbo-te.js +0 -40
- package/dist/run-CaEbo-te.js.map +0 -1
- package/dist/run-CihzLZmR.cjs +0 -41
- package/dist/run-CihzLZmR.cjs.map +0 -1
- package/dist/run-Dn8HVjnM.js.map +0 -1
- package/dist/run-y6LRyWdS.cjs.map +0 -1
- package/dist/shared-Cl-OLpNh.cjs +0 -81
- package/dist/shared-Cl-OLpNh.cjs.map +0 -1
- package/dist/shared-DaHA7QFQ.js +0 -58
- package/dist/shared-DaHA7QFQ.js.map +0 -1
- package/dist/snapshot-B5mc4gpC.js.map +0 -1
- package/dist/snapshot-DnCxZfmM.cjs.map +0 -1
- package/dist/start-B-GXO8tS.cjs +0 -12
- package/dist/start-B-GXO8tS.cjs.map +0 -1
- package/dist/start-Dbfx_8zG.js +0 -12
- package/dist/start-Dbfx_8zG.js.map +0 -1
- package/dist/status-DDajNc8w.js +0 -17
- package/dist/status-DDajNc8w.js.map +0 -1
- package/dist/status-DusS7DfO.cjs +0 -17
- package/dist/status-DusS7DfO.cjs.map +0 -1
- package/dist/stop-C5t7Yx0t.js +0 -11
- package/dist/stop-C5t7Yx0t.js.map +0 -1
- package/dist/stop-zmM3A0Re.cjs +0 -11
- package/dist/stop-zmM3A0Re.cjs.map +0 -1
- package/dist/studio--IOOl_VB.js +0 -174
- package/dist/studio--IOOl_VB.js.map +0 -1
- package/dist/studio-CJ2XhtRd.cjs +0 -174
- package/dist/studio-CJ2XhtRd.cjs.map +0 -1
- package/dist/utils-C3HZOWL_.js +0 -1107
- package/dist/utils-C3HZOWL_.js.map +0 -1
- package/dist/utils-ClRbJfxu.cjs +0 -1210
- package/dist/utils-ClRbJfxu.cjs.map +0 -1
- package/dist/validate-BcB0tFQ6.cjs +0 -19
- package/dist/validate-BcB0tFQ6.cjs.map +0 -1
- package/dist/validate-QpkCbIFJ.js +0 -20
- package/dist/validate-QpkCbIFJ.js.map +0 -1
package/dist/start-Dbfx_8zG.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import "./rolldown-runtime-CRm0XQPb.js";
|
|
2
|
-
import { n as createStudioOptions, o as run } from "./run-BDaZPU-1.js";
|
|
3
|
-
import { i as startWorker } from "./background-DxlRE9O5.js";
|
|
4
|
-
//#region src/runners/studio/start.ts
|
|
5
|
-
const runner = async ({ values }) => {
|
|
6
|
-
const options = createStudioOptions(values);
|
|
7
|
-
await run(options, () => startWorker(options));
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
10
|
-
export { runner };
|
|
11
|
-
|
|
12
|
-
//# sourceMappingURL=start-Dbfx_8zG.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"start-Dbfx_8zG.js","names":[],"sources":["../src/runners/studio/start.ts"],"sourcesContent":["import type { CommandRunner } from 'gunshi'\nimport type { definition } from '../../commands/studio/background.ts'\nimport { startWorker } from './background.ts'\nimport { createStudioOptions, run } from './run.ts'\n\nexport const runner: CommandRunner<{ args: typeof definition.args; extensions: {} }> = async ({ values }) => {\n const options = createStudioOptions(values)\n await run(options, () => startWorker(options))\n}\n"],"mappings":";;;;AAKA,MAAa,SAA0E,OAAO,EAAE,aAAa;CAC3G,MAAM,UAAU,oBAAoB,MAAM;CAC1C,MAAM,IAAI,eAAe,YAAY,OAAO,CAAC;AAC/C"}
|
package/dist/status-DDajNc8w.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import "./rolldown-runtime-CRm0XQPb.js";
|
|
2
|
-
import { n as createStudioOptions, o as run, s as status } from "./run-BDaZPU-1.js";
|
|
3
|
-
import { n as getWorkerStatus, t as getWorkerLogPath } from "./background-DxlRE9O5.js";
|
|
4
|
-
//#region src/runners/studio/status.ts
|
|
5
|
-
const runner = async ({ values }) => {
|
|
6
|
-
const options = createStudioOptions(values);
|
|
7
|
-
await run(options, async () => {
|
|
8
|
-
const worker = await getWorkerStatus();
|
|
9
|
-
console.log(`Background connection: ${worker.state}${worker.running ? ` (PID ${worker.pid})` : ""}`);
|
|
10
|
-
console.log(`Logs: ${getWorkerLogPath()}`);
|
|
11
|
-
await status(options);
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
//#endregion
|
|
15
|
-
export { runner };
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=status-DDajNc8w.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"status-DDajNc8w.js","names":[],"sources":["../src/runners/studio/status.ts"],"sourcesContent":["import type { CommandRunner } from 'gunshi'\nimport type { definition } from '../../commands/studio/status.ts'\nimport { getWorkerLogPath, getWorkerStatus } from './background.ts'\nimport { createStudioOptions, run, status } from './run.ts'\n\nexport const runner: CommandRunner<{ args: typeof definition.args; extensions: {} }> = async ({ values }) => {\n const options = createStudioOptions(values)\n await run(options, async () => {\n const worker = await getWorkerStatus()\n console.log(`Background connection: ${worker.state}${worker.running ? ` (PID ${worker.pid})` : ''}`)\n console.log(`Logs: ${getWorkerLogPath()}`)\n await status(options)\n })\n}\n"],"mappings":";;;;AAKA,MAAa,SAA0E,OAAO,EAAE,aAAa;CAC3G,MAAM,UAAU,oBAAoB,MAAM;CAC1C,MAAM,IAAI,SAAS,YAAY;EAC7B,MAAM,SAAS,MAAM,gBAAgB;EACrC,QAAQ,IAAI,0BAA0B,OAAO,QAAQ,OAAO,UAAU,SAAS,OAAO,IAAI,KAAK,IAAI;EACnG,QAAQ,IAAI,SAAS,iBAAiB,GAAG;EACzC,MAAM,OAAO,OAAO;CACtB,CAAC;AACH"}
|
package/dist/status-DusS7DfO.cjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
require("./rolldown-runtime-qbf5tadS.cjs");
|
|
2
|
-
const require_run = require("./run-y6LRyWdS.cjs");
|
|
3
|
-
const require_background = require("./background-Bbcc2TdN.cjs");
|
|
4
|
-
//#region src/runners/studio/status.ts
|
|
5
|
-
const runner = async ({ values }) => {
|
|
6
|
-
const options = require_run.createStudioOptions(values);
|
|
7
|
-
await require_run.run(options, async () => {
|
|
8
|
-
const worker = await require_background.getWorkerStatus();
|
|
9
|
-
console.log(`Background connection: ${worker.state}${worker.running ? ` (PID ${worker.pid})` : ""}`);
|
|
10
|
-
console.log(`Logs: ${require_background.getWorkerLogPath()}`);
|
|
11
|
-
await require_run.status(options);
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
//#endregion
|
|
15
|
-
exports.runner = runner;
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=status-DusS7DfO.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"status-DusS7DfO.cjs","names":["createStudioOptions","run","getWorkerStatus","getWorkerLogPath","status"],"sources":["../src/runners/studio/status.ts"],"sourcesContent":["import type { CommandRunner } from 'gunshi'\nimport type { definition } from '../../commands/studio/status.ts'\nimport { getWorkerLogPath, getWorkerStatus } from './background.ts'\nimport { createStudioOptions, run, status } from './run.ts'\n\nexport const runner: CommandRunner<{ args: typeof definition.args; extensions: {} }> = async ({ values }) => {\n const options = createStudioOptions(values)\n await run(options, async () => {\n const worker = await getWorkerStatus()\n console.log(`Background connection: ${worker.state}${worker.running ? ` (PID ${worker.pid})` : ''}`)\n console.log(`Logs: ${getWorkerLogPath()}`)\n await status(options)\n })\n}\n"],"mappings":";;;;AAKA,MAAa,SAA0E,OAAO,EAAE,aAAa;CAC3G,MAAM,UAAUA,YAAAA,oBAAoB,MAAM;CAC1C,MAAMC,YAAAA,IAAI,SAAS,YAAY;EAC7B,MAAM,SAAS,MAAMC,mBAAAA,gBAAgB;EACrC,QAAQ,IAAI,0BAA0B,OAAO,QAAQ,OAAO,UAAU,SAAS,OAAO,IAAI,KAAK,IAAI;EACnG,QAAQ,IAAI,SAASC,mBAAAA,iBAAiB,GAAG;EACzC,MAAMC,YAAAA,OAAO,OAAO;CACtB,CAAC;AACH"}
|
package/dist/stop-C5t7Yx0t.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import "./rolldown-runtime-CRm0XQPb.js";
|
|
2
|
-
import { a as stopWorker } from "./background-DxlRE9O5.js";
|
|
3
|
-
//#region src/runners/studio/stop.ts
|
|
4
|
-
const runner = async () => {
|
|
5
|
-
await stopWorker();
|
|
6
|
-
console.log("Background connection stopped.");
|
|
7
|
-
};
|
|
8
|
-
//#endregion
|
|
9
|
-
export { runner };
|
|
10
|
-
|
|
11
|
-
//# sourceMappingURL=stop-C5t7Yx0t.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stop-C5t7Yx0t.js","names":[],"sources":["../src/runners/studio/stop.ts"],"sourcesContent":["import { stopWorker } from './background.ts'\n\nexport const runner = async () => {\n await stopWorker()\n console.log('Background connection stopped.')\n}\n"],"mappings":";;;AAEA,MAAa,SAAS,YAAY;CAChC,MAAM,WAAW;CACjB,QAAQ,IAAI,gCAAgC;AAC9C"}
|
package/dist/stop-zmM3A0Re.cjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
require("./rolldown-runtime-qbf5tadS.cjs");
|
|
2
|
-
const require_background = require("./background-Bbcc2TdN.cjs");
|
|
3
|
-
//#region src/runners/studio/stop.ts
|
|
4
|
-
const runner = async () => {
|
|
5
|
-
await require_background.stopWorker();
|
|
6
|
-
console.log("Background connection stopped.");
|
|
7
|
-
};
|
|
8
|
-
//#endregion
|
|
9
|
-
exports.runner = runner;
|
|
10
|
-
|
|
11
|
-
//# sourceMappingURL=stop-zmM3A0Re.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stop-zmM3A0Re.cjs","names":["stopWorker"],"sources":["../src/runners/studio/stop.ts"],"sourcesContent":["import { stopWorker } from './background.ts'\n\nexport const runner = async () => {\n await stopWorker()\n console.log('Background connection stopped.')\n}\n"],"mappings":";;;AAEA,MAAa,SAAS,YAAY;CAChC,MAAMA,mBAAAA,WAAW;CACjB,QAAQ,IAAI,gCAAgC;AAC9C"}
|
package/dist/studio--IOOl_VB.js
DELETED
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import "./rolldown-runtime-CRm0XQPb.js";
|
|
2
|
-
import { i as studioPermissionArgs, n as logLevelArg, r as studioConnectionArgs, t as configArg } from "./shared-DaHA7QFQ.js";
|
|
3
|
-
import { define, lazy } from "gunshi";
|
|
4
|
-
//#region src/commands/studio/connect.ts
|
|
5
|
-
const definition$6 = define({
|
|
6
|
-
name: "connect",
|
|
7
|
-
description: "Connect this project to Kubb Studio and generate from the browser.",
|
|
8
|
-
examples: [
|
|
9
|
-
"kubb studio connect",
|
|
10
|
-
"kubb studio connect --allow-read",
|
|
11
|
-
"kubb studio connect --allow-write --allow-exec",
|
|
12
|
-
"kubb studio connect --url http://localhost:3000"
|
|
13
|
-
].join("\n"),
|
|
14
|
-
toKebab: true,
|
|
15
|
-
args: {
|
|
16
|
-
...configArg,
|
|
17
|
-
...studioConnectionArgs,
|
|
18
|
-
...studioPermissionArgs,
|
|
19
|
-
open: {
|
|
20
|
-
type: "boolean",
|
|
21
|
-
description: "Open the approval page in a browser while pairing",
|
|
22
|
-
default: true,
|
|
23
|
-
negatable: true
|
|
24
|
-
},
|
|
25
|
-
...logLevelArg
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region src/commands/studio/login.ts
|
|
30
|
-
const definition$5 = define({
|
|
31
|
-
name: "login",
|
|
32
|
-
description: "Pair this machine with Kubb Studio without connecting.",
|
|
33
|
-
examples: ["kubb studio login", "kubb studio login --url http://localhost:3000"].join("\n"),
|
|
34
|
-
toKebab: true,
|
|
35
|
-
args: {
|
|
36
|
-
...configArg,
|
|
37
|
-
...studioConnectionArgs,
|
|
38
|
-
...studioPermissionArgs,
|
|
39
|
-
open: {
|
|
40
|
-
type: "boolean",
|
|
41
|
-
description: "Open the approval page in a browser while pairing",
|
|
42
|
-
default: true,
|
|
43
|
-
negatable: true
|
|
44
|
-
},
|
|
45
|
-
...logLevelArg
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region src/commands/studio/logout.ts
|
|
50
|
-
const definition$4 = define({
|
|
51
|
-
name: "logout",
|
|
52
|
-
description: "Forget the stored Kubb Studio token.",
|
|
53
|
-
examples: ["kubb studio logout"].join("\n"),
|
|
54
|
-
toKebab: true,
|
|
55
|
-
args: {
|
|
56
|
-
...configArg,
|
|
57
|
-
...studioConnectionArgs,
|
|
58
|
-
...studioPermissionArgs,
|
|
59
|
-
...logLevelArg
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region src/commands/studio/snapshot.ts
|
|
64
|
-
const definition$3 = define({
|
|
65
|
-
name: "snapshot",
|
|
66
|
-
description: "Generate and publish a Kubb Studio snapshot from CI.",
|
|
67
|
-
examples: ["kubb studio snapshot", "kubb studio snapshot --json"].join("\n"),
|
|
68
|
-
toKebab: true,
|
|
69
|
-
rendering: { header: null },
|
|
70
|
-
args: {
|
|
71
|
-
...configArg,
|
|
72
|
-
...studioConnectionArgs,
|
|
73
|
-
...studioPermissionArgs,
|
|
74
|
-
id: {
|
|
75
|
-
type: "string",
|
|
76
|
-
description: "Stable identity for the CI agent, such as a pull request. Auto-detected on GitHub Actions, GitLab CI, Bitbucket Pipelines and CircleCI"
|
|
77
|
-
},
|
|
78
|
-
baseId: {
|
|
79
|
-
type: "string",
|
|
80
|
-
description: "Identity of another CI agent, such as the base branch's, to also compare this snapshot with. Auto-detected on GitHub pull requests and GitLab merge requests",
|
|
81
|
-
toKebab: true
|
|
82
|
-
},
|
|
83
|
-
name: {
|
|
84
|
-
type: "string",
|
|
85
|
-
description: "Package name for the generated tarball. Defaults to the name in package.json"
|
|
86
|
-
},
|
|
87
|
-
packageVersion: {
|
|
88
|
-
type: "string",
|
|
89
|
-
description: "Package version for the generated tarball. Defaults to the version in package.json",
|
|
90
|
-
toKebab: true
|
|
91
|
-
},
|
|
92
|
-
timeout: {
|
|
93
|
-
type: "number",
|
|
94
|
-
description: "Seconds to wait for the job to finish",
|
|
95
|
-
default: 600
|
|
96
|
-
},
|
|
97
|
-
json: {
|
|
98
|
-
type: "boolean",
|
|
99
|
-
description: "Print the result as one JSON object instead of a summary",
|
|
100
|
-
default: false
|
|
101
|
-
},
|
|
102
|
-
...logLevelArg
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
//#endregion
|
|
106
|
-
//#region src/commands/studio/background.ts
|
|
107
|
-
const definition$2 = define({
|
|
108
|
-
name: "start",
|
|
109
|
-
description: "Keep this project connected to Kubb Studio in the background.",
|
|
110
|
-
toKebab: true,
|
|
111
|
-
args: definition$6.args
|
|
112
|
-
});
|
|
113
|
-
const stopDefinition = define({
|
|
114
|
-
name: "stop",
|
|
115
|
-
description: "Stop this project's background connection and keep its pairing."
|
|
116
|
-
});
|
|
117
|
-
//#endregion
|
|
118
|
-
//#region src/commands/studio/status.ts
|
|
119
|
-
const definition$1 = define({
|
|
120
|
-
name: "status",
|
|
121
|
-
description: "Show the project worker, Kubb Studio pairing, and saved permissions.",
|
|
122
|
-
examples: ["kubb studio status"].join("\n"),
|
|
123
|
-
toKebab: true,
|
|
124
|
-
args: {
|
|
125
|
-
...configArg,
|
|
126
|
-
...studioConnectionArgs,
|
|
127
|
-
...studioPermissionArgs,
|
|
128
|
-
...logLevelArg
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
//#endregion
|
|
132
|
-
//#region src/commands/studio/index.ts
|
|
133
|
-
const definition = define({
|
|
134
|
-
name: "studio",
|
|
135
|
-
description: "Connect this project to Kubb Studio, or manage its pairing and snapshots.",
|
|
136
|
-
examples: [
|
|
137
|
-
"kubb studio",
|
|
138
|
-
"kubb studio --allow-read",
|
|
139
|
-
"kubb studio login",
|
|
140
|
-
"kubb studio status",
|
|
141
|
-
"kubb studio logout",
|
|
142
|
-
"kubb studio snapshot"
|
|
143
|
-
].join("\n"),
|
|
144
|
-
toKebab: true,
|
|
145
|
-
args: {
|
|
146
|
-
...configArg,
|
|
147
|
-
...studioConnectionArgs,
|
|
148
|
-
...studioPermissionArgs,
|
|
149
|
-
open: {
|
|
150
|
-
type: "boolean",
|
|
151
|
-
description: "Open the approval page in a browser while pairing",
|
|
152
|
-
default: true,
|
|
153
|
-
negatable: true
|
|
154
|
-
},
|
|
155
|
-
...logLevelArg
|
|
156
|
-
},
|
|
157
|
-
async run(ctx) {
|
|
158
|
-
const { runner } = await import("./connect-C9tTngda.js");
|
|
159
|
-
await runner(ctx);
|
|
160
|
-
},
|
|
161
|
-
subCommands: {
|
|
162
|
-
start: lazy(async () => (await import("./start-Dbfx_8zG.js")).runner, definition$2),
|
|
163
|
-
stop: lazy(async () => (await import("./stop-C5t7Yx0t.js")).runner, stopDefinition),
|
|
164
|
-
connect: lazy(async () => (await import("./connect-C9tTngda.js")).runner, definition$6),
|
|
165
|
-
login: lazy(async () => (await import("./login-Do3nns0B.js")).runner, definition$5),
|
|
166
|
-
logout: lazy(async () => (await import("./logout-COxoIMum.js")).runner, definition$4),
|
|
167
|
-
status: lazy(async () => (await import("./status-DDajNc8w.js")).runner, definition$1),
|
|
168
|
-
snapshot: lazy(async () => (await import("./snapshot-B5mc4gpC.js")).runner, definition$3)
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
//#endregion
|
|
172
|
-
export { definition };
|
|
173
|
-
|
|
174
|
-
//# sourceMappingURL=studio--IOOl_VB.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"studio--IOOl_VB.js","names":["definition","definition","definition","definition","definition","connectDefinition","definition","startDefinition","connectDefinition","loginDefinition","logoutDefinition","statusDefinition","snapshotDefinition"],"sources":["../src/commands/studio/connect.ts","../src/commands/studio/login.ts","../src/commands/studio/logout.ts","../src/commands/studio/snapshot.ts","../src/commands/studio/background.ts","../src/commands/studio/status.ts","../src/commands/studio/index.ts"],"sourcesContent":["import { define } from 'gunshi'\nimport { configArg, logLevelArg, studioConnectionArgs, studioPermissionArgs } from '../shared.ts'\n\nexport const definition = define({\n name: 'connect',\n description: 'Connect this project to Kubb Studio and generate from the browser.',\n examples: [\n 'kubb studio connect',\n 'kubb studio connect --allow-read',\n 'kubb studio connect --allow-write --allow-exec',\n 'kubb studio connect --url http://localhost:3000',\n ].join('\\n'),\n toKebab: true,\n args: {\n ...configArg,\n ...studioConnectionArgs,\n ...studioPermissionArgs,\n open: {\n type: 'boolean',\n description: 'Open the approval page in a browser while pairing',\n default: true,\n negatable: true,\n },\n ...logLevelArg,\n },\n})\n","import { define } from 'gunshi'\nimport { configArg, logLevelArg, studioConnectionArgs, studioPermissionArgs } from '../shared.ts'\n\nexport const definition = define({\n name: 'login',\n description: 'Pair this machine with Kubb Studio without connecting.',\n examples: ['kubb studio login', 'kubb studio login --url http://localhost:3000'].join('\\n'),\n toKebab: true,\n args: {\n ...configArg,\n ...studioConnectionArgs,\n ...studioPermissionArgs,\n open: {\n type: 'boolean',\n description: 'Open the approval page in a browser while pairing',\n default: true,\n negatable: true,\n },\n ...logLevelArg,\n },\n})\n","import { define } from 'gunshi'\nimport { configArg, logLevelArg, studioConnectionArgs, studioPermissionArgs } from '../shared.ts'\n\nexport const definition = define({\n name: 'logout',\n description: 'Forget the stored Kubb Studio token.',\n examples: ['kubb studio logout'].join('\\n'),\n toKebab: true,\n args: {\n ...configArg,\n ...studioConnectionArgs,\n ...studioPermissionArgs,\n ...logLevelArg,\n },\n})\n","import { define } from 'gunshi'\nimport { configArg, logLevelArg, studioConnectionArgs, studioPermissionArgs } from '../shared.ts'\n\nexport const definition = define({\n name: 'snapshot',\n description: 'Generate and publish a Kubb Studio snapshot from CI.',\n examples: ['kubb studio snapshot', 'kubb studio snapshot --json'].join('\\n'),\n toKebab: true,\n rendering: {\n header: null,\n },\n args: {\n ...configArg,\n ...studioConnectionArgs,\n ...studioPermissionArgs,\n id: {\n type: 'string',\n description: 'Stable identity for the CI agent, such as a pull request. Auto-detected on GitHub Actions, GitLab CI, Bitbucket Pipelines and CircleCI',\n },\n baseId: {\n type: 'string',\n description:\n \"Identity of another CI agent, such as the base branch's, to also compare this snapshot with. Auto-detected on GitHub pull requests and GitLab merge requests\",\n toKebab: true,\n },\n name: {\n type: 'string',\n description: 'Package name for the generated tarball. Defaults to the name in package.json',\n },\n packageVersion: {\n type: 'string',\n description: 'Package version for the generated tarball. Defaults to the version in package.json',\n toKebab: true,\n },\n timeout: {\n type: 'number',\n description: 'Seconds to wait for the job to finish',\n default: 600,\n },\n json: {\n type: 'boolean',\n description: 'Print the result as one JSON object instead of a summary',\n default: false,\n },\n ...logLevelArg,\n },\n})\n","import { define } from 'gunshi'\nimport { definition as connectDefinition } from './connect.ts'\n\nexport const definition = define({\n name: 'start',\n description: 'Keep this project connected to Kubb Studio in the background.',\n toKebab: true,\n args: connectDefinition.args,\n})\nexport const stopDefinition = define({\n name: 'stop',\n description: \"Stop this project's background connection and keep its pairing.\",\n})\n","import { define } from 'gunshi'\nimport { configArg, logLevelArg, studioConnectionArgs, studioPermissionArgs } from '../shared.ts'\n\nexport const definition = define({\n name: 'status',\n description: 'Show the project worker, Kubb Studio pairing, and saved permissions.',\n examples: ['kubb studio status'].join('\\n'),\n toKebab: true,\n args: {\n ...configArg,\n ...studioConnectionArgs,\n ...studioPermissionArgs,\n ...logLevelArg,\n },\n})\n","import { define, lazy } from 'gunshi'\nimport { configArg, logLevelArg, studioConnectionArgs, studioPermissionArgs } from '../shared.ts'\nimport { definition as connectDefinition } from './connect.ts'\nimport { definition as loginDefinition } from './login.ts'\nimport { definition as logoutDefinition } from './logout.ts'\nimport { definition as snapshotDefinition } from './snapshot.ts'\nimport { definition as startDefinition, stopDefinition } from './background.ts'\nimport { definition as statusDefinition } from './status.ts'\n\nexport const definition = define({\n name: 'studio',\n description: 'Connect this project to Kubb Studio, or manage its pairing and snapshots.',\n examples: ['kubb studio', 'kubb studio --allow-read', 'kubb studio login', 'kubb studio status', 'kubb studio logout', 'kubb studio snapshot'].join('\\n'),\n toKebab: true,\n args: {\n ...configArg,\n ...studioConnectionArgs,\n ...studioPermissionArgs,\n open: {\n type: 'boolean',\n description: 'Open the approval page in a browser while pairing',\n default: true,\n negatable: true,\n },\n ...logLevelArg,\n },\n async run(ctx) {\n const { runner } = await import('../../runners/studio/connect.ts')\n await runner(ctx)\n },\n subCommands: {\n start: lazy(async () => (await import('../../runners/studio/start.ts')).runner, startDefinition),\n stop: lazy(async () => (await import('../../runners/studio/stop.ts')).runner, stopDefinition),\n connect: lazy(async () => (await import('../../runners/studio/connect.ts')).runner, connectDefinition),\n login: lazy(async () => (await import('../../runners/studio/login.ts')).runner, loginDefinition),\n logout: lazy(async () => (await import('../../runners/studio/logout.ts')).runner, logoutDefinition),\n status: lazy(async () => (await import('../../runners/studio/status.ts')).runner, statusDefinition),\n snapshot: lazy(async () => (await import('../../runners/studio/snapshot.ts')).runner, snapshotDefinition),\n },\n})\n"],"mappings":";;;;AAGA,MAAaA,eAAa,OAAO;CAC/B,MAAM;CACN,aAAa;CACb,UAAU;EACR;EACA;EACA;EACA;CACF,CAAC,CAAC,KAAK,IAAI;CACX,SAAS;CACT,MAAM;EACJ,GAAG;EACH,GAAG;EACH,GAAG;EACH,MAAM;GACJ,MAAM;GACN,aAAa;GACb,SAAS;GACT,WAAW;EACb;EACA,GAAG;CACL;AACF,CAAC;;;ACtBD,MAAaC,eAAa,OAAO;CAC/B,MAAM;CACN,aAAa;CACb,UAAU,CAAC,qBAAqB,+CAA+C,CAAC,CAAC,KAAK,IAAI;CAC1F,SAAS;CACT,MAAM;EACJ,GAAG;EACH,GAAG;EACH,GAAG;EACH,MAAM;GACJ,MAAM;GACN,aAAa;GACb,SAAS;GACT,WAAW;EACb;EACA,GAAG;CACL;AACF,CAAC;;;ACjBD,MAAaC,eAAa,OAAO;CAC/B,MAAM;CACN,aAAa;CACb,UA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MAAM,IAAI,KAAK;EACb,MAAM,EAAE,WAAW,MAAM,OAAO;EAChC,MAAM,OAAO,GAAG;CAClB;CACA,aAAa;EACX,OAAO,KAAK,aAAa,MAAM,OAAO,uBAAA,CAAkC,QAAQC,YAAe;EAC/F,MAAM,KAAK,aAAa,MAAM,OAAO,sBAAA,CAAiC,QAAQ,cAAc;EAC5F,SAAS,KAAK,aAAa,MAAM,OAAO,yBAAA,CAAoC,QAAQC,YAAiB;EACrG,OAAO,KAAK,aAAa,MAAM,OAAO,uBAAA,CAAkC,QAAQC,YAAe;EAC/F,QAAQ,KAAK,aAAa,MAAM,OAAO,wBAAA,CAAmC,QAAQC,YAAgB;EAClG,QAAQ,KAAK,aAAa,MAAM,OAAO,wBAAA,CAAmC,QAAQC,YAAgB;EAClG,UAAU,KAAK,aAAa,MAAM,OAAO,0BAAA,CAAqC,QAAQC,YAAkB;CAC1G;AACF,CAAC"}
|
package/dist/studio-CJ2XhtRd.cjs
DELETED
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
require("./rolldown-runtime-qbf5tadS.cjs");
|
|
2
|
-
const require_shared = require("./shared-Cl-OLpNh.cjs");
|
|
3
|
-
let gunshi = require("gunshi");
|
|
4
|
-
//#region src/commands/studio/connect.ts
|
|
5
|
-
const definition$6 = (0, gunshi.define)({
|
|
6
|
-
name: "connect",
|
|
7
|
-
description: "Connect this project to Kubb Studio and generate from the browser.",
|
|
8
|
-
examples: [
|
|
9
|
-
"kubb studio connect",
|
|
10
|
-
"kubb studio connect --allow-read",
|
|
11
|
-
"kubb studio connect --allow-write --allow-exec",
|
|
12
|
-
"kubb studio connect --url http://localhost:3000"
|
|
13
|
-
].join("\n"),
|
|
14
|
-
toKebab: true,
|
|
15
|
-
args: {
|
|
16
|
-
...require_shared.configArg,
|
|
17
|
-
...require_shared.studioConnectionArgs,
|
|
18
|
-
...require_shared.studioPermissionArgs,
|
|
19
|
-
open: {
|
|
20
|
-
type: "boolean",
|
|
21
|
-
description: "Open the approval page in a browser while pairing",
|
|
22
|
-
default: true,
|
|
23
|
-
negatable: true
|
|
24
|
-
},
|
|
25
|
-
...require_shared.logLevelArg
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region src/commands/studio/login.ts
|
|
30
|
-
const definition$5 = (0, gunshi.define)({
|
|
31
|
-
name: "login",
|
|
32
|
-
description: "Pair this machine with Kubb Studio without connecting.",
|
|
33
|
-
examples: ["kubb studio login", "kubb studio login --url http://localhost:3000"].join("\n"),
|
|
34
|
-
toKebab: true,
|
|
35
|
-
args: {
|
|
36
|
-
...require_shared.configArg,
|
|
37
|
-
...require_shared.studioConnectionArgs,
|
|
38
|
-
...require_shared.studioPermissionArgs,
|
|
39
|
-
open: {
|
|
40
|
-
type: "boolean",
|
|
41
|
-
description: "Open the approval page in a browser while pairing",
|
|
42
|
-
default: true,
|
|
43
|
-
negatable: true
|
|
44
|
-
},
|
|
45
|
-
...require_shared.logLevelArg
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region src/commands/studio/logout.ts
|
|
50
|
-
const definition$4 = (0, gunshi.define)({
|
|
51
|
-
name: "logout",
|
|
52
|
-
description: "Forget the stored Kubb Studio token.",
|
|
53
|
-
examples: ["kubb studio logout"].join("\n"),
|
|
54
|
-
toKebab: true,
|
|
55
|
-
args: {
|
|
56
|
-
...require_shared.configArg,
|
|
57
|
-
...require_shared.studioConnectionArgs,
|
|
58
|
-
...require_shared.studioPermissionArgs,
|
|
59
|
-
...require_shared.logLevelArg
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region src/commands/studio/snapshot.ts
|
|
64
|
-
const definition$3 = (0, gunshi.define)({
|
|
65
|
-
name: "snapshot",
|
|
66
|
-
description: "Generate and publish a Kubb Studio snapshot from CI.",
|
|
67
|
-
examples: ["kubb studio snapshot", "kubb studio snapshot --json"].join("\n"),
|
|
68
|
-
toKebab: true,
|
|
69
|
-
rendering: { header: null },
|
|
70
|
-
args: {
|
|
71
|
-
...require_shared.configArg,
|
|
72
|
-
...require_shared.studioConnectionArgs,
|
|
73
|
-
...require_shared.studioPermissionArgs,
|
|
74
|
-
id: {
|
|
75
|
-
type: "string",
|
|
76
|
-
description: "Stable identity for the CI agent, such as a pull request. Auto-detected on GitHub Actions, GitLab CI, Bitbucket Pipelines and CircleCI"
|
|
77
|
-
},
|
|
78
|
-
baseId: {
|
|
79
|
-
type: "string",
|
|
80
|
-
description: "Identity of another CI agent, such as the base branch's, to also compare this snapshot with. Auto-detected on GitHub pull requests and GitLab merge requests",
|
|
81
|
-
toKebab: true
|
|
82
|
-
},
|
|
83
|
-
name: {
|
|
84
|
-
type: "string",
|
|
85
|
-
description: "Package name for the generated tarball. Defaults to the name in package.json"
|
|
86
|
-
},
|
|
87
|
-
packageVersion: {
|
|
88
|
-
type: "string",
|
|
89
|
-
description: "Package version for the generated tarball. Defaults to the version in package.json",
|
|
90
|
-
toKebab: true
|
|
91
|
-
},
|
|
92
|
-
timeout: {
|
|
93
|
-
type: "number",
|
|
94
|
-
description: "Seconds to wait for the job to finish",
|
|
95
|
-
default: 600
|
|
96
|
-
},
|
|
97
|
-
json: {
|
|
98
|
-
type: "boolean",
|
|
99
|
-
description: "Print the result as one JSON object instead of a summary",
|
|
100
|
-
default: false
|
|
101
|
-
},
|
|
102
|
-
...require_shared.logLevelArg
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
//#endregion
|
|
106
|
-
//#region src/commands/studio/background.ts
|
|
107
|
-
const definition$2 = (0, gunshi.define)({
|
|
108
|
-
name: "start",
|
|
109
|
-
description: "Keep this project connected to Kubb Studio in the background.",
|
|
110
|
-
toKebab: true,
|
|
111
|
-
args: definition$6.args
|
|
112
|
-
});
|
|
113
|
-
const stopDefinition = (0, gunshi.define)({
|
|
114
|
-
name: "stop",
|
|
115
|
-
description: "Stop this project's background connection and keep its pairing."
|
|
116
|
-
});
|
|
117
|
-
//#endregion
|
|
118
|
-
//#region src/commands/studio/status.ts
|
|
119
|
-
const definition$1 = (0, gunshi.define)({
|
|
120
|
-
name: "status",
|
|
121
|
-
description: "Show the project worker, Kubb Studio pairing, and saved permissions.",
|
|
122
|
-
examples: ["kubb studio status"].join("\n"),
|
|
123
|
-
toKebab: true,
|
|
124
|
-
args: {
|
|
125
|
-
...require_shared.configArg,
|
|
126
|
-
...require_shared.studioConnectionArgs,
|
|
127
|
-
...require_shared.studioPermissionArgs,
|
|
128
|
-
...require_shared.logLevelArg
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
//#endregion
|
|
132
|
-
//#region src/commands/studio/index.ts
|
|
133
|
-
const definition = (0, gunshi.define)({
|
|
134
|
-
name: "studio",
|
|
135
|
-
description: "Connect this project to Kubb Studio, or manage its pairing and snapshots.",
|
|
136
|
-
examples: [
|
|
137
|
-
"kubb studio",
|
|
138
|
-
"kubb studio --allow-read",
|
|
139
|
-
"kubb studio login",
|
|
140
|
-
"kubb studio status",
|
|
141
|
-
"kubb studio logout",
|
|
142
|
-
"kubb studio snapshot"
|
|
143
|
-
].join("\n"),
|
|
144
|
-
toKebab: true,
|
|
145
|
-
args: {
|
|
146
|
-
...require_shared.configArg,
|
|
147
|
-
...require_shared.studioConnectionArgs,
|
|
148
|
-
...require_shared.studioPermissionArgs,
|
|
149
|
-
open: {
|
|
150
|
-
type: "boolean",
|
|
151
|
-
description: "Open the approval page in a browser while pairing",
|
|
152
|
-
default: true,
|
|
153
|
-
negatable: true
|
|
154
|
-
},
|
|
155
|
-
...require_shared.logLevelArg
|
|
156
|
-
},
|
|
157
|
-
async run(ctx) {
|
|
158
|
-
const { runner } = await Promise.resolve().then(() => require("./connect-CJ7BhOcs.cjs"));
|
|
159
|
-
await runner(ctx);
|
|
160
|
-
},
|
|
161
|
-
subCommands: {
|
|
162
|
-
start: (0, gunshi.lazy)(async () => (await Promise.resolve().then(() => require("./start-B-GXO8tS.cjs"))).runner, definition$2),
|
|
163
|
-
stop: (0, gunshi.lazy)(async () => (await Promise.resolve().then(() => require("./stop-zmM3A0Re.cjs"))).runner, stopDefinition),
|
|
164
|
-
connect: (0, gunshi.lazy)(async () => (await Promise.resolve().then(() => require("./connect-CJ7BhOcs.cjs"))).runner, definition$6),
|
|
165
|
-
login: (0, gunshi.lazy)(async () => (await Promise.resolve().then(() => require("./login-Bc19oiFE.cjs"))).runner, definition$5),
|
|
166
|
-
logout: (0, gunshi.lazy)(async () => (await Promise.resolve().then(() => require("./logout-BvHFvCeI.cjs"))).runner, definition$4),
|
|
167
|
-
status: (0, gunshi.lazy)(async () => (await Promise.resolve().then(() => require("./status-DusS7DfO.cjs"))).runner, definition$1),
|
|
168
|
-
snapshot: (0, gunshi.lazy)(async () => (await Promise.resolve().then(() => require("./snapshot-DnCxZfmM.cjs"))).runner, definition$3)
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
//#endregion
|
|
172
|
-
exports.definition = definition;
|
|
173
|
-
|
|
174
|
-
//# sourceMappingURL=studio-CJ2XhtRd.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"studio-CJ2XhtRd.cjs","names":["definition","define","configArg","studioConnectionArgs","studioPermissionArgs","logLevelArg","definition","define","configArg","studioConnectionArgs","studioPermissionArgs","logLevelArg","definition","define","configArg","studioConnectionArgs","studioPermissionArgs","logLevelArg","definition","define","configArg","studioConnectionArgs","studioPermissionArgs","logLevelArg","definition","define","connectDefinition","definition","define","configArg","studioConnectionArgs","studioPermissionArgs","logLevelArg","define","configArg","studioConnectionArgs","studioPermissionArgs","logLevelArg","lazy","startDefinition","connectDefinition","loginDefinition","logoutDefinition","statusDefinition","snapshotDefinition"],"sources":["../src/commands/studio/connect.ts","../src/commands/studio/login.ts","../src/commands/studio/logout.ts","../src/commands/studio/snapshot.ts","../src/commands/studio/background.ts","../src/commands/studio/status.ts","../src/commands/studio/index.ts"],"sourcesContent":["import { define } from 'gunshi'\nimport { configArg, logLevelArg, studioConnectionArgs, studioPermissionArgs } from '../shared.ts'\n\nexport const definition = define({\n name: 'connect',\n description: 'Connect this project to Kubb Studio and generate from the browser.',\n examples: [\n 'kubb studio connect',\n 'kubb studio connect --allow-read',\n 'kubb studio connect --allow-write --allow-exec',\n 'kubb studio connect --url http://localhost:3000',\n ].join('\\n'),\n toKebab: true,\n args: {\n ...configArg,\n ...studioConnectionArgs,\n ...studioPermissionArgs,\n open: {\n type: 'boolean',\n description: 'Open the approval page in a browser while pairing',\n default: true,\n negatable: true,\n },\n ...logLevelArg,\n },\n})\n","import { define } from 'gunshi'\nimport { configArg, logLevelArg, studioConnectionArgs, studioPermissionArgs } from '../shared.ts'\n\nexport const definition = define({\n name: 'login',\n description: 'Pair this machine with Kubb Studio without connecting.',\n examples: ['kubb studio login', 'kubb studio login --url http://localhost:3000'].join('\\n'),\n toKebab: true,\n args: {\n ...configArg,\n ...studioConnectionArgs,\n ...studioPermissionArgs,\n open: {\n type: 'boolean',\n description: 'Open the approval page in a browser while pairing',\n default: true,\n negatable: true,\n },\n ...logLevelArg,\n },\n})\n","import { define } from 'gunshi'\nimport { configArg, logLevelArg, studioConnectionArgs, studioPermissionArgs } from '../shared.ts'\n\nexport const definition = define({\n name: 'logout',\n description: 'Forget the stored Kubb Studio token.',\n examples: ['kubb studio logout'].join('\\n'),\n toKebab: true,\n args: {\n ...configArg,\n ...studioConnectionArgs,\n ...studioPermissionArgs,\n ...logLevelArg,\n },\n})\n","import { define } from 'gunshi'\nimport { configArg, logLevelArg, studioConnectionArgs, studioPermissionArgs } from '../shared.ts'\n\nexport const definition = define({\n name: 'snapshot',\n description: 'Generate and publish a Kubb Studio snapshot from CI.',\n examples: ['kubb studio snapshot', 'kubb studio snapshot --json'].join('\\n'),\n toKebab: true,\n rendering: {\n header: null,\n },\n args: {\n ...configArg,\n ...studioConnectionArgs,\n ...studioPermissionArgs,\n id: {\n type: 'string',\n description: 'Stable identity for the CI agent, such as a pull request. Auto-detected on GitHub Actions, GitLab CI, Bitbucket Pipelines and CircleCI',\n },\n baseId: {\n type: 'string',\n description:\n \"Identity of another CI agent, such as the base branch's, to also compare this snapshot with. Auto-detected on GitHub pull requests and GitLab merge requests\",\n toKebab: true,\n },\n name: {\n type: 'string',\n description: 'Package name for the generated tarball. Defaults to the name in package.json',\n },\n packageVersion: {\n type: 'string',\n description: 'Package version for the generated tarball. Defaults to the version in package.json',\n toKebab: true,\n },\n timeout: {\n type: 'number',\n description: 'Seconds to wait for the job to finish',\n default: 600,\n },\n json: {\n type: 'boolean',\n description: 'Print the result as one JSON object instead of a summary',\n default: false,\n },\n ...logLevelArg,\n },\n})\n","import { define } from 'gunshi'\nimport { definition as connectDefinition } from './connect.ts'\n\nexport const definition = define({\n name: 'start',\n description: 'Keep this project connected to Kubb Studio in the background.',\n toKebab: true,\n args: connectDefinition.args,\n})\nexport const stopDefinition = define({\n name: 'stop',\n description: \"Stop this project's background connection and keep its pairing.\",\n})\n","import { define } from 'gunshi'\nimport { configArg, logLevelArg, studioConnectionArgs, studioPermissionArgs } from '../shared.ts'\n\nexport const definition = define({\n name: 'status',\n description: 'Show the project worker, Kubb Studio pairing, and saved permissions.',\n examples: ['kubb studio status'].join('\\n'),\n toKebab: true,\n args: {\n ...configArg,\n ...studioConnectionArgs,\n ...studioPermissionArgs,\n ...logLevelArg,\n },\n})\n","import { define, lazy } from 'gunshi'\nimport { configArg, logLevelArg, studioConnectionArgs, studioPermissionArgs } from '../shared.ts'\nimport { definition as connectDefinition } from './connect.ts'\nimport { definition as loginDefinition } from './login.ts'\nimport { definition as logoutDefinition } from './logout.ts'\nimport { definition as snapshotDefinition } from './snapshot.ts'\nimport { definition as startDefinition, stopDefinition } from './background.ts'\nimport { definition as statusDefinition } from './status.ts'\n\nexport const definition = define({\n name: 'studio',\n description: 'Connect this project to Kubb Studio, or manage its pairing and snapshots.',\n examples: ['kubb studio', 'kubb studio --allow-read', 'kubb studio login', 'kubb studio status', 'kubb studio logout', 'kubb studio snapshot'].join('\\n'),\n toKebab: true,\n args: {\n ...configArg,\n ...studioConnectionArgs,\n ...studioPermissionArgs,\n open: {\n type: 'boolean',\n description: 'Open the approval page in a browser while pairing',\n default: true,\n negatable: true,\n },\n ...logLevelArg,\n },\n async run(ctx) {\n const { runner } = await import('../../runners/studio/connect.ts')\n await runner(ctx)\n },\n subCommands: {\n start: lazy(async () => (await import('../../runners/studio/start.ts')).runner, startDefinition),\n stop: lazy(async () => (await import('../../runners/studio/stop.ts')).runner, stopDefinition),\n connect: lazy(async () => (await import('../../runners/studio/connect.ts')).runner, connectDefinition),\n login: lazy(async () => (await import('../../runners/studio/login.ts')).runner, loginDefinition),\n logout: lazy(async () => (await import('../../runners/studio/logout.ts')).runner, logoutDefinition),\n status: lazy(async () => (await import('../../runners/studio/status.ts')).runner, statusDefinition),\n snapshot: lazy(async () => (await import('../../runners/studio/snapshot.ts')).runner, snapshotDefinition),\n },\n})\n"],"mappings":";;;;AAGA,MAAaA,gBAAAA,GAAaC,OAAAA,OAAAA,CAAO;CAC/B,MAAM;CACN,aAAa;CACb,UAAU;EACR;EACA;EACA;EACA;CACF,CAAC,CAAC,KAAK,IAAI;CACX,SAAS;CACT,MAAM;EACJ,GAAGC,eAAAA;EACH,GAAGC,eAAAA;EACH,GAAGC,eAAAA;EACH,MAAM;GACJ,MAAM;GACN,aAAa;GACb,SAAS;GACT,WAAW;EACb;EACA,GAAGC,eAAAA;CACL;AACF,CAAC;;;ACtBD,MAAaC,gBAAAA,GAAaC,OAAAA,OAAAA,CAAO;CAC/B,MAAM;CACN,aAAa;CACb,UAAU,CAAC,qBAAqB,+CAA+C,CAAC,CAAC,KAAK,IAAI;CAC1F,SAAS;CACT,MAAM;EACJ,GAAGC,eAAAA;EACH,GAAGC,eAAAA;EACH,GAAGC,eAAAA;EACH,MAAM;GACJ,MAAM;GACN,aAAa;GACb,SAAS;GACT,WAAW;EACb;EACA,GAAGC,eAAAA;CACL;AACF,CAAC;;;ACjBD,MAAaC,gBAAAA,GAAaC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