@ericrisco/rsc 1.3.2 → 1.3.3

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/manifest.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.2",
2
+ "version": "1.3.3",
3
3
  "counts": {
4
4
  "skills": 272,
5
5
  "agents": 33,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ericrisco/rsc",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "A guided harness builder that turns your goal into a minimal, verified AI-agent setup using strict best practices.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -18,6 +18,7 @@
18
18
  // read. Anything it cannot read with certainty (editor commit, -F file, --amend
19
19
  // --no-edit, an unparseable command) is ALLOWED: a guard that guesses is a guard that
20
20
  // gets turned off. Every deny names its recovery. Opt out with .rsc/.no-gitmoji.
21
+ import { pathToFileURL } from 'node:url';
21
22
  import { existsSync, readFileSync } from 'node:fs';
22
23
  import { join } from 'node:path';
23
24
 
@@ -221,7 +222,7 @@ export function denyMessage(message) {
221
222
 
222
223
  // ---- hook entrypoint -----------------------------------------------------------
223
224
  // Skipped when imported by a test (P2: the mechanism is testable without a subprocess).
224
- if (import.meta.url === `file://${process.argv[1]}`) {
225
+ if (import.meta.url === pathToFileURL(process.argv[1]).href) {
225
226
  const root = process.argv[2] || process.cwd();
226
227
  const allow = () => process.exit(0);
227
228
 
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ import { pathToFileURL } from 'node:url';
2
3
  import { existsSync, readFileSync } from 'node:fs';
3
4
  import { resolve, join, dirname } from 'node:path';
4
5
  import { capture, resume } from './session-memory-core.mjs';
@@ -125,7 +126,7 @@ function stdinJson() {
125
126
  }
126
127
  }
127
128
 
128
- if (import.meta.url === `file://${process.argv[1]}`) {
129
+ if (import.meta.url === pathToFileURL(process.argv[1]).href) {
129
130
  const result = handleLifecycle({ target: process.argv[2], event: process.argv[3], native: stdinJson() });
130
131
  process.stdout.write(`${JSON.stringify(result.output)}\n`);
131
132
  }