@telorun/cli 0.78.0 → 0.79.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 (51) hide show
  1. package/dist/bundle/warm-layers.d.ts +10 -1
  2. package/dist/bundle/warm-layers.d.ts.map +1 -1
  3. package/dist/bundle/warm-layers.js +15 -4
  4. package/dist/bundle/warm-layers.js.map +1 -1
  5. package/dist/commands/install.d.ts.map +1 -1
  6. package/dist/commands/install.js +6 -1
  7. package/dist/commands/install.js.map +1 -1
  8. package/dist/commands/publish.d.ts.map +1 -1
  9. package/dist/commands/publish.js +53 -1
  10. package/dist/commands/publish.js.map +1 -1
  11. package/dist/commands/release.d.ts.map +1 -1
  12. package/dist/commands/release.js +7 -0
  13. package/dist/commands/release.js.map +1 -1
  14. package/dist/commands/run.d.ts.map +1 -1
  15. package/dist/commands/run.js +17 -21
  16. package/dist/commands/run.js.map +1 -1
  17. package/dist/commands/upgrade.d.ts.map +1 -1
  18. package/dist/commands/upgrade.js +5 -23
  19. package/dist/commands/upgrade.js.map +1 -1
  20. package/dist/controller-progress.d.ts +14 -14
  21. package/dist/controller-progress.d.ts.map +1 -1
  22. package/dist/controller-progress.js +0 -0
  23. package/dist/controller-progress.js.map +1 -1
  24. package/dist/env-files.d.ts +46 -0
  25. package/dist/env-files.d.ts.map +1 -0
  26. package/dist/env-files.js +92 -0
  27. package/dist/env-files.js.map +1 -0
  28. package/dist/release/apply-plan.d.ts.map +1 -1
  29. package/dist/release/apply-plan.js +38 -1
  30. package/dist/release/apply-plan.js.map +1 -1
  31. package/dist/release/check-requires.d.ts +10 -1
  32. package/dist/release/check-requires.d.ts.map +1 -1
  33. package/dist/release/check-requires.js +23 -0
  34. package/dist/release/check-requires.js.map +1 -1
  35. package/dist/release/npm-controller-package.d.ts +50 -0
  36. package/dist/release/npm-controller-package.d.ts.map +1 -0
  37. package/dist/release/npm-controller-package.js +136 -0
  38. package/dist/release/npm-controller-package.js.map +1 -0
  39. package/dist/release/verify-requires.d.ts +50 -0
  40. package/dist/release/verify-requires.d.ts.map +1 -1
  41. package/dist/release/verify-requires.js +58 -1
  42. package/dist/release/verify-requires.js.map +1 -1
  43. package/dist/release/workspace.d.ts +5 -7
  44. package/dist/release/workspace.d.ts.map +1 -1
  45. package/dist/release/workspace.js +6 -17
  46. package/dist/release/workspace.js.map +1 -1
  47. package/dist/workspace-marker.d.ts +30 -0
  48. package/dist/workspace-marker.d.ts.map +1 -0
  49. package/dist/workspace-marker.js +49 -0
  50. package/dist/workspace-marker.js.map +1 -0
  51. package/package.json +6 -6
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Finding `telo-workspace.yaml` on disk.
3
+ *
4
+ * Its LOCATION is a general anchor — the directory workspace-relative paths are
5
+ * measured from, and the outer bound on how far a walk-up may look — while its
6
+ * `modules:` list is release scope. So the finder lives here rather than under
7
+ * `release/`: `telo run` bounds its `.env` collection with the marker and must
8
+ * not reach into the release namespace to do it, where `loadWorkspace` (which
9
+ * parses `modules:` and throws when the file is absent) sits one import away.
10
+ *
11
+ * Parsing the file is the analyzer's (`release/workspace-config.ts`); finding it
12
+ * is the Node half, and this is all of it.
13
+ */
14
+ import { WORKSPACE_FILENAME } from "@telorun/analyzer";
15
+ import * as fs from "node:fs";
16
+ import * as path from "node:path";
17
+ export { WORKSPACE_FILENAME };
18
+ /**
19
+ * Walk up from `from` looking for the marker. Returns the directory holding it,
20
+ * or `undefined` — the file is optional. `telo release` requires one and reports
21
+ * its absence; `telo run` reads `undefined` as "no parent lookup".
22
+ *
23
+ * `from` is resolved through symlinks first: a manifest reached through a linked
24
+ * directory would otherwise walk the LINK's parents, miss a marker that is right
25
+ * there in the real tree, and silently fall back to a narrower answer.
26
+ */
27
+ export function findWorkspaceRoot(from) {
28
+ let dir = realPath(path.resolve(from));
29
+ for (;;) {
30
+ if (fs.existsSync(path.join(dir, WORKSPACE_FILENAME)))
31
+ return dir;
32
+ const parent = path.dirname(dir);
33
+ if (parent === dir)
34
+ return undefined;
35
+ dir = parent;
36
+ }
37
+ }
38
+ /** `fs.realpathSync`, falling back to the input when the path does not exist —
39
+ * a manifest path that is wrong is the caller's error to report, not this
40
+ * helper's to convert into a different one. */
41
+ export function realPath(target) {
42
+ try {
43
+ return fs.realpathSync(target);
44
+ }
45
+ catch {
46
+ return target;
47
+ }
48
+ }
49
+ //# sourceMappingURL=workspace-marker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspace-marker.js","sourceRoot":"","sources":["../src/workspace-marker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAE9B;;;;;;;;GAQG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC5C,IAAI,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACvC,SAAS,CAAC;QACR,IAAI,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAAC;YAAE,OAAO,GAAG,CAAC;QAClE,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACjC,IAAI,MAAM,KAAK,GAAG;YAAE,OAAO,SAAS,CAAC;QACrC,GAAG,GAAG,MAAM,CAAC;IACf,CAAC;AACH,CAAC;AAED;;gDAEgD;AAChD,MAAM,UAAU,QAAQ,CAAC,MAAc;IACrC,IAAI,CAAC;QACH,OAAO,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,MAAM,CAAC;IAChB,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telorun/cli",
3
- "version": "0.78.0",
3
+ "version": "0.79.0",
4
4
  "description": "Telo CLI - Command-line interface for the Telo runtime.",
5
5
  "keywords": [
6
6
  "telo",
@@ -34,11 +34,11 @@
34
34
  "dist"
35
35
  ],
36
36
  "dependencies": {
37
- "@telorun/analyzer": "0.62.1",
37
+ "@telorun/analyzer": "0.63.0",
38
38
  "@telorun/glob": "0.2.0",
39
- "@telorun/ide-support": "0.14.1",
40
- "@telorun/kernel": "0.78.0",
41
- "@telorun/sdk": "0.77.0",
39
+ "@telorun/ide-support": "0.15.0",
40
+ "@telorun/kernel": "0.79.0",
41
+ "@telorun/sdk": "0.79.0",
42
42
  "@telorun/templating": "0.16.0",
43
43
  "dotenv": "^17.4.0",
44
44
  "packageurl-js": "^2.0.1",
@@ -55,7 +55,7 @@
55
55
  "nock": "^14.0.15",
56
56
  "typescript": "^5.0.0",
57
57
  "vitest": "^2.1.8",
58
- "@telorun/debug-ui": "0.6.1"
58
+ "@telorun/debug-ui": "0.6.2"
59
59
  },
60
60
  "overrides": {
61
61
  "@telorun/analyzer": "$@telorun/analyzer",