@praxis-framework/seed 0.7.0 → 0.7.1
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/dist/template.d.ts +7 -5
- package/dist/template.d.ts.map +1 -1
- package/dist/template.js +12 -5
- package/dist/template.js.map +1 -1
- package/package.json +1 -2
- /package/{template → dist/template}/.env.example +0 -0
- /package/{template → dist/template}/CLAUDE.md +0 -0
- /package/{template → dist/template}/_gitignore +0 -0
- /package/{template → dist/template}/docker-compose.yml +0 -0
- /package/{template → dist/template}/escalations/README.md +0 -0
- /package/{template → dist/template}/lib/.gitkeep +0 -0
- /package/{template → dist/template}/lib/autonomy.yaml +0 -0
- /package/{template → dist/template}/lib/business-context.yaml +0 -0
- /package/{template → dist/template}/lib/output-schemas.yaml +0 -0
- /package/{template → dist/template}/lib/tools.yaml +0 -0
- /package/{template → dist/template}/memory/README.md +0 -0
- /package/{template → dist/template}/memory/accounts/.gitkeep +0 -0
- /package/{template → dist/template}/memory/notes/.gitkeep +0 -0
- /package/{template → dist/template}/memory/people/.gitkeep +0 -0
- /package/{template → dist/template}/persona.md +0 -0
- /package/{template → dist/template}/verbs/escalate.md +0 -0
- /package/{template → dist/template}/verbs/proposed/README.md +0 -0
package/dist/template.d.ts
CHANGED
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Resolution order:
|
|
5
5
|
* 1. Explicit override (`override` arg).
|
|
6
|
-
* 2. `<
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* 3.
|
|
10
|
-
*
|
|
6
|
+
* 2. `<here>/template/` — the bundled location. The build copies the
|
|
7
|
+
* scaffolding to `dist/template/`, so in a published/compiled install
|
|
8
|
+
* `here` is `dist/` and this resolves the shipped template.
|
|
9
|
+
* 3. `<package-root>/template/` — for when a published build bundles the
|
|
10
|
+
* template alongside the package root rather than next to the compiled JS.
|
|
11
|
+
* 4. Walk up from the package directory looking for a `template/` sibling.
|
|
12
|
+
* Handles the monorepo-dev case: `packages/seed/src/` → `packages/seed/`
|
|
11
13
|
* → `packages//` → repo-root, where `template/` lives.
|
|
12
14
|
*
|
|
13
15
|
* Throws `SeedError('TEMPLATE_MISSING')` if nothing matches.
|
package/dist/template.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../src/template.ts"],"names":[],"mappings":"AAMA
|
|
1
|
+
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../src/template.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAqC7D"}
|
package/dist/template.js
CHANGED
|
@@ -7,11 +7,13 @@ import { SeedError } from './types.js';
|
|
|
7
7
|
*
|
|
8
8
|
* Resolution order:
|
|
9
9
|
* 1. Explicit override (`override` arg).
|
|
10
|
-
* 2. `<
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* 3.
|
|
14
|
-
*
|
|
10
|
+
* 2. `<here>/template/` — the bundled location. The build copies the
|
|
11
|
+
* scaffolding to `dist/template/`, so in a published/compiled install
|
|
12
|
+
* `here` is `dist/` and this resolves the shipped template.
|
|
13
|
+
* 3. `<package-root>/template/` — for when a published build bundles the
|
|
14
|
+
* template alongside the package root rather than next to the compiled JS.
|
|
15
|
+
* 4. Walk up from the package directory looking for a `template/` sibling.
|
|
16
|
+
* Handles the monorepo-dev case: `packages/seed/src/` → `packages/seed/`
|
|
15
17
|
* → `packages//` → repo-root, where `template/` lives.
|
|
16
18
|
*
|
|
17
19
|
* Throws `SeedError('TEMPLATE_MISSING')` if nothing matches.
|
|
@@ -26,6 +28,11 @@ export function resolveTemplatePath(override) {
|
|
|
26
28
|
// src/template.ts (dev) → src/ → packages/seed/
|
|
27
29
|
// dist/template.js (build) → dist/ → packages/seed/
|
|
28
30
|
const here = fileURLToPath(new URL('.', import.meta.url));
|
|
31
|
+
// Bundled location: the build copies the scaffolding to dist/template/, so
|
|
32
|
+
// in a compiled install `here` is dist/ and this is the shipped template.
|
|
33
|
+
const shipped = path.join(here, 'template');
|
|
34
|
+
if (existsSync(shipped))
|
|
35
|
+
return shipped;
|
|
29
36
|
const packageRoot = path.resolve(here, '..');
|
|
30
37
|
const bundled = path.join(packageRoot, 'template');
|
|
31
38
|
if (existsSync(bundled))
|
package/dist/template.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../src/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../src/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,mBAAmB,CAAC,QAAiB;IACnD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,SAAS,CAAC,0CAA0C,QAAQ,EAAE,EAAE,kBAAkB,CAAC,CAAC;QAChG,CAAC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;IAED,gDAAgD;IAChD,oDAAoD;IACpD,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAE1D,2EAA2E;IAC3E,0EAA0E;IAC1E,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAC5C,IAAI,UAAU,CAAC,OAAO,CAAC;QAAE,OAAO,OAAO,CAAC;IAExC,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAE7C,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IACnD,IAAI,UAAU,CAAC,OAAO,CAAC;QAAE,OAAO,OAAO,CAAC;IAExC,oDAAoD;IACpD,IAAI,MAAM,GAAG,WAAW,CAAC;IACzB,sEAAsE;IACtE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9B,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QAChD,IAAI,UAAU,CAAC,SAAS,CAAC;YAAE,OAAO,SAAS,CAAC;QAC5C,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,MAAM,KAAK,MAAM;YAAE,MAAM;QAC7B,MAAM,GAAG,MAAM,CAAC;IAClB,CAAC;IAED,MAAM,IAAI,SAAS,CACjB,gGAAgG,EAChG,kBAAkB,CACnB,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxis-framework/seed",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Shared role-seeding logic — writes a populated praxis role from a template into a target directory",
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"dist",
|
|
17
|
-
"template",
|
|
18
17
|
"README.md"
|
|
19
18
|
],
|
|
20
19
|
"repository": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|