pi-canary 1.0.0 → 1.0.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.
@@ -0,0 +1,16 @@
1
+ name: Publish to npm
2
+ on:
3
+ push:
4
+ tags: ['v*']
5
+ jobs:
6
+ publish:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v4
10
+ - uses: actions/setup-node@v4
11
+ with:
12
+ node-version: 20
13
+ registry-url: 'https://registry.npmjs.org'
14
+ - run: npm publish --access public
15
+ env:
16
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -25,8 +25,8 @@ const cfg = (() => {
25
25
  FAIL_COMPACT: 0,
26
26
  };
27
27
  try {
28
- const path = new URL("canary.json", import.meta.url).pathname;
29
- return { ...defaults, ...JSON.parse((globalThis as any).Deno.readTextFileSync(path)) };
28
+ const url = new URL("canary.json", import.meta.url);
29
+ return { ...defaults, ...JSON.parse((globalThis as any).Deno.readTextFileSync(url)) };
30
30
  } catch {
31
31
  return defaults;
32
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-canary",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Pi extension: silently verifies agent context awareness every turn using hidden canary tokens. KV-cache friendly.",
5
5
  "keywords": ["pi-package", "pi", "pi-coding-agent", "extension", "context-awareness", "canary", "safety", "verification", "local-llm"],
6
6
  "license": "MIT",