@aragon-agent/cli 0.6.68 → 0.6.70
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/CHANGELOG.md +11 -0
- package/README.md +6 -1
- package/dist/agent/controller.d.ts +5 -0
- package/dist/agent/controller.js +13 -6
- package/dist/app/use-governance-rounds.js +8 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -44,6 +44,17 @@ were written.
|
|
|
44
44
|
|
|
45
45
|
### Fixed
|
|
46
46
|
|
|
47
|
+
- **Changing the round budget on the desktop no longer answers with a refusal.** At `auto`, `Ctrl+Up`
|
|
48
|
+
(and the chip's `+`) left the value alone and printed an edge judgement, so the one gesture a user
|
|
49
|
+
tries - "give me my own number" - looked broken. `auto` now has a real number neighbour in BOTH
|
|
50
|
+
directions (`24`, the widest fixed budget) and the sentence names the transition
|
|
51
|
+
(`Round budget: 24 rounds (was auto).`); only `0` downward still changes nothing. The desktop write
|
|
52
|
+
is now serialised per session, so two presses in one frame no longer lose a step or race the
|
|
53
|
+
file's compare-and-swap into the conflict dialog; a press that changes nothing writes nothing (no
|
|
54
|
+
pointless `config.json` rewrite, and no conflict caused by one); and a failed IPC write is one
|
|
55
|
+
warning instead of an unhandled rejection. The composer's `Rounds` chip lists all thirteen numbers,
|
|
56
|
+
so `6` is one click instead of five presses, and Settings > Governance > Round budget saves `0` as
|
|
57
|
+
`0` rather than turning it into `auto`.
|
|
47
58
|
- **Ctrl+Q no longer says "No genes yet" about a library that holds genes.** The default view is your user
|
|
48
59
|
scope plus the current project, published genes only; with 20 genes in the library (3 published in other
|
|
49
60
|
projects, 17 rejected) it showed an empty list and invited you to write the first one. The empty state now
|
package/README.md
CHANGED
|
@@ -1787,7 +1787,12 @@ the file stores: two presentations of one value).
|
|
|
1787
1787
|
the round budget (`governance.arrowRounds`, on by default); everywhere else - BUILD, PLAN, and any
|
|
1788
1788
|
live run - the same keys still set the team size, because a budget you cannot use yet is not worth
|
|
1789
1789
|
the key while agents need sizing. `/gov rounds` reads it, `/keys rounds` finds both meanings, and
|
|
1790
|
-
`governance.arrowRounds: false` hands the keys back to team size permanently.
|
|
1790
|
+
`governance.arrowRounds: false` hands the keys back to team size permanently. The ladder has one
|
|
1791
|
+
edge and one pair of ends: `24` is the widest **fixed** budget and `auto` is the widest **step**, so
|
|
1792
|
+
`auto` -> `24` -> `auto` is a two-element loop in both directions (a rise at `auto` is no longer
|
|
1793
|
+
answered with "nothing changed", it adopts `24` and says the mode was left), and only `0` downward
|
|
1794
|
+
still changes nothing at all. A specific number is also one click: the desktop composer's `Rounds`
|
|
1795
|
+
chip lists all thirteen rungs beside the `Auto` row.
|
|
1791
1796
|
|
|
1792
1797
|
**Cost before you start.** The charter, `/gov status` and the `gov_run start` result carry a
|
|
1793
1798
|
dispatch plan: how many `gov_dispatch` calls a clean run needs (stages wider than
|
|
@@ -915,10 +915,15 @@ export declare class AgentController {
|
|
|
915
915
|
* re-renders the system prompt - exactly like `/gov budget` - and persisting is the
|
|
916
916
|
* CALLER's second call (`persistConfig`). A controller that persisted here would be a
|
|
917
917
|
* second write path around the App's `updatePersistedConfig`.
|
|
918
|
+
*
|
|
919
|
+
* `changed` is what the caller persists on: an EDGE press (only `0` downwards, now that auto
|
|
920
|
+
* has a neighbour) changes nothing, so it must not reach `setGovernanceConfig` either - that
|
|
921
|
+
* call would rebuild the system prompt for a value nobody edited (D-5).
|
|
918
922
|
*/
|
|
919
923
|
stepGovernanceRounds(delta: 1 | -1): {
|
|
920
924
|
value: RoundBudget;
|
|
921
925
|
toast: string;
|
|
926
|
+
changed: boolean;
|
|
922
927
|
};
|
|
923
928
|
/** Adopt a governance config patch for this session and re-render (the block quotes limits). */
|
|
924
929
|
setGovernanceConfig(patch: Partial<GovernanceConfig>): GovernanceConfig;
|
package/dist/agent/controller.js
CHANGED
|
@@ -2550,15 +2550,22 @@ export class AgentController {
|
|
|
2550
2550
|
* re-renders the system prompt - exactly like `/gov budget` - and persisting is the
|
|
2551
2551
|
* CALLER's second call (`persistConfig`). A controller that persisted here would be a
|
|
2552
2552
|
* second write path around the App's `updatePersistedConfig`.
|
|
2553
|
+
*
|
|
2554
|
+
* `changed` is what the caller persists on: an EDGE press (only `0` downwards, now that auto
|
|
2555
|
+
* has a neighbour) changes nothing, so it must not reach `setGovernanceConfig` either - that
|
|
2556
|
+
* call would rebuild the system prompt for a value nobody edited (D-5).
|
|
2553
2557
|
*/
|
|
2554
2558
|
stepGovernanceRounds(delta) {
|
|
2555
|
-
const
|
|
2556
|
-
const
|
|
2559
|
+
const previous = this.getGovernanceRounds();
|
|
2560
|
+
const step = stepRoundBudget(previous, delta);
|
|
2557
2561
|
const live = this.getGovernanceSnapshot()?.rounds ?? null;
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
+
// THE ADOPTED value, never the requested one: every setter in this repo answers with what
|
|
2563
|
+
// the clamp made of the request, so the sentence and the number on screen cannot disagree.
|
|
2564
|
+
const say = (value) => roundsStepToast(value, live ?? undefined, live === null ? undefined : live.limit, step.at, previous);
|
|
2565
|
+
if (step.at !== null)
|
|
2566
|
+
return { value: previous, toast: say(previous), changed: false };
|
|
2567
|
+
const adopted = this.setGovernanceConfig({ rounds: step.value });
|
|
2568
|
+
return { value: adopted.rounds, toast: say(adopted.rounds), changed: true };
|
|
2562
2569
|
}
|
|
2563
2570
|
/** Adopt a governance config patch for this session and re-render (the block quotes limits). */
|
|
2564
2571
|
setGovernanceConfig(patch) {
|
|
@@ -59,10 +59,14 @@ export function useGovernanceRounds(args) {
|
|
|
59
59
|
return false;
|
|
60
60
|
const stepped = live.controller.stepGovernanceRounds(delta);
|
|
61
61
|
// BOTH CALLS, AND NEITHER MAY BE DROPPED (the `/fast` rule): the setter makes this
|
|
62
|
-
// session honour the value, the persist survives a restart.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
// session honour the value, the persist survives a restart. An EDGE press changed nothing,
|
|
63
|
+
// so there is nothing to persist: that write would be a compare-and-swap, and a conflict,
|
|
64
|
+
// for a number nobody edited (D-5).
|
|
65
|
+
if (stepped.changed) {
|
|
66
|
+
const config = live.controller.getGovernanceConfig?.();
|
|
67
|
+
if (config !== undefined)
|
|
68
|
+
live.persistConfig({ governance: config });
|
|
69
|
+
}
|
|
66
70
|
if (stepped.toast !== '')
|
|
67
71
|
live.pushToast('info', stepped.toast);
|
|
68
72
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aragon-agent/cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.70",
|
|
4
4
|
"description": "AragonAgent CLI — a Claude-Code / Codex-style interactive terminal UI (TUI) on top of the @aragon-agent/core engine. Installable and runnable via npm / npx.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "AragonAgent contributors",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"prepublishOnly": "npm run build"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@aragon-agent/core": "^0.2.
|
|
62
|
-
"@aragon-agent/tui": "0.0.
|
|
61
|
+
"@aragon-agent/core": "^0.2.82",
|
|
62
|
+
"@aragon-agent/tui": "0.0.23",
|
|
63
63
|
"commander": "^12.1.0",
|
|
64
64
|
"dotenv": "^16.6.1",
|
|
65
65
|
"env-paths": "^3.0.0",
|