@songsid/agend 2.4.0-beta.4 → 2.4.0-beta.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/auth-api.js +2 -0
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/cli-runtime-switch.d.ts +21 -2
- package/dist/backend/cli-runtime-switch.js +124 -2
- package/dist/backend/cli-runtime-switch.js.map +1 -1
- package/dist/backend/codex-footer-hints.d.ts +1 -0
- package/dist/backend/codex-footer-hints.js +15 -0
- package/dist/backend/codex-footer-hints.js.map +1 -1
- package/dist/backend/codex.d.ts +6 -4
- package/dist/backend/codex.js +26 -9
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/kiro.js +3 -3
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/native-pane.js +1 -1
- package/dist/backend/native-pane.js.map +1 -1
- package/dist/backend/types.d.ts +2 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/daemon.d.ts +3 -0
- package/dist/daemon.js +28 -9
- package/dist/daemon.js.map +1 -1
- package/dist/fleet-manager.d.ts +5 -0
- package/dist/fleet-manager.js +15 -3
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/hub/SKILL.md +27 -18
- package/dist/hub/compose/server.js +4 -3
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/group-policy/admin-api.js +9 -0
- package/dist/hub/group-policy/admin-api.js.map +1 -1
- package/dist/hub/group-policy/admin-control.d.ts +1 -0
- package/dist/hub/group-policy/admin-control.js +13 -4
- package/dist/hub/group-policy/admin-control.js.map +1 -1
- package/dist/hub/group-policy/admin-dto.d.ts +37 -0
- package/dist/hub/group-policy/admin-dto.js.map +1 -1
- package/dist/hub/group-policy/admin-facts.d.ts +4 -2
- package/dist/hub/group-policy/admin-facts.js +17 -2
- package/dist/hub/group-policy/admin-facts.js.map +1 -1
- package/dist/hub/group-policy/admin-impact.d.ts +4 -3
- package/dist/hub/group-policy/admin-impact.js +8 -6
- package/dist/hub/group-policy/admin-impact.js.map +1 -1
- package/dist/hub/group-policy/admin-search.d.ts +2 -1
- package/dist/hub/group-policy/admin-search.js +56 -7
- package/dist/hub/group-policy/admin-search.js.map +1 -1
- package/dist/hub/group-policy/impact-inventory.d.ts +4 -1
- package/dist/hub/group-policy/impact-inventory.js +23 -2
- package/dist/hub/group-policy/impact-inventory.js.map +1 -1
- package/dist/hub/group-policy/model.d.ts +29 -1
- package/dist/hub/group-policy/model.js +20 -7
- package/dist/hub/group-policy/model.js.map +1 -1
- package/dist/hub/group-policy/store.js +22 -3
- package/dist/hub/group-policy/store.js.map +1 -1
- package/dist/hub/group-policy/team-subjects.d.ts +16 -0
- package/dist/hub/group-policy/team-subjects.js +32 -0
- package/dist/hub/group-policy/team-subjects.js.map +1 -0
- package/dist/hub/http/compose.js +15 -1
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/join/client.js +75 -42
- package/dist/hub/join/client.js.map +1 -1
- package/dist/hub/runtime.js +4 -3
- package/dist/hub/runtime.js.map +1 -1
- package/dist/hub/socket.d.ts +1 -0
- package/dist/hub/socket.js +39 -2
- package/dist/hub/socket.js.map +1 -1
- package/dist/hub/teams/index.d.ts +8 -3
- package/dist/hub/teams/index.js +106 -31
- package/dist/hub/teams/index.js.map +1 -1
- package/dist/hub/teams/store.d.ts +5 -1
- package/dist/hub/teams/store.js +25 -2
- package/dist/hub/teams/store.js.map +1 -1
- package/dist/hub/teams/types.d.ts +19 -2
- package/dist/native-mcp.js +1 -2
- package/dist/native-mcp.js.map +1 -1
- package/dist/native-pane-lifecycle.js +3 -2
- package/dist/native-pane-lifecycle.js.map +1 -1
- package/dist/office-share-page.js +1 -1
- package/dist/office-share-page.js.map +1 -1
- package/dist/runtime-pane-native.js +3 -1
- package/dist/runtime-pane-native.js.map +1 -1
- package/dist/ui/chat-store.js +2 -1
- package/dist/ui/fleet-canvas.js +5 -1
- package/dist/ui/fleet-office-carousel.d.ts +14 -0
- package/dist/ui/fleet-office-carousel.js +95 -0
- package/dist/ui/fleet-office-store.js +14 -2
- package/dist/ui/fleet-office.js +125 -13
- package/dist/ui/hub-admin-rooms.js +1 -1
- package/dist/ui/hub-chat-strings.js +7 -0
- package/dist/ui/hub-client.js +3 -0
- package/dist/ui/hub-grant-picker.js +3 -37
- package/dist/ui/hub-group-policy.js +22 -10
- package/dist/ui/hub-group-strings.js +26 -17
- package/dist/ui/hub-join-steps.js +27 -15
- package/dist/ui/hub-policy-subjects.js +35 -0
- package/dist/ui/hub-subject-picker.js +58 -0
- package/dist/ui/hub-teams-strings.js +10 -6
- package/dist/ui/hub-teams.js +56 -28
- package/dist/ui/hub-welcome.js +122 -75
- package/dist/ui/panel-chat.js +179 -11
- package/dist/ui/panel-details.js +3 -1
- package/dist/ui/panel-fleet.js +25 -3
- package/dist/ui/panel-hub.js +101 -57
- package/dist/ui/panel-log.js +3 -1
- package/dist/ui/shared/agent-sheet.js +115 -0
- package/dist/ui/shared/app-shell.js +56 -17
- package/dist/ui/shared/app.css +61 -1
- package/dist/ui/shared/chat-composer.js +23 -2
- package/dist/ui/shared/chat-strings.js +4 -2
- package/dist/ui/shared/chat-work-bar.css +63 -1
- package/dist/ui/shared/hub-chat.css +33 -0
- package/dist/ui/shared/hub-groups.css +18 -14
- package/dist/ui/shared/hub-owner.css +11 -0
- package/dist/ui/shared/hub-rooms-u2.css +4 -0
- package/dist/ui/shared/model-picker.css +27 -0
- package/dist/ui/shared/panel-view.js +7 -1
- package/dist/ui/shared/ui-toast.js +1 -1
- package/package.json +1 -1
package/dist/fleet-manager.d.ts
CHANGED
|
@@ -5146,6 +5146,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
5146
5146
|
* after it. The first step that did not switch ends it, with that step. A model the CLI cannot vouch for is not typed.
|
|
5147
5147
|
*/
|
|
5148
5148
|
private runCliRuntimeSwitch;
|
|
5149
|
+
/**
|
|
5150
|
+
* M-3180: whether this instance's `/model` / `/effort` try its CLI's in-session switch. kiro: only an instance last launched on the
|
|
5151
|
+
* TUI (the v2 engine; the engine ledger) — classic and V3 keep the restart.
|
|
5152
|
+
*/
|
|
5153
|
+
private cliSwitchRouted;
|
|
5149
5154
|
/** M-3180: why a CLI_RUNTIME_SWITCH switch fell back to a restart, in the reply's words. */
|
|
5150
5155
|
private cliSwitchFallbackReason;
|
|
5151
5156
|
/** M-3175: why a codex switch fell back to a restart, in the reply's words. */
|
package/dist/fleet-manager.js
CHANGED
|
@@ -321,6 +321,7 @@ import { idleGateTimeoutLog } from "./idle-gate-log.js";
|
|
|
321
321
|
import { DEFAULT_STUCK_TIMEOUT_MS, readLastInboundAt } from "./daemon.js";
|
|
322
322
|
import { CODEX_INLINE_MODEL_MIN, codexModelCommand } from "./backend/codex-model-switch.js";
|
|
323
323
|
import { CLI_RUNTIME_SWITCH } from "./backend/cli-runtime-switch.js";
|
|
324
|
+
import { readKiroLedger } from "./backend/kiro-engine-ledger.js";
|
|
324
325
|
import { clearPausedMarker, readPausedAt, readPauseReason, writePausedMarker } from "./pause-marker.js";
|
|
325
326
|
import { readBackgroundWorkEndedMarker } from "./background-work-ended.js";
|
|
326
327
|
import { DEFAULT_WARM_OVERFLOW, WakeCoordinator } from "./wake-coordinator.js";
|
|
@@ -1388,7 +1389,7 @@ export class FleetManager {
|
|
|
1388
1389
|
if (this.paneManager)
|
|
1389
1390
|
return this.paneManager;
|
|
1390
1391
|
const store = windowsAgentsFor(this, this.runtimeWindowsExecutor());
|
|
1391
|
-
const allowed = (name, tool) =>
|
|
1392
|
+
const allowed = (name, tool) => nativePaneToolAvailable(tool) && mayUseTool(resolveToolSet(this.fleetConfig?.instances[name], name), tool)
|
|
1392
1393
|
&& !dashboardRefusalIn(this.fleetConfig, name, tool);
|
|
1393
1394
|
return this.paneManager = new NativePaneManager({
|
|
1394
1395
|
home: this.dataDir, store, config: name => this.fleetConfig?.instances[name],
|
|
@@ -25511,6 +25512,17 @@ export class FleetManager {
|
|
|
25511
25512
|
}
|
|
25512
25513
|
return last;
|
|
25513
25514
|
}
|
|
25515
|
+
/**
|
|
25516
|
+
* M-3180: whether this instance's `/model` / `/effort` try its CLI's in-session switch. kiro: only an instance last launched on the
|
|
25517
|
+
* TUI (the v2 engine; the engine ledger) — classic and V3 keep the restart.
|
|
25518
|
+
*/
|
|
25519
|
+
cliSwitchRouted(instanceName, backend) {
|
|
25520
|
+
if (!Object.hasOwn(CLI_RUNTIME_SWITCH, backend))
|
|
25521
|
+
return false;
|
|
25522
|
+
if (backend === "kiro-cli")
|
|
25523
|
+
return readKiroLedger()[instanceName]?.lastLaunch.ui === "tui";
|
|
25524
|
+
return true;
|
|
25525
|
+
}
|
|
25514
25526
|
/** M-3180: why a CLI_RUNTIME_SWITCH switch fell back to a restart, in the reply's words. */
|
|
25515
25527
|
cliSwitchFallbackReason(backend, { result, step }) {
|
|
25516
25528
|
const cli = BACKEND_LABELS[backend] ?? backend, entry = CLI_RUNTIME_SWITCH[backend];
|
|
@@ -26799,7 +26811,7 @@ export class FleetManager {
|
|
|
26799
26811
|
}
|
|
26800
26812
|
// M-3180: a CLI with a verified in-session switch (CLI_RUNTIME_SWITCH) — typed when it can be, confirmed, else restarted.
|
|
26801
26813
|
// The effort is already saved above, so a restart launches with it.
|
|
26802
|
-
if (
|
|
26814
|
+
if (this.cliSwitchRouted(instanceName, backendName) && this.instanceIpcClients.get(instanceName)) {
|
|
26803
26815
|
const done = await this.runCliRuntimeSwitch(instanceName, backendName, { model: null, effort: applied });
|
|
26804
26816
|
if (opts?.current && !opts.current())
|
|
26805
26817
|
return t("menu.instance_replaced", this.shownInstanceName(instanceName));
|
|
@@ -26910,7 +26922,7 @@ export class FleetManager {
|
|
|
26910
26922
|
}
|
|
26911
26923
|
// M-3180: the same for a CLI with a verified in-session switch (CLI_RUNTIME_SWITCH): saved first, switched in place when
|
|
26912
26924
|
// it can be and confirmed, else restarted (as these CLIs always were).
|
|
26913
|
-
if (
|
|
26925
|
+
if (this.cliSwitchRouted(instanceName, backendName) && this.instanceIpcClients.get(instanceName)) {
|
|
26914
26926
|
if (!this.persistInstanceModel(instanceName, model))
|
|
26915
26927
|
return `${warn}${t("model.persist_failed", instanceName)}`;
|
|
26916
26928
|
const entry = CLI_RUNTIME_SWITCH[backendName];
|