@orchestraworks/cli 0.3.0 → 0.5.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.
- package/README.md +20 -1257
- package/dist/cli/core/invocation.js +1 -1
- package/dist/cli/factory/init.d.ts +1 -1
- package/dist/cli/factory/init.js +41 -13
- package/dist/cli/main.js +0 -0
- package/dist/cli/skill.js +20 -7
- package/docs/REFERENCE.md +1278 -0
- package/node_modules/@orchestraworks/client/package.json +1 -1
- package/package.json +7 -8
- package/skills/orchestra/SKILL.md +29 -3
- package/skills/orchestra-fdk/SKILL.md +68 -10
- package/skills/orchestra-fdk/references/authoring.md +14 -14
- package/templates/bug-fix/tsconfig.json +12 -0
- package/templates/engineering-team/lib/setup.sh +16 -0
- package/templates/engineering-team/package.json +1 -1
- package/templates/todo-factory/package.json +1 -1
- package/node_modules/@orchestraworks/workflow-render/LICENSE +0 -202
- package/node_modules/@orchestraworks/workflow-render/dist/constants.d.ts +0 -98
- package/node_modules/@orchestraworks/workflow-render/dist/context.d.ts +0 -37
- package/node_modules/@orchestraworks/workflow-render/dist/geometry-core.d.ts +0 -40
- package/node_modules/@orchestraworks/workflow-render/dist/graph-digest.d.ts +0 -4
- package/node_modules/@orchestraworks/workflow-render/dist/grid.d.ts +0 -33
- package/node_modules/@orchestraworks/workflow-render/dist/heuristic.d.ts +0 -7
- package/node_modules/@orchestraworks/workflow-render/dist/identity.d.ts +0 -9
- package/node_modules/@orchestraworks/workflow-render/dist/index.d.ts +0 -24
- package/node_modules/@orchestraworks/workflow-render/dist/index.js +0 -1
- package/node_modules/@orchestraworks/workflow-render/dist/layout.d.ts +0 -6
- package/node_modules/@orchestraworks/workflow-render/dist/normalize.d.ts +0 -33
- package/node_modules/@orchestraworks/workflow-render/dist/place.d.ts +0 -81
- package/node_modules/@orchestraworks/workflow-render/dist/ports.d.ts +0 -15
- package/node_modules/@orchestraworks/workflow-render/dist/presence.d.ts +0 -6
- package/node_modules/@orchestraworks/workflow-render/dist/route-cells.d.ts +0 -15
- package/node_modules/@orchestraworks/workflow-render/dist/sha256.d.ts +0 -3
- package/node_modules/@orchestraworks/workflow-render/dist/svg.d.ts +0 -7
- package/node_modules/@orchestraworks/workflow-render/dist/text.d.ts +0 -14
- package/node_modules/@orchestraworks/workflow-render/dist/types.d.ts +0 -310
- package/node_modules/@orchestraworks/workflow-render/dist/verify.d.ts +0 -26
- package/node_modules/@orchestraworks/workflow-render/package.json +0 -42
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orchestraworks/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "Orchestra
|
|
5
|
+
"description": "The Orchestra command line.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": "Living Computers",
|
|
8
8
|
"homepage": "https://orchestraworks.ai",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"dist",
|
|
18
18
|
"skills",
|
|
19
19
|
"templates",
|
|
20
|
-
"README.md"
|
|
20
|
+
"README.md",
|
|
21
|
+
"docs/REFERENCE.md"
|
|
21
22
|
],
|
|
22
23
|
"main": "./dist/index.js",
|
|
23
24
|
"types": "./dist/index.d.ts",
|
|
@@ -108,17 +109,15 @@
|
|
|
108
109
|
},
|
|
109
110
|
"dependencies": {
|
|
110
111
|
"@agentclientprotocol/sdk": "1.3.0",
|
|
111
|
-
"@orchestraworks/client": "0.
|
|
112
|
-
"@orchestraworks/worker": "0.0.
|
|
113
|
-
"@orchestraworks/workflow-render": "0.3.0",
|
|
112
|
+
"@orchestraworks/client": "0.5.0",
|
|
113
|
+
"@orchestraworks/worker": "0.0.136",
|
|
114
114
|
"commander": "^14.0.0",
|
|
115
115
|
"liquidjs": "^10.28.0"
|
|
116
116
|
},
|
|
117
117
|
"optionalDependencies": {
|
|
118
|
-
"@orchestraworks/local": "0.0.
|
|
118
|
+
"@orchestraworks/local": "0.0.136"
|
|
119
119
|
},
|
|
120
120
|
"bundleDependencies": [
|
|
121
|
-
"@orchestraworks/workflow-render",
|
|
122
121
|
"@orchestraworks/client"
|
|
123
122
|
],
|
|
124
123
|
"devDependencies": {
|
|
@@ -477,7 +477,9 @@ verbs; --output json; --body @file.json; --file; values masked; approval default
|
|
|
477
477
|
auth.ts:1-45 (ORCHESTRA_API_TOKEN, then the login profile, then the machine's edge; default address
|
|
478
478
|
api.orchestraworks.ai; ORCHESTRA_BASE_URL), cli/src/cli/core/profile.ts:39-52 (profiles in
|
|
479
479
|
~/.config/orchestra/config.json, "default"), cli/src/cli/core/invocation.ts:19 (--profile),
|
|
480
|
-
cli/src/generated/cli-commands.json ("me get").
|
|
480
|
+
cli/src/generated/cli-commands.json ("me get"; each command's answer), cli/src/cli/core/output.ts:94-113 and
|
|
481
|
+
:143-145 (json prints the answer as it is), cli/src/cli/core/errors.ts:287-296 and :366-370 (the json error, on
|
|
482
|
+
stderr), cli/src/cli/core/login.ts:361-363 (a pasted token keeps no refresh token). -->
|
|
481
483
|
|
|
482
484
|
The `orchestra` command does two jobs. *Factory as code* (section 15) is where change happens. *Platform commands*
|
|
483
485
|
read and probe what exists: observe with commands, change in code.
|
|
@@ -487,19 +489,43 @@ read and probe what exists: observe with commands, change in code.
|
|
|
487
489
|
`delete`. Commands keep their own verb, such as `work-items assign`, `work-items move` and
|
|
488
490
|
`sessions interrupt`. `orchestra sessions wait <session id>` waits for a turn to end. `orchestra <noun> --help` lists a noun's
|
|
489
491
|
verbs and flags.
|
|
490
|
-
- **Output.** `--output json` on every platform command. The default is a table for people.
|
|
492
|
+
- **Output.** `--output json` on every platform command. The default is a table for people. JSON mode prints
|
|
493
|
+
the API's answer as it is on stdout, with key values masked. Read the field you need from its place:
|
|
494
|
+
- A list answers a page: `{"data":[…],"page":1,"limit":20,"total":42}`. The rows are in `data`. This is
|
|
495
|
+
true for every `list` verb, and for list verbs with another name, such as `sessions list-items`.
|
|
496
|
+
- `get`, `update` and most `create` verbs answer the resource itself: `{"id":"…",…}`.
|
|
497
|
+
- Some verbs wrap the resource with what came with it. `sessions start` answers
|
|
498
|
+
`{"session":{…},"firstItem":{…}}`, so the session id is `.session.id`. `sessions append-item` answers
|
|
499
|
+
`{"item":{…},"turnState":"…"}`, and `sessions interrupt` answers `{"session":{…},"withdrawnItems":[…]}`.
|
|
500
|
+
- A create that shows a key once answers the resource beside the key, such as `gateway-keys create`,
|
|
501
|
+
`{"gatewayKey":{…},"token":"…"}`. `files create` answers `{"file":{…},"upload":{…}}`.
|
|
502
|
+
- `orchestra sessions wait` prints the session itself, as `sessions get` does. A delete prints `null`.
|
|
503
|
+
- An error prints `{"status":404,"message":"…"}` on stderr, and the command exits non-zero.
|
|
491
504
|
- **Input.** `--body @file.json` sends a full request body. `--file <path>` uploads bytes on `files create`.
|
|
492
505
|
- **Values.** Key values in answers print masked.
|
|
493
506
|
- **Approval.** A platform command asks first only for key values and access changes.
|
|
494
507
|
`--require-approval never` skips the question, only after the person approved.
|
|
495
508
|
- **Sign-in.** `orchestra auth login --org <organization>` signs in through the browser and saves a *profile* in
|
|
496
509
|
`~/.config/orchestra/config.json`. `--no-browser` asks for an API token at a hidden prompt instead. `--profile
|
|
497
|
-
<name>` picks another saved profile. It signs in to `https://api.orchestraworks.ai` unless
|
|
510
|
+
<name>` picks another saved profile. It signs in to `https://api.orchestraworks.ai` unless `ORCHESTRA_BASE_URL`
|
|
511
|
+
or `--base-url` says otherwise. The browser sign-in renews itself. A token typed at the `--no-browser`
|
|
512
|
+
prompt cannot renew itself, so it suits a short run only.
|
|
498
513
|
- **Who am I.** `orchestra me get` shows the signed-in user, and `orchestra organizations list` the organization.
|
|
499
514
|
- **Scripts.** `ORCHESTRA_API_TOKEN` and `ORCHESTRA_BASE_URL` in the shell are used before the profile. On an
|
|
500
515
|
Orchestra machine, the network edge signs the agent's calls, so it needs no token.
|
|
501
516
|
- **Fallback.** `orchestra api <METHOD> </path>` makes a raw call when a typed command is missing.
|
|
502
517
|
|
|
518
|
+
A first look at an organization, in the order a new reader runs it:
|
|
519
|
+
|
|
520
|
+
```bash
|
|
521
|
+
orchestra auth login --org <organization>
|
|
522
|
+
orchestra me get
|
|
523
|
+
orchestra agents list --output json
|
|
524
|
+
orchestra work-items list --output json
|
|
525
|
+
orchestra sessions wait <session id>
|
|
526
|
+
orchestra api GET /agents
|
|
527
|
+
```
|
|
528
|
+
|
|
503
529
|
**Writes outside the code.** A write command on something the code declares warns: the next apply sets it back.
|
|
504
530
|
|
|
505
531
|
## 17. Connections
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: orchestra-fdk
|
|
3
|
-
description: Use when building and applying an Orchestra factory with the factory development kit for a developer's codebase - installing the kit, signing in, writing the engineering-team starter, explaining its plan, the first apply without tokens, proving the machines locally first and applying them, the "Set up" item that runs the repository from a git bundle, the role grant, then connecting the code host and the tracker, and starting Study. Reads the orchestra skill for the platform's ideas and references/environment.md for the machines.
|
|
3
|
+
description: Use when building and applying an Orchestra factory with the factory development kit for a developer's codebase - installing the kit, signing in, the bug-fix fast path (one agent, one bug, a pull request), writing the engineering-team starter, explaining its plan, the first apply without tokens, proving the machines locally first and applying them, the "Set up" item that runs the repository from a git bundle, the role grant, then connecting the code host and the tracker, and starting Study. Reads the orchestra skill for the platform's ideas and references/environment.md for the machines.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Build and apply an Orchestra factory
|
|
@@ -17,6 +17,57 @@ folder. Use it to answer a case the steps do not cover, and never promise one of
|
|
|
17
17
|
Ask questions with your question tool: `AskUserQuestion` in Claude Code, its counterpart in Codex. Ask one
|
|
18
18
|
thing at a time. Never ask the developer to paste a token into the chat.
|
|
19
19
|
|
|
20
|
+
## The bug-fix fast path
|
|
21
|
+
|
|
22
|
+
`orchestra fdk init` without `--template` writes the bug-fix starter: one agent that takes a bug as its
|
|
23
|
+
first message and answers with a pull request and a report. Take this path when the developer wants one bug
|
|
24
|
+
fixed in a GitHub repository. Do steps 1 and 2 below first. Then:
|
|
25
|
+
|
|
26
|
+
1. Make a new folder beside the codebase, `<codebase>/../orchestra-factory`, called `<factory>`. In it, run
|
|
27
|
+
`npm init -y`, then `npm install @orchestraworks/cli`.
|
|
28
|
+
2. Write the starter. `<owner>/<name>` is the GitHub repository. Add `--model-key anthropic` or
|
|
29
|
+
`--model-key openai` only when the organization brings its own model key.
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npx orchestra fdk init --repository <owner>/<name>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
3. Run `npm install`, then `npm run typecheck`. Both must pass.
|
|
36
|
+
4. Fill in `<factory>/skills/codebase/SKILL.md` with how the codebase installs, tests and starts, and the
|
|
37
|
+
services it needs. When the codebase has an `AGENTS.md` or `CLAUDE.md`, write one line naming it instead.
|
|
38
|
+
5. Set the shell inputs. `main.ts` reads them, and `init` printed each with what it is. They come with the
|
|
39
|
+
hand-over note: `ORCHESTRA_FDK_IMAGE_REPOSITORY`, `ORCHESTRA_FDK_RUNTIME_IMAGE`,
|
|
40
|
+
`ORCHESTRA_FDK_MODEL_GATEWAY_HOST`, `ORCHESTRA_FDK_IMAGE_PULL_ACCESS_KEY_ID` and
|
|
41
|
+
`ORCHESTRA_FDK_IMAGE_PULL_SECRET_ACCESS_KEY`, plus `ORCHESTRA_FDK_ANTHROPIC_API_KEY` or
|
|
42
|
+
`ORCHESTRA_FDK_OPENAI_API_KEY` with `--model-key`. Ask the developer to write them into a file only they
|
|
43
|
+
can read, as in step 9, and load it in each command that runs `orchestra`:
|
|
44
|
+
`set -a; . ~/.config/orchestra/fdk-inputs.env; set +a`. Docker on this computer must also be signed in
|
|
45
|
+
to the image registry, with the details in the same note.
|
|
46
|
+
6. Run `npx orchestra fdk diff` and show the developer the change list. On their yes, run
|
|
47
|
+
`npx orchestra fdk apply --require-approval never`. It builds and pushes the image, then prints a GitHub
|
|
48
|
+
App install link and waits until the developer installs the app. Give them the link.
|
|
49
|
+
7. Send the bug. The agent's id is `<factory name>-bugfix`, where the factory name is the one `init` printed:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
npx orchestra sessions start --agent-id <factory name>-bugfix --content "<the bug, in the reporter's words>" --output json
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
The answer is `{"session":{…},"firstItem":{…}}`. The session id is `.session.id`.
|
|
56
|
+
8. Wait for the turn to end, in the foreground, with one blocking command:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
npx orchestra sessions wait <session id> --timeout 540
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Do not start the wait in the background and end your turn. A headless agent exits when its turn ends,
|
|
63
|
+
and the waiting command goes with it. `--timeout 540` ends the wait before a ten-minute command limit.
|
|
64
|
+
When it times out, it prints the session's last status and exits non-zero: run the same command again.
|
|
65
|
+
9. `sessions wait` shows no progress. To see what the agent did, read the conversation's items:
|
|
66
|
+
`npx orchestra sessions list-items <session id> --output json`. The rows are in `data`. The developer
|
|
67
|
+
can watch the same session live in the console at `https://app.orchestraworks.ai`.
|
|
68
|
+
|
|
69
|
+
**Check:** the session's status is `COMPLETE`, and its last message names the pull request and the report.
|
|
70
|
+
|
|
20
71
|
## The steps
|
|
21
72
|
|
|
22
73
|
Do them in order. Each step ends with a check. Do not go on until the check passes.
|
|
@@ -42,12 +93,15 @@ After the first apply, the steps follow the Onboarding order:
|
|
|
42
93
|
|
|
43
94
|
### 1. Install the kit
|
|
44
95
|
|
|
45
|
-
The kit is the `orchestra` command and the library the factory code imports.
|
|
46
|
-
|
|
47
|
-
|
|
96
|
+
The kit is the `orchestra` command and the library the factory code imports. It was installed before this
|
|
97
|
+
skill was linked, in one of two places. Keep it and its skills current with the command that matches:
|
|
98
|
+
|
|
99
|
+
- Globally, with `npm install -g @orchestraworks/cli`. Update it with `npm update -g @orchestraworks/cli`.
|
|
100
|
+
- In the factory folder, with `npm install @orchestraworks/cli` there. Update it with
|
|
101
|
+
`npm update @orchestraworks/cli`, run in that folder. Run the command there as `npx orchestra`.
|
|
48
102
|
|
|
49
103
|
1. Find the developer's codebase folder. Call it `<codebase>`.
|
|
50
|
-
2. Run `orchestra --help
|
|
104
|
+
2. Run `orchestra --help`, or `npx orchestra --help` in the factory folder.
|
|
51
105
|
|
|
52
106
|
**Check:** `orchestra --help` prints the command list, and `orchestra fdk init --help` lists `--template`.
|
|
53
107
|
Node 22 or later is needed.
|
|
@@ -65,10 +119,14 @@ a building block this skill does not cover.
|
|
|
65
119
|
```
|
|
66
120
|
|
|
67
121
|
`<organization>` is the organization name from the hand-over note. The CLI opens the browser and waits
|
|
68
|
-
for the answer on a local port of this computer
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
122
|
+
for the answer on a local port of this computer, so the browser must run on this same computer. It
|
|
123
|
+
signs in to `https://api.orchestraworks.ai` unless `ORCHESTRA_BASE_URL` or `--base-url` says otherwise.
|
|
124
|
+
Its first line names the address. This sign-in renews itself, so a long run stays signed in.
|
|
125
|
+
3. Use this browser sign-in. `orchestra auth login --no-browser` asks for a token at a hidden prompt
|
|
126
|
+
instead, and a typed token cannot renew itself: it stops working when it expires. Use it only for a short
|
|
127
|
+
run, with a token someone hands the developer. Users cannot create their own API keys in the console
|
|
128
|
+
yet; that is coming. If no browser can open on this computer, tell the developer, and ask them to run
|
|
129
|
+
you on a computer where one can.
|
|
72
130
|
4. Read the two lines the login prints: `Signed in as <email>.` and
|
|
73
131
|
`Logged in to organization <id> (<slug>).` Tell the developer both. Note the organization id.
|
|
74
132
|
|
|
@@ -245,7 +303,7 @@ computer.
|
|
|
245
303
|
the Manager Agent's conversation on the item.
|
|
246
304
|
6. Watch it: `npx orchestra work-items get <id> --output json` lists the item's `sessions`. Run
|
|
247
305
|
`npx orchestra sessions wait <session id> --timeout 3600`. The developer can watch the same session in the console at
|
|
248
|
-
`https://
|
|
306
|
+
`https://app.orchestraworks.ai`.
|
|
249
307
|
7. When it ends, read the agent's report with the developer. Fix a failed step in the environment: go back
|
|
250
308
|
to `references/environment.md`, prove the fix on this computer, apply it as in step 6, then assign the
|
|
251
309
|
item again to wake the agent.
|
|
@@ -6,11 +6,11 @@ deterministic, value-free plan; `apply` reconciles that plan against the platfor
|
|
|
6
6
|
last-writer-wins on the fields you manage. Nothing in the platform is edited by hand — the code is
|
|
7
7
|
the source of truth, and every byte of the plan traces to a line someone wrote.
|
|
8
8
|
|
|
9
|
-
Read the kit's
|
|
10
|
-
`skills/orchestra-fdk/references/authoring.md` inside that package, so the
|
|
11
|
-
directories above the `orchestra-fdk` skill folder. Select whichever Claude Code link exists for this
|
|
9
|
+
Read the kit's full reference, `docs/REFERENCE.md` — it ships inside the installed package. This file is
|
|
10
|
+
`skills/orchestra-fdk/references/authoring.md` inside that package, so the package root always sits exactly
|
|
11
|
+
two directories above the `orchestra-fdk` skill folder. Select whichever Claude Code link exists for this
|
|
12
12
|
scope, resolve it, then go up two —
|
|
13
|
-
`skill_link=.claude/skills/orchestra-fdk; [ -e "$skill_link" ] || skill_link=~/.claude/skills/orchestra-fdk; cat "$(realpath "$skill_link")/../../
|
|
13
|
+
`skill_link=.claude/skills/orchestra-fdk; [ -e "$skill_link" ] || skill_link=~/.claude/skills/orchestra-fdk; cat "$(realpath "$skill_link")/../../docs/REFERENCE.md"`
|
|
14
14
|
(use `.agents/skills/orchestra-fdk` and `~/.agents/skills/orchestra-fdk` for Codex). Do not guess a path under
|
|
15
15
|
`node_modules`; with workspace hoisting the package is not beneath your factory directory. This skill
|
|
16
16
|
teaches *how to author* — the shape of a factory, the construct model, the loop you run, and the six
|
|
@@ -46,9 +46,9 @@ fails with `ERR_PACKAGE_PATH_NOT_EXPORTED`.
|
|
|
46
46
|
orchestra fdk init --repository acme/shop
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
writes a bug-fix factory for that GitHub repository: `fdk.json`, `main.ts`, the machine
|
|
50
|
-
`image/`, the agent's standing instructions and an empty codebase skill.
|
|
51
|
-
adds `tsx`
|
|
49
|
+
writes a bug-fix factory for that GitHub repository: `fdk.json`, `tsconfig.json`, `main.ts`, the machine
|
|
50
|
+
image under `image/`, the agent's standing instructions and an empty codebase skill. In `package.json` it
|
|
51
|
+
sets `"type": "module"`, adds a `typecheck` script, and adds `tsx`, `typescript` and `@types/node`. `--model-key anthropic` or `--model-key openai` adds the organization's own
|
|
52
52
|
model key; without it the agent runs on credits through the model gateway. It touches no platform and
|
|
53
53
|
overwrites nothing. **Setting up a factory for a codebase is the `orchestra-fdk` skill's job**: the fast
|
|
54
54
|
path from `orchestra fdk init` to a first fix, and the traps on the way.
|
|
@@ -150,7 +150,7 @@ Importers resolve at apply and are never created or mutated:
|
|
|
150
150
|
Secret.fromSlug(factory, "shared-openai-key");
|
|
151
151
|
Agent.fromSlug(factory, "existing-agent");
|
|
152
152
|
Skill.fromSlug(factory, "skill_zendesk");
|
|
153
|
-
Connection.fromEnv(factory, "
|
|
153
|
+
Connection.fromEnv(factory, "ORCHESTRA_FDK_ZENDESK_CONNECTION_ID", { provider: Providers.Zendesk });
|
|
154
154
|
```
|
|
155
155
|
|
|
156
156
|
Prefer `Connection.fromEnv` over `fromId` whenever the plan is committed: it resolves the id from
|
|
@@ -497,7 +497,7 @@ on a person's Claude subscription token rather than an API key:
|
|
|
497
497
|
|
|
498
498
|
```ts
|
|
499
499
|
const claudeSignIn = new Secret(factory, "claude-sign-in", {
|
|
500
|
-
value: SecretValue.fromEnv("
|
|
500
|
+
value: SecretValue.fromEnv("ORCHESTRA_FDK_CLAUDE_CODE_OAUTH_TOKEN"),
|
|
501
501
|
injection: {
|
|
502
502
|
headers: [{ name: "authorization", value: "Bearer ${secret}" }],
|
|
503
503
|
removeHeaders: ["x-api-key"], // stripped before injection
|
|
@@ -1011,15 +1011,15 @@ orchestra skills install --harness claude --scope user
|
|
|
1011
1011
|
|
|
1012
1012
|
`--harness` is `claude`, `codex` or `both`, and `--scope` is `user` or, for a kit installed in this
|
|
1013
1013
|
project, `project`; both are required. It **links** — never copies — both skills from the running package
|
|
1014
|
-
into that harness's skills directory, each under its own name, so `npm update -g @orchestraworks/cli`
|
|
1015
|
-
|
|
1014
|
+
into that harness's skills directory, each under its own name, so updating the kit keeps the teaching current: `npm update -g @orchestraworks/cli`
|
|
1015
|
+
for a global install, or `npm update @orchestraworks/cli` in the folder that installed it. Then read each `SKILL.md` it prints: a harness loads a new skill only at its
|
|
1016
1016
|
next start.
|
|
1017
1017
|
|
|
1018
1018
|
## Where to look next
|
|
1019
1019
|
|
|
1020
|
-
The kit's
|
|
1021
|
-
Select whichever Claude Code link exists for this scope, resolve it, then go up two:
|
|
1022
|
-
`skill_link=.claude/skills/orchestra-fdk; [ -e "$skill_link" ] || skill_link=~/.claude/skills/orchestra-fdk; cat "$(realpath "$skill_link")/../../
|
|
1020
|
+
The kit's full reference is `docs/REFERENCE.md` at the root of the package, two directories above the
|
|
1021
|
+
`orchestra-fdk` skill folder. Select whichever Claude Code link exists for this scope, resolve it, then go up two:
|
|
1022
|
+
`skill_link=.claude/skills/orchestra-fdk; [ -e "$skill_link" ] || skill_link=~/.claude/skills/orchestra-fdk; cat "$(realpath "$skill_link")/../../docs/REFERENCE.md"`
|
|
1023
1023
|
(use `.agents/skills/orchestra-fdk` and `~/.agents/skills/orchestra-fdk` for Codex). It ships inside the package, so it
|
|
1024
1024
|
is already on disk in any project that has orchestra installed, wherever the install landed. Go there
|
|
1025
1025
|
for what this skill states without unpacking: the complete egress rule shapes (`paths[]` scoping, several
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
# 15 building the certificate bundle that trusts the egress edge failed
|
|
11
11
|
# 16 preparing the /work disk for the agent failed
|
|
12
12
|
# 17 installing Playwright's Chromium failed, only when its block below is turned on
|
|
13
|
+
# 18 installing the chosen Node version failed, only when its block below is turned on
|
|
13
14
|
|
|
14
15
|
# In the cloud every HTTPS connection goes through the egress edge, which re-signs it with the authority at
|
|
15
16
|
# SFDK_EGRESS_CA_FILE, so every step that downloads comes after this block. The worker has already added that
|
|
@@ -44,6 +45,21 @@ chown agent:agent /work || exit 16
|
|
|
44
45
|
|
|
45
46
|
# ---- Add the team's system setup here: packages, language runtimes, tools. -----------------------------------
|
|
46
47
|
|
|
48
|
+
# Optional, off by default: a Node major version other than the image's. To turn it on, remove the leading `# `
|
|
49
|
+
# from the lines from NODE_MAJOR to `esac`, and set NODE_MAJOR. It replaces the image's Node in /usr/local. The
|
|
50
|
+
# image's own npm and corepack go first: unpacking a second Node over them leaves a mix of two npm versions, and
|
|
51
|
+
# every npm command then exits 1. Use this Node's own corepack for pnpm or yarn.
|
|
52
|
+
# NODE_MAJOR=24
|
|
53
|
+
# case "$(node --version 2>/dev/null)" in "v$NODE_MAJOR".*) ;; *)
|
|
54
|
+
# case "$(uname -m)" in aarch64 | arm64) node_arch=arm64 ;; *) node_arch=x64 ;; esac
|
|
55
|
+
# node_version=$(curl -fsSL --retry 3 https://nodejs.org/dist/index.json |
|
|
56
|
+
# sed -n "s/.*\"version\":\"\(v$NODE_MAJOR\.[0-9.]*\)\".*/\1/p" | head -n1)
|
|
57
|
+
# [ -n "$node_version" ] || exit 18
|
|
58
|
+
# rm -rf /usr/local/lib/node_modules/npm /usr/local/lib/node_modules/corepack
|
|
59
|
+
# curl -fsSL --retry 3 "https://nodejs.org/dist/$node_version/node-$node_version-linux-$node_arch.tar.xz" |
|
|
60
|
+
# tar -xJ -C /usr/local --strip-components=1 || exit 18
|
|
61
|
+
# ;; esac
|
|
62
|
+
|
|
47
63
|
# Optional, off by default: a headless Chromium, so an Engineer Agent can check a UI fix in a browser. To turn
|
|
48
64
|
# it on, remove the leading `# ` from the two lines below. Name the Playwright version the repository uses, as
|
|
49
65
|
# playwright@<version>, so the browser matches its tests. The first line installs the system libraries as root;
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
Apache License
|
|
3
|
-
Version 2.0, January 2004
|
|
4
|
-
http://www.apache.org/licenses/
|
|
5
|
-
|
|
6
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
-
|
|
8
|
-
1. Definitions.
|
|
9
|
-
|
|
10
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
-
|
|
13
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
-
the copyright owner that is granting the License.
|
|
15
|
-
|
|
16
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
-
other entities that control, are controlled by, or are under common
|
|
18
|
-
control with that entity. For the purposes of this definition,
|
|
19
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
-
direction or management of such entity, whether by contract or
|
|
21
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
-
|
|
24
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
-
exercising permissions granted by this License.
|
|
26
|
-
|
|
27
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
-
including but not limited to software source code, documentation
|
|
29
|
-
source, and configuration files.
|
|
30
|
-
|
|
31
|
-
"Object" form shall mean any form resulting from mechanical
|
|
32
|
-
transformation or translation of a Source form, including but
|
|
33
|
-
not limited to compiled object code, generated documentation,
|
|
34
|
-
and conversions to other media types.
|
|
35
|
-
|
|
36
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
-
Object form, made available under the License, as indicated by a
|
|
38
|
-
copyright notice that is included in or attached to the work
|
|
39
|
-
(an example is provided in the Appendix below).
|
|
40
|
-
|
|
41
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
-
form, that is based on (or derived from) the Work and for which the
|
|
43
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
-
of this License, Derivative Works shall not include works that remain
|
|
46
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
-
the Work and Derivative Works thereof.
|
|
48
|
-
|
|
49
|
-
"Contribution" shall mean any work of authorship, including
|
|
50
|
-
the original version of the Work and any modifications or additions
|
|
51
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
-
means any form of electronic, verbal, or written communication sent
|
|
56
|
-
to the Licensor or its representatives, including but not limited to
|
|
57
|
-
communication on electronic mailing lists, source code control systems,
|
|
58
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
-
excluding communication that is conspicuously marked or otherwise
|
|
61
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
-
|
|
63
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
-
subsequently incorporated within the Work.
|
|
66
|
-
|
|
67
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
-
Work and such Derivative Works in Source or Object form.
|
|
73
|
-
|
|
74
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
-
(except as stated in this section) patent license to make, have made,
|
|
78
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
-
where such license applies only to those patent claims licensable
|
|
80
|
-
by such Contributor that are necessarily infringed by their
|
|
81
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
-
institute patent litigation against any entity (including a
|
|
84
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
-
or contributory patent infringement, then any patent licenses
|
|
87
|
-
granted to You under this License for that Work shall terminate
|
|
88
|
-
as of the date such litigation is filed.
|
|
89
|
-
|
|
90
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
-
modifications, and in Source or Object form, provided that You
|
|
93
|
-
meet the following conditions:
|
|
94
|
-
|
|
95
|
-
(a) You must give any other recipients of the Work or
|
|
96
|
-
Derivative Works a copy of this License; and
|
|
97
|
-
|
|
98
|
-
(b) You must cause any modified files to carry prominent notices
|
|
99
|
-
stating that You changed the files; and
|
|
100
|
-
|
|
101
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
-
that You distribute, all copyright, patent, trademark, and
|
|
103
|
-
attribution notices from the Source form of the Work,
|
|
104
|
-
excluding those notices that do not pertain to any part of
|
|
105
|
-
the Derivative Works; and
|
|
106
|
-
|
|
107
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
-
distribution, then any Derivative Works that You distribute must
|
|
109
|
-
include a readable copy of the attribution notices contained
|
|
110
|
-
within such NOTICE file, excluding those notices that do not
|
|
111
|
-
pertain to any part of the Derivative Works, in at least one
|
|
112
|
-
of the following places: within a NOTICE text file distributed
|
|
113
|
-
as part of the Derivative Works; within the Source form or
|
|
114
|
-
documentation, if provided along with the Derivative Works; or,
|
|
115
|
-
within a display generated by the Derivative Works, if and
|
|
116
|
-
wherever such third-party notices normally appear. The contents
|
|
117
|
-
of the NOTICE file are for informational purposes only and
|
|
118
|
-
do not modify the License. You may add Your own attribution
|
|
119
|
-
notices within Derivative Works that You distribute, alongside
|
|
120
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
-
that such additional attribution notices cannot be construed
|
|
122
|
-
as modifying the License.
|
|
123
|
-
|
|
124
|
-
You may add Your own copyright statement to Your modifications and
|
|
125
|
-
may provide additional or different license terms and conditions
|
|
126
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
-
the conditions stated in this License.
|
|
130
|
-
|
|
131
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
-
this License, without any additional terms or conditions.
|
|
135
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
-
the terms of any separate license agreement you may have executed
|
|
137
|
-
with Licensor regarding such Contributions.
|
|
138
|
-
|
|
139
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
-
except as required for reasonable and customary use in describing the
|
|
142
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
-
|
|
144
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
-
implied, including, without limitation, any warranties or conditions
|
|
149
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
-
appropriateness of using or redistributing the Work and assume any
|
|
152
|
-
risks associated with Your exercise of permissions under this License.
|
|
153
|
-
|
|
154
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
-
unless required by applicable law (such as deliberate and grossly
|
|
157
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
-
liable to You for damages, including any direct, indirect, special,
|
|
159
|
-
incidental, or consequential damages of any character arising as a
|
|
160
|
-
result of this License or out of the use or inability to use the
|
|
161
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
-
other commercial damages or losses), even if such Contributor
|
|
164
|
-
has been advised of the possibility of such damages.
|
|
165
|
-
|
|
166
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
-
or other liability obligations and/or rights consistent with this
|
|
170
|
-
License. However, in accepting such obligations, You may act only
|
|
171
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
-
defend, and hold each Contributor harmless for any liability
|
|
174
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
-
of your accepting any such warranty or additional liability.
|
|
176
|
-
|
|
177
|
-
END OF TERMS AND CONDITIONS
|
|
178
|
-
|
|
179
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
-
|
|
181
|
-
To apply the Apache License to your work, attach the following
|
|
182
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
-
replaced with your own identifying information. (Don't include
|
|
184
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
-
comment syntax for the file format. We also recommend that a
|
|
186
|
-
file or class name and description of purpose be included on the
|
|
187
|
-
same "printed page" as the copyright notice for easier
|
|
188
|
-
identification within third-party archives.
|
|
189
|
-
|
|
190
|
-
Copyright [yyyy] [name of copyright owner]
|
|
191
|
-
|
|
192
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
-
you may not use this file except in compliance with the License.
|
|
194
|
-
You may obtain a copy of the License at
|
|
195
|
-
|
|
196
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
-
|
|
198
|
-
Unless required by applicable law or agreed to in writing, software
|
|
199
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
-
See the License for the specific language governing permissions and
|
|
202
|
-
limitations under the License.
|