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

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 (106) hide show
  1. package/dist/agent-cli-instructions.md +1 -1
  2. package/dist/agent-cli.js +5 -2
  3. package/dist/agent-cli.js.map +1 -1
  4. package/dist/agent-whats-new.js +4 -0
  5. package/dist/agent-whats-new.js.map +1 -1
  6. package/dist/auth-api.d.ts +1 -1
  7. package/dist/auth-api.js +1 -1
  8. package/dist/auth-api.js.map +1 -1
  9. package/dist/backend/claude-code.d.ts +1 -0
  10. package/dist/backend/claude-code.js +56 -10
  11. package/dist/backend/claude-code.js.map +1 -1
  12. package/dist/backend/kiro.js +1 -1
  13. package/dist/backend/kiro.js.map +1 -1
  14. package/dist/backend/types.d.ts +4 -0
  15. package/dist/backend/types.js.map +1 -1
  16. package/dist/channel/access-manager.d.ts +1 -6
  17. package/dist/channel/access-manager.js +4 -94
  18. package/dist/channel/access-manager.js.map +1 -1
  19. package/dist/channel/adapters/discord.d.ts +0 -2
  20. package/dist/channel/adapters/discord.js +0 -8
  21. package/dist/channel/adapters/discord.js.map +1 -1
  22. package/dist/channel/adapters/telegram.d.ts +0 -3
  23. package/dist/channel/adapters/telegram.js +1 -30
  24. package/dist/channel/adapters/telegram.js.map +1 -1
  25. package/dist/channel/mcp-tools.js +2 -2
  26. package/dist/channel/mcp-tools.js.map +1 -1
  27. package/dist/channel/types.d.ts +0 -2
  28. package/dist/claude-model-minimum.d.ts +7 -0
  29. package/dist/claude-model-minimum.js +16 -0
  30. package/dist/claude-model-minimum.js.map +1 -0
  31. package/dist/cli.js +1 -19
  32. package/dist/cli.js.map +1 -1
  33. package/dist/config-validator.js +2 -1
  34. package/dist/config-validator.js.map +1 -1
  35. package/dist/daemon.d.ts +43 -1
  36. package/dist/daemon.js +176 -27
  37. package/dist/daemon.js.map +1 -1
  38. package/dist/decision-list.d.ts +2 -0
  39. package/dist/decision-list.js +1 -1
  40. package/dist/decision-list.js.map +1 -1
  41. package/dist/fleet-manager.d.ts +24 -0
  42. package/dist/fleet-manager.js +98 -21
  43. package/dist/fleet-manager.js.map +1 -1
  44. package/dist/general-knowledge/skills/concepts/SKILL.md +17 -6
  45. package/dist/general-knowledge/skills/delegation-playbook/SKILL.md +4 -1
  46. package/dist/general-knowledge/steering/core-rules.md +6 -4
  47. package/dist/instance-lifecycle.d.ts +3 -0
  48. package/dist/instance-lifecycle.js +4 -0
  49. package/dist/instance-lifecycle.js.map +1 -1
  50. package/dist/locale.js +44 -34
  51. package/dist/locale.js.map +1 -1
  52. package/dist/outbound-handlers.js +1 -1
  53. package/dist/outbound-handlers.js.map +1 -1
  54. package/dist/outbound-schemas.d.ts +2 -0
  55. package/dist/outbound-schemas.js +4 -2
  56. package/dist/outbound-schemas.js.map +1 -1
  57. package/dist/quickstart-api.js +2 -2
  58. package/dist/quickstart-api.js.map +1 -1
  59. package/dist/reply-buttons-controller.d.ts +5 -1
  60. package/dist/reply-buttons-controller.js +8 -4
  61. package/dist/reply-buttons-controller.js.map +1 -1
  62. package/dist/reply-buttons.d.ts +6 -2
  63. package/dist/reply-buttons.js +7 -3
  64. package/dist/reply-buttons.js.map +1 -1
  65. package/dist/scheduler/db.d.ts +10 -0
  66. package/dist/scheduler/db.js +38 -11
  67. package/dist/scheduler/db.js.map +1 -1
  68. package/dist/scheduler/types.d.ts +6 -1
  69. package/dist/structured-signin.js +3 -1
  70. package/dist/structured-signin.js.map +1 -1
  71. package/dist/team-membership.d.ts +7 -0
  72. package/dist/team-membership.js +10 -0
  73. package/dist/team-membership.js.map +1 -0
  74. package/dist/tips.js +4 -4
  75. package/dist/tips.js.map +1 -1
  76. package/dist/tmux-manager.d.ts +1 -1
  77. package/dist/tmux-manager.js +4 -1
  78. package/dist/tmux-manager.js.map +1 -1
  79. package/dist/topic-commands.js +1 -1
  80. package/dist/topic-commands.js.map +1 -1
  81. package/dist/types.d.ts +2 -0
  82. package/dist/types.js.map +1 -1
  83. package/dist/ui/backend-signin.js +1 -1
  84. package/dist/ui/chat-strings.js +7 -7
  85. package/dist/ui/settings-dialogs.js +3 -1
  86. package/dist/ui/settings-quota-notice.js +8 -6
  87. package/dist/ui/settings-strings.js +6 -4
  88. package/dist/ui/shared/app-i18n.js +4 -2
  89. package/dist/ui/shared/app-shell.js +8 -3
  90. package/dist/ui/shared/setup-host-text.js +4 -1
  91. package/dist/ui/shared/signin.js +3 -1
  92. package/dist/ui/shared/view-strings.js +4 -4
  93. package/dist/ui/shared/web-authorize.js +4 -4
  94. package/dist/update-dispatch.d.ts +32 -4
  95. package/dist/update-dispatch.js +146 -16
  96. package/dist/update-dispatch.js.map +1 -1
  97. package/dist/update-launch.d.ts +1 -1
  98. package/dist/update-launch.js +2 -2
  99. package/dist/update-launch.js.map +1 -1
  100. package/dist/usage/providers.d.ts +1 -0
  101. package/dist/usage/providers.js +13 -9
  102. package/dist/usage/providers.js.map +1 -1
  103. package/dist/view-api.d.ts +2 -8
  104. package/dist/view-api.js +3 -9
  105. package/dist/view-api.js.map +1 -1
  106. package/package.json +2 -1
@@ -168,7 +168,7 @@ the General topic (approved by the user 2026-11-04).
168
168
 
169
169
  - Can: admin-gated commands, confirming sensitive changes, managing access.
170
170
  - Can't: anything while unlisted — an empty list grants nobody, and open
171
- access or pairing approval alone does not grant the role
171
+ access or a saved chat grant alone does not grant the role
172
172
  (`docs/SECURITY.md:13`).
173
173
  - Code: `src/config-validator.ts:368-376`, `:677`.
174
174
  - Refs: —
@@ -284,9 +284,20 @@ finishing it from review with done.
284
284
 
285
285
  ## decision
286
286
 
287
- A recorded agreement (`post_decision`, `list_decisions`), scoped to a project
288
- directory or to the whole fleet. Decisions are the fleet's memory of why,
289
- readable with `list_decisions`.
287
+ A recorded agreement (`post_decision`, `list_decisions`). Decisions are the
288
+ fleet's memory of why, readable with `list_decisions`. Each one has a scope:
289
+
290
+ - **team**: every member of one team (fleet.yaml `teams`), wherever they work.
291
+ Membership is read when listing and at each launch, so joining or leaving a
292
+ team takes effect without posting again. This is the default for a poster in
293
+ a team; a poster in several teams names one.
294
+ - **project**: this exact working directory only. This is the default for a
295
+ poster in no team.
296
+ - **fleet**: every instance on the fleet. Use it only for rules every team
297
+ follows.
298
+
299
+ An instance's Active Decisions are the fleet ones, its teams' ones and its own
300
+ directory's ones.
290
301
 
291
302
  - Can: record agreements agents and people consult later.
292
303
  - Can't: enforce itself — code that never reads a decision is not bound by it
@@ -323,8 +334,8 @@ shortcuts from `agend shortcuts`). The rest is alpha only
323
334
  - General can run on a Windows pane: "Run General on" moves General to an
324
335
  approved, online paired PC while the coordinator — and chat and
325
336
  administrator authority — stay on the host (#3007).
326
- - Pairing of people (`agend access pair`) is the separate, older mechanism:
327
- per-instance access codes, unrelated to paired PCs.
337
+ - People are allowed through **Settings → Chat & connections → the bot → Allowed users (primary bot)**, not runtime pairing. Legacy people-access codes are removed;
338
+ existing saved grants remain. This does not grant fleet-admin authority.
328
339
  - Code (alpha branch): `docs/remote-runtime.md`, `docs/windows-cli-preview.md`,
329
340
  `docs/windows-general.md`; `src/runtime-bundle.ts`.
330
341
  - Refs: 72353fdf, #2936, #3007.
@@ -33,7 +33,10 @@ When an instance reports back, classify the outcome:
33
33
 
34
34
  ## Shared Decisions
35
35
 
36
- Use `post_decision` / `list_decisions` for any choice that affects more than 1 instance, changes an API contract, introduces a new dependency, or alters deployment process. The default `scope: "project"` reaches only instances in the same working directory — use `scope: "fleet"` for anything wider.
36
+ Use `post_decision` / `list_decisions` for any choice that affects more than 1 instance, changes an API contract, introduces a new dependency, or alters deployment process. Pick the scope by who must follow it:
37
+ - `scope: "team"` — your team's conventions (workflow, review policy). It reaches every member of the team wherever they work, including members in other directories or worktrees. It is the default when you are in a team; name `team` when you are in several.
38
+ - `scope: "project"` — this exact working directory only (the default when you are in no team).
39
+ - `scope: "fleet"` — only rules every team on the fleet follows. On a fleet with several teams, ask whether the other teams would want to see it before posting it fleet-wide.
37
40
 
38
41
  When instances disagree, collect both viewpoints, make a decision, and record it via post_decision.
39
42
 
@@ -37,8 +37,8 @@ fleet.yaml `channel.access.mode` valid values:
37
37
 
38
38
  | Mode | Behavior |
39
39
  |------|----------|
40
- | `locked` | Only `allowed_users` can interact (default) |
41
- | `pairing` | A user sends `/pair` (Telegram), gets a code, and the owner grants access |
40
+ | `locked` | Only the effective allowlist can interact |
41
+ | `pairing` | Legacy alias for allowlist-only access; no access codes |
42
42
  | `open` | All users can interact, no restrictions |
43
43
 
44
44
  Example:
@@ -47,15 +47,17 @@ channel:
47
47
  access:
48
48
  mode: open # everyone can use
49
49
  # mode: locked # whitelist only (add allowed_users)
50
- # mode: pairing # /pair gives a code the owner approves
50
+ # mode: pairing # legacy allowlist-only alias
51
51
  allowed_users: [123456789] # only needed for locked/pairing
52
52
  ```
53
53
 
54
54
  **When to use each:**
55
55
  - `locked` — production, private bot, security-sensitive
56
- - `pairing` — semi-open, users request access with admin approval
56
+ - `pairing` — old configuration alias for allowlist-only access; use `locked` for new configuration
57
57
  - `open` — public demo, shared team bot, testing
58
58
 
59
+ Add allowed users in Settings → Chat & connections → the bot → Allowed users (primary bot), using the existing confirmation. Runtime/Hub pairing is separate.
60
+
59
61
  ## Dangerous Working Directories
60
62
 
61
63
  NEVER create an instance with these working_directory values:
@@ -1,4 +1,5 @@
1
1
  import { SettingsExecution } from "./settings-transaction.js";
2
+ import type { ActiveDecisionRow } from "./daemon.js";
2
3
  import type { InstanceConfig, FleetConfig } from "./types.js";
3
4
  import type { TopicDeleteOutcome } from "./instance-topic-delete.js";
4
5
  import { RoutingEngine } from "./routing-engine.js";
@@ -149,6 +150,8 @@ export interface LifecycleContext {
149
150
  * instances. Absent means the complete roster cannot be proven (#1624).
150
151
  */
151
152
  kiroPeerWorkingDirectories?(name: string): string[];
153
+ /** The fleet's startup snapshot of active decisions; each daemon selects its own Active Decisions from it. */
154
+ activeDecisions?(): readonly ActiveDecisionRow[];
152
155
  /** True while the fleet is stopping on purpose or an `agend update` is running. */
153
156
  isPlannedRestart(): boolean;
154
157
  /** Suppress only incident kinds caused by the active tmux server storm. */
@@ -1,4 +1,5 @@
1
1
  import { settingsUndo, undoSettingsPaths } from "./settings-transaction.js";
2
+ import { instanceTeams } from "./team-membership.js";
2
3
  import { measureSyncWork } from "./sync-work-attribution.js";
3
4
  import { REMOVED_BACKENDS, isRemovedBackend, removedBackendMessage } from "./backend/removed.js";
4
5
  import { existsSync, readFileSync, mkdirSync, realpathSync, writeFileSync, statSync } from "node:fs";
@@ -1526,6 +1527,9 @@ export class InstanceLifecycle {
1526
1527
  daemon.setWorkLeaseCheck(() => this.hasWorkLease(name));
1527
1528
  if (seedNow)
1528
1529
  daemon.seedActivityNow();
1530
+ // Read at each spawn, like the peers below: joining or leaving a team changes the next launch's Active Decisions.
1531
+ daemon.setDecisionTeams(() => instanceTeams(this.ctx.fleetConfig?.teams, name));
1532
+ daemon.setDecisionSource(this.ctx.activeDecisions ? () => this.ctx.activeDecisions() : undefined);
1529
1533
  // Read at each spawn so a fleet.yaml reload is honoured (#984).
1530
1534
  daemon.setPeerWorkingDirectories(backendName === "kiro-cli"
1531
1535
  ? this.ctx.kiroPeerWorkingDirectories ? () => this.ctx.kiroPeerWorkingDirectories(name) : undefined