@skastr0/prism 0.1.0 → 0.1.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/README.md CHANGED
@@ -10,4 +10,10 @@ bunx @skastr0/prism --version
10
10
  pnpm dlx @skastr0/prism --version
11
11
  ```
12
12
 
13
+ This npm package is intentionally a CLI distribution surface, not a public
14
+ authoring SDK. Prism plugin source files may still import helpers from
15
+ `"prism"` during compile; the CLI rewrites those authoring imports internally.
16
+ A stable runtime SDK export surface will be documented separately if Prism adds
17
+ one.
18
+
13
19
  The source repository and package documentation live at <https://github.com/skastr0/prism>.
package/bin/prism.js CHANGED
@@ -31,7 +31,8 @@ try {
31
31
  process.exit(1);
32
32
  }
33
33
 
34
- const binaryPath = join(dirname(packageJsonPath), "bin", "prism");
34
+ const platformPackageRoot = dirname(packageJsonPath);
35
+ const binaryPath = join(platformPackageRoot, "bin", "prism");
35
36
 
36
37
  if (!existsSync(binaryPath)) {
37
38
  console.error(`prism: platform binary not found at ${binaryPath}`);
@@ -39,6 +40,10 @@ if (!existsSync(binaryPath)) {
39
40
  }
40
41
 
41
42
  const result = spawnSync(binaryPath, process.argv.slice(2), {
43
+ env: {
44
+ ...process.env,
45
+ PRISM_RUNTIME_DEPS_PACKAGE_ROOT: platformPackageRoot,
46
+ },
42
47
  stdio: "inherit",
43
48
  });
44
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skastr0/prism",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "Unified plugin distribution CLI for AI coding harnesses.",
6
6
  "license": "MIT",
@@ -35,9 +35,9 @@
35
35
  "node": ">=18"
36
36
  },
37
37
  "optionalDependencies": {
38
- "@skastr0/prism-darwin-arm64": "0.1.0",
39
- "@skastr0/prism-darwin-x64": "0.1.0",
40
- "@skastr0/prism-linux-arm64": "0.1.0",
41
- "@skastr0/prism-linux-x64": "0.1.0"
38
+ "@skastr0/prism-darwin-arm64": "0.1.1",
39
+ "@skastr0/prism-darwin-x64": "0.1.1",
40
+ "@skastr0/prism-linux-arm64": "0.1.1",
41
+ "@skastr0/prism-linux-x64": "0.1.1"
42
42
  }
43
43
  }