@drisp/cli 0.7.5 → 0.7.6
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/{WorkflowInstallWizard-4GRQGM42.js → WorkflowInstallWizard-YANLNMTP.js} +2 -2
- package/dist/{chunk-TG5EGPD2.js → chunk-2N7IBKJF.js} +3 -3
- package/dist/{chunk-UQWOGG3L.js → chunk-W57EQYCM.js} +5 -1
- package/dist/{chunk-N4B7HLBN.js → chunk-Y6XJPUR2.js} +2 -2
- package/dist/cli.js +109 -43
- package/dist/dashboard-daemon.js +3 -3
- package/dist/runner.js +3 -3
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
installWorkflowPlugins,
|
|
9
9
|
resolveWorkflow,
|
|
10
10
|
writeGlobalConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-W57EQYCM.js";
|
|
12
12
|
import "./chunk-G3PMV62Z.js";
|
|
13
13
|
|
|
14
14
|
// src/setup/steps/WorkflowInstallWizard.tsx
|
|
@@ -93,4 +93,4 @@ function WorkflowInstallWizard({ source, onDone }) {
|
|
|
93
93
|
export {
|
|
94
94
|
WorkflowInstallWizard as default
|
|
95
95
|
};
|
|
96
|
-
//# sourceMappingURL=WorkflowInstallWizard-
|
|
96
|
+
//# sourceMappingURL=WorkflowInstallWizard-YANLNMTP.js.map
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
verifyRendered,
|
|
55
55
|
wakesFreshAfterHandover,
|
|
56
56
|
workflowRegistryDir
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-W57EQYCM.js";
|
|
58
58
|
import {
|
|
59
59
|
__commonJS,
|
|
60
60
|
__toESM
|
|
@@ -14892,7 +14892,7 @@ async function restoreCheckpoint(store, input) {
|
|
|
14892
14892
|
|
|
14893
14893
|
// ../../modules/runtime/src/software-version.ts
|
|
14894
14894
|
import "fs";
|
|
14895
|
-
var runnerSoftwareVersion = true ? "0.7.
|
|
14895
|
+
var runnerSoftwareVersion = true ? "0.7.6" : JSON.parse(readFileSync2(new URL("../../../apps/cli/package.json", import.meta.url), "utf8")).version;
|
|
14896
14896
|
|
|
14897
14897
|
// ../../modules/runtime/src/connection.ts
|
|
14898
14898
|
var RunnerDisconnectedError = class extends Error {
|
|
@@ -21967,4 +21967,4 @@ export {
|
|
|
21967
21967
|
runMachineRunners,
|
|
21968
21968
|
writeIdentityOnce
|
|
21969
21969
|
};
|
|
21970
|
-
//# sourceMappingURL=chunk-
|
|
21970
|
+
//# sourceMappingURL=chunk-2N7IBKJF.js.map
|
|
@@ -21468,6 +21468,10 @@ Merge with \`gh pr merge --squash --delete-branch --match-head-commit <sha>\`, w
|
|
|
21468
21468
|
push. When it exits non-zero, \`gh pr view --json state\` decides: \`MERGED\` means the merge happened (a worktree
|
|
21469
21469
|
cannot check out main afterwards); anything else means it did not.
|
|
21470
21470
|
|
|
21471
|
+
After a merge, and only then, run \`drisp build merged <pr url>\` in this worktree: it records the merged pull request as the
|
|
21472
|
+
\`pull_request\` run artifact and exits non-zero if the pull request is not merged. Never run it before the merge or
|
|
21473
|
+
after a failed one; if it fails only because GitHub has not caught up, wait a few seconds and run it again.
|
|
21474
|
+
|
|
21471
21475
|
## Evidence comment
|
|
21472
21476
|
|
|
21473
21477
|
Post exactly this on the Linear issue, filling the angle brackets:
|
|
@@ -24250,4 +24254,4 @@ export {
|
|
|
24250
24254
|
compileWorkflowPlan,
|
|
24251
24255
|
collectMcpServersWithOptions
|
|
24252
24256
|
};
|
|
24253
|
-
//# sourceMappingURL=chunk-
|
|
24257
|
+
//# sourceMappingURL=chunk-W57EQYCM.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runMachineRunners
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2N7IBKJF.js";
|
|
4
4
|
|
|
5
5
|
// src/app/entry/runnerDaemon.ts
|
|
6
6
|
if (process.argv.includes("--help")) {
|
|
@@ -13,4 +13,4 @@ if (process.argv.includes("--help")) {
|
|
|
13
13
|
process.exitCode = 1;
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
//# sourceMappingURL=chunk-
|
|
16
|
+
//# sourceMappingURL=chunk-Y6XJPUR2.js.map
|
package/dist/cli.js
CHANGED
|
@@ -140,7 +140,7 @@ import {
|
|
|
140
140
|
visualPositionToOffset,
|
|
141
141
|
wrapText,
|
|
142
142
|
writeIdentityOnce
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-2N7IBKJF.js";
|
|
144
144
|
import {
|
|
145
145
|
generateId as generateId2
|
|
146
146
|
} from "./chunk-PQIB66SG.js";
|
|
@@ -198,7 +198,7 @@ import {
|
|
|
198
198
|
workflowRegistryDir,
|
|
199
199
|
writeGlobalConfig,
|
|
200
200
|
writeProjectConfig
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-W57EQYCM.js";
|
|
202
202
|
import {
|
|
203
203
|
__toESM
|
|
204
204
|
} from "./chunk-G3PMV62Z.js";
|
|
@@ -206,10 +206,10 @@ import {
|
|
|
206
206
|
// src/app/entry/cli.tsx
|
|
207
207
|
import { render } from "ink";
|
|
208
208
|
import meow from "meow";
|
|
209
|
-
import
|
|
209
|
+
import fs11 from "fs";
|
|
210
210
|
import { createRequire } from "module";
|
|
211
211
|
import os5 from "os";
|
|
212
|
-
import
|
|
212
|
+
import path11 from "path";
|
|
213
213
|
import { fileURLToPath } from "url";
|
|
214
214
|
|
|
215
215
|
// src/app/shell/sessionUiState.ts
|
|
@@ -5328,14 +5328,14 @@ function extractWebSearch(_input, response) {
|
|
|
5328
5328
|
return { type: "text", content: extractTextContent(response), maxLines: 10 };
|
|
5329
5329
|
}
|
|
5330
5330
|
function extractNotebookEdit(input, _response) {
|
|
5331
|
-
const
|
|
5331
|
+
const path12 = typeof input["notebook_path"] === "string" ? input["notebook_path"] : "";
|
|
5332
5332
|
const mode = typeof input["edit_mode"] === "string" ? input["edit_mode"] : "replace";
|
|
5333
5333
|
const source = typeof input["new_source"] === "string" ? input["new_source"] : "";
|
|
5334
|
-
if (!source) return { type: "text", content: `${mode} cell in ${
|
|
5334
|
+
if (!source) return { type: "text", content: `${mode} cell in ${path12}` };
|
|
5335
5335
|
return {
|
|
5336
5336
|
type: "code",
|
|
5337
5337
|
content: source,
|
|
5338
|
-
language: detectLanguage(
|
|
5338
|
+
language: detectLanguage(path12),
|
|
5339
5339
|
maxLines: 10
|
|
5340
5340
|
};
|
|
5341
5341
|
}
|
|
@@ -5861,10 +5861,10 @@ function extractToolSubject(toolName, toolInput) {
|
|
|
5861
5861
|
const parts = [];
|
|
5862
5862
|
const pattern = str(input, "pattern");
|
|
5863
5863
|
const glob = str(input, "glob");
|
|
5864
|
-
const
|
|
5864
|
+
const path12 = str(input, "path");
|
|
5865
5865
|
if (pattern) parts.push(`"${pattern}"`);
|
|
5866
5866
|
if (glob) parts.push(glob);
|
|
5867
|
-
if (
|
|
5867
|
+
if (path12) parts.push(`in ${path12}`);
|
|
5868
5868
|
return parts.length > 0 ? parts.join(" ") : void 0;
|
|
5869
5869
|
}
|
|
5870
5870
|
case "Skill":
|
|
@@ -13095,7 +13095,7 @@ var thisMachine = (installationId) => ({
|
|
|
13095
13095
|
os: `${platform()} ${release()}`.slice(0, 64),
|
|
13096
13096
|
softwareVersion: runnerSoftwareVersion
|
|
13097
13097
|
});
|
|
13098
|
-
var post = (origin,
|
|
13098
|
+
var post = (origin, path12, body) => fetch(new URL(path12, origin), {
|
|
13099
13099
|
method: "POST",
|
|
13100
13100
|
headers: { "Content-Type": "application/json" },
|
|
13101
13101
|
body: JSON.stringify(body)
|
|
@@ -13114,8 +13114,8 @@ async function alreadyConnected(existing, { forTeam, ownIdentity }) {
|
|
|
13114
13114
|
const problem = own ? await credentialAccepted(own.config) ? void 0 : "lapsed" : forTeam(existing.orgId).length ? "other_runner" : "missing";
|
|
13115
13115
|
const runner = { orgId: existing.orgId, runnerId: existing.runnerId, name: existing.name };
|
|
13116
13116
|
if (own && problem === void 0) return { status: "already_connected", ...runner, path: own.path };
|
|
13117
|
-
const
|
|
13118
|
-
return { status: "identity_unusable", ...runner, problem, ...
|
|
13117
|
+
const path12 = (own ?? forTeam(existing.orgId)[0])?.path;
|
|
13118
|
+
return { status: "identity_unusable", ...runner, problem, ...path12 ? { path: path12 } : {} };
|
|
13119
13119
|
}
|
|
13120
13120
|
async function connectWithCode({
|
|
13121
13121
|
code,
|
|
@@ -13187,20 +13187,20 @@ async function saveIdentity(origin, credential, { single, forTeam }, directory)
|
|
|
13187
13187
|
name: credential.name
|
|
13188
13188
|
});
|
|
13189
13189
|
const replaced = [];
|
|
13190
|
-
for (const { path:
|
|
13191
|
-
const aside = `${
|
|
13192
|
-
await rename(
|
|
13190
|
+
for (const { path: path13 } of forTeam(credential.orgId)) {
|
|
13191
|
+
const aside = `${path13}.replaced-${Date.now()}`;
|
|
13192
|
+
await rename(path13, aside);
|
|
13193
13193
|
replaced.push(aside);
|
|
13194
13194
|
}
|
|
13195
|
-
const
|
|
13195
|
+
const path12 = single ?? teamIdentityPath(origin, credential.orgId, directory);
|
|
13196
13196
|
try {
|
|
13197
|
-
await writeIdentityOnce(
|
|
13197
|
+
await writeIdentityOnce(path12, JSON.stringify(config, null, 2) + "\n");
|
|
13198
13198
|
} catch (error) {
|
|
13199
13199
|
if (error.code === "EEXIST")
|
|
13200
|
-
throw new Error(`Another Connect wrote a Runner identity for this Team at ${
|
|
13200
|
+
throw new Error(`Another Connect wrote a Runner identity for this Team at ${path12} meanwhile; it was left unchanged.`);
|
|
13201
13201
|
throw error;
|
|
13202
13202
|
}
|
|
13203
|
-
return { status: "connected", config, path:
|
|
13203
|
+
return { status: "connected", config, path: path12, replaced };
|
|
13204
13204
|
}
|
|
13205
13205
|
function pathSegment(value) {
|
|
13206
13206
|
const segment = encodeURIComponent(value);
|
|
@@ -13240,7 +13240,7 @@ async function refuseExisting(target) {
|
|
|
13240
13240
|
throw new Error(`This machine already has a Runner${name ? ` (${name})` : ""} configured at ${target}.`);
|
|
13241
13241
|
}
|
|
13242
13242
|
async function disconnectRunner({
|
|
13243
|
-
identity: { path:
|
|
13243
|
+
identity: { path: path12, config },
|
|
13244
13244
|
serviceManager,
|
|
13245
13245
|
othersRemain
|
|
13246
13246
|
}) {
|
|
@@ -13273,7 +13273,7 @@ async function disconnectRunner({
|
|
|
13273
13273
|
await restore();
|
|
13274
13274
|
throw new Error(`The Hub refused to disconnect ${name} (${body.error ?? response.status}); it is still connected.`);
|
|
13275
13275
|
}
|
|
13276
|
-
await forgetRunner(
|
|
13276
|
+
await forgetRunner(path12);
|
|
13277
13277
|
if (othersRemain) await restore();
|
|
13278
13278
|
else await serviceManager?.remove();
|
|
13279
13279
|
return result;
|
|
@@ -13426,18 +13426,18 @@ async function runRunnerCommandV2(input, options = {}) {
|
|
|
13426
13426
|
`This machine is already connected to this Team as ${outcome.name}, but ${why}. ` + (code ? `The code was not used: connect a new Runner in its place with ${retry}. ` : `Connect a new Runner in its place with a Connect code from Settings \u2192 Runners: ${retry}. `) + `The old ${outcome.name} stays listed in Settings \u2192 Runners, offline.`
|
|
13427
13427
|
);
|
|
13428
13428
|
}
|
|
13429
|
-
const { config, path:
|
|
13429
|
+
const { config, path: path12, replaced } = outcome;
|
|
13430
13430
|
for (const aside of replaced)
|
|
13431
13431
|
process.stdout.write(
|
|
13432
13432
|
`The Hub no longer recognised this machine's earlier identity for this Team; it was moved aside to ${aside}.
|
|
13433
13433
|
`
|
|
13434
13434
|
);
|
|
13435
13435
|
process.stdout.write(
|
|
13436
|
-
`Connected as ${config.name ?? config.runnerId}. Identity saved to ${
|
|
13436
|
+
`Connected as ${config.name ?? config.runnerId}. Identity saved to ${path12}.
|
|
13437
13437
|
`
|
|
13438
13438
|
);
|
|
13439
13439
|
if (services) {
|
|
13440
|
-
const service = await ensureService(services, config,
|
|
13440
|
+
const service = await ensureService(services, config, path12);
|
|
13441
13441
|
process.stdout.write(`${serviceStarted(service)}
|
|
13442
13442
|
`);
|
|
13443
13443
|
return 0;
|
|
@@ -13446,7 +13446,7 @@ async function runRunnerCommandV2(input, options = {}) {
|
|
|
13446
13446
|
process.stdout.write(
|
|
13447
13447
|
"No launchd or systemd here to run the Runner as a background service; running it in the foreground instead.\n"
|
|
13448
13448
|
);
|
|
13449
|
-
await runConfiguredRunner(
|
|
13449
|
+
await runConfiguredRunner(path12, options.signal);
|
|
13450
13450
|
return 0;
|
|
13451
13451
|
}
|
|
13452
13452
|
case "disconnect": {
|
|
@@ -13517,9 +13517,9 @@ async function runRunnerCommandV2(input, options = {}) {
|
|
|
13517
13517
|
configured: true,
|
|
13518
13518
|
// One entry per Team this machine serves; credentials are never printed.
|
|
13519
13519
|
teams: identities.map(
|
|
13520
|
-
({ path:
|
|
13520
|
+
({ path: path12, config: { token: _token, ...config } }) => ({
|
|
13521
13521
|
...config,
|
|
13522
|
-
path:
|
|
13522
|
+
path: path12
|
|
13523
13523
|
})
|
|
13524
13524
|
),
|
|
13525
13525
|
service: service ? {
|
|
@@ -13864,9 +13864,9 @@ var DrispClient = class _DrispClient {
|
|
|
13864
13864
|
if (!match) throw new Error("invalid_hub_url");
|
|
13865
13865
|
return new _DrispClient(url.origin, decodeURIComponent(match[1]), async () => token);
|
|
13866
13866
|
}
|
|
13867
|
-
async request(
|
|
13867
|
+
async request(path12, body) {
|
|
13868
13868
|
const response = await fetch(
|
|
13869
|
-
`${this.baseUrl}/v2/orgs/${encodeURIComponent(this.orgId)}${
|
|
13869
|
+
`${this.baseUrl}/v2/orgs/${encodeURIComponent(this.orgId)}${path12}`,
|
|
13870
13870
|
{
|
|
13871
13871
|
method: body === void 0 ? "GET" : "POST",
|
|
13872
13872
|
headers: {
|
|
@@ -14758,16 +14758,73 @@ function runBuildStep(input) {
|
|
|
14758
14758
|
return artifact;
|
|
14759
14759
|
}
|
|
14760
14760
|
|
|
14761
|
+
// src/core/build/merged.ts
|
|
14762
|
+
import fs9 from "fs";
|
|
14763
|
+
import path9 from "path";
|
|
14764
|
+
var pullRequestArtifactSchema = external_exports.strictObject({
|
|
14765
|
+
url: external_exports.url(),
|
|
14766
|
+
number: external_exports.number().int().positive(),
|
|
14767
|
+
sha: external_exports.string().regex(/^[0-9a-f]{40}$/),
|
|
14768
|
+
mergedAt: external_exports.iso.datetime()
|
|
14769
|
+
});
|
|
14770
|
+
function runBuildMerged(input) {
|
|
14771
|
+
const directory = requireEnv(input.env, "DRISP_RUN_ARTIFACTS");
|
|
14772
|
+
if (!fs9.statSync(directory, { throwIfNoEntry: false })?.isDirectory())
|
|
14773
|
+
throw new BuildUsageError(
|
|
14774
|
+
`DRISP_RUN_ARTIFACTS (${directory}) is not a directory.`
|
|
14775
|
+
);
|
|
14776
|
+
let view;
|
|
14777
|
+
try {
|
|
14778
|
+
view = JSON.parse(
|
|
14779
|
+
input.gh(
|
|
14780
|
+
[
|
|
14781
|
+
"pr",
|
|
14782
|
+
"view",
|
|
14783
|
+
...input.pullRequest ? [input.pullRequest] : [],
|
|
14784
|
+
"--json",
|
|
14785
|
+
"state,url,number,mergeCommit,mergedAt"
|
|
14786
|
+
],
|
|
14787
|
+
input.cwd
|
|
14788
|
+
)
|
|
14789
|
+
);
|
|
14790
|
+
} catch {
|
|
14791
|
+
throw new BuildUsageError("gh pr view did not report this pull request.");
|
|
14792
|
+
}
|
|
14793
|
+
if (view.state !== "MERGED")
|
|
14794
|
+
throw new BuildUsageError(
|
|
14795
|
+
`This pull request is not merged (state ${String(view.state)}).`
|
|
14796
|
+
);
|
|
14797
|
+
const parsed = pullRequestArtifactSchema.safeParse({
|
|
14798
|
+
url: view.url,
|
|
14799
|
+
number: view.number,
|
|
14800
|
+
sha: view.mergeCommit?.oid,
|
|
14801
|
+
mergedAt: view.mergedAt
|
|
14802
|
+
});
|
|
14803
|
+
if (!parsed.success)
|
|
14804
|
+
throw new BuildUsageError(
|
|
14805
|
+
`The merged pull request has a bad shape: ${parsed.error.issues.map((issue) => issue.path.join(".")).join(", ")}.`
|
|
14806
|
+
);
|
|
14807
|
+
fs9.writeFileSync(
|
|
14808
|
+
path9.join(directory, "pull_request.json"),
|
|
14809
|
+
`${JSON.stringify(parsed.data)}
|
|
14810
|
+
`
|
|
14811
|
+
);
|
|
14812
|
+
return parsed.data;
|
|
14813
|
+
}
|
|
14814
|
+
|
|
14761
14815
|
// src/app/entry/buildCommand.ts
|
|
14762
14816
|
var USAGE3 = `Usage: drisp build plan --input <path>
|
|
14763
14817
|
drisp build tick --input <path> [--rebase-failed <IDENTIFIER>]...
|
|
14764
14818
|
drisp build checks
|
|
14765
14819
|
drisp build step <n> [--qa none|web|macos]
|
|
14820
|
+
drisp build merged [<pr url or number>]
|
|
14766
14821
|
plan and tick run inside an Orchestrator Run (DRISP_RUN_ID, DRISP_RUNNER_ID and DRISP_RUN_ARTIFACTS set; tick also
|
|
14767
14822
|
DRISP_RUN_TOKEN and DRISP_HUB_URL). DRISP_BUILD_PLAN_INPUT=<path> stands in for plan's --input, with
|
|
14768
14823
|
fills/<IDENTIFIER>.json beside it. checks runs in a child's worktree: the merge gate's verdict on HEAD's GitHub runs.
|
|
14769
14824
|
step runs in any Run with DRISP_RUN_ARTIFACTS set: it writes the step artifact {index, title, total} for gate <n> of the
|
|
14770
|
-
build-child template (QA is a gate unless --qa none) and refuses an index outside the list
|
|
14825
|
+
build-child template (QA is a gate unless --qa none) and refuses an index outside the list.
|
|
14826
|
+
merged runs in a child's worktree after its pull request merged: it writes the pull_request artifact
|
|
14827
|
+
{url, number, sha, mergedAt} and refuses a pull request that is not merged.`;
|
|
14771
14828
|
function githubPullRequests(folder, branch) {
|
|
14772
14829
|
const output = execFileSync(
|
|
14773
14830
|
"gh",
|
|
@@ -14885,6 +14942,14 @@ async function runBuildCommand(input) {
|
|
|
14885
14942
|
case "checks":
|
|
14886
14943
|
output = runBuildChecks(input.cwd, input.checks ?? defaultChecks);
|
|
14887
14944
|
break;
|
|
14945
|
+
case "merged":
|
|
14946
|
+
output = runBuildMerged({
|
|
14947
|
+
env: env2,
|
|
14948
|
+
cwd: input.cwd,
|
|
14949
|
+
...input.positional?.[0] ? { pullRequest: input.positional[0] } : {},
|
|
14950
|
+
gh: (input.checks ?? defaultChecks).gh
|
|
14951
|
+
});
|
|
14952
|
+
break;
|
|
14888
14953
|
case "step":
|
|
14889
14954
|
output = runBuildStep({
|
|
14890
14955
|
env: env2,
|
|
@@ -14914,9 +14979,9 @@ import process7 from "process";
|
|
|
14914
14979
|
|
|
14915
14980
|
// src/harnesses/claude/system/doctorEnvironment.ts
|
|
14916
14981
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
14917
|
-
import * as
|
|
14982
|
+
import * as fs10 from "fs";
|
|
14918
14983
|
import * as os4 from "os";
|
|
14919
|
-
import * as
|
|
14984
|
+
import * as path10 from "path";
|
|
14920
14985
|
var MANAGED_POLICY_KEYS = [
|
|
14921
14986
|
"forceLoginMethod",
|
|
14922
14987
|
"forceLoginOrgUUID",
|
|
@@ -15020,8 +15085,8 @@ function collectEnvironment(options = {}) {
|
|
|
15020
15085
|
const detectVersion = options.detectClaudeVersionFn ?? detectClaudeVersion;
|
|
15021
15086
|
const runAuthStatus = options.runClaudeAuthStatusFn ?? runClaudeAuthStatus;
|
|
15022
15087
|
const resolveForwarder = options.resolveHookForwarderCommandFn ?? resolveHookForwarderCommand;
|
|
15023
|
-
const statFn = options.statFn ?? ((p) =>
|
|
15024
|
-
const readFileFn = options.readFileFn ?? ((p) =>
|
|
15088
|
+
const statFn = options.statFn ?? ((p) => fs10.statSync(p));
|
|
15089
|
+
const readFileFn = options.readFileFn ?? ((p) => fs10.readFileSync(p, "utf8"));
|
|
15025
15090
|
const settingsPaths = resolveClaudeSettingsSurfacePaths(
|
|
15026
15091
|
homeDir,
|
|
15027
15092
|
cwd,
|
|
@@ -15066,7 +15131,7 @@ function collectEnvironment(options = {}) {
|
|
|
15066
15131
|
});
|
|
15067
15132
|
let globalConfigPresent = false;
|
|
15068
15133
|
try {
|
|
15069
|
-
statFn(
|
|
15134
|
+
statFn(path10.join(homeDir, ".claude.json"));
|
|
15070
15135
|
globalConfigPresent = true;
|
|
15071
15136
|
} catch {
|
|
15072
15137
|
globalConfigPresent = false;
|
|
@@ -15546,13 +15611,13 @@ function runRunsCommand(input) {
|
|
|
15546
15611
|
// src/app/entry/cli.tsx
|
|
15547
15612
|
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
15548
15613
|
function resolvePackageJsonPath(entryUrl) {
|
|
15549
|
-
let currentDir =
|
|
15614
|
+
let currentDir = path11.dirname(fileURLToPath(entryUrl));
|
|
15550
15615
|
for (; ; ) {
|
|
15551
|
-
const candidatePath =
|
|
15552
|
-
if (
|
|
15616
|
+
const candidatePath = path11.join(currentDir, "package.json");
|
|
15617
|
+
if (fs11.existsSync(candidatePath)) {
|
|
15553
15618
|
return candidatePath;
|
|
15554
15619
|
}
|
|
15555
|
-
const parentDir =
|
|
15620
|
+
const parentDir = path11.dirname(currentDir);
|
|
15556
15621
|
if (parentDir === currentDir) {
|
|
15557
15622
|
throw new Error("Could not locate package.json for CLI metadata.");
|
|
15558
15623
|
}
|
|
@@ -15725,6 +15790,7 @@ var cli = meow(
|
|
|
15725
15790
|
build tick --input <path> Run one step of a started Build (prints the next action; [--rebase-failed <ID>]...)
|
|
15726
15791
|
build checks The merge gate's verdict on HEAD's GitHub runs (in a child's worktree)
|
|
15727
15792
|
build step <n> Report the Run's current step: writes the step run artifact ([--qa none|web|macos])
|
|
15793
|
+
build merged Record the merged pull request: writes the pull_request run artifact
|
|
15728
15794
|
telemetry [action] Manage anonymous telemetry (enable/disable/status)
|
|
15729
15795
|
doctor Diagnose Claude headless setup (use with --harness=claude)
|
|
15730
15796
|
|
|
@@ -15904,7 +15970,7 @@ var cli = meow(
|
|
|
15904
15970
|
}
|
|
15905
15971
|
);
|
|
15906
15972
|
async function main() {
|
|
15907
|
-
const projectDir =
|
|
15973
|
+
const projectDir = path11.resolve(cli.flags.projectDir);
|
|
15908
15974
|
const [command, ...commandArgs] = cli.input;
|
|
15909
15975
|
const isRunCommand = command === "run" || command === "exec";
|
|
15910
15976
|
if (command && !KNOWN_COMMANDS.has(command)) {
|
|
@@ -15958,7 +16024,7 @@ Available commands: ${[...KNOWN_COMMANDS].join(", ")}`
|
|
|
15958
16024
|
await exitWith(1);
|
|
15959
16025
|
return;
|
|
15960
16026
|
}
|
|
15961
|
-
const { default: WorkflowInstallWizard } = await import("./WorkflowInstallWizard-
|
|
16027
|
+
const { default: WorkflowInstallWizard } = await import("./WorkflowInstallWizard-YANLNMTP.js");
|
|
15962
16028
|
const { waitUntilExit } = render(
|
|
15963
16029
|
/* @__PURE__ */ jsx24(
|
|
15964
16030
|
WorkflowInstallWizard,
|
|
@@ -16125,8 +16191,8 @@ Available commands: ${[...KNOWN_COMMANDS].join(", ")}`
|
|
|
16125
16191
|
const showSetup = isRunCommand ? false : shouldShowSetup({
|
|
16126
16192
|
cliInput: cli.input,
|
|
16127
16193
|
setupComplete: globalConfig.setupComplete,
|
|
16128
|
-
globalConfigExists:
|
|
16129
|
-
|
|
16194
|
+
globalConfigExists: fs11.existsSync(
|
|
16195
|
+
path11.join(os5.homedir(), ".config", "athena", "config.json")
|
|
16130
16196
|
)
|
|
16131
16197
|
});
|
|
16132
16198
|
let runtimeConfig;
|
package/dist/dashboard-daemon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./chunk-
|
|
2
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-Y6XJPUR2.js";
|
|
2
|
+
import "./chunk-2N7IBKJF.js";
|
|
3
3
|
import "./chunk-PQIB66SG.js";
|
|
4
|
-
import "./chunk-
|
|
4
|
+
import "./chunk-W57EQYCM.js";
|
|
5
5
|
import "./chunk-G3PMV62Z.js";
|
|
6
6
|
//# sourceMappingURL=dashboard-daemon.js.map
|
package/dist/runner.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./chunk-
|
|
2
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-Y6XJPUR2.js";
|
|
2
|
+
import "./chunk-2N7IBKJF.js";
|
|
3
3
|
import "./chunk-PQIB66SG.js";
|
|
4
|
-
import "./chunk-
|
|
4
|
+
import "./chunk-W57EQYCM.js";
|
|
5
5
|
import "./chunk-G3PMV62Z.js";
|
|
6
6
|
//# sourceMappingURL=runner.js.map
|