@orchestraworks/local 0.0.134 → 0.0.136

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 CHANGED
@@ -1,38 +1,32 @@
1
- # The local environment
2
-
3
- One Go program serves the one-agent subset of the platform API on a developer's own machine, so a real
4
- instance of their agent runs against it before anything reaches the cloud. This tree is that program,
5
- and it is also the `@orchestraworks/local` npm package: the launcher on the path, and one per-platform
6
- package carrying the binary for the machine it is installed on.
7
-
8
- It is always its own process. `worker run` starts none of it, and it refuses to start inside a machine:
9
- a machine's job is to be the thing under test, never to serve the platform it claims against.
10
-
11
- ## The tree
12
-
13
- | path | what it holds |
14
- |---|---|
15
- | `cmd/orchestra-local/` | the one binary: `serve`, `bootstrap`, `version` |
16
- | `api/` | the subset the stack serves — agents, environments, skills, files, artifacts, sessions with their items, enrollment — and the refusal every other route answers with |
17
- | `identity/` | the binding document's four identity exchanges, and the enrollment offers this run mints and redeems itself |
18
- | `listen/` | the four listeners: the developer's loopback plain http, the machine-facing https on this run's own certificate, the authority beside it, and the broker |
19
- | `broker/` | the embedded NATS with the work stream every machine's consumer pulls from, so nothing else has to run |
20
- | `store/` | the run folder under the CLI's config directory, its SQLite file, and the record naming the current run |
21
- | `objectstore/` | the presigned GET and PUT the worker understands, and the bytes behind a broker-delivered locator |
22
- | `machine/` | the bus side: the register answered, each machine's consumer kept, the placement commands stored and their answers taken |
23
- | `launch/` | the three machine kinds: the Docker launch, the image inspection and the check inside it, admission, the bootstrap set and the model key |
24
- | `manifest/` | the manifest the platform composes, every byte-carrying item a presigned locator |
25
- | `session/` | the turn: sessions and items, one open turn per session, the interrupt and the set-only claim |
26
- | `fold/` | the item fold and the transcript, in the console's own item vocabulary |
27
- | `bin/orchestra-local.js` | the npm launcher: it runs the binary out of the per-platform package installed for this machine, stays in front of it, and forwards the signal it is ended with. Its own tests sit beside it and are not packed |
28
- | `npm/<platform>/` | the four per-platform packages, one per release target, each carrying one binary |
29
-
30
- ## Building it
1
+ # @orchestraworks/local
31
2
 
3
+ The local environment runs one real instance of your agent on your own computer, so you can try it before anything reaches the cloud.
4
+
5
+ ## Install
6
+
7
+ The Orchestra CLI installs this package as an optional dependency. To install it alone:
8
+
9
+ ```bash
10
+ npm install -g @orchestraworks/local
32
11
  ```
33
- make build # one static binary per release package, into npm/<platform>/
34
- go test ./... # the module's own suite
12
+
13
+ ## Quick start
14
+
15
+ The machines it starts run in Docker, so Docker must be running. Use the CLI to start, check and stop the local environment:
16
+
17
+ ```bash
18
+ npm install -g @orchestraworks/cli
19
+ orchestra local up # start it and print the two lines a shell needs to reach it
20
+ orchestra local status # read the four checks: boot, content, turns and environment
21
+ orchestra local down # stop it and the machines it started
35
22
  ```
36
23
 
37
- The stack is published at the worker's version rather than at the CLI's: the worker version an image
38
- carries is what the stack refuses an image for not carrying, so the two move together.
24
+ ## For coding agents
25
+
26
+ - `orchestra local --help` lists the commands. `orchestra local <command> --help` gives their flags.
27
+ - `skills/orchestra-fdk/references/authoring.md` in `@orchestraworks/cli` explains how to run an agent here before the cloud.
28
+ - [docs/REFERENCE.md](docs/REFERENCE.md): what each part of this program does, and how to build it.
29
+
30
+ ## License
31
+
32
+ Apache License 2.0. The full text is in [LICENSE](LICENSE).
@@ -0,0 +1,40 @@
1
+ # The local environment: the full reference
2
+
3
+ The short introduction is the package [README](../README.md). Paths below are relative to the `local/` folder.
4
+
5
+ One Go program serves the one-agent subset of the platform API on a developer's own machine, so a real
6
+ instance of their agent runs against it before anything reaches the cloud. This tree is that program,
7
+ and it is also the `@orchestraworks/local` npm package: the launcher on the path, and one per-platform
8
+ package carrying the binary for the machine it is installed on.
9
+
10
+ It is always its own process. `worker run` starts none of it, and it refuses to start inside a machine:
11
+ a machine's job is to be the thing under test, never to serve the platform it claims against.
12
+
13
+ ## The tree
14
+
15
+ | path | what it holds |
16
+ |---|---|
17
+ | `cmd/orchestra-local/` | the one binary: `serve`, `bootstrap`, `version` |
18
+ | `api/` | the subset the stack serves — agents, environments, skills, files, artifacts, sessions with their items, enrollment — and the refusal every other route answers with |
19
+ | `identity/` | the binding document's four identity exchanges, and the enrollment offers this run mints and redeems itself |
20
+ | `listen/` | the four listeners: the developer's loopback plain http, the machine-facing https on this run's own certificate, the authority beside it, and the broker |
21
+ | `broker/` | the embedded NATS with the work stream every machine's consumer pulls from, so nothing else has to run |
22
+ | `store/` | the run folder under the CLI's config directory, its SQLite file, and the record naming the current run |
23
+ | `objectstore/` | the presigned GET and PUT the worker understands, and the bytes behind a broker-delivered locator |
24
+ | `machine/` | the bus side: the register answered, each machine's consumer kept, the placement commands stored and their answers taken |
25
+ | `launch/` | the three machine kinds: the Docker launch, the image inspection and the check inside it, admission, the bootstrap set and the model key |
26
+ | `manifest/` | the manifest the platform composes, every byte-carrying item a presigned locator |
27
+ | `session/` | the turn: sessions and items, one open turn per session, the interrupt and the set-only claim |
28
+ | `fold/` | the item fold and the transcript, in the console's own item vocabulary |
29
+ | `bin/orchestra-local.js` | the npm launcher: it runs the binary out of the per-platform package installed for this machine, stays in front of it, and forwards the signal it is ended with. Its own tests sit beside it and are not packed |
30
+ | `npm/<platform>/` | the four per-platform packages, one per release target, each carrying one binary |
31
+
32
+ ## Building it
33
+
34
+ ```
35
+ make build # one static binary per release package, into npm/<platform>/
36
+ go test ./... # the module's own suite
37
+ ```
38
+
39
+ The stack is published at the worker's version rather than at the CLI's: the worker version an image
40
+ carries is what the stack refuses an image for not carrying, so the two move together.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@orchestraworks/local",
3
- "version": "0.0.134",
3
+ "version": "0.0.136",
4
4
  "type": "module",
5
- "description": "The Software Factory local environment: one process a developer runs a real instance of their agent against on their own machine.",
5
+ "description": "Run your Orchestra agent on your own computer.",
6
6
  "license": "Apache-2.0",
7
7
  "author": "Living Computers",
8
8
  "homepage": "https://orchestraworks.ai",
@@ -18,12 +18,13 @@
18
18
  },
19
19
  "files": [
20
20
  "bin",
21
- "README.md"
21
+ "README.md",
22
+ "docs/REFERENCE.md"
22
23
  ],
23
24
  "optionalDependencies": {
24
- "@orchestraworks/local-linux-x64": "0.0.134",
25
- "@orchestraworks/local-linux-arm64": "0.0.134",
26
- "@orchestraworks/local-darwin-x64": "0.0.134",
27
- "@orchestraworks/local-darwin-arm64": "0.0.134"
25
+ "@orchestraworks/local-linux-x64": "0.0.136",
26
+ "@orchestraworks/local-linux-arm64": "0.0.136",
27
+ "@orchestraworks/local-darwin-x64": "0.0.136",
28
+ "@orchestraworks/local-darwin-arm64": "0.0.136"
28
29
  }
29
30
  }