angine 0.1.1 → 0.2.1

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.
@@ -1,5 +1,22 @@
1
1
  export type TaskStatus = 'todo' | 'in_progress' | 'blocked' | 'completed' | 'failed' | 'cancelled';
2
2
  export type MissionStatus = 'planned' | 'running' | 'blocked' | 'completed' | 'failed' | 'cancelled';
3
+ export type MissionUpdatePhase = 'request' | 'implementation' | 'deployment' | 'monitoring' | 'blocker';
4
+ export type MissionUpdateStatus = 'in_progress' | 'completed' | 'blocked' | 'failed';
5
+ export interface WorkUpdate {
6
+ id: string;
7
+ projectId: string;
8
+ missionId?: string;
9
+ phase: MissionUpdatePhase;
10
+ status: MissionUpdateStatus;
11
+ summary: string;
12
+ nextStep?: string;
13
+ environment?: 'development' | 'staging' | 'production';
14
+ updatedBy: string;
15
+ updatedBySessionId?: string;
16
+ sourceSessionId?: string;
17
+ reporterId?: string;
18
+ reportedAt: string;
19
+ }
3
20
  export interface Workspace {
4
21
  id: string;
5
22
  path: string;
@@ -18,6 +35,8 @@ export interface Project {
18
35
  createdAt: string;
19
36
  updatedAt: string;
20
37
  archivedAt?: string;
38
+ latestUpdate?: WorkUpdate;
39
+ latestMonitoring?: WorkUpdate;
21
40
  }
22
41
  export interface Mission {
23
42
  color?: string;
@@ -33,6 +52,8 @@ export interface Mission {
33
52
  completedAt?: string;
34
53
  archivedAt?: string;
35
54
  workspaceIds?: string[];
55
+ latestUpdate?: WorkUpdate;
56
+ latestMonitoring?: WorkUpdate;
36
57
  }
37
58
  export interface Blocker {
38
59
  reason: string;
@@ -123,8 +144,8 @@ export interface State {
123
144
  sessions: Record<string, AgentSession>;
124
145
  profiles: Record<string, AgentProfile>;
125
146
  }
126
- export type EventType = 'workspace.upserted' | 'project.created' | 'project.updated' | 'project.completed' | 'mission.created' | 'mission.updated' | 'mission.completed' | 'task.created' | 'task.updated' | 'task.status_changed' | 'task.removed' | 'session.started' | 'session.updated' | 'session.ended' | 'profile.updated';
127
- export type EventPayload = Workspace | Project | Mission | Task | AgentSession | AgentProfile;
147
+ export type EventType = 'workspace.upserted' | 'project.created' | 'project.updated' | 'project.completed' | 'project.color_changed' | 'mission.created' | 'mission.updated' | 'mission.completed' | 'mission.color_changed' | 'work.update_reported' | 'task.created' | 'task.updated' | 'task.status_changed' | 'task.removed' | 'session.started' | 'session.updated' | 'session.ended' | 'profile.updated';
148
+ export type EventPayload = Workspace | Project | Mission | WorkUpdate | Task | AgentSession | AgentProfile;
128
149
  export interface Event {
129
150
  seq: number;
130
151
  type: EventType;
@@ -190,6 +211,29 @@ export interface UpdateTasksInput {
190
211
  relatedTaskKeys?: string[];
191
212
  }>;
192
213
  }
214
+ export interface ReportWorkUpdateInput {
215
+ reporterId?: string;
216
+ agent?: string;
217
+ agentVersion?: string;
218
+ sessionKey?: string;
219
+ projectId?: string;
220
+ missionId?: string;
221
+ sourceSessionId?: string;
222
+ agentId?: string;
223
+ parentAgentId?: string;
224
+ accountLabel?: string;
225
+ profileKey?: string;
226
+ phase: MissionUpdatePhase;
227
+ status: MissionUpdateStatus;
228
+ summary: string;
229
+ nextStep?: string;
230
+ environment?: 'development' | 'staging' | 'production';
231
+ }
232
+ export interface ReportWorkUpdateResult {
233
+ projectId: string;
234
+ missionId?: string;
235
+ updateId: string;
236
+ }
193
237
  export interface SyncProjectResult {
194
238
  projectId: string;
195
239
  missionId: string;
@@ -1,6 +1,6 @@
1
1
  export function defaultProfiles() {
2
2
  return Object.fromEntries([
3
- ['claude', 'Other'], ['codex', 'Other'], ['grok', 'Other']
3
+ ['claude', 'Other'], ['codex', 'Other'], ['antigravity', 'Other'], ['grok', 'Other']
4
4
  ].map(([agent, context]) => {
5
5
  const key = `${agent}-default`;
6
6
  const profile = { id: `profile_${key}`, key, name: `${agent[0].toUpperCase() + agent.slice(1)} / ${context}`, agent, context, isDefault: true };
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../src/workflow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C,IAA4D,EAAE,OAAO,GAAG,EAAE,EAAE,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE;IACxH,OAAO,OAAO,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,OAAO,GAAG,KAAK,CAAC;AACjJ,CAAC;AACD,MAAM,UAAU,mBAAmB,CAAC,QAAsB,EAAE,IAAW;IACrE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,GAAG,IAAI,QAAQ,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC;IACrD,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;QAC7C,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACpC,OAAO,GAAG,IAAI,GAAG,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,UAAU,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC;IAC3L,CAAC,CAAC,CAAC;AACL,CAAC"}
package/docs/protocol.md CHANGED
@@ -59,6 +59,25 @@ Batch meaningful status changes with the returned `missionId`. Include `projectI
59
59
 
60
60
  Task statuses: `todo`, `in_progress`, `blocked`, `completed`, `failed`, `cancelled`. Mission statuses: `planned`, `running`, `blocked`, `completed`, `failed`, `cancelled`.
61
61
 
62
+ ## `report_update`
63
+
64
+ Post a short checkpoint for a specific mission or the project as a whole. Use `missionId` for a scoped change; the checkpoint appears on that mission and its parent project. Use `projectId` alone for project-wide deployment or monitoring. Checkpoints do not change task or mission status.
65
+
66
+ ```json
67
+ {
68
+ "agent": "claude",
69
+ "sessionKey": "session-example",
70
+ "missionId": "mis_...",
71
+ "phase": "deployment",
72
+ "status": "completed",
73
+ "environment": "production",
74
+ "summary": "Deploy completed; the production health endpoint returned HTTP 200.",
75
+ "nextStep": "Monitor the error rate for 30 minutes."
76
+ }
77
+ ```
78
+
79
+ For project-wide monitoring, omit `missionId` and provide `projectId`. Phases are `request`, `implementation`, `deployment`, `monitoring`, and `blocker`; statuses are `in_progress`, `completed`, `blocked`, and `failed`. Environments are optional: `development`, `staging`, or `production`. Keep summaries factual. Angine displays what the agent reports and does not independently verify deployments or production health.
80
+
62
81
  Both task creation and updates accept optional `progress` from 0 to 100. Omitted progress is preserved, except when reopening a completed task. Completed tasks display 100%, to-do tasks 0%, and unknown active progress “Not reported.” Mission progress is the share of non-cancelled tasks completed, not a measure of effort.
63
82
 
64
83
  Notes are optional, at most 500 characters. A blocked task may include:
@@ -97,15 +116,29 @@ command: angine
97
116
  args: mcp --agent opencode
98
117
  ```
99
118
 
100
- For a specific profile, add `--profile <key>`. Angine exposes `sync_project`, `update_tasks`, and read-only `check_connection`. MCP supplies the configured agent name and reporter session key, so those are omitted from tool inputs.
119
+ For a specific profile, add `--profile <key>`. Angine exposes `sync_project`, `update_tasks`, `report_update`, and read-only `check_connection`. MCP supplies the configured agent name and reporter session key, so those are omitted from tool inputs.
120
+
121
+ Codex reporters use CODEX_THREAD_ID or CODEX_SESSION_ID when its runtime supplies them. Unknown identity is omitted. `angine setup antigravity` merges a stdio server entry into `~/.gemini/config/mcp_config.json` and adds reporting guidance to `~/.gemini/AGENTS.md`; existing MCP entries and unmanaged rule text are preserved. In Antigravity, refresh the MCP server list and start a new agent session after setup or tool changes. `angine uninstall` removes the managed entry and guidance.
122
+
123
+ Antigravity's global MCP config uses this shape; setup writes the current Angine executable and installation path for you:
101
124
 
102
- Codex reporters use CODEX_THREAD_ID or CODEX_SESSION_ID when its runtime supplies them. Unknown identity is omitted. `angine setup` configures detected Codex and Claude Code CLIs. Restart agent sessions after setup or tool changes.
125
+ ```json
126
+ {
127
+ "mcpServers": {
128
+ "angine": {
129
+ "command": "/path/to/node",
130
+ "args": ["/path/to/angine/dist/bin/angine.js", "mcp", "--agent", "antigravity"]
131
+ }
132
+ }
133
+ }
134
+ ```
103
135
 
104
136
  ## CLI
105
137
 
106
138
  ```bash
107
139
  angine report sync_project --agent opencode < plan.json
108
140
  angine report update_tasks --agent opencode < update.json
141
+ angine report report_update --agent opencode < checkpoint.json
109
142
  ```
110
143
 
111
144
  Add `--profile <key>` for a specific profile. Reports start the daemon if needed. Use a consistent `sessionKey` within a session.
@@ -115,6 +148,7 @@ Add `--profile <key>` for a specific profile. Reports start the daemon if needed
115
148
  ```text
116
149
  POST /api/ingest/sync_project
117
150
  POST /api/ingest/update_tasks
151
+ POST /api/ingest/report_update
118
152
  Content-Type: application/json
119
153
  Authorization: Bearer <local token>
120
154
  ```
@@ -0,0 +1,20 @@
1
+ # Angine v0.2.0
2
+
3
+ Add monitoring checkpoints and Antigravity support to Angine's local agent work dashboard.
4
+
5
+ - Agents can report request, implementation, deployment, monitoring, and blocker checkpoints through MCP, CLI, or local HTTP. Checkpoints link to a mission or project and do not change task status.
6
+ - Monitoring checkpoints appear in a separate highlighted dashboard view, with environment and next-step details when reported.
7
+ - `angine setup` now detects Antigravity when its `~/.gemini` folder exists. `angine setup antigravity` configures it explicitly, preserving unrelated MCP entries and instructions. `angine uninstall` removes only Angine-managed settings.
8
+ - Add `angine stop` and `angine backup <new-folder-path>` for local server and history management.
9
+ - CI covers Ubuntu, macOS, and Windows with Node 20 and 22, and installs the npm archive in an isolated smoke test.
10
+
11
+ Angine still relies on agents to report their work. It does not independently inspect agent actions or verify deployment health.
12
+
13
+ ## Upgrade
14
+
15
+ ```bash
16
+ npm install -g angine@latest
17
+ angine restart
18
+ ```
19
+
20
+ Restart agent sessions to load updated MCP tools. For Antigravity, refresh its MCP server list after setup.
@@ -0,0 +1,8 @@
1
+ # Angine v0.2.1
2
+
3
+ Fix setup when Antigravity's MCP configuration file exists but is empty.
4
+
5
+ - Treat an empty `~/.gemini/config/mcp_config.json` as an empty configuration, then preserve a backup before adding Angine settings.
6
+ - Report the config path when Antigravity MCP JSON is malformed, making setup errors actionable.
7
+
8
+ Upgrade with `npm install -g angine@latest`, then run `angine setup` again.
package/docs/releasing.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Publishing Angine
2
2
 
3
- Current release: `angine@0.1.1`.
3
+ Current release: `angine@0.2.1`.
4
4
 
5
5
  ## Prepare
6
6
 
@@ -13,7 +13,7 @@ npm test
13
13
  npx tsc --noEmit -p ui/tsconfig.json
14
14
  npm pack --dry-run
15
15
  npm pack
16
- npm run test:release -- ./angine-0.1.1.tgz
16
+ npm run test:release -- ./angine-0.2.1.tgz
17
17
  ```
18
18
 
19
19
  `prepack` builds the server and UI. The archive should contain compiled code, UI assets, README, release notes, and protocol documentation. It should not contain local Angine history, agent configuration, credentials, or dependencies copied from node_modules.
@@ -39,14 +39,14 @@ From a terminal with npm registry access:
39
39
  npm login
40
40
  npm whoami
41
41
  npm view angine versions
42
- npm publish ./angine-0.1.1.tgz --access public --tag latest
43
- npm view angine@0.1.1 version
42
+ npm publish ./angine-0.2.1.tgz --access public --tag latest
43
+ npm view angine@0.2.1 version
44
44
  ```
45
45
 
46
46
  After npm publication is verified, create the matching GitHub release:
47
47
 
48
48
  ```bash
49
- gh release create v0.1.1 ./angine-0.1.1.tgz --target main --title "Angine v0.1.1" --notes-file docs/releases/v0.1.1.md
49
+ gh release create v0.2.1 ./angine-0.2.1.tgz --target main --title "Angine v0.2.1" --notes-file docs/releases/v0.2.1.md
50
50
  ```
51
51
 
52
52
  A not-found response from `npm view` can mean the package has not been published yet. If the name belongs to someone else, choose an available name or a scope you own, update the README/install instructions, and regenerate the archive. Do not overwrite or guess an unrelated package's ownership.
package/docs/todo.md ADDED
@@ -0,0 +1,42 @@
1
+ # Angine TODO
2
+
3
+ This list separates work that makes the single-computer MVP dependable from
4
+ larger product directions. Items are not promises about a release date.
5
+
6
+ ## Make local Angine solid
7
+
8
+ - [x] **First-run clarity:** make it obvious whether no work exists, no agent is
9
+ connected, an agent has not reported yet, or the current filters hide results.
10
+ - [x] **Setup diagnostics:** make `angine doctor` explain which integration check
11
+ failed and give a direct next step; an agent CLI that is not installed is
12
+ reported as optional rather than an error.
13
+ - [x] **Data backup:** `angine backup <new-folder-path>` saves a consistent
14
+ snapshot and event history without copying the local write token or agent
15
+ configuration.
16
+ - [ ] **Guided restore:** provide a restore command or guided flow so recovery
17
+ does not require manually replacing data folders.
18
+ - [x] **Cross-platform CI baseline:** run the unit suite and build on macOS,
19
+ Windows, and Linux with Node 20 and 22.
20
+ - [ ] **Cross-platform package confidence:** verify fresh-package install,
21
+ setup, reporting, restart, and uninstall on each supported operating system.
22
+ - [ ] **Reporter reliability:** make disconnected, stale, and never-reported
23
+ states easy to distinguish, with actionable diagnostics when updates stop.
24
+ - [ ] **Release confidence:** keep the fresh-package install smoke check and CI
25
+ green for each published version; document known limitations clearly.
26
+
27
+ ## Future: shared office Angine
28
+
29
+ - [ ] **Shared server mode:** allow one Angine instance on an office machine or
30
+ server to accept reports from other computers on the network.
31
+ - [ ] **Device connection:** let each computer connect to that server with an
32
+ explicit pairing flow and a revocable credential.
33
+ - [ ] **Shared access controls:** define who can view or report work, and protect
34
+ network traffic and stored team data.
35
+ - [ ] **Multi-device reporting:** identify the computer and reporter on each
36
+ update, handle temporary disconnections, and avoid duplicate work on reconnect.
37
+ - [ ] **Deployment and operations guide:** explain network binding, backups,
38
+ upgrades, and recovery for a self-hosted office server.
39
+
40
+ Shared mode would collect only the project, mission, task, progress, and reporter
41
+ metadata that connected apps and agents choose to report. It would not capture
42
+ computer screens or independently observe agent activity.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "angine",
3
- "version": "0.1.1",
3
+ "version": "0.2.1",
4
4
  "description": "Local dashboard for agent-reported projects, tasks, progress, and blockers",
5
5
  "type": "module",
6
6
  "bin": {
7
- "angine": "./dist/bin/angine.js"
7
+ "angine": "dist/bin/angine.js"
8
8
  },
9
9
  "files": [
10
10
  "dist",