@nylorun/create-agent 0.14.5-beta → 0.14.7-beta
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/CHANGELOG.md +19 -0
- package/README.md +10 -9
- package/compatibility.json +5 -6
- package/dist/compatibility.json +5 -6
- package/dist/contracts.d.ts +0 -1
- package/dist/starter/README.md +10 -9
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.14.7-beta
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Update the tested Harness, SDK, Admin and Runtime compatibility combination.
|
|
8
|
+
|
|
9
|
+
## 0.14.6-beta
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 1345f61: **`nylo` ships in `nylorun`; `@nylorun/cli` is deprecated.** One package runs a project's local Tenant (`nylorun`) and is the Runtime client of the linked installation (`nylo`). MIGRATION.md ("`nylo` ships in `nylorun`") has the details.
|
|
14
|
+
|
|
15
|
+
- `nylorun`: a second bin, `nylo` (`npx -p nylorun nylo <command>`), with the same commands, flags, output and exit codes as `@nylorun/cli`'s. The `nylorun` command never loads it. nylorun now depends on `@nylorun/admin`, which `nylo` uses. `nylo configure`'s provider sign-in comes from `@earendil-works/pi-ai` (about 100 MB with its provider SDKs), which is not a dependency: the first `nylo configure` installs the tested version into `~/.nylorun/lib/pi-ai-<version>/` with npm, without install scripts, unless it resolves beside nylorun, so `npx nylorun` stays about 11 MB. `nylorun configure`, `nylorun status --env` and `nylorun doctor sandbox` still exit 2, now naming `npx -p nylorun nylo …`. `nylorun status|reset` (the local Tenant's containers and volumes) and `nylo status|reset` (the Management API) keep their meanings; both usages and the README say which is which.
|
|
16
|
+
- **Deprecated (`@nylorun/cli`):** its `nylo` prints one line on stderr and runs nylorun's `nylo` with the same arguments and exit code; stdout is unchanged, so `eval "$(npx @nylorun/cli env)"` still works. It depends on `nylorun` only. A later release removes it.
|
|
17
|
+
- **Breaking (`@nylorun/admin`): the `./project` subpath is removed.** It re-exported `@nylorun/core/project` for `nylo`, which now imports Core directly. Import `@nylorun/core/project` instead.
|
|
18
|
+
- `@nylorun/create-agent`: `compatibility.json` no longer pins `@nylorun/cli`; the examples run `nylo` from their `nylorun` devDependency.
|
|
19
|
+
|
|
20
|
+
- Update the tested Harness, SDK, Admin and Runtime compatibility combination.
|
|
21
|
+
|
|
3
22
|
## 0.14.5-beta
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -42,18 +42,18 @@ Tenant (Runtime, Studio and their infrastructure in Docker, named after the
|
|
|
42
42
|
directory; `--tenant` picks or shares another). It writes the Project link and the derived application credentials to
|
|
43
43
|
gitignored `.nylorun/`, and seeds the model provider from `.env`
|
|
44
44
|
(`MODEL_PROVIDER`, `MODEL`, `MODEL_PROVIDER_API_KEY`) into the Tenant vault.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
`npx
|
|
45
|
+
`nylo`, the Runtime client in the same `nylorun` package, works on the linked
|
|
46
|
+
Tenant: `nylo status` and `nylo reset`. Studio or
|
|
47
|
+
`npx -p nylorun nylo configure` sets or replaces the provider.
|
|
48
48
|
`npm start` runs `node dist/src/main.js` with the same entry as development.
|
|
49
|
-
Export the Project environment (`eval "$(npx
|
|
49
|
+
Export the Project environment (`eval "$(npx -p nylorun nylo env)"`) before a
|
|
50
50
|
production start when there is no Project link. Tenant data, including the
|
|
51
51
|
vault, lives in the Tenant's Docker volumes. Definitions have no model provider or
|
|
52
52
|
`agent.run()`.
|
|
53
53
|
|
|
54
54
|
`starter/` is the canonical template. `compatibility.json` pins core, harness,
|
|
55
|
-
agents, admin
|
|
56
|
-
it runs (`nylorun/package.json` `nylorun`). The examples recipe adds local
|
|
55
|
+
agents, admin and Runtime. `nylorun` pins the Runtime and Studio images
|
|
56
|
+
it runs (`cli/nylorun/package.json` `nylorun`). The examples recipe adds local
|
|
57
57
|
package dependencies. Run `npm run examples:sync` after template changes, then
|
|
58
58
|
`npm install --prefix examples`. Sync preserves authored agents, tests,
|
|
59
59
|
credentials, and local state; it rejects conflicting edits to generated files.
|
|
@@ -61,11 +61,12 @@ credentials, and local state; it rejects conflicting edits to generated files.
|
|
|
61
61
|
The default examples registry contains the release starter. Advanced examples
|
|
62
62
|
remain outside that registry for later migration.
|
|
63
63
|
|
|
64
|
-
`npm run test:starter` (`create-agent/scripts/smoke-starter.mjs`) packs the
|
|
64
|
+
`npm run test:starter` (`cli/create-agent/scripts/smoke-starter.mjs`) packs the
|
|
65
65
|
workspace, scaffolds the starter from the packed creator, installs `nylorun`
|
|
66
|
-
and `@nylorun/cli
|
|
66
|
+
(and the deprecated `@nylorun/cli`, which it checks runs nylorun's `nylo`)
|
|
67
|
+
beside it (never into it), runs `nylorun start` in it and
|
|
67
68
|
`npm run dev` against a temporary local Tenant, then resets that Tenant,
|
|
68
69
|
seeds the fixture model and runs one turn with the starter's assistant.
|
|
69
70
|
|
|
70
|
-
See [RELEASING](
|
|
71
|
+
See [RELEASING](../../guides/RELEASING.md) for the Changesets beta workflow. Nothing is
|
|
71
72
|
published by the smoke check.
|
package/compatibility.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"harness": "0.
|
|
3
|
-
"runtime": "0.
|
|
4
|
-
"agents": "0.
|
|
5
|
-
"admin": "0.
|
|
6
|
-
"core": "0.
|
|
7
|
-
"cli": "0.14.2-beta"
|
|
2
|
+
"harness": "0.26.0-beta",
|
|
3
|
+
"runtime": "0.24.0-beta",
|
|
4
|
+
"agents": "0.20.0-beta",
|
|
5
|
+
"admin": "0.16.0-beta",
|
|
6
|
+
"core": "0.20.0-beta"
|
|
8
7
|
}
|
package/dist/compatibility.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"harness": "0.
|
|
3
|
-
"runtime": "0.
|
|
4
|
-
"agents": "0.
|
|
5
|
-
"admin": "0.
|
|
6
|
-
"core": "0.
|
|
7
|
-
"cli": "0.14.2-beta"
|
|
2
|
+
"harness": "0.26.0-beta",
|
|
3
|
+
"runtime": "0.24.0-beta",
|
|
4
|
+
"agents": "0.20.0-beta",
|
|
5
|
+
"admin": "0.16.0-beta",
|
|
6
|
+
"core": "0.20.0-beta"
|
|
8
7
|
}
|
package/dist/contracts.d.ts
CHANGED
package/dist/starter/README.md
CHANGED
|
@@ -18,13 +18,14 @@ Agent definitions live in `agents/`. The **Runtime** runs your agents and
|
|
|
18
18
|
holds their sessions in its **Tenant**, one per installation; this project
|
|
19
19
|
attaches to its own local Tenant through a **Project link**. `src/main.ts`
|
|
20
20
|
saves each agent in `agents/index.ts` to the Runtime (`client.saveAgent`) and
|
|
21
|
-
exits;
|
|
22
|
-
`@nylorun/agents`; the two
|
|
21
|
+
exits; from then on the Runtime runs them from what was saved. The project
|
|
22
|
+
depends only on `@nylorun/agents`; the `nylorun` package's two commands run
|
|
23
|
+
with `npx`:
|
|
23
24
|
|
|
24
25
|
- `nylorun` sets up and runs this project's local Tenant (Runtime and Studio)
|
|
25
26
|
and links the project to it.
|
|
26
|
-
-
|
|
27
|
-
|
|
27
|
+
- `nylo` talks to a Runtime: its Tenant's status, reset and model provider
|
|
28
|
+
(`npx -p nylorun@beta nylo <command>`).
|
|
28
29
|
|
|
29
30
|
```sh
|
|
30
31
|
npx nylorun@beta start # this project's Tenant and the link; the first run pulls the images
|
|
@@ -43,7 +44,7 @@ The first `nylorun start` writes `.nylorun/link.json` and
|
|
|
43
44
|
`MODEL_PROVIDER`, `MODEL` and `MODEL_PROVIDER_API_KEY` in `.env` (see
|
|
44
45
|
`.env.example`). The key is stored in the Tenant vault, never back in `.env`.
|
|
45
46
|
Without them, set the provider in Studio's Model provider screen, or with
|
|
46
|
-
`npx @
|
|
47
|
+
`npx -p nylorun@beta nylo configure`. Model calls use the Tenant's provider and may
|
|
47
48
|
incur its usual charges.
|
|
48
49
|
|
|
49
50
|
`npm run dev` runs `src/main.ts` with `tsx watch`: it saves the agents to the
|
|
@@ -69,12 +70,12 @@ The assistant has no tools yet. A tool is an `http()` tool, a request the
|
|
|
69
70
|
Runtime makes to a service of yours (see the comment in
|
|
70
71
|
`agents/assistant/agent.ts`), a remote MCP server, or another agent used as a
|
|
71
72
|
tool. A code tool (`tool({ run })`) is refused when it is saved: the Runtime
|
|
72
|
-
runs
|
|
73
|
+
runs agents from their manifests alone.
|
|
73
74
|
|
|
74
75
|
Export the linked Project environment:
|
|
75
76
|
|
|
76
77
|
```sh
|
|
77
|
-
eval "$(npx
|
|
78
|
+
eval "$(npx -p nylorun@beta nylo env)"
|
|
78
79
|
# → NYLORUN_RUNTIME_URL, NYLORUN_SERVER_KEY
|
|
79
80
|
```
|
|
80
81
|
|
|
@@ -86,8 +87,8 @@ there gives it a Tenant of its own, and `npx nylorun start --tenant <name>`
|
|
|
86
87
|
links it to this project's Tenant instead.
|
|
87
88
|
Keep `.nylorun/` private. The application key is derived from the Tenant's
|
|
88
89
|
admin key when the project is linked. Ordinary
|
|
89
|
-
shutdown/restart preserves completed session history; `npx
|
|
90
|
-
--all` empties the Tenant, and `npx nylorun reset` deletes all its data.
|
|
90
|
+
shutdown/restart preserves completed session history; `npx -p nylorun nylo
|
|
91
|
+
reset --all` empties the Tenant, and `npx nylorun reset` deletes all its data.
|
|
91
92
|
`NYLORUN_IMPLEMENTATION_VERSION` (default `dev`) labels each saved
|
|
92
93
|
definition.
|
|
93
94
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nylorun/create-agent",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.7-beta",
|
|
4
4
|
"description": "Create a local Nylorun Harness agent project.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/nylorun/agents.git",
|
|
10
|
-
"directory": "create-agent"
|
|
10
|
+
"directory": "cli/create-agent"
|
|
11
11
|
},
|
|
12
12
|
"homepage": "https://github.com/nylorun/agents",
|
|
13
13
|
"bugs": "https://github.com/nylorun/agents/issues",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"node": ">=24.0.0"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
|
-
"build": "npm run clean && node
|
|
32
|
+
"build": "npm run clean && node ../../scripts/check-typescript-version.mjs && tsc -p tsconfig.json && node scripts/copy-compatibility.mjs",
|
|
33
33
|
"check": "npm run build && npm run test:types && npm test && node scripts/check-package.mjs",
|
|
34
34
|
"test": "vitest run",
|
|
35
35
|
"test:types": "tsc -p test/tsconfig.json",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"prepack": "npm run build"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@nylorun/harness": "file
|
|
43
|
-
"@nylorun/runtime": "file
|
|
44
|
-
"@types/node": "^26.
|
|
42
|
+
"@nylorun/harness": "file:../../runtime/harness",
|
|
43
|
+
"@nylorun/runtime": "file:../../runtime/server",
|
|
44
|
+
"@types/node": "^26.6.4",
|
|
45
45
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
46
46
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
47
47
|
"vitest": "^5.0.2",
|
|
48
48
|
"zod": "^4.6.5",
|
|
49
|
-
"@nylorun/core": "file
|
|
50
|
-
"@nylorun/agents": "file
|
|
49
|
+
"@nylorun/core": "file:../../core",
|
|
50
|
+
"@nylorun/agents": "file:../../sdks/agents"
|
|
51
51
|
}
|
|
52
52
|
}
|