@plexus-ms/cli-template 0.0.0-stage → 0.130.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 (55) hide show
  1. package/LICENSE.copier +25 -0
  2. package/dist/bin.d.ts +3 -0
  3. package/dist/bin.d.ts.map +1 -0
  4. package/dist/bin.js +6 -0
  5. package/dist/bin.js.map +1 -0
  6. package/dist/cli.d.ts +12 -0
  7. package/dist/cli.d.ts.map +1 -0
  8. package/dist/cli.js +412 -0
  9. package/dist/cli.js.map +1 -0
  10. package/dist/directory.d.ts +16 -0
  11. package/dist/directory.d.ts.map +1 -0
  12. package/dist/directory.js +240 -0
  13. package/dist/directory.js.map +1 -0
  14. package/dist/errors.d.ts +8 -0
  15. package/dist/errors.d.ts.map +1 -0
  16. package/dist/errors.js +15 -0
  17. package/dist/errors.js.map +1 -0
  18. package/dist/files.d.ts +17 -0
  19. package/dist/files.d.ts.map +1 -0
  20. package/dist/files.js +209 -0
  21. package/dist/files.js.map +1 -0
  22. package/dist/git-merge-file.d.ts +4 -0
  23. package/dist/git-merge-file.d.ts.map +1 -0
  24. package/dist/git-merge-file.js +95 -0
  25. package/dist/git-merge-file.js.map +1 -0
  26. package/dist/index.d.ts +5 -0
  27. package/dist/index.d.ts.map +1 -0
  28. package/dist/index.js +15 -0
  29. package/dist/index.js.map +1 -0
  30. package/dist/jinja.d.ts +7 -0
  31. package/dist/jinja.d.ts.map +1 -0
  32. package/dist/jinja.js +36 -0
  33. package/dist/jinja.js.map +1 -0
  34. package/dist/manifest.d.ts +13 -0
  35. package/dist/manifest.d.ts.map +1 -0
  36. package/dist/manifest.js +209 -0
  37. package/dist/manifest.js.map +1 -0
  38. package/dist/merge.d.ts +4 -0
  39. package/dist/merge.d.ts.map +1 -0
  40. package/dist/merge.js +185 -0
  41. package/dist/merge.js.map +1 -0
  42. package/dist/questions.d.ts +14 -0
  43. package/dist/questions.d.ts.map +1 -0
  44. package/dist/questions.js +290 -0
  45. package/dist/questions.js.map +1 -0
  46. package/dist/render.d.ts +4 -0
  47. package/dist/render.d.ts.map +1 -0
  48. package/dist/render.js +245 -0
  49. package/dist/render.js.map +1 -0
  50. package/dist/types.d.ts +130 -0
  51. package/dist/types.d.ts.map +1 -0
  52. package/dist/types.js +80 -0
  53. package/dist/types.js.map +1 -0
  54. package/package.json +43 -3
  55. package/README.md +0 -3
@@ -0,0 +1,130 @@
1
+ /** The bits of a mode that say what an entry is. */
2
+ export declare const MODE_TYPE = 61440;
3
+ /** A file's type bits. */
4
+ export declare const REGULAR = 32768;
5
+ /** An empty directory's type bits. */
6
+ export declare const DIRECTORY = 16384;
7
+ /** A symbolic link's type bits. */
8
+ export declare const SYMLINK = 40960;
9
+ /** Whether a file of `mode` is executable, by its owner's bit alone. */
10
+ export declare const isExecutable: (mode: number) => boolean;
11
+ /** A file's mode as the engine writes it: 0o100755 where executable, else 0o100644. */
12
+ export declare const fileMode: (executable: boolean) => number;
13
+ /** One entry of a tree: its bytes and its mode. */
14
+ export interface Entry {
15
+ readonly bytes: Uint8Array;
16
+ readonly mode: number;
17
+ }
18
+ /** A directory's content in memory, by relative path. */
19
+ export type Tree = ReadonlyMap<string, Entry>;
20
+ /** Answers by name, each a JSON value. */
21
+ export type Answers = Readonly<Record<string, unknown>>;
22
+ /** How `merge` treats a path. */
23
+ export type Policy = 'merge' | 'born-once';
24
+ /** The six types an answer is cast to. */
25
+ export type QuestionType = 'str' | 'int' | 'float' | 'bool' | 'yaml' | 'json';
26
+ /** A question a template owns, as its manifest declares it. A field the manifest leaves out is absent. */
27
+ export interface Question {
28
+ readonly name: string;
29
+ readonly type?: QuestionType;
30
+ /** Present when the manifest gives one, even as `null`. */
31
+ readonly default?: unknown;
32
+ readonly help?: string;
33
+ readonly when?: boolean | string;
34
+ readonly validator?: string;
35
+ /** A list of values, a map of label to value in the manifest's order, or Jinja that renders one. */
36
+ readonly choices?: string | readonly unknown[] | ReadonlyMap<string, unknown>;
37
+ }
38
+ /** An answer a template uses but does not own. Without a default it is required. */
39
+ export interface Read {
40
+ readonly name: string;
41
+ /** Present when the manifest gives one, even as `null`. */
42
+ readonly default?: unknown;
43
+ }
44
+ /** A template's manifest, read from its `template.yml`. */
45
+ export interface Manifest {
46
+ readonly name: string;
47
+ /** In the order the manifest declares them. */
48
+ readonly questions: readonly Question[];
49
+ readonly reads: readonly Read[];
50
+ /** By source path below `files/`, as it is written there; a path not listed is `merge`. */
51
+ readonly policies: ReadonlyMap<string, Policy>;
52
+ /** Each an argument vector, its first element the program. */
53
+ readonly birth: readonly (readonly string[])[];
54
+ }
55
+ /** One thing that kept `render` from producing a tree. */
56
+ export interface RenderError {
57
+ readonly message: string;
58
+ /** The template's name; where its manifest yields none, its position in the list, `#1` for the first. */
59
+ readonly template?: string;
60
+ /** A path in the template's tree, such as `files/a.txt.jinja` or `template.yml`. */
61
+ readonly path?: string;
62
+ readonly question?: string;
63
+ /** The second template, where the error is between two. */
64
+ readonly other?: string;
65
+ }
66
+ /** Who wrote a rendered path, and how `merge` treats it. */
67
+ export interface Origin {
68
+ readonly template: string;
69
+ readonly policy: Policy;
70
+ }
71
+ /** A birth command, by the template that declares it. */
72
+ export interface BirthCommand {
73
+ readonly template: string;
74
+ readonly command: readonly string[];
75
+ }
76
+ /** What `render` returns. */
77
+ export interface RenderResult {
78
+ readonly tree: Tree;
79
+ readonly answers: Answers;
80
+ /** The names of given answers that no template owns or reads. */
81
+ readonly unused: readonly string[];
82
+ /** Every path of `tree`, with its owner and policy. */
83
+ readonly files: ReadonlyMap<string, Origin>;
84
+ /** In the order the templates were given, each template's in its manifest's order. */
85
+ readonly birth: readonly BirthCommand[];
86
+ readonly errors: readonly RenderError[];
87
+ }
88
+ /** Each rendered path's policy, as a render's `files` gives it. */
89
+ export type Policies = ReadonlyMap<string, {
90
+ readonly policy: Policy;
91
+ }>;
92
+ /** What `merge` takes: two renders' trees and policies, and the current tree. */
93
+ export interface MergeInput {
94
+ readonly old: Tree;
95
+ readonly new: Tree;
96
+ readonly current: Tree;
97
+ readonly files: {
98
+ readonly old: Policies;
99
+ readonly new: Policies;
100
+ };
101
+ }
102
+ /** What happened to a path. */
103
+ export type Outcome = 'clean' | 'added' | 'deleted' | 'conflicted' | 'kept';
104
+ /** One path `merge` touched. */
105
+ export interface MergeEntry {
106
+ readonly path: string;
107
+ readonly outcome: Outcome;
108
+ }
109
+ /** What `merge` returns. */
110
+ export interface MergeResult {
111
+ /** The current tree with the merge applied. */
112
+ readonly tree: Tree;
113
+ /** In path order. */
114
+ readonly report: readonly MergeEntry[];
115
+ }
116
+ /** The three sides of one file; a side that lacks the file is empty bytes. */
117
+ export interface FileSides {
118
+ readonly path: string;
119
+ readonly old: Uint8Array;
120
+ readonly new: Uint8Array;
121
+ readonly current: Uint8Array;
122
+ }
123
+ /** The merged bytes of one file, and whether they hold a conflict. */
124
+ export interface MergedFile {
125
+ readonly bytes: Uint8Array;
126
+ readonly conflicted: boolean;
127
+ }
128
+ /** The three-way merge of one file. */
129
+ export type MergeFile = (sides: FileSides) => Promise<MergedFile>;
130
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAkEA,oDAAoD;AACpD,eAAO,MAAM,SAAS,QAAW,CAAC;AAClC,0BAA0B;AAC1B,eAAO,MAAM,OAAO,QAAW,CAAC;AAChC,sCAAsC;AACtC,eAAO,MAAM,SAAS,QAAW,CAAC;AAClC,mCAAmC;AACnC,eAAO,MAAM,OAAO,QAAW,CAAC;AAKhC,wEAAwE;AACxE,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,KAAG,OAAoC,CAAC;AAEjF,uFAAuF;AACvF,eAAO,MAAM,QAAQ,GAAI,YAAY,OAAO,KAAG,MAAgD,CAAC;AAEhG,mDAAmD;AACnD,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CA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;CAC9B;AAED,uCAAuC;AACvC,MAAM,MAAM,SAAS,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC"}
package/dist/types.js ADDED
@@ -0,0 +1,80 @@
1
+ // The core's types: what `render` and `merge` take and return. Both are plain
2
+ // functions over in-memory trees; nothing here reads or writes a directory.
3
+ // Trees and the per-path maps are `Map`s; converting them to and from JSON or
4
+ // a directory is the shell's, the CLI around the core.
5
+ //
6
+ // A tree maps a relative path to an entry: its bytes and its mode. Paths are
7
+ // POSIX, separated by `/`, with no leading `./`, no leading or trailing `/` and
8
+ // no `.` or `..` part. A mode is a POSIX mode as `lstat` gives it, so that its
9
+ // type bits (`MODE_TYPE`) say what the entry is:
10
+ //
11
+ // REGULAR a file; its bytes are its content, carried as they are, line
12
+ // endings included; of its permission bits only one means
13
+ // anything to the engine: executable when its owner may execute
14
+ // it (0o100), as git decides
15
+ // SYMLINK a symbolic link; its bytes are the link's target. A template
16
+ // holding one is an error, and `merge` never writes or deletes
17
+ // through one in the current tree
18
+ // DIRECTORY a directory that holds nothing; its bytes are empty. A directory
19
+ // that holds entries is implied by their paths and need not be
20
+ // listed
21
+ //
22
+ // Reducing a file's mode to that bit is `render`'s, when it writes an entry
23
+ // (files.ts): a rendered tree holds files of mode 0o100644 or 0o100755 only.
24
+ // `merge` compares a current file, whose mode comes from a directory, with them
25
+ // by the bit alone, and writes a render's mode with the bit merged (merge.ts).
26
+ //
27
+ // A template is a tree too: its manifest at `template.yml` and the files it
28
+ // renders below `files/`. The manifest's format is stated in manifest.ts; the
29
+ // reader turns it into a `Manifest`.
30
+ //
31
+ // Answers are one flat namespace of JSON values by name. `render` takes the
32
+ // given answers and returns the resolved ones: the answers to the questions the
33
+ // templates own, given or defaulted, without the questions `when` skipped. A
34
+ // given answer no template owns or reads is listed as unused, and is no error.
35
+ // Which answers each template sees, and in what order the templates resolve,
36
+ // is render.ts's.
37
+ //
38
+ // Besides answers, templates see the engine's variables. Their names start
39
+ // with `_`, which no question or read may take. There is one: `_templates`,
40
+ // the names of the templates rendered together, sorted by name.
41
+ //
42
+ // `render` reports what went wrong as data: every error it found, each a
43
+ // sentence for a person with the template, the path and the question it
44
+ // concerns where there is one. An error between two templates, a question both
45
+ // declare, a path both write, a cycle of reads or a read of a question its
46
+ // owner skips, names one in `template` and the other in `other`, and its
47
+ // message names both; render.ts says which is which. A render with errors writes nothing:
48
+ // its tree, its files and its birth commands are empty.
49
+ //
50
+ // Each rendered path has an owner, the template that wrote it, and a policy:
51
+ // `merge` (the default) or `born-once`, written when the path is absent and
52
+ // never touched again. `merge` takes the policies of both renders, the old
53
+ // one's for the paths only it has.
54
+ //
55
+ // `merge` takes three trees, the old render, the new render and the current
56
+ // directory, and returns the current tree with the merge applied, and one
57
+ // report entry per path it touched. The rules are the core's, the merge of one
58
+ // file's text is the injected `MergeFile`: the real one calls `git merge-file`,
59
+ // a fake stands in for it in tests. The core calls it only for a path that the
60
+ // new render and the current tree both hold as a file, whose bytes differ from
61
+ // each other and from the old render's (empty bytes where the old render lacks
62
+ // the path), and only when none of the three is binary, which the core decides.
63
+ // A side that lacks the file never reaches it, and modes stay with the core.
64
+ // It returns the merged bytes and whether they hold a conflict, which it
65
+ // detects by its own label lines.
66
+ /** The bits of a mode that say what an entry is. */
67
+ export const MODE_TYPE = 0o170000;
68
+ /** A file's type bits. */
69
+ export const REGULAR = 0o100000;
70
+ /** An empty directory's type bits. */
71
+ export const DIRECTORY = 0o040000;
72
+ /** A symbolic link's type bits. */
73
+ export const SYMLINK = 0o120000;
74
+ /** The one bit of a file's mode the engine carries: its owner may execute it, as git decides. */
75
+ const EXECUTABLE = 0o100;
76
+ /** Whether a file of `mode` is executable, by its owner's bit alone. */
77
+ export const isExecutable = (mode) => (mode & EXECUTABLE) !== 0;
78
+ /** A file's mode as the engine writes it: 0o100755 where executable, else 0o100644. */
79
+ export const fileMode = (executable) => REGULAR | (executable ? 0o755 : 0o644);
80
+ //# sourceMappingURL=types.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CAAmC;AACnC,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC;AAEhC,iGAAiG;AACjG,MAAM,UAAU,GAAG,KAAK,CAAC;AAEzB,wEAAwE;AACxE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAY,EAAW,EAAE,CAAC,CAAC,IAAI,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;AAEjF,uFAAuF;AACvF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,UAAmB,EAAU,EAAE,CAAC,OAAO,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,46 @@
1
1
  {
2
2
  "name": "@plexus-ms/cli-template",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.130.0",
4
+ "description": "plx-template, a generic alternative to copier for several templates in one directory",
5
+ "license": "GPL-3.0-or-later",
6
+ "type": "module",
7
+ "bin": {
8
+ "plx-template": "./dist/bin.js"
9
+ },
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js"
14
+ }
15
+ },
16
+ "types": "./dist/index.d.ts",
17
+ "files": [
18
+ "dist",
19
+ "LICENSE.copier"
20
+ ],
21
+ "engines": {
22
+ "node": ">=24.22.1"
23
+ },
24
+ "dependencies": {
25
+ "minijinja-js": "3.1.0",
26
+ "yaml": "^2.9.1"
27
+ },
28
+ "devDependencies": {
29
+ "@types/node": "^24.19.2",
30
+ "typescript": "^6.0.3"
31
+ },
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "git+https://github.com/plexus-ms/tooling.git",
35
+ "directory": "packages/cli-template"
36
+ },
37
+ "publishConfig": {
38
+ "registry": "https://registry.npmjs.org",
39
+ "access": "public"
40
+ },
41
+ "scripts": {
42
+ "build": "tsc",
43
+ "check": "tsc --noEmit",
44
+ "test": "node --test"
45
+ }
6
46
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.