@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.
- package/dist/agent-cli-instructions.md +1 -1
- package/dist/agent-cli.js +5 -2
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-whats-new.js +4 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/auth-api.d.ts +1 -1
- package/dist/auth-api.js +1 -1
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/claude-code.d.ts +1 -0
- package/dist/backend/claude-code.js +56 -10
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/kiro.js +1 -1
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/types.d.ts +4 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/channel/access-manager.d.ts +1 -6
- package/dist/channel/access-manager.js +4 -94
- package/dist/channel/access-manager.js.map +1 -1
- package/dist/channel/adapters/discord.d.ts +0 -2
- package/dist/channel/adapters/discord.js +0 -8
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/adapters/telegram.d.ts +0 -3
- package/dist/channel/adapters/telegram.js +1 -30
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/mcp-tools.js +2 -2
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/channel/types.d.ts +0 -2
- package/dist/claude-model-minimum.d.ts +7 -0
- package/dist/claude-model-minimum.js +16 -0
- package/dist/claude-model-minimum.js.map +1 -0
- package/dist/cli.js +1 -19
- package/dist/cli.js.map +1 -1
- package/dist/config-validator.js +2 -1
- package/dist/config-validator.js.map +1 -1
- package/dist/daemon.d.ts +43 -1
- package/dist/daemon.js +176 -27
- package/dist/daemon.js.map +1 -1
- package/dist/decision-list.d.ts +2 -0
- package/dist/decision-list.js +1 -1
- package/dist/decision-list.js.map +1 -1
- package/dist/fleet-manager.d.ts +24 -0
- package/dist/fleet-manager.js +98 -21
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +17 -6
- package/dist/general-knowledge/skills/delegation-playbook/SKILL.md +4 -1
- package/dist/general-knowledge/steering/core-rules.md +6 -4
- package/dist/instance-lifecycle.d.ts +3 -0
- package/dist/instance-lifecycle.js +4 -0
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/locale.js +44 -34
- package/dist/locale.js.map +1 -1
- package/dist/outbound-handlers.js +1 -1
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +2 -0
- package/dist/outbound-schemas.js +4 -2
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/quickstart-api.js +2 -2
- package/dist/quickstart-api.js.map +1 -1
- package/dist/reply-buttons-controller.d.ts +5 -1
- package/dist/reply-buttons-controller.js +8 -4
- package/dist/reply-buttons-controller.js.map +1 -1
- package/dist/reply-buttons.d.ts +6 -2
- package/dist/reply-buttons.js +7 -3
- package/dist/reply-buttons.js.map +1 -1
- package/dist/scheduler/db.d.ts +10 -0
- package/dist/scheduler/db.js +38 -11
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/types.d.ts +6 -1
- package/dist/structured-signin.js +3 -1
- package/dist/structured-signin.js.map +1 -1
- package/dist/team-membership.d.ts +7 -0
- package/dist/team-membership.js +10 -0
- package/dist/team-membership.js.map +1 -0
- package/dist/tips.js +4 -4
- package/dist/tips.js.map +1 -1
- package/dist/tmux-manager.d.ts +1 -1
- package/dist/tmux-manager.js +4 -1
- package/dist/tmux-manager.js.map +1 -1
- package/dist/topic-commands.js +1 -1
- package/dist/topic-commands.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.js.map +1 -1
- package/dist/ui/backend-signin.js +1 -1
- package/dist/ui/chat-strings.js +7 -7
- package/dist/ui/settings-dialogs.js +3 -1
- package/dist/ui/settings-quota-notice.js +8 -6
- package/dist/ui/settings-strings.js +6 -4
- package/dist/ui/shared/app-i18n.js +4 -2
- package/dist/ui/shared/app-shell.js +8 -3
- package/dist/ui/shared/setup-host-text.js +4 -1
- package/dist/ui/shared/signin.js +3 -1
- package/dist/ui/shared/view-strings.js +4 -4
- package/dist/ui/shared/web-authorize.js +4 -4
- package/dist/update-dispatch.d.ts +32 -4
- package/dist/update-dispatch.js +146 -16
- package/dist/update-dispatch.js.map +1 -1
- package/dist/update-launch.d.ts +1 -1
- package/dist/update-launch.js +2 -2
- package/dist/update-launch.js.map +1 -1
- package/dist/usage/providers.d.ts +1 -0
- package/dist/usage/providers.js +13 -9
- package/dist/usage/providers.js.map +1 -1
- package/dist/view-api.d.ts +2 -8
- package/dist/view-api.js +3 -9
- package/dist/view-api.js.map +1 -1
- 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
|
|
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`)
|
|
288
|
-
|
|
289
|
-
|
|
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
|
-
-
|
|
327
|
-
|
|
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.
|
|
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
|
|
41
|
-
| `pairing` |
|
|
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 #
|
|
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` —
|
|
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
|