@songsid/agend 2.3.5-alpha.6 → 2.3.5-alpha.7

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 (150) hide show
  1. package/dist/auth-api.js +11 -0
  2. package/dist/auth-api.js.map +1 -1
  3. package/dist/authority/web-authority.d.ts +13 -0
  4. package/dist/authority/web-authority.js +12 -0
  5. package/dist/authority/web-authority.js.map +1 -1
  6. package/dist/backend/claude-code.js +47 -9
  7. package/dist/backend/claude-code.js.map +1 -1
  8. package/dist/backend/kiro.js +1 -1
  9. package/dist/backend/kiro.js.map +1 -1
  10. package/dist/build-provenance.json +1 -1
  11. package/dist/channel/access-manager.d.ts +1 -6
  12. package/dist/channel/access-manager.js +4 -94
  13. package/dist/channel/access-manager.js.map +1 -1
  14. package/dist/channel/adapters/discord.d.ts +0 -2
  15. package/dist/channel/adapters/discord.js +0 -8
  16. package/dist/channel/adapters/discord.js.map +1 -1
  17. package/dist/channel/adapters/telegram.d.ts +0 -3
  18. package/dist/channel/adapters/telegram.js +1 -30
  19. package/dist/channel/adapters/telegram.js.map +1 -1
  20. package/dist/channel/types.d.ts +0 -2
  21. package/dist/cli.js +1 -19
  22. package/dist/cli.js.map +1 -1
  23. package/dist/fleet-manager.d.ts +59 -1
  24. package/dist/fleet-manager.js +336 -28
  25. package/dist/fleet-manager.js.map +1 -1
  26. package/dist/general-knowledge/skills/concepts/SKILL.md +22 -7
  27. package/dist/general-knowledge/steering/core-rules.md +6 -4
  28. package/dist/hub/buttons.js +4 -2
  29. package/dist/hub/buttons.js.map +1 -1
  30. package/dist/hub/catalog.d.ts +1 -1
  31. package/dist/hub/catalog.js +82 -15
  32. package/dist/hub/catalog.js.map +1 -1
  33. package/dist/hub/compose/server.d.ts +4 -1
  34. package/dist/hub/compose/server.js +29 -3
  35. package/dist/hub/compose/server.js.map +1 -1
  36. package/dist/hub/directory/directory.d.ts +1 -1
  37. package/dist/hub/directory/directory.js +32 -23
  38. package/dist/hub/directory/directory.js.map +1 -1
  39. package/dist/hub/directory/index.d.ts +1 -1
  40. package/dist/hub/directory/types.d.ts +8 -2
  41. package/dist/hub/directory/types.js.map +1 -1
  42. package/dist/hub/group-policy/admin-context.d.ts +23 -0
  43. package/dist/hub/group-policy/admin-context.js +52 -0
  44. package/dist/hub/group-policy/admin-context.js.map +1 -0
  45. package/dist/hub/group-policy/admin-dto.d.ts +235 -0
  46. package/dist/hub/group-policy/admin-dto.js +55 -0
  47. package/dist/hub/group-policy/admin-dto.js.map +1 -0
  48. package/dist/hub/group-policy/admin-inventory.d.ts +24 -0
  49. package/dist/hub/group-policy/admin-inventory.js +72 -0
  50. package/dist/hub/group-policy/admin-inventory.js.map +1 -0
  51. package/dist/hub/group-policy/admin-read.d.ts +21 -0
  52. package/dist/hub/group-policy/admin-read.js +90 -0
  53. package/dist/hub/group-policy/admin-read.js.map +1 -0
  54. package/dist/hub/group-policy/authorization.d.ts +43 -0
  55. package/dist/hub/group-policy/authorization.js +170 -0
  56. package/dist/hub/group-policy/authorization.js.map +1 -0
  57. package/dist/hub/group-policy/resources.d.ts +9 -1
  58. package/dist/hub/group-policy/resources.js +30 -5
  59. package/dist/hub/group-policy/resources.js.map +1 -1
  60. package/dist/hub/group-policy/store.d.ts +8 -2
  61. package/dist/hub/group-policy/store.js +9 -3
  62. package/dist/hub/group-policy/store.js.map +1 -1
  63. package/dist/hub/http/compose.js +6 -7
  64. package/dist/hub/http/compose.js.map +1 -1
  65. package/dist/hub/http/core.d.ts +23 -3
  66. package/dist/hub/http/core.js +138 -5
  67. package/dist/hub/http/core.js.map +1 -1
  68. package/dist/hub/http/deps.d.ts +3 -0
  69. package/dist/hub/policy.d.ts +3 -1
  70. package/dist/hub/policy.js +13 -6
  71. package/dist/hub/policy.js.map +1 -1
  72. package/dist/hub/rooms.d.ts +1 -0
  73. package/dist/hub/rooms.js +76 -26
  74. package/dist/hub/rooms.js.map +1 -1
  75. package/dist/hub/sessions.js +2 -1
  76. package/dist/hub/sessions.js.map +1 -1
  77. package/dist/hub/types.d.ts +2 -0
  78. package/dist/locale.js +26 -20
  79. package/dist/locale.js.map +1 -1
  80. package/dist/runtime-api.js +10 -2
  81. package/dist/runtime-api.js.map +1 -1
  82. package/dist/settings-api.js +3 -2
  83. package/dist/settings-api.js.map +1 -1
  84. package/dist/settings-change.d.ts +10 -0
  85. package/dist/settings-change.js +17 -1
  86. package/dist/settings-change.js.map +1 -1
  87. package/dist/settings-confirmation.d.ts +25 -1
  88. package/dist/settings-confirmation.js +11 -3
  89. package/dist/settings-confirmation.js.map +1 -1
  90. package/dist/settings-effect.js +18 -6
  91. package/dist/settings-effect.js.map +1 -1
  92. package/dist/settings-http-confirmation.d.ts +21 -0
  93. package/dist/settings-http-confirmation.js +74 -3
  94. package/dist/settings-http-confirmation.js.map +1 -1
  95. package/dist/structured-signin.js +3 -1
  96. package/dist/structured-signin.js.map +1 -1
  97. package/dist/tips.js +4 -4
  98. package/dist/tips.js.map +1 -1
  99. package/dist/types.d.ts +2 -0
  100. package/dist/types.js.map +1 -1
  101. package/dist/ui/accounts-keepalive.js +4 -3
  102. package/dist/ui/accounts-manage.js +2 -2
  103. package/dist/ui/accounts-view.js +18 -7
  104. package/dist/ui/backend-signin.js +12 -3
  105. package/dist/ui/general-location.js +28 -14
  106. package/dist/ui/hub-chat-store.js +2 -1
  107. package/dist/ui/hub-grant-strings.js +13 -0
  108. package/dist/ui/hub-owner-strings.js +6 -2
  109. package/dist/ui/hub-strings.js +4 -2
  110. package/dist/ui/panel-hub.js +68 -23
  111. package/dist/ui/panel-log.js +2 -2
  112. package/dist/ui/panel-runtimes.js +14 -6
  113. package/dist/ui/panel-settings.js +7 -19
  114. package/dist/ui/runtime-cli-install.js +24 -4
  115. package/dist/ui/settings-confirm.js +28 -0
  116. package/dist/ui/settings-devices.js +6 -10
  117. package/dist/ui/settings-hub-membership.js +6 -6
  118. package/dist/ui/settings-hub-section.js +35 -0
  119. package/dist/ui/settings-hub.js +6 -2
  120. package/dist/ui/settings-layout.js +6 -2
  121. package/dist/ui/settings-named-test.js +2 -2
  122. package/dist/ui/settings-outside.js +1 -1
  123. package/dist/ui/settings-quota-notice.js +8 -6
  124. package/dist/ui/settings-registry.js +3 -0
  125. package/dist/ui/settings-strings.js +6 -6
  126. package/dist/ui/shared/app-i18n.js +4 -2
  127. package/dist/ui/shared/app-route.js +1 -1
  128. package/dist/ui/shared/app-shell.js +102 -5
  129. package/dist/ui/shared/app.css +16 -0
  130. package/dist/ui/shared/chat-strings.js +8 -8
  131. package/dist/ui/shared/hub-owner.css +2 -2
  132. package/dist/ui/shared/hub-signin.css +24 -0
  133. package/dist/ui/shared/view-strings.js +4 -4
  134. package/dist/ui/structured-signin.js +16 -8
  135. package/dist/usage/providers.d.ts +1 -0
  136. package/dist/usage/providers.js +13 -9
  137. package/dist/usage/providers.js.map +1 -1
  138. package/dist/web-api.d.ts +5 -0
  139. package/dist/web-api.js +15 -6
  140. package/dist/web-api.js.map +1 -1
  141. package/dist/web-remote-access.d.ts +6 -0
  142. package/dist/web-remote-access.js +10 -1
  143. package/dist/web-remote-access.js.map +1 -1
  144. package/dist/web-shell-routes.d.ts +1 -1
  145. package/dist/web-shell-routes.js +1 -1
  146. package/dist/web-shell-routes.js.map +1 -1
  147. package/dist/windows-cli-api.d.ts +8 -0
  148. package/dist/windows-cli-api.js +10 -0
  149. package/dist/windows-cli-api.js.map +1 -1
  150. package/package.json +2 -1
@@ -1,6 +1,6 @@
1
1
  import { AgentRuntimeChanges } from "./agent-runtime-change.js";
2
2
  import { type HumanOrigin } from "./human-delivery-receipts.js";
3
- import { type SettingsPendingView } from "./settings-confirmation.js";
3
+ import { SettingsConfirmationStore, type SettingsPendingView } from "./settings-confirmation.js";
4
4
  import { type GeneralSwitchInput } from "./general-binding.js";
5
5
  import { SettingsExecution } from "./settings-transaction.js";
6
6
  import { AppIconStore } from "./web-app-icon.js";
@@ -763,6 +763,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
763
763
  private startupDashboard;
764
764
  private adapterState;
765
765
  private adapterRetryInFlight;
766
+ /** #3365 review P2: connections whose adapter could not be confirmed stopped — none is admitted for them until a restart. */
767
+ private adapterTeardownUnknown;
766
768
  /** Web Settings secret rotation is deliberately separate from reconnect
767
769
  * recovery: a rotation must build a fresh provider client with the new token,
768
770
  * and stale callbacks from the old client must not win. */
@@ -1058,6 +1060,26 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
1058
1060
  * still hears it: a notice, not a step.
1059
1061
  */
1060
1062
  private settingsSelfConfirmation;
1063
+ /**
1064
+ * alpha.6 feedback #2c — the user's decision hmsg-468cc290 (option A; decisions 28c2d3a3/0471da59 keep the second factor): on a
1065
+ * web-only fleet, a pending change can be confirmed on THIS computer's own page with the owner's authenticator code, by a
1066
+ * local admin session that is not the host operator (who already has "Apply now"), on this computer or the LAN. Never over
1067
+ * a link (named or quick), never a guest; only a change that can be self-confirmed at all (a named-link opener cannot); the code is checked by
1068
+ * the same store as signing in from outside (#3008): each time step once, the fleet-wide wrong-code limit. Asked again at
1069
+ * execution (`current`): the same session, still an admin here (this computer or the LAN), the fleet still web-only, the
1070
+ * same app still set up (not replaced, nor removed and set up again). Audited by the store under its own label; a correct and a refused use are logged.
1071
+ */
1072
+ private settingsTotpSession;
1073
+ settingsTotpState(store: SettingsConfirmationStore, req: IncomingMessage, id: string): "ready" | "not_set_up" | "on_host" | "host_browser" | null;
1074
+ settingsTotpConfirm(store: SettingsConfirmationStore, req: IncomingMessage, id: string, code: string, digest: string): {
1075
+ label: string;
1076
+ current(): boolean;
1077
+ audit?: Record<string, unknown>;
1078
+ done?(view: SettingsPendingView): void;
1079
+ } | {
1080
+ error: "wrong" | "paused" | "unavailable" | "not_here" | "changed";
1081
+ retryAfterMs?: number;
1082
+ };
1061
1083
  /**
1062
1084
  * alpha.2 (M-2300; #2973's agent requests, junsion's §6): on a fleet with no chat connection there is no General to
1063
1085
  * post an agent's Windows request in — it waited for `agend settings confirm` on the host. Its owner (decision
@@ -1178,7 +1200,18 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
1178
1200
  requestWindowsCreate(requester: string, rawArgs: Record<string, unknown>): Promise<SettingsPendingView>;
1179
1201
  /** #2942: update_instance_config on a Windows agent: only the fields the web editor allows, held for General. */
1180
1202
  requestWindowsConfig(requester: string, name: string, patch: Record<string, unknown>): Promise<SettingsPendingView>;
1203
+ /**
1204
+ * D3: whether a General could take this change's confirmation card now — the same authority and routes
1205
+ * promptSettingsChange posts by. False: it would wait for the host's command (confirmation kind host_cli).
1206
+ */
1207
+ private settingsCardPossible;
1181
1208
  private promptSettingsChange;
1209
+ /**
1210
+ * alpha.6 feedback #2c: why no General could take a change's confirm card, so the page says what is missing in plain words
1211
+ * (the user's decision hmsg-77256f66: never "type a host command"). `platform` null: the authority is unknown or spans
1212
+ * platforms. `attempted`: a General route existed and posting to it failed.
1213
+ */
1214
+ private settingsNoCardReason;
1182
1215
  private kiroMigrateDeps;
1183
1216
  /**
1184
1217
  * #2598 B2, migrate_kiro_instance: judge the move, then ask in General for a fleet admin's Confirm. Nothing changes
@@ -3354,6 +3387,20 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
3354
3387
  static ownTmuxUpgraded(agendHome: string, previous: unknown): boolean;
3355
3388
  /** Whether any instance directory holds state from an earlier start (its output log or a session id). */
3356
3389
  static priorAgentState(instancesDir: string): boolean;
3390
+ /** Where an upgraded home's not-yet-dispatched own-tmux notice is kept across restarts; only a dispatch clears it. */
3391
+ static ownTmuxPendingPath(agendHome: string): string;
3392
+ /**
3393
+ * Fleet start's decision, made before this start records server.json: an upgraded home is persisted as owing the
3394
+ * notice. A restart before the notice is dispatched (a slow first start; alpha.6 leg M on the real Mac) would otherwise
3395
+ * read the just-recorded server as "not an upgrade" and drop it.
3396
+ */
3397
+ static ownTmuxStartDecision(agendHome: string, previous: unknown, logger?: {
3398
+ warn: (o: object, m: string) => void;
3399
+ }): boolean;
3400
+ /** Record that this home owes the own-tmux notice (unless it was already posted). */
3401
+ static persistOwnTmuxPending(agendHome: string, logger?: {
3402
+ warn: (o: object, m: string) => void;
3403
+ }): void;
3357
3404
  announceOwnTmux(): void;
3358
3405
  /**
3359
3406
  * Post the daily summary where fleet-wide notices go.
@@ -5123,6 +5170,17 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
5123
5170
  };
5124
5171
  getConnectionSecretApply(jobId: string, sessionBinding: string): SecretApplyJob | null;
5125
5172
  private runConnectionSecretApply;
5173
+ /**
5174
+ * S-91: how a connection stands against what this process set up at start. "same": its adapter start ran (and failed, or
5175
+ * found no token), so starting it now is what the background retry does. "changed": its binding waits for the restart —
5176
+ * never started live, whatever its role (#3365 review P2). "added": #1519 P6's rule.
5177
+ */
5178
+ private startedWithConnection;
5179
+ /**
5180
+ * S-91: a token's live start for a connection that was not running did not come up. Whatever adapter it left is taken
5181
+ * down (handlers off, stopped, unregistered), and the connection goes back to the background retry with the error.
5182
+ */
5183
+ private dropAdapterAfterFailedStart;
5126
5184
  /** Stop the old provider client and construct a new one from process.env. */
5127
5185
  private rebuildAdapterForSecret;
5128
5186
  /**