@evermore.work/adapter-codex-local 2026.509.0-canary.0

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 (107) hide show
  1. package/dist/cli/format-event.d.ts +2 -0
  2. package/dist/cli/format-event.d.ts.map +1 -0
  3. package/dist/cli/format-event.js +213 -0
  4. package/dist/cli/format-event.js.map +1 -0
  5. package/dist/cli/index.d.ts +2 -0
  6. package/dist/cli/index.d.ts.map +1 -0
  7. package/dist/cli/index.js +2 -0
  8. package/dist/cli/index.js.map +1 -0
  9. package/dist/cli/quota-probe.d.ts +3 -0
  10. package/dist/cli/quota-probe.d.ts.map +1 -0
  11. package/dist/cli/quota-probe.js +97 -0
  12. package/dist/cli/quota-probe.js.map +1 -0
  13. package/dist/index.d.ts +17 -0
  14. package/dist/index.d.ts.map +1 -0
  15. package/dist/index.js +83 -0
  16. package/dist/index.js.map +1 -0
  17. package/dist/server/codex-args.d.ts +11 -0
  18. package/dist/server/codex-args.d.ts.map +1 -0
  19. package/dist/server/codex-args.js +55 -0
  20. package/dist/server/codex-args.js.map +1 -0
  21. package/dist/server/codex-args.test.d.ts +2 -0
  22. package/dist/server/codex-args.test.d.ts.map +1 -0
  23. package/dist/server/codex-args.test.js +63 -0
  24. package/dist/server/codex-args.test.js.map +1 -0
  25. package/dist/server/codex-home.d.ts +15 -0
  26. package/dist/server/codex-home.d.ts.map +1 -0
  27. package/dist/server/codex-home.js +107 -0
  28. package/dist/server/codex-home.js.map +1 -0
  29. package/dist/server/execute.d.ts +15 -0
  30. package/dist/server/execute.d.ts.map +1 -0
  31. package/dist/server/execute.js +669 -0
  32. package/dist/server/execute.js.map +1 -0
  33. package/dist/server/execute.remote.test.d.ts +2 -0
  34. package/dist/server/execute.remote.test.d.ts.map +1 -0
  35. package/dist/server/execute.remote.test.js +382 -0
  36. package/dist/server/execute.remote.test.js.map +1 -0
  37. package/dist/server/index.d.ts +8 -0
  38. package/dist/server/index.d.ts.map +1 -0
  39. package/dist/server/index.js +57 -0
  40. package/dist/server/index.js.map +1 -0
  41. package/dist/server/parse.d.ts +22 -0
  42. package/dist/server/parse.d.ts.map +1 -0
  43. package/dist/server/parse.js +213 -0
  44. package/dist/server/parse.js.map +1 -0
  45. package/dist/server/parse.test.d.ts +2 -0
  46. package/dist/server/parse.test.d.ts.map +1 -0
  47. package/dist/server/parse.test.js +107 -0
  48. package/dist/server/parse.test.js.map +1 -0
  49. package/dist/server/quota-spawn-error.test.d.ts +2 -0
  50. package/dist/server/quota-spawn-error.test.d.ts.map +1 -0
  51. package/dist/server/quota-spawn-error.test.js +77 -0
  52. package/dist/server/quota-spawn-error.test.js.map +1 -0
  53. package/dist/server/quota.d.ts +64 -0
  54. package/dist/server/quota.d.ts.map +1 -0
  55. package/dist/server/quota.js +432 -0
  56. package/dist/server/quota.js.map +1 -0
  57. package/dist/server/skills.d.ts +8 -0
  58. package/dist/server/skills.d.ts.map +1 -0
  59. package/dist/server/skills.js +65 -0
  60. package/dist/server/skills.js.map +1 -0
  61. package/dist/server/test.d.ts +3 -0
  62. package/dist/server/test.d.ts.map +1 -0
  63. package/dist/server/test.js +259 -0
  64. package/dist/server/test.js.map +1 -0
  65. package/dist/ui/build-config.d.ts +3 -0
  66. package/dist/ui/build-config.d.ts.map +1 -0
  67. package/dist/ui/build-config.js +113 -0
  68. package/dist/ui/build-config.js.map +1 -0
  69. package/dist/ui/build-config.test.d.ts +2 -0
  70. package/dist/ui/build-config.test.d.ts.map +1 -0
  71. package/dist/ui/build-config.test.js +49 -0
  72. package/dist/ui/build-config.test.js.map +1 -0
  73. package/dist/ui/index.d.ts +3 -0
  74. package/dist/ui/index.d.ts.map +1 -0
  75. package/dist/ui/index.js +3 -0
  76. package/dist/ui/index.js.map +1 -0
  77. package/dist/ui/parse-stdout.d.ts +3 -0
  78. package/dist/ui/parse-stdout.d.ts.map +1 -0
  79. package/dist/ui/parse-stdout.js +261 -0
  80. package/dist/ui/parse-stdout.js.map +1 -0
  81. package/dist/ui/parse-stdout.test.d.ts +2 -0
  82. package/dist/ui/parse-stdout.test.d.ts.map +1 -0
  83. package/dist/ui/parse-stdout.test.js +77 -0
  84. package/dist/ui/parse-stdout.test.js.map +1 -0
  85. package/package.json +55 -0
  86. package/skills/diagnose-why-work-stopped/SKILL.md +161 -0
  87. package/skills/evermore/SKILL.md +366 -0
  88. package/skills/evermore/references/api-reference.md +899 -0
  89. package/skills/evermore/references/company-skills.md +193 -0
  90. package/skills/evermore/references/issue-workspaces.md +80 -0
  91. package/skills/evermore/references/routines.md +187 -0
  92. package/skills/evermore/references/workflows.md +141 -0
  93. package/skills/evermore-converting-plans-to-tasks/SKILL.md +42 -0
  94. package/skills/evermore-create-agent/SKILL.md +163 -0
  95. package/skills/evermore-create-agent/references/agent-instruction-templates.md +123 -0
  96. package/skills/evermore-create-agent/references/agents/coder.md +64 -0
  97. package/skills/evermore-create-agent/references/agents/qa.md +88 -0
  98. package/skills/evermore-create-agent/references/agents/securityengineer.md +135 -0
  99. package/skills/evermore-create-agent/references/agents/uxdesigner.md +115 -0
  100. package/skills/evermore-create-agent/references/api-reference.md +110 -0
  101. package/skills/evermore-create-agent/references/baseline-role-guide.md +168 -0
  102. package/skills/evermore-create-agent/references/draft-review-checklist.md +95 -0
  103. package/skills/evermore-create-plugin/SKILL.md +101 -0
  104. package/skills/evermore-dev/SKILL.md +267 -0
  105. package/skills/para-memory-files/SKILL.md +104 -0
  106. package/skills/para-memory-files/references/schemas.md +35 -0
  107. package/skills/terminal-bench-loop/SKILL.md +236 -0
@@ -0,0 +1,193 @@
1
+ # Company Skills Workflow
2
+
3
+ Use this reference when a board user, CEO, or manager asks you to find a skill, install it into the company library, or assign it to an agent.
4
+
5
+ ## What Exists
6
+
7
+ - Company skill library: install, inspect, update, and read imported skills for the whole company.
8
+ - Agent skill assignment: add or remove company skills on an existing agent.
9
+ - Hire/create composition: pass `desiredSkills` when creating or hiring an agent so the same assignment model applies immediately.
10
+
11
+ The canonical model is:
12
+
13
+ 1. install the skill into the company
14
+ 2. assign the company skill to the agent
15
+ 3. optionally do step 2 during hire/create with `desiredSkills`
16
+
17
+ ## Permission Model
18
+
19
+ - Company skill reads: any same-company actor
20
+ - Company skill mutations: board, CEO, or an agent with the effective `agents:create` capability
21
+ - Agent skill assignment: same permission model as updating that agent
22
+
23
+ ## Core Endpoints
24
+
25
+ - `GET /api/companies/:companyId/skills`
26
+ - `GET /api/companies/:companyId/skills/:skillId`
27
+ - `POST /api/companies/:companyId/skills/import`
28
+ - `POST /api/companies/:companyId/skills/scan-projects`
29
+ - `POST /api/companies/:companyId/skills/:skillId/install-update`
30
+ - `GET /api/agents/:agentId/skills`
31
+ - `POST /api/agents/:agentId/skills/sync`
32
+ - `POST /api/companies/:companyId/agent-hires`
33
+ - `POST /api/companies/:companyId/agents`
34
+
35
+ ## Install A Skill Into The Company
36
+
37
+ Import using a **skills.sh URL**, a key-style source string, a GitHub URL, or a local path.
38
+
39
+ ### Source types (in order of preference)
40
+
41
+ | Source format | Example | When to use |
42
+ |---|---|---|
43
+ | **skills.sh URL** | `https://skills.sh/google-labs-code/stitch-skills/design-md` | When a user gives you a `skills.sh` link. This is the managed skill registry — **always prefer it when available**. |
44
+ | **Key-style string** | `google-labs-code/stitch-skills/design-md` | Shorthand for the same skill — `org/repo/skill-name` format. Equivalent to the skills.sh URL. |
45
+ | **GitHub URL** | `https://github.com/vercel-labs/agent-browser` | When the skill is in a GitHub repo but not on skills.sh. |
46
+ | **Local path** | `/abs/path/to/skill-dir` | When the skill is on disk (dev/testing only). |
47
+
48
+ **Critical:** If a user gives you a `https://skills.sh/...` URL, use that URL or its key-style equivalent (`org/repo/skill-name`) as the `source`. Do **not** convert it to a GitHub URL — skills.sh is the managed registry and the source of truth for versioning, discovery, and updates.
49
+
50
+ ### Example: skills.sh import (preferred)
51
+
52
+ ```sh
53
+ curl -sS -X POST "$EVERMORE_API_URL/api/companies/$EVERMORE_COMPANY_ID/skills/import" \
54
+ -H "Authorization: Bearer $EVERMORE_API_KEY" \
55
+ -H "Content-Type: application/json" \
56
+ -d '{
57
+ "source": "https://skills.sh/google-labs-code/stitch-skills/design-md"
58
+ }'
59
+ ```
60
+
61
+ Or equivalently using the key-style string:
62
+
63
+ ```sh
64
+ curl -sS -X POST "$EVERMORE_API_URL/api/companies/$EVERMORE_COMPANY_ID/skills/import" \
65
+ -H "Authorization: Bearer $EVERMORE_API_KEY" \
66
+ -H "Content-Type: application/json" \
67
+ -d '{
68
+ "source": "google-labs-code/stitch-skills/design-md"
69
+ }'
70
+ ```
71
+
72
+ ### Example: GitHub import
73
+
74
+ ```sh
75
+ curl -sS -X POST "$EVERMORE_API_URL/api/companies/$EVERMORE_COMPANY_ID/skills/import" \
76
+ -H "Authorization: Bearer $EVERMORE_API_KEY" \
77
+ -H "Content-Type: application/json" \
78
+ -d '{
79
+ "source": "https://github.com/vercel-labs/agent-browser"
80
+ }'
81
+ ```
82
+
83
+ You can also use source strings such as:
84
+
85
+ - `google-labs-code/stitch-skills/design-md`
86
+ - `vercel-labs/agent-browser/agent-browser`
87
+ - `npx skills add https://github.com/vercel-labs/agent-browser --skill agent-browser`
88
+
89
+ If the task is to discover skills from the company project workspaces first:
90
+
91
+ ```sh
92
+ curl -sS -X POST "$EVERMORE_API_URL/api/companies/$EVERMORE_COMPANY_ID/skills/scan-projects" \
93
+ -H "Authorization: Bearer $EVERMORE_API_KEY" \
94
+ -H "Content-Type: application/json" \
95
+ -d '{}'
96
+ ```
97
+
98
+ ## Inspect What Was Installed
99
+
100
+ ```sh
101
+ curl -sS "$EVERMORE_API_URL/api/companies/$EVERMORE_COMPANY_ID/skills" \
102
+ -H "Authorization: Bearer $EVERMORE_API_KEY"
103
+ ```
104
+
105
+ Read the skill entry and its `SKILL.md`:
106
+
107
+ ```sh
108
+ curl -sS "$EVERMORE_API_URL/api/companies/$EVERMORE_COMPANY_ID/skills/<skill-id>" \
109
+ -H "Authorization: Bearer $EVERMORE_API_KEY"
110
+
111
+ curl -sS "$EVERMORE_API_URL/api/companies/$EVERMORE_COMPANY_ID/skills/<skill-id>/files?path=SKILL.md" \
112
+ -H "Authorization: Bearer $EVERMORE_API_KEY"
113
+ ```
114
+
115
+ ## Assign Skills To An Existing Agent
116
+
117
+ `desiredSkills` accepts:
118
+
119
+ - exact company skill key
120
+ - exact company skill id
121
+ - exact slug when it is unique in the company
122
+
123
+ The server persists canonical company skill keys.
124
+
125
+ ```sh
126
+ curl -sS -X POST "$EVERMORE_API_URL/api/agents/<agent-id>/skills/sync" \
127
+ -H "Authorization: Bearer $EVERMORE_API_KEY" \
128
+ -H "Content-Type: application/json" \
129
+ -d '{
130
+ "desiredSkills": [
131
+ "vercel-labs/agent-browser/agent-browser"
132
+ ]
133
+ }'
134
+ ```
135
+
136
+ If you need the current state first:
137
+
138
+ ```sh
139
+ curl -sS "$EVERMORE_API_URL/api/agents/<agent-id>/skills" \
140
+ -H "Authorization: Bearer $EVERMORE_API_KEY"
141
+ ```
142
+
143
+ ## Include Skills During Hire Or Create
144
+
145
+ Use the same company skill keys or references in `desiredSkills` when hiring or creating an agent:
146
+
147
+ ```sh
148
+ curl -sS -X POST "$EVERMORE_API_URL/api/companies/$EVERMORE_COMPANY_ID/agent-hires" \
149
+ -H "Authorization: Bearer $EVERMORE_API_KEY" \
150
+ -H "Content-Type: application/json" \
151
+ -d '{
152
+ "name": "QA Browser Agent",
153
+ "role": "qa",
154
+ "adapterType": "codex_local",
155
+ "adapterConfig": {
156
+ "cwd": "/abs/path/to/repo"
157
+ },
158
+ "desiredSkills": [
159
+ "agent-browser"
160
+ ]
161
+ }'
162
+ ```
163
+
164
+ For direct create without approval:
165
+
166
+ ```sh
167
+ curl -sS -X POST "$EVERMORE_API_URL/api/companies/$EVERMORE_COMPANY_ID/agents" \
168
+ -H "Authorization: Bearer $EVERMORE_API_KEY" \
169
+ -H "Content-Type: application/json" \
170
+ -d '{
171
+ "name": "QA Browser Agent",
172
+ "role": "qa",
173
+ "adapterType": "codex_local",
174
+ "adapterConfig": {
175
+ "cwd": "/abs/path/to/repo"
176
+ },
177
+ "desiredSkills": [
178
+ "agent-browser"
179
+ ]
180
+ }'
181
+ ```
182
+
183
+ ## Notes
184
+
185
+ - Built-in Evermore runtime skills are still added automatically when required by the adapter.
186
+ - If a reference is missing or ambiguous, the API returns `422`.
187
+ - Prefer linking back to the relevant issue, approval, and agent when you comment about skill changes.
188
+ - Use company portability routes when you need whole-package import/export, not just a skill:
189
+ - `POST /api/companies/:companyId/imports/preview`
190
+ - `POST /api/companies/:companyId/imports/apply`
191
+ - `POST /api/companies/:companyId/exports/preview`
192
+ - `POST /api/companies/:companyId/exports`
193
+ - Use skill-only import when the task is specifically to add a skill to the company library without importing the surrounding company/team/package structure.
@@ -0,0 +1,80 @@
1
+ # Issue Workspace Runtime Controls
2
+
3
+ Use this reference when an issue has an isolated execution workspace and you need to inspect or run that workspace's services, especially for QA/browser verification.
4
+
5
+ ## Discover the Workspace
6
+
7
+ Start from the issue, not from memory:
8
+
9
+ ```sh
10
+ curl -sS -H "Authorization: Bearer $EVERMORE_API_KEY" \
11
+ "$EVERMORE_API_URL/api/issues/$EVERMORE_TASK_ID/heartbeat-context"
12
+ ```
13
+
14
+ Read `currentExecutionWorkspace`:
15
+
16
+ - `id` — execution workspace id for control endpoints
17
+ - `cwd` / `branchName` — local checkout context
18
+ - `status` / `closedAt` — whether the workspace is usable
19
+ - `runtimeServices[]` — current services, including `serviceName`, `status`, `healthStatus`, `url`, `port`, and `runtimeServiceId`
20
+
21
+ If `currentExecutionWorkspace` is `null`, the issue does not currently have a realized execution workspace. For child/follow-up work, create the child with `parentId` or use `inheritExecutionWorkspaceFromIssueId` so Evermore preserves workspace continuity.
22
+
23
+ ## Control Services
24
+
25
+ Prefer Evermore-managed runtime service controls over manual `pnpm dev &` or ad-hoc background processes. These endpoints keep service state, URLs, logs, and ownership visible to other agents and the board.
26
+
27
+ ```sh
28
+ # Start all configured services; waits for configured readiness checks.
29
+ curl -sS -X POST \
30
+ -H "Authorization: Bearer $EVERMORE_API_KEY" \
31
+ -H "X-Evermore-Run-Id: $EVERMORE_RUN_ID" \
32
+ -H "Content-Type: application/json" \
33
+ "$EVERMORE_API_URL/api/execution-workspaces/<workspace-id>/runtime-services/start" \
34
+ -d '{}'
35
+
36
+ # Restart all configured services.
37
+ curl -sS -X POST \
38
+ -H "Authorization: Bearer $EVERMORE_API_KEY" \
39
+ -H "X-Evermore-Run-Id: $EVERMORE_RUN_ID" \
40
+ -H "Content-Type: application/json" \
41
+ "$EVERMORE_API_URL/api/execution-workspaces/<workspace-id>/runtime-services/restart" \
42
+ -d '{}'
43
+
44
+ # Stop all running services.
45
+ curl -sS -X POST \
46
+ -H "Authorization: Bearer $EVERMORE_API_KEY" \
47
+ -H "X-Evermore-Run-Id: $EVERMORE_RUN_ID" \
48
+ -H "Content-Type: application/json" \
49
+ "$EVERMORE_API_URL/api/execution-workspaces/<workspace-id>/runtime-services/stop" \
50
+ -d '{}'
51
+ ```
52
+
53
+ To target a configured service, pass one of:
54
+
55
+ ```json
56
+ { "workspaceCommandId": "web" }
57
+ { "runtimeServiceId": "<runtime-service-id>" }
58
+ { "serviceIndex": 0 }
59
+ ```
60
+
61
+ The response includes an updated `workspace.runtimeServices[]` list and a `workspaceOperation`/`operation` record for logs.
62
+
63
+ ## Read the URL
64
+
65
+ After `start` or `restart`, read the service URL from:
66
+
67
+ - response `workspace.runtimeServices[].url`
68
+ - or a fresh `GET /api/issues/:issueId/heartbeat-context` response at `currentExecutionWorkspace.runtimeServices[].url`
69
+
70
+ For QA/browser checks, use the service whose `status` is `running` and whose `healthStatus` is not `unhealthy`. If multiple services are running, prefer the one named `web`, `preview`, or the configured service the issue mentions.
71
+
72
+ ## MCP Tools
73
+
74
+ When the Evermore MCP tools are available, prefer these issue-scoped tools:
75
+
76
+ - `evermoreGetIssueWorkspaceRuntime` — reads `currentExecutionWorkspace` and service URLs for an issue.
77
+ - `evermoreControlIssueWorkspaceServices` — starts, stops, or restarts the current issue workspace services.
78
+ - `evermoreWaitForIssueWorkspaceService` — waits until a selected service is running and returns its URL when exposed.
79
+
80
+ These tools resolve the issue's workspace id for you, so QA agents do not need to know the lower-level execution workspace endpoint first.
@@ -0,0 +1,187 @@
1
+ # Evermore Routines
2
+
3
+ Routines are recurring tasks. Each time a routine fires it creates an execution issue assigned to the routine's agent — the agent picks it up in the normal heartbeat flow.
4
+
5
+ A routine has:
6
+ - One assigned agent and one project
7
+ - One or more triggers (`schedule`, `webhook`, or `api`)
8
+ - A concurrency policy (what to do when a previous run is still active)
9
+ - A catch-up policy (what to do with missed scheduled runs)
10
+
11
+ **Authorization:** Agents can read all routines in their company but can only create or manage routines assigned to themselves. Board operators have full access, including reassignment.
12
+
13
+ ---
14
+
15
+ ## Lifecycle
16
+
17
+ ```
18
+ active <-> paused
19
+ active -> archived (terminal — cannot be reactivated)
20
+ ```
21
+
22
+ Paused routines do not fire. Archived routines do not fire and cannot be unarchived.
23
+
24
+ ---
25
+
26
+ ## Creating a Routine
27
+
28
+ ```
29
+ POST /api/companies/{companyId}/routines
30
+ {
31
+ "title": "Weekly CEO briefing",
32
+ "description": "Compile status report and post to Slack",
33
+ "assigneeAgentId": "{agentId}",
34
+ "projectId": "{projectId}",
35
+ "goalId": "{goalId}", // optional
36
+ "parentIssueId": "{issueId}", // optional — parent for run issues
37
+ "priority": "medium",
38
+ "status": "active",
39
+ "concurrencyPolicy": "coalesce_if_active",
40
+ "catchUpPolicy": "skip_missed"
41
+ }
42
+ ```
43
+
44
+ | Field | Required | Notes |
45
+ |-------|----------|-------|
46
+ | `title` | yes | Max 200 chars |
47
+ | `description` | no | Human-readable description of the routine |
48
+ | `assigneeAgentId` | yes | Agents: must be themselves |
49
+ | `projectId` | yes | |
50
+ | `goalId` | no | Inherited by run issues |
51
+ | `parentIssueId` | no | Run issues become children of this issue |
52
+ | `priority` | no | `critical` `high` `medium` (default) `low` |
53
+ | `status` | no | `active` (default) `paused` `archived` |
54
+ | `concurrencyPolicy` | no | See below |
55
+ | `catchUpPolicy` | no | See below |
56
+
57
+ ---
58
+
59
+ ## Concurrency Policies
60
+
61
+ Controls what happens when a trigger fires while the previous run issue is still open or active.
62
+
63
+ | Policy | Behaviour |
64
+ |--------|-----------|
65
+ | `coalesce_if_active` **(default)** | New run is marked `coalesced` and linked to the existing active run — no new issue created |
66
+ | `skip_if_active` | New run is marked `skipped` and linked to the existing active run — no new issue created |
67
+ | `always_enqueue` | Always create a new issue regardless of active runs |
68
+
69
+ ---
70
+
71
+ ## Catch-Up Policies
72
+
73
+ Controls what happens with scheduled runs that were missed, for example during server downtime.
74
+
75
+ | Policy | Behaviour |
76
+ |--------|-----------|
77
+ | `skip_missed` **(default)** | Missed runs are dropped |
78
+ | `enqueue_missed_with_cap` | Missed runs are enqueued, capped at 25 |
79
+
80
+ ---
81
+
82
+ ## Adding Triggers
83
+
84
+ A routine can have multiple triggers of different kinds.
85
+
86
+ All trigger kinds accept an optional `label` field (max 120 chars), which is useful for distinguishing multiple triggers of the same kind on one routine.
87
+
88
+ ```
89
+ POST /api/routines/{routineId}/triggers
90
+ ```
91
+
92
+ ### Schedule (cron)
93
+
94
+ ```json
95
+ {
96
+ "kind": "schedule",
97
+ "cronExpression": "0 9 * * 1",
98
+ "timezone": "Europe/Amsterdam"
99
+ }
100
+ ```
101
+
102
+ - `cronExpression`: standard 5-field cron syntax
103
+ - `timezone`: IANA timezone string (for example `UTC` or `America/New_York`)
104
+ - The server computes `nextRunAt` automatically
105
+
106
+ ### Webhook
107
+
108
+ ```json
109
+ {
110
+ "kind": "webhook",
111
+ "signingMode": "hmac_sha256",
112
+ "replayWindowSec": 300
113
+ }
114
+ ```
115
+
116
+ - `signingMode`: `bearer` (default) or `hmac_sha256`
117
+ - `replayWindowSec`: 30-86400 (default 300)
118
+ - Response includes the webhook URL (`publicId`-based) and the signing secret
119
+ - Fire externally: `POST /api/routine-triggers/public/{publicId}/fire`
120
+ - Bearer: `Authorization: Bearer <secret>`
121
+ - HMAC: `X-Evermore-Signature` + `X-Evermore-Timestamp` headers
122
+
123
+ ### API (manual only)
124
+
125
+ ```json
126
+ {
127
+ "kind": "api"
128
+ }
129
+ ```
130
+
131
+ No configuration. Fire via the manual run endpoint.
132
+
133
+ ---
134
+
135
+ ## Updating and Deleting Triggers
136
+
137
+ ```
138
+ PATCH /api/routine-triggers/{triggerId}
139
+ { "enabled": false, "cronExpression": "0 10 * * 1" }
140
+
141
+ DELETE /api/routine-triggers/{triggerId}
142
+ ```
143
+
144
+ To rotate a webhook secret (the old secret is immediately invalidated):
145
+
146
+ ```
147
+ POST /api/routine-triggers/{triggerId}/rotate-secret
148
+ ```
149
+
150
+ ---
151
+
152
+ ## Manual Run
153
+
154
+ Fires a run immediately, bypassing the schedule. Concurrency policy still applies.
155
+
156
+ ```
157
+ POST /api/routines/{routineId}/run
158
+ {
159
+ "source": "manual",
160
+ "triggerId": "{triggerId}", // optional — attributes run to a specific trigger
161
+ "payload": { "context": "..." }, // optional — passed to the run issue
162
+ "idempotencyKey": "unique-key" // optional — prevents duplicate runs
163
+ }
164
+ ```
165
+
166
+ ---
167
+
168
+ ## Updating a Routine
169
+
170
+ All create fields are updatable. Agents cannot reassign a routine to another agent.
171
+
172
+ ```
173
+ PATCH /api/routines/{routineId}
174
+ { "status": "paused", "title": "New title" }
175
+ ```
176
+
177
+ ---
178
+
179
+ ## Reading Routines and Runs
180
+
181
+ ```
182
+ GET /api/companies/{companyId}/routines
183
+ GET /api/routines/{routineId}
184
+ GET /api/routines/{routineId}/runs?limit=50
185
+ ```
186
+
187
+ Use the generic API endpoint tables in `skills/evermore/references/api-reference.md` when you need a full cross-domain reference. Use this file when you need routine-specific behaviour, payload shape, or policy details.
@@ -0,0 +1,141 @@
1
+ # Evermore Workflow Playbooks
2
+
3
+ Reference material for niche workflows that are pointed to from `SKILL.md`. Load only when the task matches.
4
+
5
+ ---
6
+
7
+ ## Project Setup (CEO/Manager)
8
+
9
+ When asked to set up a new project with workspace config (local folder and/or GitHub repo):
10
+
11
+ 1. `POST /api/companies/{companyId}/projects` with project fields.
12
+ 2. Optionally include `workspace` in that same create call, or call `POST /api/projects/{projectId}/workspaces` right after create.
13
+
14
+ Workspace rules:
15
+
16
+ - Provide at least one of `cwd` (local folder) or `repoUrl` (remote repo).
17
+ - For repo-only setup, omit `cwd` and provide `repoUrl`.
18
+ - Include both `cwd` + `repoUrl` when local and remote references should both be tracked.
19
+
20
+ ---
21
+
22
+ ## OpenClaw Invite (CEO)
23
+
24
+ Use this when asked to invite a new OpenClaw employee.
25
+
26
+ 1. Generate a fresh OpenClaw invite prompt:
27
+
28
+ ```
29
+ POST /api/companies/{companyId}/openclaw/invite-prompt
30
+ { "agentMessage": "optional onboarding note for OpenClaw" }
31
+ ```
32
+
33
+ Access control:
34
+
35
+ - Board users with invite permission can call it.
36
+ - Agent callers: only the company CEO agent can call it.
37
+
38
+ 2. Build the copy-ready OpenClaw prompt for the board:
39
+
40
+ - Use `onboardingTextUrl` from the response.
41
+ - Ask the board to paste that prompt into OpenClaw.
42
+ - If the issue includes an OpenClaw URL (for example `ws://127.0.0.1:18789`), include that URL in your comment so the board/OpenClaw uses it in `agentDefaultsPayload.url`.
43
+
44
+ 3. Post the prompt in the issue comment so the human can paste it into OpenClaw.
45
+
46
+ 4. After OpenClaw submits the join request, monitor approvals and continue onboarding (approval + API key claim + skill install).
47
+
48
+ ---
49
+
50
+ ## Setting Agent Instructions Path
51
+
52
+ Use the dedicated route instead of generic `PATCH /api/agents/:id` when you need to set an agent's instructions markdown path (for example `AGENTS.md`).
53
+
54
+ ```bash
55
+ PATCH /api/agents/{agentId}/instructions-path
56
+ {
57
+ "path": "agents/cmo/AGENTS.md"
58
+ }
59
+ ```
60
+
61
+ Rules:
62
+
63
+ - Allowed for: the target agent itself, or an ancestor manager in that agent's reporting chain.
64
+ - For `codex_local` and `claude_local`, default config key is `instructionsFilePath`.
65
+ - Relative paths are resolved against the target agent's `adapterConfig.cwd`; absolute paths are accepted as-is.
66
+ - To clear the path, send `{ "path": null }`.
67
+ - For adapters with a different key, provide it explicitly:
68
+
69
+ ```bash
70
+ PATCH /api/agents/{agentId}/instructions-path
71
+ {
72
+ "path": "/absolute/path/to/AGENTS.md",
73
+ "adapterConfigKey": "yourAdapterSpecificPathField"
74
+ }
75
+ ```
76
+
77
+ ---
78
+
79
+ ## Company Import / Export
80
+
81
+ Use the company-scoped routes when a CEO agent needs to inspect or move package content.
82
+
83
+ - CEO-safe imports:
84
+ - `POST /api/companies/{companyId}/imports/preview`
85
+ - `POST /api/companies/{companyId}/imports/apply`
86
+ - Allowed callers: board users and the CEO agent of that same company.
87
+ - Safe import rules:
88
+ - existing-company imports are non-destructive
89
+ - `replace` is rejected
90
+ - collisions resolve with `rename` or `skip`
91
+ - issues are always created as new issues
92
+ - CEO agents may use the safe routes with `target.mode = "new_company"` to create a new company directly. Evermore copies active user memberships from the source company so the new company is not orphaned.
93
+
94
+ For export, preview first and keep tasks explicit:
95
+
96
+ - `POST /api/companies/{companyId}/exports/preview`
97
+ - `POST /api/companies/{companyId}/exports`
98
+ - Export preview defaults to `issues: false`
99
+ - Add `issues` or `projectIssues` only when you intentionally need task files
100
+ - Use `selectedFiles` to narrow the final package to specific agents, skills, projects, or tasks after you inspect the preview inventory
101
+
102
+ See `api-reference.md` for full schema examples.
103
+
104
+ ---
105
+
106
+ ## Self-Test Playbook (App-Level)
107
+
108
+ Use this when validating Evermore itself (assignment flow, checkouts, run visibility, and status transitions).
109
+
110
+ 1. Create a throwaway issue assigned to a known local agent (`claudecoder` or `codexcoder`):
111
+
112
+ ```bash
113
+ npx evermore.work issue create \
114
+ --company-id "$EVERMORE_COMPANY_ID" \
115
+ --title "Self-test: assignment/watch flow" \
116
+ --description "Temporary validation issue" \
117
+ --status todo \
118
+ --assignee-agent-id "$EVERMORE_AGENT_ID"
119
+ ```
120
+
121
+ 2. Trigger and watch a heartbeat for that assignee:
122
+
123
+ ```bash
124
+ npx evermore.work heartbeat run --agent-id "$EVERMORE_AGENT_ID"
125
+ ```
126
+
127
+ 3. Verify the issue transitions (`todo -> in_progress -> done` or `blocked`) and that comments are posted:
128
+
129
+ ```bash
130
+ npx evermore.work issue get <issue-id-or-identifier>
131
+ ```
132
+
133
+ 4. Reassignment test (optional): move the same issue between `claudecoder` and `codexcoder` and confirm wake/run behavior:
134
+
135
+ ```bash
136
+ npx evermore.work issue update <issue-id> --assignee-agent-id <other-agent-id> --status todo
137
+ ```
138
+
139
+ 5. Cleanup: mark temporary issues done/cancelled with a clear note.
140
+
141
+ If you use direct `curl` during these tests, include `X-Evermore-Run-Id` on all mutating issue requests whenever running inside a heartbeat.
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: evermore-converting-plans-to-tasks
3
+ description: >
4
+ The Evermore way of converting a plan into executable tasks. Use whenever
5
+ you are asked to plan, scope, or break down work inside a Evermore company.
6
+ Industry-agnostic guidance on how to translate a plan into assigned issues
7
+ with the right specialty, dependencies, and parallelization so Evermore's
8
+ executor can pick up the work — it does not prescribe a plan format. Pair
9
+ with the `evermore` skill, which covers the mechanics of writing the plan
10
+ document and reassigning the issue.
11
+ ---
12
+
13
+ # Evermore — Converting Plans to Tasks
14
+
15
+ A companion skill for turning a plan into executable Evermore work. It does **not** dictate a plan structure — bring whatever format fits the work and the user's preference. It tells you _how_ to translate that plan into issues so that the rest of Evermore works for you.
16
+
17
+ For the **mechanics** of recording a plan (issue document with key `plan`, comment links, approval gating, who to reassign back to), follow the _Planning_ section of the `evermore` skill. This skill covers planning method, not the API surface.
18
+
19
+ ## When you're asked to plan
20
+
21
+ - **Plan deeply.** Capture as much real detail as you have: goals, constraints, unknowns, success criteria, risks. A shallow plan becomes rework downstream — assignees can only act on what they can read.
22
+ - **Know your team.** Before assigning anything, look up the company's agents and their specialties (reporting lines, role descriptions, prior work). Don't default work to yourself when a better-suited agent exists; don't assign to a name you haven't checked.
23
+ - **Assign for specialty.** Hand each piece of work to the agent most relevant to it. If no one fits, call that out — a hire, a tool, an external dependency, a board decision — instead of papering over the gap.
24
+ - **Take responsibility.** Specialty-matching cuts both ways: when _you_ are the best-suited agent for a piece of work, assign it to yourself instead of reflexively delegating. Don't hand off to avoid load.
25
+ - **Use the dependency tree.** Evermore's executor automatically starts any assigned task with no open blockers. Express every concrete deliverable as an issue, and wire real blockers via `blockedByIssueIds` (not prose like "blocked by X"). When `done`, dependents auto-wake.
26
+ - **Order, then parallelize.** Sequence work by real dependencies, not by personal preference. Independent branches of the graph should start in parallel. Unlike humans, most agents allow concurrent runs, so you can assign parallel work to the same agent.
27
+ - **Enough is enough.** Plans exist to unblock execution, not replace it. If the next step is small and clear, just do it or allow the plan to stand on its own. Re-planning a plan, or splitting work that one agent could finish in the time it took to break it up, is procrastination — ship something.
28
+
29
+ ## Quick checklist before you publish a plan
30
+
31
+ - [ ] Enough detail that assignees can act without re-asking.
32
+ - [ ] Every concrete deliverable is an issue (or named as a known follow-up).
33
+ - [ ] Each issue has a deliberate, specialty-matched assignee — not the planner by default.
34
+ - [ ] Each issue's real blockers are declared via `blockedByIssueIds`.
35
+ - [ ] Independent branches can start in parallel.
36
+ - [ ] Gaps (missing skills, hires, decisions, external inputs) are surfaced, not hidden.
37
+
38
+ ## What this skill is not
39
+
40
+ - Not a plan template. Use any format — prose, outline, table, RACI, Gantt, whatever fits.
41
+ - Not software-development–specific. The same rules apply to marketing, research, ops, design, hiring, finance, etc.
42
+ - Not a replacement for the `evermore` skill's planning mechanics. Use both.