@songsid/agend 2.4.0-beta.12 → 2.4.0-beta.13
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 +5 -0
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/codex.js +11 -0
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/types.d.ts +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/daemon.d.ts +8 -1
- package/dist/daemon.js +34 -7
- package/dist/daemon.js.map +1 -1
- package/dist/dispatcher-liveness.js +2 -2
- package/dist/dispatcher-liveness.js.map +1 -1
- package/dist/fleet-manager.d.ts +5 -0
- package/dist/fleet-manager.js +21 -1
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +7 -0
- package/dist/instance-lifecycle.d.ts +3 -0
- package/dist/instance-lifecycle.js +7 -3
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/locale.js +6 -0
- package/dist/locale.js.map +1 -1
- package/dist/needs-you.d.ts +5 -1
- package/dist/needs-you.js +4 -0
- package/dist/needs-you.js.map +1 -1
- package/dist/office-share-page.js +1 -1
- package/dist/office-share-page.js.map +1 -1
- package/dist/outbound-handlers.js +2 -0
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/pause-marker.d.ts +1 -1
- package/dist/pause-marker.js +1 -1
- package/dist/pause-marker.js.map +1 -1
- package/dist/public-web-gateway.d.ts +20 -0
- package/dist/public-web-gateway.js +61 -4
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/ui/accounts-keepalive.js +2 -1
- package/dist/ui/accounts-view.js +2 -1
- package/dist/ui/fleet-canvas.js +3 -1
- package/dist/ui/fleet-office-skin.js +4 -3
- package/dist/ui/fleet-route.js +44 -6
- package/dist/ui/fleet-task-view.js +2 -1
- package/dist/ui/host-install.js +5 -2
- package/dist/ui/hub-ai-apps.js +2 -1
- package/dist/ui/hub-chat-strings.js +2 -1
- package/dist/ui/hub-grant-picker.js +2 -1
- package/dist/ui/hub-group-strings.js +2 -1
- package/dist/ui/hub-my-agents.js +2 -1
- package/dist/ui/hub-owner-strings.js +2 -1
- package/dist/ui/hub-personal-agent.js +2 -1
- package/dist/ui/hub-quota.js +2 -1
- package/dist/ui/hub-roles-strings.js +2 -1
- package/dist/ui/hub-room-new-strings.js +2 -1
- package/dist/ui/hub-room-source.js +2 -1
- package/dist/ui/hub-strings.js +2 -1
- package/dist/ui/hub-teams.js +2 -1
- package/dist/ui/model-picker.js +3 -2
- package/dist/ui/panel-chat.js +6 -2
- package/dist/ui/panel-hub.js +7 -3
- package/dist/ui/panel-needs.js +3 -2
- package/dist/ui/panel-runtimes.js +2 -1
- package/dist/ui/reply-file-preview.js +2 -1
- package/dist/ui/settings-access-overview.js +2 -1
- package/dist/ui/settings-connector.js +2 -1
- package/dist/ui/shared/agent-sheet.js +2 -1
- package/dist/ui/shared/app-i18n.js +2 -2
- package/dist/ui/shared/app-shell.js +33 -9
- package/dist/ui/shared/app.css +11 -0
- package/dist/ui/shared/asset-url.d.ts +2 -0
- package/dist/ui/shared/asset-url.js +20 -0
- package/dist/ui/shared/chat-table-select.js +175 -0
- package/dist/ui/shared/image-annotate.js +2 -1
- package/dist/ui/shared/ui-states.js +3 -2
- package/dist/ui/shared/view-history.js +2 -1
- package/dist/ui/subagent-row.js +3 -2
- package/dist/ui/usage-pool.js +2 -1
- package/dist/ui/workspace-panel.js +2 -1
- package/dist/wake-coordinator.js +3 -2
- package/dist/wake-coordinator.js.map +1 -1
- package/dist/web-api.js +1 -1
- package/dist/web-api.js.map +1 -1
- package/dist/web-host-install.d.ts +1 -1
- package/package.json +1 -1
package/dist/daemon.js
CHANGED
|
@@ -1568,6 +1568,8 @@ export class Daemon extends EventEmitter {
|
|
|
1568
1568
|
* instance is still auth-broken and must not resume raising alarms.
|
|
1569
1569
|
*/
|
|
1570
1570
|
authFailureUnresolved = false;
|
|
1571
|
+
/** A process-local login failure cannot be repaired by a valid auth file or idle chrome. */
|
|
1572
|
+
staleAuth = null;
|
|
1571
1573
|
/** One login-screen auth report per spawn — the screen persists across polls. */
|
|
1572
1574
|
loginScreenReported = false;
|
|
1573
1575
|
/** #2795: the auth pattern match the token-free check is still to judge; it arms nothing until confirmAuthFailure(). */
|
|
@@ -1861,7 +1863,7 @@ export class Daemon extends EventEmitter {
|
|
|
1861
1863
|
if (!["codex", "grok"].includes(this.backend?.binaryName ?? ""))
|
|
1862
1864
|
return [];
|
|
1863
1865
|
const patterns = this.backend?.getErrorPatterns?.() ?? [];
|
|
1864
|
-
return this.backend?.binaryName === "codex" ? patterns.filter(ep => Daemon.isCodexUsageLimitPause(ep)) : patterns.filter(ep => ep.type === "quota");
|
|
1866
|
+
return this.backend?.binaryName === "codex" ? patterns.filter(ep => Daemon.isCodexUsageLimitPause(ep) || ep.type === "stale_auth") : patterns.filter(ep => ep.type === "quota");
|
|
1865
1867
|
}
|
|
1866
1868
|
async prepareQuotaReplayHistory(reuseWindow) {
|
|
1867
1869
|
this.quotaReplay = null;
|
|
@@ -1923,7 +1925,7 @@ export class Daemon extends EventEmitter {
|
|
|
1923
1925
|
this.quotaInput = history.marker && history.occurrences === 0 ? { history, reported: new Map() } : null;
|
|
1924
1926
|
}
|
|
1925
1927
|
quotaOccurrencesAfterInput(pane, ep) {
|
|
1926
|
-
if (!(this.backend?.binaryName === "codex" && Daemon.isCodexUsageLimitPause(ep)
|
|
1928
|
+
if (!(this.backend?.binaryName === "codex" && (Daemon.isCodexUsageLimitPause(ep) || ep.type === "stale_auth")
|
|
1927
1929
|
|| this.backend?.binaryName === "grok" && ep.type === "quota"))
|
|
1928
1930
|
return null;
|
|
1929
1931
|
const input = this.quotaInput, history = input?.history;
|
|
@@ -2087,6 +2089,10 @@ export class Daemon extends EventEmitter {
|
|
|
2087
2089
|
}
|
|
2088
2090
|
return super.emit(event, ...args);
|
|
2089
2091
|
}
|
|
2092
|
+
/** Attention remains active for General/busy agents too, until a new launch takes ownership. */
|
|
2093
|
+
staleAuthIssue() {
|
|
2094
|
+
return this.staleAuth?.generation === this.spawnGeneration ? { since: this.staleAuth.since } : null;
|
|
2095
|
+
}
|
|
2090
2096
|
/**
|
|
2091
2097
|
* Undo an auth suspicion once the backend's token-free probe has said the credentials are fine. Since #2795 a pane
|
|
2092
2098
|
* pattern match arms nothing before that probe (its pending match is just dropped); what is left to undo is a
|
|
@@ -2095,6 +2101,8 @@ export class Daemon extends EventEmitter {
|
|
|
2095
2101
|
* is still live and stays.
|
|
2096
2102
|
*/
|
|
2097
2103
|
clearSuspectedAuthFailure() {
|
|
2104
|
+
if (this.staleAuthIssue())
|
|
2105
|
+
return false;
|
|
2098
2106
|
this.unverifiedAuthMatch = null;
|
|
2099
2107
|
if (!this.authFailureUnresolved && !this.loginScreenReported)
|
|
2100
2108
|
return false;
|
|
@@ -2970,6 +2978,8 @@ export class Daemon extends EventEmitter {
|
|
|
2970
2978
|
const oomStop = readSessionOomStop(this.instanceDir);
|
|
2971
2979
|
if (oomStop.blocked)
|
|
2972
2980
|
return sessionOomStopHint(oomStop);
|
|
2981
|
+
if (this.staleAuthIssue())
|
|
2982
|
+
return t("inst.codex_stale_auth");
|
|
2973
2983
|
if (this.pauseWakeState !== "active")
|
|
2974
2984
|
return t("delivery.hold_state", this.pauseWakeState);
|
|
2975
2985
|
if (this.inputBlockedDialogKey !== null)
|
|
@@ -4714,6 +4724,8 @@ export class Daemon extends EventEmitter {
|
|
|
4714
4724
|
}
|
|
4715
4725
|
/** Evaluate one pane snapshot. Kept synchronous so state-machine edges are unit-testable. */
|
|
4716
4726
|
evaluateErrorPatterns(pane, patterns, readyPattern, now = Date.now(), busyPattern = null) {
|
|
4727
|
+
if (this.staleAuthIssue())
|
|
4728
|
+
return; // Ready chrome and recovery deadlines cannot repair this process.
|
|
4717
4729
|
// Count occurrences across the WHOLE pane (not just text after the last
|
|
4718
4730
|
// ready prompt). One shared counter (the static below): arm requires
|
|
4719
4731
|
// count > baseline, so a drifted clone here would silently gate nudges.
|
|
@@ -4824,7 +4836,7 @@ export class Daemon extends EventEmitter {
|
|
|
4824
4836
|
// composer to establish its baseline; later appended occurrences remain eligible.
|
|
4825
4837
|
if ((ep.type === "rate_limit" && ep.action === "nudge_continue") || ep.historyUntilLiveComposer) {
|
|
4826
4838
|
const baseline = this.nudgeBaselines?.get(key);
|
|
4827
|
-
if (baseline === undefined || count <= baseline) {
|
|
4839
|
+
if ((baseline === undefined || count <= baseline) && !(ep.type === "stale_auth" && newQuotaAfterInput)) {
|
|
4828
4840
|
if (baseline !== undefined)
|
|
4829
4841
|
this.lastErrorCount.set(key, count);
|
|
4830
4842
|
continue;
|
|
@@ -4922,6 +4934,10 @@ export class Daemon extends EventEmitter {
|
|
|
4922
4934
|
});
|
|
4923
4935
|
return;
|
|
4924
4936
|
}
|
|
4937
|
+
if (ep.type === "stale_auth") {
|
|
4938
|
+
this.staleAuth = { generation: this.spawnGeneration, since: now };
|
|
4939
|
+
this.authFailureUnresolved = true;
|
|
4940
|
+
}
|
|
4925
4941
|
// #2795: auth text on the pane proves nothing about the credentials (22 of 22 such matches on the main host were
|
|
4926
4942
|
// conversation text). It arms nothing here; it only asks the lifecycle's token-free check, and a failing check
|
|
4927
4943
|
// arms the auth state through confirmAuthFailure().
|
|
@@ -6464,7 +6480,8 @@ export class Daemon extends EventEmitter {
|
|
|
6464
6480
|
// auth pause — otherwise the instance would pause again the moment it idles.
|
|
6465
6481
|
this.pausePending = false;
|
|
6466
6482
|
this.pauseReconfirmAuth = false;
|
|
6467
|
-
this.
|
|
6483
|
+
if (!this.staleAuthIssue())
|
|
6484
|
+
this.authFailureUnresolved = false;
|
|
6468
6485
|
this.unverifiedAuthMatch = null;
|
|
6469
6486
|
this.loginScreenReported = false;
|
|
6470
6487
|
this.fatalStartupReported = false;
|
|
@@ -8985,7 +9002,7 @@ export class Daemon extends EventEmitter {
|
|
|
8985
9002
|
const settleFence = this.launchFenceEpoch;
|
|
8986
9003
|
if (cancelled())
|
|
8987
9004
|
return false;
|
|
8988
|
-
if (this.
|
|
9005
|
+
if (this.refuseBlockedDelivery(verdict, status))
|
|
8989
9006
|
return false;
|
|
8990
9007
|
let windowId = this.getWindowId();
|
|
8991
9008
|
const supportsQueuedInput = this.backend?.supportsQueuedInput?.() === true;
|
|
@@ -9110,7 +9127,7 @@ export class Daemon extends EventEmitter {
|
|
|
9110
9127
|
// delivery from the top, where the settle wait runs again outside it.
|
|
9111
9128
|
if (!settledClean || settleGeneration !== this.spawnGeneration || this.spawning)
|
|
9112
9129
|
return "spawn-started";
|
|
9113
|
-
if (this.
|
|
9130
|
+
if (this.refuseBlockedDelivery(verdict, status))
|
|
9114
9131
|
return false;
|
|
9115
9132
|
// A passive startup phase may paint after the outer readiness probe.
|
|
9116
9133
|
// It clears without input, so waiting under the pane lock cannot starve
|
|
@@ -9144,6 +9161,7 @@ export class Daemon extends EventEmitter {
|
|
|
9144
9161
|
// same process, a pause/stop/respawn is not (launchFenceEpoch moves even
|
|
9145
9162
|
// when a failed pause resumes the monitors).
|
|
9146
9163
|
const writeCurrent = () => !cancelled()
|
|
9164
|
+
&& !this.staleAuthIssue()
|
|
9147
9165
|
&& !this.deliveryWritesStopping
|
|
9148
9166
|
&& !this.runtimeMonitorsFrozen
|
|
9149
9167
|
&& !this.spawning
|
|
@@ -10378,6 +10396,10 @@ export class Daemon extends EventEmitter {
|
|
|
10378
10396
|
* pane proves nothing. The silence gate comes first and costs no capture.
|
|
10379
10397
|
*/
|
|
10380
10398
|
async paneReadinessForDelivery(windowId) {
|
|
10399
|
+
if (this.staleAuthIssue()) {
|
|
10400
|
+
this.resetFooterFallback();
|
|
10401
|
+
return "dialog";
|
|
10402
|
+
}
|
|
10381
10403
|
// Each early return below is the pane seen outside the footer-fallback
|
|
10382
10404
|
// candidate state, and never reaches deliveryInputReadyPane: reset here.
|
|
10383
10405
|
if (!this.isPaneIdleForDelivery(windowId)) {
|
|
@@ -10902,6 +10924,7 @@ export class Daemon extends EventEmitter {
|
|
|
10902
10924
|
}
|
|
10903
10925
|
}
|
|
10904
10926
|
/**
|
|
10927
|
+
* A stale process login refuses delivery before any write; durable attempts stay retryable.
|
|
10905
10928
|
* While the CLI is parked on a fatal startup screen (see fatalStartupBlocked),
|
|
10906
10929
|
* no pane write may happen: paste+Enter into the corrupt-config modal would
|
|
10907
10930
|
* confirm "Exit and fix manually" and exit the CLI. The message is failed (❌)
|
|
@@ -10909,7 +10932,11 @@ export class Daemon extends EventEmitter {
|
|
|
10909
10932
|
* what to fix, and holding would only build a queue that floods the pane the
|
|
10910
10933
|
* moment the flag clears.
|
|
10911
10934
|
*/
|
|
10912
|
-
|
|
10935
|
+
refuseBlockedDelivery(verdict, status) {
|
|
10936
|
+
if (this.staleAuthIssue()) {
|
|
10937
|
+
this.failDelivery(verdict, status, "pre-write", "stale-auth");
|
|
10938
|
+
return true;
|
|
10939
|
+
}
|
|
10913
10940
|
if (!this.fatalStartupBlocked && !this.modelMinimumBlocked)
|
|
10914
10941
|
return false;
|
|
10915
10942
|
this.logger.error("Delivery refused — CLI startup or model-version repair is held");
|