@songsid/agend 2.3.5-beta.2 → 2.3.5-beta.4

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.
Files changed (154) hide show
  1. package/dist/agent-cli-instructions.md +2 -2
  2. package/dist/auth-api.d.ts +2 -0
  3. package/dist/auth-api.js +5 -1
  4. package/dist/auth-api.js.map +1 -1
  5. package/dist/backend/claude-code.d.ts +2 -0
  6. package/dist/backend/claude-code.js +16 -3
  7. package/dist/backend/claude-code.js.map +1 -1
  8. package/dist/backend/cli-env-probe.js +6 -2
  9. package/dist/backend/cli-env-probe.js.map +1 -1
  10. package/dist/backend/codex.d.ts +5 -3
  11. package/dist/backend/codex.js +31 -13
  12. package/dist/backend/codex.js.map +1 -1
  13. package/dist/backend/kiro.js +1 -1
  14. package/dist/backend/kiro.js.map +1 -1
  15. package/dist/backend/types.d.ts +5 -1
  16. package/dist/backend/types.js.map +1 -1
  17. package/dist/bundled-tmux-guard.d.ts +4 -0
  18. package/dist/bundled-tmux-guard.js +7 -0
  19. package/dist/bundled-tmux-guard.js.map +1 -1
  20. package/dist/cache-service.d.ts +6 -0
  21. package/dist/cache-service.js +105 -0
  22. package/dist/cache-service.js.map +1 -1
  23. package/dist/channel/mcp-tools.js +2 -2
  24. package/dist/channel/mcp-tools.js.map +1 -1
  25. package/dist/cli.js +28 -1
  26. package/dist/cli.js.map +1 -1
  27. package/dist/daemon.d.ts +3 -0
  28. package/dist/daemon.js +17 -2
  29. package/dist/daemon.js.map +1 -1
  30. package/dist/fleet-manager.d.ts +71 -0
  31. package/dist/fleet-manager.js +393 -92
  32. package/dist/fleet-manager.js.map +1 -1
  33. package/dist/fleet-process-handlers.d.ts +1 -1
  34. package/dist/fleet-process-handlers.js +3 -2
  35. package/dist/fleet-process-handlers.js.map +1 -1
  36. package/dist/general-knowledge/skills/concepts/SKILL.md +11 -12
  37. package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +9 -1
  38. package/dist/general-knowledge/skills/fleet-config/SKILL.md +12 -0
  39. package/dist/general-knowledge/skills/fleet-health/SKILL.md +1 -1
  40. package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +4 -0
  41. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +16 -11
  42. package/dist/instance-lifecycle.d.ts +1 -1
  43. package/dist/instance-lifecycle.js +16 -1
  44. package/dist/instance-lifecycle.js.map +1 -1
  45. package/dist/instructions.js +29 -6
  46. package/dist/instructions.js.map +1 -1
  47. package/dist/kiro-history-scan.d.ts +26 -0
  48. package/dist/kiro-history-scan.js +141 -0
  49. package/dist/kiro-history-scan.js.map +1 -0
  50. package/dist/kiro-history-worker.d.ts +1 -0
  51. package/dist/kiro-history-worker.js +9 -0
  52. package/dist/kiro-history-worker.js.map +1 -0
  53. package/dist/kiro-history.d.ts +20 -0
  54. package/dist/kiro-history.js +96 -0
  55. package/dist/kiro-history.js.map +1 -0
  56. package/dist/kiro-usage-run.d.ts +2 -0
  57. package/dist/kiro-usage-run.js +4 -1
  58. package/dist/kiro-usage-run.js.map +1 -1
  59. package/dist/locale.js +69 -67
  60. package/dist/locale.js.map +1 -1
  61. package/dist/login-flows.d.ts +4 -0
  62. package/dist/login-flows.js +8 -4
  63. package/dist/login-flows.js.map +1 -1
  64. package/dist/office-levels.d.ts +4 -3
  65. package/dist/office-levels.js +3 -3
  66. package/dist/office-levels.js.map +1 -1
  67. package/dist/outbound-handlers.js +32 -12
  68. package/dist/outbound-handlers.js.map +1 -1
  69. package/dist/outbound-schemas.d.ts +14 -0
  70. package/dist/outbound-schemas.js +4 -0
  71. package/dist/outbound-schemas.js.map +1 -1
  72. package/dist/setup-i18n.js +4 -4
  73. package/dist/setup-i18n.js.map +1 -1
  74. package/dist/subagent-records.d.ts +45 -0
  75. package/dist/subagent-records.js +214 -0
  76. package/dist/subagent-records.js.map +1 -0
  77. package/dist/subagent-service.d.ts +27 -0
  78. package/dist/subagent-service.js +199 -0
  79. package/dist/subagent-service.js.map +1 -0
  80. package/dist/tool-permissions.d.ts +2 -3
  81. package/dist/tool-permissions.js +3 -3
  82. package/dist/tool-permissions.js.map +1 -1
  83. package/dist/ui/backend-signin.js +62 -62
  84. package/dist/ui/chat-commands.js +7 -0
  85. package/dist/ui/chat-msg-actions.js +50 -4
  86. package/dist/ui/chat-quote.js +256 -0
  87. package/dist/ui/chat-render.js +17 -5
  88. package/dist/ui/chat-store.js +9 -4
  89. package/dist/ui/chat-strings.js +18 -18
  90. package/dist/ui/fleet-cache.js +3 -3
  91. package/dist/ui/fleet-canvas.js +2 -2
  92. package/dist/ui/fleet-office-editor.js +1 -1
  93. package/dist/ui/fleet-office.js +1 -1
  94. package/dist/ui/fleet-org.js +2 -2
  95. package/dist/ui/fleet-task-card.js +1 -1
  96. package/dist/ui/fleet-task-common.js +7 -7
  97. package/dist/ui/model-picker.js +64 -0
  98. package/dist/ui/panel-chat.js +81 -17
  99. package/dist/ui/panel-fleet.js +8 -8
  100. package/dist/ui/panel-needs.js +3 -3
  101. package/dist/ui/panel-settings.js +16 -6
  102. package/dist/ui/settings-catalog.js +19 -4
  103. package/dist/ui/settings-dialogs.js +25 -8
  104. package/dist/ui/settings-guests.js +1 -1
  105. package/dist/ui/settings-registry.js +3 -1
  106. package/dist/ui/settings-strings.js +30 -26
  107. package/dist/ui/settings-update.js +69 -0
  108. package/dist/ui/shared/app-i18n.js +8 -4
  109. package/dist/ui/shared/app-shell.js +15 -2
  110. package/dist/ui/shared/app-update.js +215 -0
  111. package/dist/ui/shared/app.css +58 -6
  112. package/dist/ui/shared/instance-nav.js +1 -1
  113. package/dist/ui/shared/model-picker.css +21 -0
  114. package/dist/ui/shared/setup-host-text.js +4 -4
  115. package/dist/ui/shared/signin.js +32 -16
  116. package/dist/ui/shared/subagent-row.css +15 -0
  117. package/dist/ui/shared/usage-dialog.js +28 -16
  118. package/dist/ui/shared/view-strings.js +18 -18
  119. package/dist/ui/structured-signin.js +26 -26
  120. package/dist/ui/subagent-row.js +72 -0
  121. package/dist/ui/web-terminal/terminal.js +9 -9
  122. package/dist/update-launch.js +4 -1
  123. package/dist/update-launch.js.map +1 -1
  124. package/dist/update-marker.d.ts +2 -2
  125. package/dist/update-marker.js +4 -3
  126. package/dist/update-marker.js.map +1 -1
  127. package/dist/update-npm-env.d.ts +70 -0
  128. package/dist/update-npm-env.js +128 -0
  129. package/dist/update-npm-env.js.map +1 -0
  130. package/dist/usage/format-rich.js +1 -1
  131. package/dist/usage/format-rich.js.map +1 -1
  132. package/dist/usage/providers.js +2 -2
  133. package/dist/usage/providers.js.map +1 -1
  134. package/dist/usage/usage-api.d.ts +8 -2
  135. package/dist/usage/usage-api.js +12 -5
  136. package/dist/usage/usage-api.js.map +1 -1
  137. package/dist/usage-rollup.d.ts +3 -0
  138. package/dist/usage-rollup.js +2 -0
  139. package/dist/usage-rollup.js.map +1 -1
  140. package/dist/web-api.d.ts +14 -0
  141. package/dist/web-api.js +216 -2
  142. package/dist/web-api.js.map +1 -1
  143. package/dist/web-auth.js +2 -1
  144. package/dist/web-auth.js.map +1 -1
  145. package/dist/web-channel-echo.js +3 -1
  146. package/dist/web-channel-echo.js.map +1 -1
  147. package/dist/web-commands.d.ts +8 -0
  148. package/dist/web-commands.js +6 -0
  149. package/dist/web-commands.js.map +1 -1
  150. package/dist/web-update.d.ts +77 -0
  151. package/dist/web-update.js +104 -0
  152. package/dist/web-update.js.map +1 -0
  153. package/launcher/agend-install.cjs +16 -3
  154. package/package.json +2 -2
package/dist/daemon.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { SubagentSource } from "./subagent-service.js";
1
2
  import type { RecoveryLive } from "./working-recovery.js";
2
3
  import type { PaneContextSource } from "./pane-context-cache.js";
3
4
  import type { WorkingStateObservation } from "./working-state-journal.js";
@@ -465,6 +466,8 @@ export declare class Daemon extends EventEmitter {
465
466
  private transcriptMonitor;
466
467
  /** #1218: the transcript this instance's monitor follows now (the Log tab reads it on demand; nothing runs for it here). */
467
468
  logTranscriptPath(): string | null;
469
+ /** Optional read-only child lane: only a current owned tmux launch, never stopped/native/cwd discovery. */
470
+ subagentSource(): SubagentSource | null;
468
471
  /** #1218 (kiro): the launch this daemon's backend last built, for the Log's reason only (kiro-log-gate.ts). */
469
472
  logLaunch(): KiroLogLaunch | null;
470
473
  kiroMigrationIdle(): Promise<boolean>;
package/dist/daemon.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { codexMetadataHomes } from "./backend/codex-metadata.js";
1
2
  import { claudeMinimumError, cliVersionBelow } from "./claude-model-minimum.js";
2
3
  import { quotaNoticeProblem } from "./quota-notice-config.js";
3
4
  import { quotaHistoryCount, quotaAfterInput } from "./pane-quota-history.js";
@@ -6,7 +7,7 @@ import { readActiveKiroModel } from "./backend/kiro.js";
6
7
  import { dashboardAccessOf } from "./dashboard-permissions.js";
7
8
  import { sendPackSources } from "./web-office-pack-read.js";
8
9
  import { agendVersion, planWhatsNew, readWhatsNewRecord, recordWhatsNew, withWhatsNew } from "./agent-whats-new.js";
9
- import { join, dirname, resolve } from "node:path";
10
+ import { join, dirname, basename, resolve } from "node:path";
10
11
  import { checkoutTarget, readCheckouts, releaseCandidate, reposRoot, verifyWorktree, writeCheckouts } from "./repo-worktree-guard.js";
11
12
  import { mkdirSync, writeFileSync, readFileSync, readdirSync, existsSync, unlinkSync, rmSync, appendFileSync, statSync, renameSync } from "node:fs";
12
13
  import { COMPACT_WATCH_TIMEOUT_MS, launchIdentity } from "./compact-watch.js";
@@ -70,7 +71,7 @@ import { TranscriptDeltaReader } from "./transcript-delta-reader.js";
70
71
  import { buildResumeContinuation, clearInFlightTurnMarker, consumeInFlightTurnMarker, decideTurnResume, normalizeResumeBackend, readResumeFingerprint, RESUME_BLOCKING_DELIVERY_STATES, writeInFlightTurnMarker, } from "./turn-resume.js";
71
72
  import { codexLiveRowMatches } from "./backend/codex.js";
72
73
  import { codexPackageProblemMessage } from "./backend/codex-package.js";
73
- import { claudeConfigDirFor, claudeProfileConfigDir, claudeSwitchDialog, claudeSwitchTargetMatches } from "./backend/claude-code.js";
74
+ import { claudeConfigDirFor, claudeProfileConfigDir, claudeProjectKey, claudeSwitchDialog, claudeSwitchTargetMatches } from "./backend/claude-code.js";
74
75
  import { MuseBackend } from "./backend/muse.js";
75
76
  import { BACKEND_LABELS, InteractionObservation, INTERACTION_CONFIRM_MS, sameInteractionOwner } from "./interaction-observation.js";
76
77
  import { unrecognisedPromptShape } from "./unrecognised-prompt.js";
@@ -1132,6 +1133,20 @@ export class Daemon extends EventEmitter {
1132
1133
  transcriptMonitor = null;
1133
1134
  /** #1218: the transcript this instance's monitor follows now (the Log tab reads it on demand; nothing runs for it here). */
1134
1135
  logTranscriptPath() { return this.transcriptMonitor?.currentPath() ?? null; }
1136
+ /** Optional read-only child lane: only a current owned tmux launch, never stopped/native/cwd discovery. */
1137
+ subagentSource() {
1138
+ const backend = this.config.backend ?? "claude-code", path = this.logTranscriptPath();
1139
+ if ((backend !== "claude-code" && backend !== "codex") || !path || !this.tmux || this.processStatus !== "running"
1140
+ || this.spawning || this.runtimeMonitorsFrozen)
1141
+ return null;
1142
+ const cwd = this.config.working_directory || process.cwd();
1143
+ const match = /([a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12})\.jsonl$/i.exec(path);
1144
+ if (!match || (backend === "claude-code" && basename(path) !== match[1] + ".jsonl"))
1145
+ return null;
1146
+ return { backend, path, sessionId: match[1], cwd,
1147
+ root: backend === "claude-code" ? join(this.claudeConfigDir(), "projects", claudeProjectKey(cwd)) : join(codexMetadataHomes(this.instanceDir).sharedHome, "sessions"),
1148
+ owner: JSON.stringify(this.getInteractionSnapshot().owner) };
1149
+ }
1135
1150
  /** #1218 (kiro): the launch this daemon's backend last built, for the Log's reason only (kiro-log-gate.ts). */
1136
1151
  logLaunch() { return this.backend?.logLaunch?.() ?? null; }
1137
1152
  async kiroMigrationIdle() {