@orchestraworks/cli 0.3.0 → 0.5.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.
- package/README.md +23 -1256
- package/dist/cli/core/banner.d.ts +10 -0
- package/dist/cli/core/banner.js +63 -0
- package/dist/cli/core/invocation.js +1 -1
- package/dist/cli/core/package-root.d.ts +3 -2
- package/dist/cli/core/package-root.js +4 -4
- package/dist/cli/core/skill-pointer.d.ts +7 -2
- package/dist/cli/core/skill-pointer.js +13 -3
- package/dist/cli/factory/init.d.ts +1 -1
- package/dist/cli/factory/init.js +41 -13
- package/dist/cli/main.js +5 -3
- package/dist/cli/skill-install-fs.d.ts +0 -2
- package/dist/cli/skill-install-fs.js +0 -2
- 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 +151 -110
- package/skills/orchestra-fdk/SKILL.md +327 -120
- package/skills/orchestra-fdk/references/authoring.md +26 -15
- package/skills/orchestra-fdk/references/environment.md +39 -24
- 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
|
@@ -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,10 +46,10 @@ 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`
|
|
52
|
-
model key; without it the agent runs
|
|
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
|
+
model key; without it the agent runs 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.
|
|
55
55
|
|
|
@@ -103,6 +103,17 @@ entrypoint decides what answers. Omit `harness`, or misspell it, and synth fails
|
|
|
103
103
|
a message naming the five; there is no default, because guessing which one an author meant would pick a
|
|
104
104
|
different program than the one they wanted.
|
|
105
105
|
|
|
106
|
+
### Platform skills are attached by id
|
|
107
|
+
|
|
108
|
+
An agent uses a platform skill only when its `skills` list names it: `Skill.fromId(factory, "skill_<key>")`
|
|
109
|
+
in the kit, or `skillIds` on the API. Not released yet: managed skills that the kit and the create request
|
|
110
|
+
add by default (`includeManagedSkills`).
|
|
111
|
+
|
|
112
|
+
### Not released yet: an environment's working folder, `workingDirectory`
|
|
113
|
+
|
|
114
|
+
Today the harness starts outside the code. The agent clones or uses its code under `/work` in its own first
|
|
115
|
+
turn, as the starter's agents do.
|
|
116
|
+
|
|
106
117
|
### Identity comes from the construct path
|
|
107
118
|
|
|
108
119
|
With no explicit `slug`, a resource's slug is the **factory name + full construct path**,
|
|
@@ -150,7 +161,7 @@ Importers resolve at apply and are never created or mutated:
|
|
|
150
161
|
Secret.fromSlug(factory, "shared-openai-key");
|
|
151
162
|
Agent.fromSlug(factory, "existing-agent");
|
|
152
163
|
Skill.fromSlug(factory, "skill_zendesk");
|
|
153
|
-
Connection.fromEnv(factory, "
|
|
164
|
+
Connection.fromEnv(factory, "ORCHESTRA_FDK_ZENDESK_CONNECTION_ID", { provider: Providers.Zendesk });
|
|
154
165
|
```
|
|
155
166
|
|
|
156
167
|
Prefer `Connection.fromEnv` over `fromId` whenever the plan is committed: it resolves the id from
|
|
@@ -497,7 +508,7 @@ on a person's Claude subscription token rather than an API key:
|
|
|
497
508
|
|
|
498
509
|
```ts
|
|
499
510
|
const claudeSignIn = new Secret(factory, "claude-sign-in", {
|
|
500
|
-
value: SecretValue.fromEnv("
|
|
511
|
+
value: SecretValue.fromEnv("ORCHESTRA_FDK_CLAUDE_CODE_OAUTH_TOKEN"),
|
|
501
512
|
injection: {
|
|
502
513
|
headers: [{ name: "authorization", value: "Bearer ${secret}" }],
|
|
503
514
|
removeHeaders: ["x-api-key"], // stripped before injection
|
|
@@ -1011,15 +1022,15 @@ orchestra skills install --harness claude --scope user
|
|
|
1011
1022
|
|
|
1012
1023
|
`--harness` is `claude`, `codex` or `both`, and `--scope` is `user` or, for a kit installed in this
|
|
1013
1024
|
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
|
-
|
|
1025
|
+
into that harness's skills directory, each under its own name, so updating the kit keeps the teaching current: `npm update -g @orchestraworks/cli`
|
|
1026
|
+
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
1027
|
next start.
|
|
1017
1028
|
|
|
1018
1029
|
## Where to look next
|
|
1019
1030
|
|
|
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")/../../
|
|
1031
|
+
The kit's full reference is `docs/REFERENCE.md` at the root of the package, two directories above the
|
|
1032
|
+
`orchestra-fdk` skill folder. Select whichever Claude Code link exists for this scope, resolve it, then go up two:
|
|
1033
|
+
`skill_link=.claude/skills/orchestra-fdk; [ -e "$skill_link" ] || skill_link=~/.claude/skills/orchestra-fdk; cat "$(realpath "$skill_link")/../../docs/REFERENCE.md"`
|
|
1023
1034
|
(use `.agents/skills/orchestra-fdk` and `~/.agents/skills/orchestra-fdk` for Codex). It ships inside the package, so it
|
|
1024
1035
|
is already on disk in any project that has orchestra installed, wherever the install landed. Go there
|
|
1025
1036
|
for what this skill states without unpacking: the complete egress rule shapes (`paths[]` scoping, several
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Port a codebase's setup to Orchestra machines
|
|
2
2
|
|
|
3
|
-
Step
|
|
3
|
+
Step 8 of the orchestra-fdk skill, "Set up the machines", sends you here, and so does its step 3 for a new
|
|
4
|
+
environment in an existing factory. When you finish, go back to the step that sent you.
|
|
4
5
|
|
|
5
6
|
An agent can fix, test or show a codebase only if its machine can install and run it. You find out how
|
|
6
7
|
this team sets up their code, prove it on this computer first, write it into the factory, and apply it.
|
|
@@ -10,9 +11,15 @@ An *environment* is the declared shape of a machine, and every machine an agent
|
|
|
10
11
|
The orchestra skill, sections 4 to 6, explains environments, machines, network rules and secrets, and says what
|
|
11
12
|
they cannot do yet. Read those sections before you choose a mode.
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
Where you edit depends on the starter:
|
|
15
|
+
|
|
16
|
+
- *Engineering-team starter:* every environment is built by `declareEnvironment` in
|
|
17
|
+
`<factory>/lib/environment.ts`. You edit only the section marked `WHAT THE CODE NEEDS`, and the end of
|
|
18
|
+
`<factory>/lib/setup.sh`, unless the chosen path needs more.
|
|
19
|
+
- *Bug-fix starter:* each environment is a `new Environment` in `<factory>/main.ts`. Its setup script is
|
|
20
|
+
`<factory>/image/setup.sh`, and its image is built from `<factory>/image/Dockerfile`.
|
|
21
|
+
|
|
22
|
+
Below, *the setup script* and *the environment code* mean these files for your starter.
|
|
16
23
|
|
|
17
24
|
## 1. Find the sources
|
|
18
25
|
|
|
@@ -74,7 +81,7 @@ the computer's own operating system picks among them.
|
|
|
74
81
|
|
|
75
82
|
Even when rows 1 and 2 do not work, a Linux full VM is the preferred cloud machine, on a Mac or Windows
|
|
76
83
|
computer too. Use a hosted Mac or a Windows full VM only when the project truly depends on that operating
|
|
77
|
-
system, such as iOS or Xcode. A hosted Mac is a dedicated Apple machine
|
|
84
|
+
system, such as iOS or Xcode. A hosted Mac is a dedicated Apple machine.
|
|
78
85
|
Today Orchestra launches no Mac: path B says what works now.
|
|
79
86
|
|
|
80
87
|
**Open: proving a Linux full VM locally on a Mac or Windows computer.** The host outpost there runs on
|
|
@@ -149,16 +156,16 @@ proves the agent works in the environment.
|
|
|
149
156
|
|
|
150
157
|
### The agent's model key, locally
|
|
151
158
|
|
|
152
|
-
The local agent needs a model key. The developer
|
|
159
|
+
The local agent needs a model key. The developer uses one of three sources, the one they have, and exports
|
|
153
160
|
it in the shell that starts `orchestra local`:
|
|
154
161
|
|
|
155
162
|
1. **A local token from their own subscription,** such as the one `claude setup-token` prints for Claude
|
|
156
163
|
Code.
|
|
157
164
|
2. **An API key from the model provider.**
|
|
158
|
-
3. **A model gateway key from Orchestra
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
165
|
+
3. **A model gateway key from Orchestra.** It is a separate key for local work, such as `local-dev`, with a
|
|
166
|
+
monthly cap. The developer creates it in the console at **Settings › Gateway keys**, which shows the
|
|
167
|
+
value once. The model gateway is a public service at `models.orchestraworks.ai`, so the key works locally
|
|
168
|
+
too.
|
|
162
169
|
|
|
163
170
|
**What each harness itself accepts:**
|
|
164
171
|
|
|
@@ -183,7 +190,7 @@ sign-in is reported by the Orchestra team and not yet verified in pi's docs.
|
|
|
183
190
|
| `pi` | `ANTHROPIC_OAUTH_TOKEN` for Anthropic. OpenAI: not wired yet | Anthropic and OpenAI keys: not wired yet | `ANTHROPIC_OAUTH_TOKEN` (not proven yet) |
|
|
184
191
|
| `script`, `custom` | No key needed | No key needed | No key needed |
|
|
185
192
|
|
|
186
|
-
The path that works
|
|
193
|
+
The path that works today is a `claude` agent with `CLAUDE_CODE_OAUTH_TOKEN`. Use it unless the agent
|
|
187
194
|
must run another harness.
|
|
188
195
|
|
|
189
196
|
- **For a gateway key,** also export
|
|
@@ -222,9 +229,12 @@ the settings are stored as plain text and shown on every read.
|
|
|
222
229
|
2. The two export lines point `orchestra` at this local run. Load them only into the commands meant for the
|
|
223
230
|
run. Never load them into a command meant for Orchestra's cloud.
|
|
224
231
|
3. Create the environment and an agent on the run with `npx orchestra environments create --body @<file>` and
|
|
225
|
-
`npx orchestra agents create --body @<file>`. Build each body from the
|
|
226
|
-
|
|
227
|
-
|
|
232
|
+
`npx orchestra agents create --body @<file>`. Build each body from the entries in
|
|
233
|
+
`<factory>/fdk.out/plan.json` for the environment you are proving and an agent on it. For a new
|
|
234
|
+
engineering-team factory, that is `manager-work-lg` and `manager-agent`. For a new environment in an
|
|
235
|
+
existing factory, it is the environment and the agent you added. Keep that environment's setup script in
|
|
236
|
+
its body: `<factory>/lib/setup.sh` or `<factory>/image/setup.sh`, as the top of this file says. The
|
|
237
|
+
network rules may stay: the local environment does not enforce them. Set the
|
|
228
238
|
agent's model settings for the key source, as "The agent's model key, locally" says.
|
|
229
239
|
`npx orchestra fdk apply` does not work against a run: it stops at the first thing the run does not serve.
|
|
230
240
|
4. Cut a git bundle of the default branch outside the codebase:
|
|
@@ -240,7 +250,7 @@ the settings are stored as plain text and shown on every read.
|
|
|
240
250
|
`orchestra local status` shows checks 1 and 2 (the machine started, and the harness opened its
|
|
241
251
|
conversation).
|
|
242
252
|
2. Find the machine's container with `docker ps`. Copy in the bundle with `docker cp`.
|
|
243
|
-
3. Change the setup in
|
|
253
|
+
3. Change the setup in the setup script, so the script you prove is the script you apply. Then
|
|
244
254
|
update the environment on the run and start a new machine.
|
|
245
255
|
*Fallback until the local environment runs the setup script:* copy the script in with `docker cp` and run
|
|
246
256
|
it as root yourself: `docker exec -u root <container> bash /tmp/setup.sh`.
|
|
@@ -308,10 +318,10 @@ The local key is never carried over. It stays on the developer's computer. In th
|
|
|
308
318
|
Orchestra Secret, and our network edge adds it to each model call, so no machine and no person holds it:
|
|
309
319
|
|
|
310
320
|
- For the gateway, `apply` creates the gateway key and its secret. The starter already declares them.
|
|
311
|
-
- For a provider key, declare a Secret and a rule that adds it on the provider's
|
|
312
|
-
sections 6 and 7).
|
|
321
|
+
- For a subscription token or a provider key, declare a Secret and a rule that adds it on the provider's
|
|
322
|
+
host, as step 6 of the orchestra-fdk skill says (orchestra skill, sections 6 and 7).
|
|
313
323
|
|
|
314
|
-
Ask the developer to revoke the `local-dev` gateway key, at **Settings
|
|
324
|
+
Ask the developer to revoke the `local-dev` gateway key, at **Settings › Gateway keys**, when local work is
|
|
315
325
|
done.
|
|
316
326
|
|
|
317
327
|
**Check:** milestones 1 and 2 pass and the agent turn completes in the chosen mode, or you know which one
|
|
@@ -346,6 +356,8 @@ agent can run the team's own `docker compose up` unchanged.
|
|
|
346
356
|
32 CPU, md 16, sm 2.
|
|
347
357
|
6. When the project runs containers, keep the disk at `/var/lib/docker`. The starter declares it. It keeps
|
|
348
358
|
the inner Docker's images across machine starts (next part).
|
|
359
|
+
7. Not released yet: `workingDirectory`, the folder where every conversation starts. Today each agent clones
|
|
360
|
+
or uses its code under `/work` in its own first turn, as the starter's agents do.
|
|
349
361
|
|
|
350
362
|
#### Setup script or a baked image
|
|
351
363
|
|
|
@@ -404,23 +416,26 @@ Write down what is missing and stop here. Report it to the developer, and go bac
|
|
|
404
416
|
|
|
405
417
|
## 6. Write and check
|
|
406
418
|
|
|
407
|
-
1. Edit `lib/environment.ts`
|
|
419
|
+
1. Edit the environment code for the chosen path: `lib/environment.ts` in the engineering-team starter,
|
|
420
|
+
`main.ts` and `image/` in the bug-fix starter.
|
|
408
421
|
2. In `<factory>`, run `npm run typecheck`, then `npx orchestra fdk synth`. The starter is one program, at the folder's
|
|
409
422
|
root.
|
|
410
423
|
3. Read `<factory>/fdk.out/plan.json`. Every environment has your setup script, ports and settings, and
|
|
411
|
-
the
|
|
412
|
-
|
|
424
|
+
the model rule from step 6 of the orchestra-fdk skill: the `model-gateway` rule,
|
|
425
|
+
or a Secret's rule on the provider's host. On a new factory, no environment has a Bitbucket or Jira rule
|
|
426
|
+
yet: those come with the tokens, in step 12 of the orchestra-fdk skill. On an existing factory, with its
|
|
427
|
+
inputs loaded, the rules it has now stay as they are.
|
|
413
428
|
4. Write `ENVIRONMENT.md` in `<factory>`: what you found and where, the mode you proved in and its result
|
|
414
429
|
for each success criterion, the commands, every outbound attempt the proof logged, and what is still
|
|
415
430
|
unknown.
|
|
416
431
|
|
|
417
|
-
**Check:** the typecheck and the synth pass, and the plan is as in item 3. Go back to
|
|
418
|
-
|
|
432
|
+
**Check:** the typecheck and the synth pass, and the plan is as in item 3. Go back to the orchestra-fdk
|
|
433
|
+
step that sent you for the apply.
|
|
419
434
|
|
|
420
435
|
## 7. The cloud
|
|
421
436
|
|
|
422
437
|
The cloud is the fallback when no local mode can run. It is also the confirmation after the local proof:
|
|
423
|
-
the Manager Agent's "Set up" item, which step
|
|
438
|
+
the Manager Agent's "Set up" item, which step 10 of the orchestra-fdk skill starts. It proves what only the
|
|
424
439
|
cloud can: the micro VM, Docker, the network rules and the tokens. The Engineer Agents' machines cannot clone from
|
|
425
440
|
Bitbucket, so the Set up item also proves the tests run from a git bundle.
|
|
426
441
|
|
|
@@ -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.
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
export declare const PAL: {
|
|
2
|
-
readonly ink: "#1a1d24";
|
|
3
|
-
readonly muted: "#5b6472";
|
|
4
|
-
readonly faint: "#7a8494";
|
|
5
|
-
readonly boxStroke: "#8b93a1";
|
|
6
|
-
readonly spineStroke: "#4f5b6b";
|
|
7
|
-
readonly edge: "#aab2bf";
|
|
8
|
-
readonly edgeSpine: "#4f5b6b";
|
|
9
|
-
readonly edgeFaint: "#d3d8e0";
|
|
10
|
-
readonly label: "#8b93a1";
|
|
11
|
-
readonly labelFaint: "#b0b7c3";
|
|
12
|
-
readonly laneProcessFill: "#f4f6fa";
|
|
13
|
-
readonly laneResultFill: "#eaeef5";
|
|
14
|
-
readonly bandStroke: "#dde2ea";
|
|
15
|
-
readonly phaseStroke: "#d7dde8";
|
|
16
|
-
readonly zoneFill: "#f3f4f7";
|
|
17
|
-
readonly zoneStroke: "#c6cdda";
|
|
18
|
-
readonly chipFill: "#f1f3f7";
|
|
19
|
-
readonly chipText: "#7a8494";
|
|
20
|
-
readonly innerRule: "#e2e6ee";
|
|
21
|
-
readonly white: "#ffffff";
|
|
22
|
-
readonly entryFill: "#f6f8fc";
|
|
23
|
-
readonly entryStroke: "#b4bdcc";
|
|
24
|
-
readonly entryMutedFill: "#f5f6f9";
|
|
25
|
-
readonly entryMutedStroke: "#c9d0dc";
|
|
26
|
-
readonly entryGlyph: "#79839a";
|
|
27
|
-
readonly entryGlyphMuted: "#a3abb9";
|
|
28
|
-
readonly entryDot: "#3f4a5a";
|
|
29
|
-
readonly barFill: "#e9ecf1";
|
|
30
|
-
readonly guardFill: "#eef4fd";
|
|
31
|
-
readonly guardStroke: "#7d9dcb";
|
|
32
|
-
readonly metaRule: "#b6bdc9";
|
|
33
|
-
readonly metaText: "#98a1b0";
|
|
34
|
-
};
|
|
35
|
-
export declare const ACCENTS: Record<string, {
|
|
36
|
-
stroke: string;
|
|
37
|
-
fill: string;
|
|
38
|
-
text: string;
|
|
39
|
-
}>;
|
|
40
|
-
export declare const GRAPH_FONT_FAMILY = "Helvetica, Arial, 'Liberation Sans', sans-serif";
|
|
41
|
-
export declare const FS_NODE = 12.5;
|
|
42
|
-
export declare const FS_EDGE = 10;
|
|
43
|
-
export declare const FS_NOTE = 10;
|
|
44
|
-
export declare const FS_ENTRY = 10.5;
|
|
45
|
-
export declare const FS_ENTRY_SUB = 9;
|
|
46
|
-
export declare const LH_ENTRY_SUB = 11.5;
|
|
47
|
-
export declare const NODE_PAD = 12;
|
|
48
|
-
export declare const NODE_MIN_W = 120;
|
|
49
|
-
export declare const NODE_MAX_W = 200;
|
|
50
|
-
export declare const PILL_PAD = 16;
|
|
51
|
-
export declare const PILL_MIN_W = 62;
|
|
52
|
-
export declare const PILL_H = 32;
|
|
53
|
-
export declare const LINE_H = 15;
|
|
54
|
-
export declare const BOX_R = 7;
|
|
55
|
-
export declare const BAR_R = 5;
|
|
56
|
-
export declare const PORT_PAD = 1;
|
|
57
|
-
export declare const BAR_TALL_SPAN = 46;
|
|
58
|
-
export declare const BAR_CAPTION_DROP = 18;
|
|
59
|
-
export declare const CANVAS_MARGIN = 20;
|
|
60
|
-
export declare const CORNER_R = 8;
|
|
61
|
-
export declare const ENTRY_DOT_R = 4.5;
|
|
62
|
-
export declare const ENTRY_DOT_GAP = 26;
|
|
63
|
-
export declare const ENTRY_CARD_GAP = 44;
|
|
64
|
-
export declare const ENTRY_STACK_GAP = 13;
|
|
65
|
-
export declare const ENTRY_MIN_W = 118;
|
|
66
|
-
export declare const ENTRY_MAX_W = 236;
|
|
67
|
-
export declare const ENTRY_PAD_X = 9;
|
|
68
|
-
export declare const ENTRY_PAD_Y = 8;
|
|
69
|
-
export declare const ENTRY_GLYPH_W = 17;
|
|
70
|
-
export declare const ENTRY_TIP = 9;
|
|
71
|
-
export declare const ENTRY_CAPTION = "Steers the active run";
|
|
72
|
-
export declare const GATE_MARK_SETBACK = 20;
|
|
73
|
-
export declare const PARALLEL_CLEAR = 5;
|
|
74
|
-
export declare const PARALLEL_MIN_RUN = 12;
|
|
75
|
-
export declare const COINCIDENT_INK_MAX = 2;
|
|
76
|
-
export declare const DETOUR_REPORT = 2.5;
|
|
77
|
-
export declare const SPINE_SEARCH_EXPANSIONS = 4096;
|
|
78
|
-
export declare const SPINE_DEPTH_CAP = 30;
|
|
79
|
-
export declare const HANDLER_VERB_TEXT: Record<string, string>;
|
|
80
|
-
export declare const EXCEPTIONAL_VERBS: ReadonlySet<string>;
|
|
81
|
-
export declare const LAYOUT_LIMITS: {
|
|
82
|
-
readonly maxCellCoordinate: 4096;
|
|
83
|
-
readonly maxCellSpan: 256;
|
|
84
|
-
readonly maxCellArea: 1000000;
|
|
85
|
-
readonly maxNotes: 50;
|
|
86
|
-
readonly maxNoteTextChars: 200;
|
|
87
|
-
readonly maxSerializedBytes: number;
|
|
88
|
-
readonly maxNodeReferences: 500;
|
|
89
|
-
};
|
|
90
|
-
export declare const LAYERS: readonly ["edge", "node", "label"];
|
|
91
|
-
export type Layer = (typeof LAYERS)[number];
|
|
92
|
-
export declare const RING_INSET = 3.5;
|
|
93
|
-
export declare const RING_OUTER_W = 1.4;
|
|
94
|
-
export declare const RING_INNER_W = 1.2;
|
|
95
|
-
export declare const RING_INNER_OPACITY = 0.55;
|
|
96
|
-
export declare const GATE_BAR_LEN = 10;
|
|
97
|
-
export declare const GATE_BAR_GAP = 5;
|
|
98
|
-
export declare const GATE_BAR_W = 1.6;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { RenderContext } from "./types.js";
|
|
2
|
-
export interface TriggerRowLike {
|
|
3
|
-
id?: string;
|
|
4
|
-
slug?: string;
|
|
5
|
-
status?: string | null;
|
|
6
|
-
expiresAt?: string | Date | null;
|
|
7
|
-
on?: {
|
|
8
|
-
connection?: string | null;
|
|
9
|
-
events?: readonly string[] | null;
|
|
10
|
-
schedule?: string | null;
|
|
11
|
-
} | null;
|
|
12
|
-
where?: readonly FilterNodeLike[] | null;
|
|
13
|
-
target?: {
|
|
14
|
-
onMissing?: string | null;
|
|
15
|
-
binding?: string | null;
|
|
16
|
-
} | null;
|
|
17
|
-
}
|
|
18
|
-
export interface FilterConditionLike {
|
|
19
|
-
field?: string | null;
|
|
20
|
-
op?: string | null;
|
|
21
|
-
value?: unknown;
|
|
22
|
-
}
|
|
23
|
-
export type FilterNodeLike = FilterConditionLike | {
|
|
24
|
-
all: readonly FilterNodeLike[];
|
|
25
|
-
} | {
|
|
26
|
-
any: readonly FilterNodeLike[];
|
|
27
|
-
} | {
|
|
28
|
-
not: FilterNodeLike;
|
|
29
|
-
};
|
|
30
|
-
export interface ClassifyOptions {
|
|
31
|
-
now?: Date;
|
|
32
|
-
}
|
|
33
|
-
export declare function renderFilter(node: FilterNodeLike, nested?: boolean): string | null;
|
|
34
|
-
export declare function humanizeCron(cron: string | null | undefined): string | null;
|
|
35
|
-
export declare function isRuntimeLiveTrigger(row: TriggerRowLike, now?: Date): boolean;
|
|
36
|
-
export declare function classifyTriggerContext(rows: readonly TriggerRowLike[], options?: ClassifyOptions): RenderContext;
|
|
37
|
-
export declare function hasStartCapableTrigger(context: RenderContext | null | undefined): boolean;
|