@nylorun/core 0.10.0-beta → 0.11.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 +13 -0
- package/dist/contracts.d.ts +6 -6
- package/dist/contracts.js +10 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @nylorun/core
|
|
2
2
|
|
|
3
|
+
## 0.11.0-beta
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4b9906f: **Breaking: "Tenant" replaces "stack", and `nylorun start` works anywhere.** Each local installation holds one Tenant, and its name is the Tenant's name, so help, output, errors and docs say Tenant. See MIGRATION.md.
|
|
8
|
+
|
|
9
|
+
- **Breaking (`nylorun`): selection.** Every command acts on the Tenant `--tenant <name>` names (replaces `--name`, which is removed), else `NYLORUN_TENANT` (replaces `NYLORUN_STACK`), else the Project link's `tenant`; `start` in a project names a new one after the project directory. Outside a project, or with `start --no-link`, commands act on the Tenant `default`. In a project without a link, commands other than `start` exit 2 and list the machine's Tenants. A name starting with `tn_` (a Tenant id) is refused.
|
|
10
|
+
- **Breaking (`nylorun`): files.** Host roots are under `~/.nylorun/tenants/<name>/` (was `~/.nylorun/stacks/<name>/`) with `tenant.json` (was `stack.json`); the `.env` key is `NYLORUN_TENANT_NAME` (was `NYLORUN_STACK_NAME`); `NYLORUN_COMPOSE_PROJECT` replaces `NYLORUN_STACK_PROJECT`. Compose projects stay `nylorun-<name>`. Every command first moves 0.4 Host roots from `~/.nylorun/stacks/` to `~/.nylorun/tenants/` (renaming `stack.json` and the `.env` key), so they keep their volumes and keys. `nylorun ls` lists only directories with `tenant.json`.
|
|
11
|
+
- **Breaking (`nylorun`): removed.** `nylorun legacy` and all handling of the single stack of releases before 0.4; the hidden `nylorun stack <cmd>` alias; `nylorun doctor stack|runtime`. Output says Tenant: `ls` prints `TENANT` and JSON `{ "tenants": [...] }`, `status` prints the Tenant id on its own line, and `doctor`'s row is `tenant`.
|
|
12
|
+
- **Breaking: Project link format 3.** `.nylorun/link.json` is `{ "format": 3, "tenant", "tenantId", "hostUrl", "hostId" }`; `tenant` replaces `stack`. `@nylorun/agents`, `@nylorun/cli` and `@nylorun/admin` refuse an older link and name `npx nylorun start`, which rewrites it. `@nylorun/core`'s `ProjectLinkFileSchema` parses formats 0–3 with `tenant`.
|
|
13
|
+
- **Breaking (`@nylorun/admin`):** `createAdmin({ tenant })` replaces `{ stack }`, `tenantHostRoot(name)` replaces `stackHostRoot(name)`, and local resolution reads `NYLORUN_TENANT` and the link's `tenant`.
|
|
14
|
+
- `@nylorun/cli`: `status` and `endpoints` drop the `stack` line and JSON key; messages say Tenant. `@nylorun/agents`: a Runtime too old for the client says "update the Runtime (npx nylorun@latest start)". `@nylorun/studio`: setup hints say Tenant. `@nylorun/create-agent`: the next steps describe `npx nylorun@beta start` as this project's Tenant and its link.
|
|
15
|
+
|
|
3
16
|
## 0.10.0-beta
|
|
4
17
|
|
|
5
18
|
### Major Changes
|
package/dist/contracts.d.ts
CHANGED
|
@@ -1770,14 +1770,14 @@ export declare const AdminStatusSchema: z.ZodObject<{
|
|
|
1770
1770
|
}, z.core.$strict>;
|
|
1771
1771
|
export type AdminStatus = z.infer<typeof AdminStatusSchema>;
|
|
1772
1772
|
/**
|
|
1773
|
-
* `.nylorun/link.json`: the installation a Project uses. Format
|
|
1774
|
-
*
|
|
1775
|
-
*
|
|
1776
|
-
*
|
|
1773
|
+
* `.nylorun/link.json`: the installation a Project uses. Format 3 names the local `tenant`
|
|
1774
|
+
* that `nylorun start` created or attached; `tenantId` is information only, since nothing in a
|
|
1775
|
+
* request selects a Tenant. Formats 0–2 are from older releases; they parse so readers can say
|
|
1776
|
+
* why they refuse them.
|
|
1777
1777
|
*/
|
|
1778
1778
|
export declare const ProjectLinkFileSchema: z.ZodObject<{
|
|
1779
|
-
format: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
1780
|
-
|
|
1779
|
+
format: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
1780
|
+
tenant: z.ZodOptional<z.ZodString>;
|
|
1781
1781
|
hostUrl: z.ZodString;
|
|
1782
1782
|
hostId: z.ZodString;
|
|
1783
1783
|
tenantId: z.ZodOptional<z.ZodString>;
|
package/dist/contracts.js
CHANGED
|
@@ -1475,16 +1475,18 @@ export const AdminStatusSchema = z
|
|
|
1475
1475
|
})
|
|
1476
1476
|
.strict();
|
|
1477
1477
|
/**
|
|
1478
|
-
* `.nylorun/link.json`: the installation a Project uses. Format
|
|
1479
|
-
*
|
|
1480
|
-
*
|
|
1481
|
-
*
|
|
1478
|
+
* `.nylorun/link.json`: the installation a Project uses. Format 3 names the local `tenant`
|
|
1479
|
+
* that `nylorun start` created or attached; `tenantId` is information only, since nothing in a
|
|
1480
|
+
* request selects a Tenant. Formats 0–2 are from older releases; they parse so readers can say
|
|
1481
|
+
* why they refuse them.
|
|
1482
1482
|
*/
|
|
1483
1483
|
export const ProjectLinkFileSchema = z
|
|
1484
1484
|
.object({
|
|
1485
|
-
format: z
|
|
1486
|
-
|
|
1487
|
-
|
|
1485
|
+
format: z
|
|
1486
|
+
.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3)])
|
|
1487
|
+
.default(0),
|
|
1488
|
+
/** The local Tenant's name (format 3); absent for an installation that is not local. */
|
|
1489
|
+
tenant: z.string().min(1).optional(),
|
|
1488
1490
|
hostUrl: z.string().min(1),
|
|
1489
1491
|
hostId: z.string().min(1),
|
|
1490
1492
|
tenantId: z.string().min(1).optional(),
|
|
@@ -1610,7 +1612,7 @@ export const SeedTenantConfigRequestSchema = z
|
|
|
1610
1612
|
model: seedModelSchema.optional(),
|
|
1611
1613
|
/**
|
|
1612
1614
|
* The Tenant's model calls use the Runtime's deterministic fixture model instead of its
|
|
1613
|
-
* host model, e.g. for the
|
|
1615
|
+
* host model, e.g. for the Tenant a smoke check resets (scripts/lib/stack-tenant.mjs). Stored
|
|
1614
1616
|
* as Tenant setting `model.fixture`. Host feature `tenant-fixture-model`.
|
|
1615
1617
|
*/
|
|
1616
1618
|
fixtureModel: z.literal(true).optional(),
|