@ours.network/fleet 1.1.0-nightly.1 → 1.1.0-nightly.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 (50) hide show
  1. package/README.md +64 -73
  2. package/dist/application/role-creation-service.js +9 -2
  3. package/dist/application/role-removal-service.js +6 -3
  4. package/dist/application/types.d.ts +1 -1
  5. package/dist/briefing.js +2 -2
  6. package/dist/build-info.json +4 -4
  7. package/dist/cli.js +8 -5
  8. package/dist/config.d.ts +28 -2
  9. package/dist/config.js +307 -23
  10. package/dist/creation.d.ts +1 -1
  11. package/dist/creation.js +2 -2
  12. package/dist/docs.d.ts +1 -1
  13. package/dist/docs.js +31 -69
  14. package/dist/doctor.js +1 -1
  15. package/dist/generated-agent-source.d.ts +9 -0
  16. package/dist/generated-agent-source.js +53 -0
  17. package/dist/harness/agent-session.d.ts +13 -0
  18. package/dist/harness/claude-code-session.d.ts +4 -0
  19. package/dist/harness/claude-code-session.js +4 -0
  20. package/dist/harness/claude-code.js +10 -0
  21. package/dist/harness/codex-session.d.ts +4 -0
  22. package/dist/harness/codex-session.js +4 -0
  23. package/dist/harness/codex.js +14 -0
  24. package/dist/harness/registry.js +4 -0
  25. package/dist/init-guidance.d.ts +1 -0
  26. package/dist/init-guidance.js +5 -0
  27. package/dist/model-env.d.ts +0 -1
  28. package/dist/model-env.js +2 -4
  29. package/dist/ops.js +4 -2
  30. package/dist/resolved-plan.d.ts +3 -2
  31. package/dist/resolved-plan.js +21 -5
  32. package/dist/sensitive-config.d.ts +2 -0
  33. package/dist/sensitive-config.js +4 -0
  34. package/dist/spawn.d.ts +4 -4
  35. package/dist/spawn.js +52 -23
  36. package/dist/web/fleet-config-service.d.ts +11 -8
  37. package/dist/web/fleet-config-service.js +383 -183
  38. package/dist/web/topology-promote.js +17 -14
  39. package/dist/web/topology.js +2 -2
  40. package/dist/web/yaml-document-edit.js +2 -0
  41. package/dist/web-app/assets/index-BbE9EX6n.js +10 -0
  42. package/dist/web-app/index.html +1 -1
  43. package/examples/fleet/agents/Alice.yaml +11 -0
  44. package/examples/fleet/agents/FleetCoordinator.yaml +7 -0
  45. package/examples/fleet/brains/claude-default.yaml +5 -0
  46. package/examples/fleet/roles/coordinator.yaml +5 -0
  47. package/examples/fleet/roles/developer.yaml +3 -0
  48. package/examples/fleet.yaml +74 -0
  49. package/package.json +2 -1
  50. package/dist/web-app/assets/index-DhMDVRU1.js +0 -10
@@ -8,7 +8,7 @@
8
8
  <link rel="manifest" href="/manifest.webmanifest" />
9
9
  <link rel="icon" href="/icons/ours-fleet.svg" type="image/svg+xml" />
10
10
  <title>ours fleet console</title>
11
- <script type="module" crossorigin src="/assets/index-DhMDVRU1.js"></script>
11
+ <script type="module" crossorigin src="/assets/index-BbE9EX6n.js"></script>
12
12
  <link rel="stylesheet" crossorigin href="/assets/index-59GF-gsZ.css">
13
13
  </head>
14
14
  <body>
@@ -0,0 +1,11 @@
1
+ role: { ref: developer }
2
+ brain: { ref: claude-default }
3
+ identity: Alice
4
+ coordinator: FleetCoordinator
5
+ cwd: ${work_root}/alice
6
+ permissions: { approval: ask, filesystem: workspace, unattended: deny }
7
+ env:
8
+ EXAMPLE_FLAG: "1"
9
+ monitor:
10
+ wake_sources: [message_received, file_received]
11
+ batch_ms: 2000
@@ -0,0 +1,7 @@
1
+ role: { ref: coordinator }
2
+ brain: { ref: claude-default }
3
+ identity: FleetCoordinator
4
+ cwd: ${work_root}
5
+ permissions: { approval: ask, filesystem: workspace, unattended: deny }
6
+ oversee:
7
+ - { agent: Alice, interval: 5m }
@@ -0,0 +1,5 @@
1
+ harness: claude-code
2
+ session: acp
3
+ model: null
4
+ effort: high
5
+ max_tokens: 500000
@@ -0,0 +1,5 @@
1
+ mission: "Coordinate the fleet: decompose goals, delegate work, review results, and report."
2
+ persona: |
3
+ You are the always-on hub. Keep ownership and status explicit and do not silently
4
+ take over work that should remain delegated.
5
+ bio: Fleet coordinator and owner-facing point of contact.
@@ -0,0 +1,3 @@
1
+ mission: Own the assigned repository end to end.
2
+ persona: Fix problems at the source, ship sound tests, and escalate cross-repository decisions.
3
+ bio: Repository developer; engage for implementation and maintenance.
@@ -0,0 +1,74 @@
1
+ # fleet.yaml — fleet-wide manifest; Agent/Role/Brain files live under ./fleet/.
2
+ #
3
+ # ours-fleet up create/start every role (idempotent)
4
+ # ours-fleet up Alice only the named role(s)
5
+ # ours-fleet restart re-sync + bounce, resuming context
6
+ # ours-fleet down stop everything
7
+ # ours-fleet config validate + print the merged plan
8
+ #
9
+ # Agent files are bare mappings in ./fleet/agents; reusable presets are in
10
+ # ./fleet/roles and ./fleet/brains. Kind comes from the directory and ID from filename.
11
+ #
12
+ # The v2 manifest contains fleet-wide operational policy and automation only.
13
+ # Brain and Role settings belong in bare documents under ./fleet/brains and
14
+ # ./fleet/roles; Agents compose them under ./fleet/agents. Legacy `roles:` and
15
+ # `fleet.d` are rejected. The web editor writes the manifest and direct Agent
16
+ # documents transactionally; Role/Brain presets remain read-only. Run
17
+ # `ours-fleet config` to validate the complete source set.
18
+
19
+ api_version: ours.network/fleet/v2
20
+
21
+ vars:
22
+ work_root: /home/me/work
23
+
24
+ # Space out agent LAUNCHES host-wide (ms) so a burst of boots doesn't hit the
25
+ # harness/API rate limit at once. Default 0 (no stagger). Enforced at the launch
26
+ # point, so it covers systemd host-boot too — not just `ours-fleet up`/restart.
27
+ # A lone start/restart waits zero; only concurrent boots are spread out.
28
+ # (Replaces the retired FLEET_START_STAGGER env var — see README "Start staggering".)
29
+ # start_stagger_ms: 4000
30
+
31
+ defaults:
32
+ permissions: # common intent translated to each harness/backend
33
+ approval: ask # ask | allow | deny
34
+ filesystem: workspace # read-only | workspace | unrestricted
35
+ unattended: deny # deny | wait when no ACP console is attached
36
+ monitor:
37
+ mode: fleet # fleet (default): ours-fleet supervisor; native: harness-owned monitor
38
+ interrupt: false # false: queue; true: cancel; after_tool: steer at an ACP tool boundary
39
+
40
+ # Harness, model, effort, session, token limits, session_options, and
41
+ # harness_options are Brain-owned. Define them in ./fleet/brains and select the
42
+ # Brain from each Agent document; see ./fleet/brains/claude-default.yaml.
43
+
44
+ # Rooms always use ours-cowork; configure its connection directly. The owner
45
+ # provider is a separate setting and defaults to messenger-server.
46
+ # rooms:
47
+ # cowork:
48
+ # config: /home/me/.ours-cowork/config.json
49
+ # owner:
50
+ # expected_cid: 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
51
+ # public_invite_file: /home/me/.ours-fleet/owner-room-invite.txt
52
+ # defaults:
53
+ # template: team
54
+ # attach_owner: true
55
+ # close_when_task_done: true
56
+ #
57
+ # tasks:
58
+ # default_room_template: team
59
+ # create_mode: start
60
+ # close_room_on_done: true
61
+
62
+ # Scheduled internal turns are ACP-only, idle-only, and never build a backlog.
63
+ # The base file must be owned by you and not group/world writable when an enabled
64
+ # loop is present. A wildcard targets permanent roles only; temp roles do not inherit.
65
+ # loops:
66
+ # coordinator_pass:
67
+ # roles: [FleetCoordinator]
68
+ # interval: 10m
69
+ # initial_delay: 10m # omitted = one full interval; use 0s explicitly for immediate
70
+ # jitter: 30s
71
+ # enabled: true
72
+ # prompt: |
73
+ # Review current fleet state once and unstick only actionable work.
74
+ # If nothing material changed, complete silently without an owner report.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ours.network/fleet",
3
- "version": "1.1.0-nightly.1",
3
+ "version": "1.1.0-nightly.2",
4
4
  "description": "Harness-agnostic fleet of persistent, identity-bound AI agents. Declarative fleet.yaml, ACP sessions, supervision, and ours.network messaging.",
5
5
  "type": "module",
6
6
  "license": "FSL-1.1-Apache-2.0",
@@ -15,6 +15,7 @@
15
15
  "files": [
16
16
  "dist",
17
17
  "contrib",
18
+ "examples",
18
19
  "README.md",
19
20
  "LICENSE"
20
21
  ],