@_linked/cli 1.44.0 → 1.45.0

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +36 -2
  3. package/defaults/package/src/index.ts +0 -5
  4. package/defaults/package-ontology/src/index.ts +8 -0
  5. package/defaults/shape.ts +13 -10
  6. package/lib/esm/cli-methods.d.ts +10 -1
  7. package/lib/esm/cli-methods.d.ts.map +1 -1
  8. package/lib/esm/cli-methods.js +252 -97
  9. package/lib/esm/cli-methods.js.map +1 -1
  10. package/lib/esm/cli.js +60 -17
  11. package/lib/esm/cli.js.map +1 -1
  12. package/lib/esm/commands/localize.d.ts.map +1 -1
  13. package/lib/esm/commands/localize.js +2 -1
  14. package/lib/esm/commands/localize.js.map +1 -1
  15. package/lib/esm/localize/localize.d.ts.map +1 -1
  16. package/lib/esm/localize/localize.js +25 -3
  17. package/lib/esm/localize/localize.js.map +1 -1
  18. package/lib/esm/utils/createPackageLocation.d.ts +20 -5
  19. package/lib/esm/utils/createPackageLocation.d.ts.map +1 -1
  20. package/lib/esm/utils/createPackageLocation.js +9 -14
  21. package/lib/esm/utils/createPackageLocation.js.map +1 -1
  22. package/lib/esm/utils/packageBaseUri.d.ts +27 -0
  23. package/lib/esm/utils/packageBaseUri.d.ts.map +1 -0
  24. package/lib/esm/utils/packageBaseUri.js +91 -0
  25. package/lib/esm/utils/packageBaseUri.js.map +1 -0
  26. package/lib/esm/utils/packageKind.d.ts +49 -0
  27. package/lib/esm/utils/packageKind.d.ts.map +1 -0
  28. package/lib/esm/utils/packageKind.js +94 -0
  29. package/lib/esm/utils/packageKind.js.map +1 -0
  30. package/lib/esm/utils/relinkHooks.d.ts +19 -0
  31. package/lib/esm/utils/relinkHooks.d.ts.map +1 -0
  32. package/lib/esm/utils/relinkHooks.js +74 -0
  33. package/lib/esm/utils/relinkHooks.js.map +1 -0
  34. package/package.json +2 -2
  35. /package/defaults/{package → package-ontology}/src/data/example-ontology.json +0 -0
  36. /package/defaults/{package → package-ontology}/src/data/example-ontology.json.d.ts +0 -0
  37. /package/defaults/{package → package-ontology}/src/ontologies/example-ontology.register.ts +0 -0
  38. /package/defaults/{package → package-ontology}/src/ontologies/example-ontology.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.45.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#234](https://github.com/linked-fw/cli/pull/234) [`8e9ee5a`](https://github.com/linked-fw/cli/commit/8e9ee5a6e9e8c20fd9245932a42a40d405bff15e) Thanks [@flyon](https://github.com/flyon)! - `linked create-package` scaffolds an ontology package, an asset package or both; a new app is not a package.
8
+
9
+ - **Two kinds of package.** An ontology package `<name>-ont` holds exactly one ontology (`src/ontologies/<name>.ts` and its register sibling) and no shapes, components or backend. Its ontology slug is `<name>`, without `-ont`, so its terms mint `https://linked.cm/ont/<name>/{Term}` (or `<uri_base>{Term}` when a namespace is given). An asset package `<name>-assets` holds shapes, components and a backend (`src/shapes`, `src/backend.ts`, the barrels) and no ontology. Both are ordinary linked packages (`linkedPackage: true`).
10
+ - **`linked create-ont-package <name>`** and **`linked create-asset-package <name>`** create one kind each. **`linked create-package <name>`** asks which on a terminal; `--kind ontology|assets|both` answers it, and `both` creates the pair. Without a terminal and without `--kind` it exits 1 and names the flag, as `--location` does. `--kind both` refuses `--remote`: one repository cannot hold two packages. `--location`, `--remote` and `--push` work for all three commands, and `--skip-install` writes the files only.
11
+ - **With `--kind both --location packages` the asset package depends on the ontology package:** a regular `dependencies` entry `"<name>-ont": "^<its version>"`, as Create Now's project scaffold writes, which npm workspaces link locally. With `packages-local` or outside an app it gets no such entry (`npm install` would fail with E404 on the unpublished `-ont` package); one line says to run `npm install <name>-ont` once it is published. A package created on its own gets no such entry.
12
+ - **The suffix is never doubled:** `create-ont-package foo-ont` creates `foo-ont`, and `@acme/foo` becomes `@acme/foo-ont`.
13
+ - **`linked create-app` no longer rewrites `src/package.ts`.** A new app is a `linkedApp`, not a linked package: its root registers no package, so `create-app` stamps `package.json`, the env files and the process names and leaves `src/` alone.
14
+ - **Every created package has `"linkedPackage": true`.**
15
+ - **A package created inside an app is minted under the app's root:** `linkedPackage(name, {baseUri})`, and an ontology package's namespace is `{baseUri}ont/<name>/`. The root comes from `--base-uri <uri>`, else `LINKED_BASE_URI` in the shell, else the app's `.env.local`, else its `.env`. A malformed root is refused before anything is written. With no root the package declares none and mints under `https://linked.cm/`, the normal default; that is no warning, one informational line says so: `Shapes and terms in <package> mint under https://linked.cm/. They resolve once the package is published (npx linked publish, coming soon).`
16
+ - **`create-shape`, `create-component`, `create-set-component` and `create-ontology` refuse where there is no `src/package.ts`** (a new app root has none) with `run this inside a package (packages/<name>)`, instead of writing a file whose `../package.js` import cannot resolve. An app with its own root `src/package.ts` (create-now) is served as before.
17
+ - **The `create-shape` template compiles:** it imported `NamedNode` from `@_linked/core`, which core does not export (TS2305). It is the getter-only shape form now.
18
+ - The templates moved with the kinds: `defaults/package/` is the asset package, whose manifest, tsconfigs, dotfiles and `src/package.ts` every kind shares, and `defaults/package-ontology/` holds the example ontology. The template files create-now reads from `defaults/package/` (`package.json`, the tsconfigs, `src/shapes/index.ts`, `src/backend.ts`) are where they were.
19
+ - `create-component` and `create-set-component` resolve their templates from the built CLI again (they looked one directory too high).
20
+
21
+ - [#234](https://github.com/linked-fw/cli/pull/234) [`362f890`](https://github.com/linked-fw/cli/commit/362f890941c973d257bcbd1218f0b78ffcf3ea23) Thanks [@flyon](https://github.com/flyon)! - Apps now get a `dependencies` relink hook next to `postinstall`, so `npm update`, `npm install <pkg>`, `npm uninstall` and `npm dedupe` keep localized links. npm runs a root `postinstall` only on a bare `npm install` / `npm ci`, but runs a root `dependencies` script after any command that changes `node_modules`. `linked create-package` sets up both scripts, and `linked localize` / `--adopt` add whichever is missing when they record a package (an existing script is kept and the command appended with `&&`; a script that already relinks, including the old `linked-localize --relink` spelling, is left alone).
22
+
23
+ ## 1.44.1
24
+
25
+ ### Patch Changes
26
+
27
+ - [#232](https://github.com/linked-fw/cli/pull/232) [`494a99c`](https://github.com/linked-fw/cli/commit/494a99c6fc0f1b6a2d5b3d2f9a2a01506b8f6793) Thanks [@flyon](https://github.com/flyon)! - `@types/node` is no longer installed into consumers. It was declared as a runtime dependency (`^20.12.7`), which forced a second, older copy of the Node typings into every project that installed the CLI — even ones that already declare a newer `@types/node`. It is now a development dependency of the CLI only (`^24.0.0`, matching the Node 24 runtime).
28
+
29
+ Nothing the CLI scaffolds relies on it: the app, package and React Native templates each declare their own `@types/node`. If your project's `tsconfig.json` lists `"types": ["node"]` (or imports the CLI's Node-facing helpers such as `vite-config`, whose declarations use `NodeJS.ProcessEnv`) and does not declare `@types/node` itself, add it to your own `devDependencies`.
30
+
3
31
  ## 1.44.0
4
32
 
5
33
  ### Minor Changes
package/README.md CHANGED
@@ -27,11 +27,44 @@ Run `linked --help` for the full list. The commonly used ones:
27
27
 
28
28
  ```bash
29
29
  linked create-app <name> # scaffold a new app (interactive)
30
- linked create-package <name> # scaffold a new linkedPackage (see below for where it goes)
30
+ linked create-package <name> # scaffold an ontology package, an asset package or both
31
+ linked create-ont-package <name> # <name>-ont: one ontology, no shapes or components
32
+ linked create-asset-package <name># <name>-assets: shapes, components and a backend
31
33
  linked create-shape <name> # add a shape file to the current package
32
34
  linked create-component <name> # add a React component file
33
35
  ```
34
36
 
37
+ An app is a `linkedApp`, not a linked package: its root registers no package, and its shapes
38
+ live in its packages. A linked package is one of two kinds:
39
+
40
+ - an **ontology package**, `<name>-ont` — exactly one ontology (`src/ontologies/<name>.ts`), no
41
+ shapes, components or backend. Its ontology slug is `<name>` (without `-ont`), so its terms
42
+ mint `https://linked.cm/ont/<name>/{Term}`, or `<uri_base>{Term}` when a namespace is given.
43
+ - an **asset package**, `<name>-assets` — shapes, components and a backend, and no ontology.
44
+
45
+ `create-package` asks which on a terminal; `--kind ontology|assets|both` answers it (`both`
46
+ creates the pair), and without a terminal and without `--kind` it exits 1 and says so.
47
+ With `both` and `--location packages`, the asset package depends on the ontology package
48
+ (`"<name>-ont": "^<version>"`), which npm workspaces link locally. Anywhere else (`packages-local`
49
+ or outside an app) it gets no such entry, because `npm install` would look the unpublished `-ont`
50
+ package up in the registry and fail with E404; one line says to run `npm install <name>-ont` in
51
+ the asset package once the ontology package is published.
52
+ `create-ont-package` and `create-asset-package` are the two kinds spelled out. The suffix is
53
+ never doubled: `create-ont-package foo-ont` creates `foo-ont`. Every package they create has
54
+ `"linkedPackage": true`. `create-shape`, `create-component`, `create-set-component` and
55
+ `create-ontology` refuse where there is no `src/package.ts` (a new app root has none) instead of
56
+ writing an import of a package that does not exist: run them inside `packages/<name>`. An app that
57
+ does have a `src/package.ts` at its root is served as before.
58
+
59
+ A package's IRIs are minted under a root: `linkedPackage(name, {baseUri})`, shapes at
60
+ `{baseUri}shape/<package>/<Name>`, an ontology package's terms at `{baseUri}ont/<slug>/<Term>`.
61
+ The root is, first match wins: `--base-uri <uri>`; inside an app, `LINKED_BASE_URI` from the
62
+ shell, then from the app's `.env.local`, then its `.env`. With none of them the package declares
63
+ no root and mints under `https://linked.cm/`, the normal root for an open-source package. That is
64
+ not a warning; the command prints one informational line:
65
+ `Shapes and terms in <package> mint under https://linked.cm/. They resolve once the package is
66
+ published (npx linked publish, coming soon).`
67
+
35
68
  Inside an app (a `package.json` with `"linkedApp": true` above the current directory),
36
69
  `create-package` puts the package in one of two places, and asks which on a terminal:
37
70
 
@@ -334,7 +367,8 @@ Templates live in `defaults/`:
334
367
 
335
368
  - `defaults/app-with-backend/` — used by `linked create-app`
336
369
  - `defaults/app-static/` — minimal static app
337
- - `defaults/package/` — used by `linked create-package`
370
+ - `defaults/package/` — the asset package of `linked create-package` / `create-asset-package`; its manifest, tsconfigs, dotfiles and `src/package.ts` are shared by every kind
371
+ - `defaults/package-ontology/` — what an ontology package (`create-ont-package`) gets on top of the shared files: the example ontology, its register sibling and its data
338
372
  - `defaults/setup-publish/` — caller workflows + changeset files written by `linked setup-publish` (`main`-only; `--dual-branch` is a deprecated no-op)
339
373
 
340
374
  ### `linked create-app` template structure
@@ -1,9 +1,4 @@
1
1
  import './types.js';
2
- // Registers the ontology. This MUST be the `.register.js` sibling, not the terms module
3
- // itself: importing the terms module alone never calls `linkedOntology()`, so the ontology
4
- // is silently never registered. See the comment in the register file for why registration
5
- // cannot live in the terms module.
6
- import './ontologies/${hyphen_name}.register.js';
7
2
 
8
3
  //SHAPES FIRST — all shapes register via the barrel
9
4
  import './shapes/index.js';
@@ -0,0 +1,8 @@
1
+ // Registers the ontology. This MUST be the `.register.js` sibling, not the terms module
2
+ // itself: importing the terms module alone never calls `linkedOntology()`, so the ontology
3
+ // is silently never registered. See the comment in the register file for why registration
4
+ // cannot live in the terms module.
5
+ import './ontologies/${hyphen_name}.register.js';
6
+
7
+ // An ontology package holds exactly one ontology and nothing else: no shapes, no
8
+ // components, no backend. Those belong in an asset package (`linked create-asset-package`).
package/defaults/shape.ts CHANGED
@@ -1,14 +1,17 @@
1
- // TODO(plan-1.5 / Phase 3 — Shape Builder review): @_linked/core does
2
- // not export NamedNode as a class. The template needs to be rewritten to
3
- // match the modern @_linked/* shape pattern — see packages/schema/src/
4
- // shapes/Person.ts (getter-only, no NamedNode annotation). Import paths
5
- // updated to @_linked/core to flag intent; current generated output
6
- // won't compile until the template + downstream tooling are updated.
7
1
  import {Shape} from '@_linked/core/shapes/Shape';
8
- import {NamedNode} from '@_linked/core';
9
2
  import {linkedShape} from '../package.js';
10
3
 
4
+ /**
5
+ * Add the target class and properties of this shape, e.g.
6
+ *
7
+ * static targetClass = schema.Product;
8
+ *
9
+ * @literalProperty({path: schema.name, maxCount: 1})
10
+ * get name(): string {
11
+ * return '';
12
+ * }
13
+ *
14
+ * Properties are getters only: a shape describes data, it does not hold it.
15
+ */
11
16
  @linkedShape
12
- export class ${camel_name} extends Shape {
13
- static targetClass:NamedNode;
14
- }
17
+ export class ${camel_name} extends Shape {}
@@ -60,8 +60,12 @@ export declare const reactNativeInternals: {
60
60
  * - `.env.example` (committed defaults for this app) + `.env` (local): APP_NAME
61
61
  * drives the display name; APP_PREFIX names data files.
62
62
  * - `package.json`: `name` (hyphenated id) + `displayName` (human name).
63
- * - `src/package.ts`: the runtime `linkedPackage` id — shape URIs derive from it.
64
63
  * - pm2 process names + the VS Code launch name (cosmetic, but should match).
64
+ *
65
+ * Nothing under `src/` is touched: the app is a linkedApp, not a linked package,
66
+ * so its root registers no package and has no package id to stamp. Its shapes
67
+ * live in its packages (`packages/<name>-assets`), each with its own
68
+ * `src/package.ts`.
65
69
  */
66
70
  /**
67
71
  * Scaffolded apps are npm apps, so the new app must not also look like a yarn
@@ -71,6 +75,11 @@ export declare const reactNativeInternals: {
71
75
  * file only existed to pin down Yarn's project-root search.)
72
76
  */
73
77
  export declare function stripYarnProjectFiles(targetFolder: string): void;
78
+ export declare function applyAppIdentity(targetFolder: string, ids: {
79
+ appName: string;
80
+ appPrefix: string;
81
+ hyphenName: string;
82
+ }): void;
74
83
  export declare function warn(...messages: any[]): void;
75
84
  export declare function logError(...errors: any[]): void;
76
85
  export declare function developPackage(target: any, mode: any): void;
@@ -1 +1 @@
1
- {"version":3,"file":"cli-methods.d.ts","sourceRoot":"","sources":["../../src/cli-methods.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,kCAAkC,CAAC;AAmB1C,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,iBAAiB,CAAC;AAgBpD;;;;;;GAMG;AAKH,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,qBAAqB,EACrB,YAAY,EACb,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,qBAAqB,EACrB,YAAY,GACb,CAAC;AAoBF,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,cAAc,CAAC;AAEjD,KAAK,WAAW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