@orkestrel/scaffold 0.0.13 → 0.0.14
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/host/claude/agents/orkestrel.md +41 -38
- package/dist/src/core/index.cjs +10 -9
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.d.cts +1 -1
- package/dist/src/core/index.d.ts +1 -1
- package/dist/src/core/index.js +10 -9
- package/dist/src/core/index.js.map +1 -1
- package/package.json +3 -2
|
@@ -2276,7 +2276,7 @@ export declare function coreViteConfig(browser?: boolean): string;
|
|
|
2276
2276
|
export declare function rootViteConfig(src: readonly Environment[], facts?: ViteFacts): string;
|
|
2277
2277
|
|
|
2278
2278
|
/** The devDependency range generated packages pin `@orkestrel/scaffold` at. */
|
|
2279
|
-
export declare const SCAFFOLD_RANGE = "^0.0.
|
|
2279
|
+
export declare const SCAFFOLD_RANGE = "^0.0.14";
|
|
2280
2280
|
|
|
2281
2281
|
/**
|
|
2282
2282
|
* Carries a `ScaffoldErrorCode` + optional `context` (AGENTS §12).
|
package/dist/src/core/index.d.ts
CHANGED
|
@@ -2276,7 +2276,7 @@ export declare function coreViteConfig(browser?: boolean): string;
|
|
|
2276
2276
|
export declare function rootViteConfig(src: readonly Environment[], facts?: ViteFacts): string;
|
|
2277
2277
|
|
|
2278
2278
|
/** The devDependency range generated packages pin `@orkestrel/scaffold` at. */
|
|
2279
|
-
export declare const SCAFFOLD_RANGE = "^0.0.
|
|
2279
|
+
export declare const SCAFFOLD_RANGE = "^0.0.14";
|
|
2280
2280
|
|
|
2281
2281
|
/**
|
|
2282
2282
|
* Carries a `ScaffoldErrorCode` + optional `context` (AGENTS §12).
|
package/dist/src/core/index.js
CHANGED
|
@@ -226,7 +226,7 @@ var DEFAULT_VERSION = "0.0.1";
|
|
|
226
226
|
/** The `engines.node` range the `blueprint` builder fills. */
|
|
227
227
|
var DEFAULT_ENGINES = `>=${MINIMUM_NODE_VERSION}`;
|
|
228
228
|
/** The devDependency range generated packages pin `@orkestrel/scaffold` at. */
|
|
229
|
-
var SCAFFOLD_RANGE = "^0.0.
|
|
229
|
+
var SCAFFOLD_RANGE = "^0.0.14";
|
|
230
230
|
/** Tooling versions shared by scaffold and every generated workspace. */
|
|
231
231
|
var BASE_DEV_DEPENDENCIES = Object.freeze({
|
|
232
232
|
"@microsoft/api-extractor": "^7.58.12",
|
|
@@ -8652,8 +8652,8 @@ ${EXPORT_KEYWORD} ${FUNCTION_KEYWORD} exportsFor(specifier: string): readonly st
|
|
|
8652
8652
|
function testArtifacts(spec, pascal) {
|
|
8653
8653
|
const hasBrowser = spec.src.includes("browser") || spec.app.includes("browser");
|
|
8654
8654
|
const hasVue = spec.app.includes("browser");
|
|
8655
|
-
const browserPolicySpecifier = hasBrowser ? ",
|
|
8656
|
-
const browserPolicyImport = hasBrowser ? "import { chromium } from 'playwright'" : "";
|
|
8655
|
+
const browserPolicySpecifier = hasBrowser ? ", accessSync, constants as FS_CONSTANTS, statSync" : "";
|
|
8656
|
+
const browserPolicyImport = hasBrowser ? "import { chromium } from 'playwright'\nimport { resolveChromium } from '../vite.config.js'" : "";
|
|
8657
8657
|
const vuePolicyImport = hasVue ? "import { parse as parseVue } from 'vue/compiler-sfc'" : "";
|
|
8658
8658
|
const workspacePolicyAssertion = hasVue ? `expect(
|
|
8659
8659
|
inspectCodingWorkspace(process.cwd(), (path, content) => {
|
|
@@ -8665,12 +8665,13 @@ function testArtifacts(spec, pascal) {
|
|
|
8665
8665
|
}),
|
|
8666
8666
|
).toEqual([])` : "expect(inspectCodingWorkspace(process.cwd())).toEqual([])";
|
|
8667
8667
|
const browserPolicyTest = hasBrowser ? `
|
|
8668
|
-
it
|
|
8669
|
-
|
|
8670
|
-
()
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8668
|
+
it('resolves Chromium only to a real executable file', () => {
|
|
8669
|
+
const chromiumPath = resolveChromium(chromium.executablePath())
|
|
8670
|
+
if (chromiumPath === undefined) return
|
|
8671
|
+
|
|
8672
|
+
expect(statSync(chromiumPath).isFile()).toBe(true)
|
|
8673
|
+
expect(() => accessSync(chromiumPath, FS_CONSTANTS.X_OK)).not.toThrow()
|
|
8674
|
+
})` : "";
|
|
8674
8675
|
const artifacts = [fillArtifact("tests/setup.ts", "tests", "setup", {}), fillArtifact("tests/policy.test.ts", "tests", "policyTest", {
|
|
8675
8676
|
browserPolicySpecifier,
|
|
8676
8677
|
browserPolicyImport,
|