nylorun 0.18.3-beta → 0.20.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 +75 -0
- package/README.md +171 -7
- package/dist/cli.js +34 -3
- package/dist/client/agents.d.ts +18 -0
- package/dist/client/agents.js +2 -2
- package/dist/client/apply-agent.d.ts +14 -0
- package/dist/client/apply-agent.js +71 -0
- package/dist/client/apply.d.ts +9 -2
- package/dist/client/apply.js +125 -31
- package/dist/client/chat.d.ts +8 -0
- package/dist/client/chat.js +145 -0
- package/dist/client/convert.d.ts +18 -0
- package/dist/client/convert.js +195 -0
- package/dist/client/folder.d.ts +13 -0
- package/dist/client/folder.js +177 -0
- package/dist/client/init.d.ts +21 -0
- package/dist/client/init.js +210 -0
- package/dist/client/migrate.js +8 -2
- package/dist/client/plan-diff.d.ts +14 -0
- package/dist/client/plan-diff.js +86 -0
- package/dist/client/watch.d.ts +23 -0
- package/dist/client/watch.js +87 -0
- package/dist/nylo.js +2 -2
- package/dist/stack/versions.d.ts +2 -0
- package/dist/stack/versions.js +12 -0
- package/package.json +6 -6
package/dist/nylo.js
CHANGED
|
@@ -3,7 +3,7 @@ import "./baseline.js";
|
|
|
3
3
|
import { runCommand } from "./command.js";
|
|
4
4
|
import { CliError } from "./errors.js";
|
|
5
5
|
/**
|
|
6
|
-
* `nylo` became part of `nylorun`. Until
|
|
6
|
+
* `nylo` became part of `nylorun`. Until a later release removes it, this command names the
|
|
7
7
|
* `nylorun` command that replaces each of its own and exits 2.
|
|
8
8
|
*/
|
|
9
9
|
const REPLACEMENTS = {
|
|
@@ -18,7 +18,7 @@ function nyloMessage(argv) {
|
|
|
18
18
|
const replacement = REPLACEMENTS[argv[0] ?? ""];
|
|
19
19
|
return `${replacement
|
|
20
20
|
? `nylo is part of nylorun now: nylo ${argv[0]} is ${replacement}.`
|
|
21
|
-
: "nylo is part of nylorun now: run nylorun --help."} nylorun
|
|
21
|
+
: "nylo is part of nylorun now: run nylorun --help."} A later nylorun release removes nylo.`;
|
|
22
22
|
}
|
|
23
23
|
runCommand(async () => {
|
|
24
24
|
throw new CliError(nyloMessage(process.argv.slice(2)), 2);
|
package/dist/stack/versions.d.ts
CHANGED
package/dist/stack/versions.js
CHANGED
|
@@ -6,6 +6,18 @@ function cliPackageJsonPath() {
|
|
|
6
6
|
// src/stack/*.ts and dist/stack/*.js both sit two levels below the package root.
|
|
7
7
|
return join(dirname(fileURLToPath(import.meta.url)), "..", "..", "package.json");
|
|
8
8
|
}
|
|
9
|
+
/** This CLI's version, from its `package.json` (`nylorun --version`). */
|
|
10
|
+
export function cliVersion() {
|
|
11
|
+
try {
|
|
12
|
+
const version = JSON.parse(readFileSync(cliPackageJsonPath(), "utf8")).version;
|
|
13
|
+
if (typeof version === "string")
|
|
14
|
+
return version;
|
|
15
|
+
}
|
|
16
|
+
catch (error) {
|
|
17
|
+
throw new CliError(`Cannot read CLI package.json: ${error instanceof Error ? error.message : String(error)}`, 1);
|
|
18
|
+
}
|
|
19
|
+
throw new CliError("nylorun's package.json has no version.", 1);
|
|
20
|
+
}
|
|
9
21
|
/**
|
|
10
22
|
* The version this CLI release pins for an image, from its `package.json`
|
|
11
23
|
* `nylorun.runtime` or `nylorun.studio`: the tag of `ghcr.io/nylorun/<name>`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nylorun",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0-beta",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "Set up and run local Nylorun Tenants (Runtime and Studio) with Docker Compose, and act on a Tenant through its Runtime and Management APIs",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"prepack": "npm run build"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nylorun/admin": "0.19.
|
|
34
|
-
"@nylorun/agents": "0.
|
|
35
|
-
"@nylorun/core": "0.
|
|
33
|
+
"@nylorun/admin": "0.19.4-beta",
|
|
34
|
+
"@nylorun/agents": "0.28.0-beta",
|
|
35
|
+
"@nylorun/core": "0.28.0-beta"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@earendil-works/pi-ai": "1.2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"nylo": "dist/nylo.js"
|
|
47
47
|
},
|
|
48
48
|
"nylorun": {
|
|
49
|
-
"runtime": "0.
|
|
50
|
-
"studio": "0.
|
|
49
|
+
"runtime": "0.32.0-beta",
|
|
50
|
+
"studio": "0.32.0-beta"
|
|
51
51
|
}
|
|
52
52
|
}
|