@nylorun/create-agent 0.4.0-beta → 0.6.0-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 +28 -0
- package/README.md +1 -1
- package/compatibility.json +3 -3
- package/dist/compatibility.json +3 -3
- package/dist/starter/.env.example +6 -0
- package/dist/starter/README.md +4 -2
- package/dist/starter/_gitignore +3 -3
- package/dist/starter/package.json +1 -2
- package/dist/starter/src/index.ts +1 -10
- package/dist/sync.js +4 -0
- package/package.json +1 -1
- package/dist/starter/.env/README.md +0 -4
- package/dist/starter/.env/_gitignore +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.0-beta
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c5bbb1a: Breaking beta: make Harness `run()` a direct async state-in/state-out executor with
|
|
8
|
+
serializable pauses, application `info`, cancellation signals, awaited recording, and
|
|
9
|
+
agent-level output schemas. Runtime owns session scheduling with memory-default or exclusive
|
|
10
|
+
local storage and imports Harness contracts. Isolate Node adapters under `runtime/node`, stream
|
|
11
|
+
observations incrementally, and add opt-in bounded token previews with Studio reconciliation.
|
|
12
|
+
Migrate consumers and deployment guidance together; legacy event records remain archived, not
|
|
13
|
+
automatically replayed. Starter docs cover memory-default sessions and opt-in
|
|
14
|
+
`localSessions` from `@nylorun/runtime/node`. Studio tests cover capability-manifest discovery
|
|
15
|
+
with legacy `middleware` fallback.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Update the tested Harness, Runtime, and Studio compatibility combination.
|
|
20
|
+
|
|
21
|
+
## 0.5.0-beta
|
|
22
|
+
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
25
|
+
- fa1860a: Use standard MODEL_PROVIDER, MODEL, MODEL_PROVIDER_API_KEY, and MODEL_PROVIDER_BASE_URL environment configuration. Export starter Hono apps and provide CLI development and production Node launchers. Existing starters require manual migration. Release preparation must update the creator Runtime compatibility pin with this release.
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Update the tested Harness, Runtime, and Studio compatibility combination.
|
|
30
|
+
|
|
3
31
|
## 0.4.0-beta
|
|
4
32
|
|
|
5
33
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -54,6 +54,6 @@ The renderer is shared by project creation, the isolated starter development run
|
|
|
54
54
|
|
|
55
55
|
Repository development: [contributing](../CONTRIBUTING.md). Package publication: [releasing](../RELEASING.md).
|
|
56
56
|
|
|
57
|
-
Generated projects use `nylorun dev`, with `--no-studio` and `--no-open` options, rather than a copied supervisor script. They contain one `tsconfig.json`; `npm run check` checks without emitting and `npm run build` emits to `dist/`. Repository examples add their own build configuration to exclude tests. Provider/model selection
|
|
57
|
+
Generated projects use `nylorun dev`, with `--no-studio` and `--no-open` options, rather than a copied supervisor script. They contain one `tsconfig.json`; `npm run check` checks without emitting and `npm run build` emits to `dist/`. Repository examples add their own build configuration to exclude tests. Provider/model selection and API keys use a conventional `.env` file (`MODEL_PROVIDER`, `MODEL`, `MODEL_PROVIDER_API_KEY`, and optional `MODEL_PROVIDER_BASE_URL`). The starter exports its Hono app; `nylorun start` supplies the production Node launcher. OAuth state is optional in `.nylorun/auth.json`. See [Runtime migration instructions](../runtime/README.md#upgrading-an-existing-starter).
|
|
58
58
|
|
|
59
59
|
To verify the packed starter after building all packages, run `node create-agent/scripts/smoke-starter.mjs` from the repository root. It installs candidate tarballs into a disposable project and checks type checking, production output, agent assets, development CORS, streaming, watch reload, and shutdown. Add `--serve` to keep the fixture Studio running for browser verification; stop it with Ctrl-C. It uses a deterministic model adapter and makes no provider calls.
|
package/compatibility.json
CHANGED
package/dist/compatibility.json
CHANGED
package/dist/starter/README.md
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
The creator configures a provider before starting development. For later sessions, run `npm run dev`. If setup was skipped with `--skip-config` or interrupted, run `npm run configure` first, then `npm run dev`.
|
|
4
4
|
Edit agents under `agents/` and compose your Hono app in `src/index.ts`.
|
|
5
5
|
|
|
6
|
-
`npm run dev` starts your app on port 3000, waits until its agent endpoint is ready, then starts Studio and opens it in your browser. Use `npm run dev -- --no-open` to start Studio without opening a browser. Run `npm run studio` in another terminal to attach Studio separately. `npm run build` creates `dist/`; deploy it alongside `package.json`, installed production dependencies, and
|
|
6
|
+
`npm run dev` starts your app on port 3000, waits until its agent endpoint is ready, then starts Studio and opens it in your browser. Use `npm run dev -- --no-open` to start Studio without opening a browser. Run `npm run studio` in another terminal to attach Studio separately. `npm run build` creates `dist/`; deploy it alongside `package.json`, installed production dependencies, and environment variables, then run `npm start`.
|
|
7
7
|
|
|
8
|
-
Development orchestration is provided by the installed `nylorun` CLI. Use `npm run dev -- --no-studio` for the application alone.
|
|
8
|
+
Development orchestration is provided by the installed `nylorun` CLI. Use `npm run dev -- --no-studio` for the application alone. Copy `.env.example` to `.env` and fill in `MODEL_PROVIDER`, `MODEL`, and `MODEL_PROVIDER_API_KEY`, or run `npm run configure`. Custom OpenAI-compatible providers also use `MODEL_PROVIDER_BASE_URL`. Hosting providers can supply these variables directly; no credential files are required for API keys. The single `tsconfig.json` builds your sources; `npm run check` checks types without emitting files.
|
|
9
|
+
|
|
10
|
+
`src/index.ts` exports the Hono app. `nylorun dev` and `nylorun start` supply the Node server and load `.env` without overriding process variables. OAuth state, when used, lives in ignored `.nylorun/auth.json`. Sessions use memory storage by default and disappear on process restart. For a single Node host, explicitly configure `localSessions({ root: ".data/sessions" })` from `@nylorun/runtime/node`. Shared storage alone does not provide distributed scheduling. See https://docs.nylorun.com/docs/run-agents/deploy for hosting guidance.
|
package/dist/starter/_gitignore
CHANGED
|
@@ -11,13 +11,12 @@
|
|
|
11
11
|
"dev": "nylorun dev",
|
|
12
12
|
"studio": "nylorun studio --agent-url http://localhost:3000/agents",
|
|
13
13
|
"build": "node -e \"import('node:fs/promises').then(async ({rm,cp}) => { await rm('dist', { recursive: true, force: true }); await cp('agents', 'dist/agents', { recursive: true, filter: (source) => !source.endsWith('.ts') }); })\" && tsc -p tsconfig.json",
|
|
14
|
-
"start": "
|
|
14
|
+
"start": "nylorun start",
|
|
15
15
|
"check": "tsc --noEmit"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@nylorun/harness": "{{HARNESS_VERSION}}",
|
|
19
19
|
"@nylorun/runtime": "{{RUNTIME_VERSION}}",
|
|
20
|
-
"@hono/node-server": "^2.1.1",
|
|
21
20
|
"hono": "^4.13.7",
|
|
22
21
|
"zod": "^4.1.12"
|
|
23
22
|
},
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { serve } from "@hono/node-server";
|
|
2
1
|
import { Hono } from "hono";
|
|
3
2
|
import { Runtime, serveAgents } from "@nylorun/runtime";
|
|
4
3
|
import { agents } from "../agents/index.js";
|
|
@@ -21,12 +20,4 @@ app.route(
|
|
|
21
20
|
serveAgents({ agents, runtime })
|
|
22
21
|
);
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
{
|
|
26
|
-
fetch: app.fetch,
|
|
27
|
-
port: Number(process.env.PORT ?? "3000"),
|
|
28
|
-
},
|
|
29
|
-
(info) => {
|
|
30
|
-
console.log(`Server is running on http://localhost:${info.port}`);
|
|
31
|
-
},
|
|
32
|
-
);
|
|
23
|
+
export default app;
|
package/dist/sync.js
CHANGED
|
@@ -59,6 +59,10 @@ export async function synchronize(root, files, compatibility, options) {
|
|
|
59
59
|
!managed(path) ||
|
|
60
60
|
path.startsWith("test/") ||
|
|
61
61
|
(path.startsWith("scripts/") && path !== "scripts/dev.mjs") ||
|
|
62
|
+
path === ".env" ||
|
|
63
|
+
path === ".env.local" ||
|
|
64
|
+
path === ".nylorun" ||
|
|
65
|
+
path.startsWith(".nylorun/") ||
|
|
62
66
|
path.startsWith(".data/") ||
|
|
63
67
|
path.startsWith("node_modules/") ||
|
|
64
68
|
(path.startsWith(".env/") &&
|
package/package.json
CHANGED