@nodii/dev 0.6.175 → 0.6.177
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 +177 -20
- package/dist/accounts.js +62 -1
- package/dist/cli.js +98 -92
- package/dist/core.js +2 -2
- package/dist/flags.js +5 -1
- package/dist/freeze.js +35 -2
- package/dist/gather.js +14 -3
- package/dist/handrolled.js +85 -0
- package/dist/hook-handlers.js +127 -0
- package/dist/hooks.js +22 -6
- package/dist/issue-group.js +63 -0
- package/dist/lane-messages.js +313 -0
- package/dist/lane-runtime.js +7 -1
- package/dist/lane-supervisor.js +284 -19
- package/dist/lane-switches.js +32 -0
- package/dist/lanes.js +63 -15
- package/dist/managed-hooks.js +21 -2
- package/dist/nudges.js +54 -20
- package/dist/resume-gate.js +150 -0
- package/dist/runtime-launcher.js +64 -4
- package/dist/safety.js +185 -9
- package/dist/setup.js +3 -1
- package/dist/starting.js +5 -3
- package/package.json +1 -1
package/dist/starting.js
CHANGED
|
@@ -14,6 +14,7 @@ import { hostBootedAt } from "./host.js";
|
|
|
14
14
|
import { cachedGet, laneReadCache } from "./read-cache.js";
|
|
15
15
|
import { clearCoordinatorMarker, coordinatorMarkerPath } from "./coordinator-items.js";
|
|
16
16
|
import { accountFlags, listAccounts, profilePath, registerAccount, reportUsage, usageLine } from "./accounts.js";
|
|
17
|
+
import { subagentBudgetLine } from "./lane-supervisor.js";
|
|
17
18
|
|
|
18
19
|
const execFile = promisify(execFileCallback);
|
|
19
20
|
const via = { via: "nodii-dev" };
|
|
@@ -693,7 +694,8 @@ export async function launchLaneCommand(key, flags, {
|
|
|
693
694
|
profileHome: body.profile,
|
|
694
695
|
cwd: repositories[0].worktree,
|
|
695
696
|
addDirs: repositories.slice(1).map(({ worktree }) => worktree),
|
|
696
|
-
|
|
697
|
+
// NODII-DEV-CLI-191: the brief names the subagent budget.
|
|
698
|
+
prompt: [payload.data.brief, subagentBudgetLine(payload.data.lane?.subagentQuota ?? body.subagentQuota)].filter(Boolean).join("\n\n"),
|
|
697
699
|
runId: payload.data.run.id,
|
|
698
700
|
});
|
|
699
701
|
} catch (error) {
|
|
@@ -978,8 +980,8 @@ export async function currentMarker(run = execFile, load = loadJson, env = proce
|
|
|
978
980
|
return { ...marker, runId };
|
|
979
981
|
}
|
|
980
982
|
|
|
981
|
-
// An amendment, a leeway, a question and its answer or deferral change no brief by themselves.
|
|
982
|
-
const GUARD_EXEMPT_LANE_ACTIONS = new Set(["amend", "leeway", "ask", "asks", "answer", "defer"]);
|
|
983
|
+
// An amendment, a leeway, a question and its answer or deferral, and a lane message change no brief by themselves.
|
|
984
|
+
const GUARD_EXEMPT_LANE_ACTIONS = new Set(["amend", "leeway", "ask", "asks", "answer", "defer", "message", "inbox"]);
|
|
983
985
|
|
|
984
986
|
/**
|
|
985
987
|
* MW1-12.9: what a lane hook tells a long-running session about an amendment
|