@bli-cockpit/cli 0.2.33 → 0.2.35
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/agent-rules.js +4 -4
- package/dist/autostart.js +4 -4
- package/dist/commands/backfill.js +493 -408
- package/dist/commands/collection-roots.js +3 -3
- package/dist/commands/doctor.js +2 -2
- package/dist/commands/install-update.js +6 -6
- package/dist/commands/jarvis.js +40 -1
- package/dist/commands/local-args.js +5 -2
- package/dist/commands/local-auth.js +3 -3
- package/dist/commands/local-discovery.js +2 -2
- package/dist/commands/local-help.js +11 -9
- package/dist/commands/local.js +411 -337
- package/dist/commands/public-root.js +1 -1
- package/dist/commands/session-sync.js +323 -210
- package/dist/commands/sessions.js +1 -1
- package/dist/commands/status.js +2 -2
- package/dist/onboarding-roots.js +1 -1
- package/package.json +4 -3
package/dist/agent-rules.js
CHANGED
|
@@ -138,13 +138,13 @@ async function inspectAgentRulesForHost(host, options = {}) {
|
|
|
138
138
|
export function cockpitAgentRulesBlock(options = {}) {
|
|
139
139
|
const scopePaths = normalizeScopePaths(options);
|
|
140
140
|
const scopeLine = scopePaths.length === 1
|
|
141
|
-
? `- Only applies when the current working directory is inside the
|
|
141
|
+
? `- Only applies when the current working directory is inside the Tower-onboarded workspace/repo: \`${scopePaths[0]}\`. Outside that folder, do not run Tower ticket binding or sync commands for private chats or unrelated repos.`
|
|
142
142
|
: scopePaths.length > 1
|
|
143
|
-
? `- Only applies when the current working directory is inside one of these
|
|
144
|
-
: "- Only applies when the current working directory is inside the workspace/repo that ran `cockpit onboard` or `cockpit agent-rules install`. Outside that folder, do not run
|
|
143
|
+
? `- Only applies when the current working directory is inside one of these Tower-onboarded workspace roots: ${scopePaths.map((scopePath) => `\`${scopePath}\``).join(", ")}. Outside those folders, do not run Tower ticket binding or sync commands for private chats or unrelated repos.`
|
|
144
|
+
: "- Only applies when the current working directory is inside the workspace/repo that ran `cockpit onboard` or `cockpit agent-rules install`. Outside that folder, do not run Tower ticket binding or sync commands for private chats or unrelated repos.";
|
|
145
145
|
return [
|
|
146
146
|
MANAGED_BLOCK_START,
|
|
147
|
-
"##
|
|
147
|
+
"## Tower Ticket Binding",
|
|
148
148
|
"",
|
|
149
149
|
scopeLine,
|
|
150
150
|
"- Ticketed work (implement / debug / review / PR / ship): run `cockpit start --ticket <ticket-id> --workspace \"$PWD\"` before the first code edit (the flag is `--ticket`). No ticket ID visible → search Linear first; none exists and the work is ticket-worthy → create a narrow Linear ticket, then bind.",
|
package/dist/autostart.js
CHANGED
|
@@ -380,7 +380,7 @@ async function windowsTaskStatus(options) {
|
|
|
380
380
|
})}`;
|
|
381
381
|
const currentScript = await readFile(scriptPath, "utf8").catch(() => null);
|
|
382
382
|
if (currentScript !== expectedScript) {
|
|
383
|
-
registrationProblems.push("sync script does not match the current roots or
|
|
383
|
+
registrationProblems.push("sync script does not match the current roots or Tower runtime");
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
// Same shape as the sync-script checks: existence always, content only when
|
|
@@ -399,7 +399,7 @@ async function windowsTaskStatus(options) {
|
|
|
399
399
|
});
|
|
400
400
|
const currentLauncher = await readFile(launcherPath, "utf8").catch(() => null);
|
|
401
401
|
if (currentLauncher !== expectedLauncher) {
|
|
402
|
-
registrationProblems.push("sync launcher does not match the current
|
|
402
|
+
registrationProblems.push("sync launcher does not match the current Tower runtime");
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
// Both branches log. A line that only fires on failure cannot answer "did
|
|
@@ -721,7 +721,7 @@ function windowsActionArgumentProblem(actionArguments, expectedFlags, expectedLa
|
|
|
721
721
|
return "task action names no sync launcher to run";
|
|
722
722
|
}
|
|
723
723
|
if (!sameWindowsPath(launcherArgument, expectedLauncherPath)) {
|
|
724
|
-
return "task action runs a script other than the
|
|
724
|
+
return "task action runs a script other than the Tower sync launcher";
|
|
725
725
|
}
|
|
726
726
|
return null;
|
|
727
727
|
}
|
|
@@ -883,7 +883,7 @@ function darwinAgentRegistrationProblems(plist, expected) {
|
|
|
883
883
|
" </array>",
|
|
884
884
|
].join("\n");
|
|
885
885
|
if (!plist.includes(expectedProgramArguments)) {
|
|
886
|
-
problems.push("command does not match the current roots, dashboard URL, or
|
|
886
|
+
problems.push("command does not match the current roots, dashboard URL, or Tower runtime");
|
|
887
887
|
}
|
|
888
888
|
return problems;
|
|
889
889
|
}
|