@pinta-ai/pinta-cc 1.3.2 → 1.4.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pinta-ai",
3
3
  "owner": {
4
- "name": "awarecorp",
4
+ "name": "pinta-ai",
5
5
  "email": "dev@pinta.sh"
6
6
  },
7
7
  "plugins": [
@@ -9,11 +9,11 @@
9
9
  "name": "pinta-cc",
10
10
  "source": {
11
11
  "source": "url",
12
- "url": "https://github.com/awarecorp/pinta-cc.git"
12
+ "url": "https://github.com/pinta-ai/pinta-cc.git"
13
13
  },
14
14
  "description": "Claude Code security monitoring plugin — emits OTLP spans for hook events and fail-closes on missing Pinta identity.",
15
15
  "homepage": "https://pinta.sh",
16
- "repository": "https://github.com/awarecorp/pinta-cc",
16
+ "repository": "https://github.com/pinta-ai/pinta-cc",
17
17
  "category": "security"
18
18
  }
19
19
  ]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pinta-cc",
3
3
  "description": "Generic OTLP forwarder for Claude Code hook events. Converts hook events into OTLP/HTTP spans and sends them to any OpenTelemetry-compatible collector.",
4
- "version": "1.3.2",
4
+ "version": "1.4.1",
5
5
  "license": "PolyForm-Noncommercial-1.0.0",
6
6
  "userConfig": {
7
7
  "endpoint": {
package/README.md CHANGED
@@ -16,7 +16,7 @@ Converts Claude Code hook events into OTLP/HTTP spans and forwards them to any O
16
16
  | Channel | Install path | Auto-update |
17
17
  |---------|-------------|-------------|
18
18
  | **Pinta Manager v0.2+** | Manager installs and configures automatically | Yes — on manager reconcile |
19
- | **Marketplace `pinta-cc@pinta-ai`** | `/plugin marketplace add awarecorp/pinta-cc` then `/plugin install pinta-cc@pinta-ai` | Yes — on Claude Code startup |
19
+ | **Marketplace `pinta-cc@pinta-ai`** | `/plugin marketplace add pinta-ai/pinta-cc` then `/plugin install pinta-cc@pinta-ai` | Yes — on Claude Code startup |
20
20
 
21
21
  ## Installation
22
22
 
@@ -27,7 +27,7 @@ Pinta Manager v0.2+ handles installation and configuration automatically. No man
27
27
  ### Marketplace
28
28
 
29
29
  ```bash
30
- /plugin marketplace add awarecorp/pinta-cc
30
+ /plugin marketplace add pinta-ai/pinta-cc
31
31
  /plugin install pinta-cc@pinta-ai
32
32
  ```
33
33
 
@@ -36,13 +36,13 @@ After installation, Claude Code automatically pulls new versions from the market
36
36
  ### Direct from GitHub
37
37
 
38
38
  ```bash
39
- claude plugin install github:awarecorp/pinta-cc
39
+ claude plugin install github:pinta-ai/pinta-cc
40
40
  ```
41
41
 
42
42
  ### Local development
43
43
 
44
44
  ```bash
45
- git clone https://github.com/awarecorp/pinta-cc.git
45
+ git clone https://github.com/pinta-ai/pinta-cc.git
46
46
  cd pinta-cc
47
47
  npm install && npm run build
48
48
  claude --plugin-dir .
@@ -2,6 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.evaluateGuard = evaluateGuard;
4
4
  const TIMEOUT_MS = 10_000;
5
+ // Self-identify to the manager's guard route so it can attribute calls to this
6
+ // adaptor (the route parses `pinta-*/<version>` out of the User-Agent). Keep the
7
+ // version in sync with package.json.
8
+ const GUARD_UA = 'pinta-cc/1.4.1';
5
9
  function sleep(ms) {
6
10
  return new Promise((_, reject) => setTimeout(() => {
7
11
  const err = new Error('Guard request timed out');
@@ -21,6 +25,7 @@ async function evaluateGuard(input, endpoint) {
21
25
  method: 'POST',
22
26
  headers: {
23
27
  'content-type': 'application/json',
28
+ 'user-agent': GUARD_UA,
24
29
  'x-pinta-relay-token': process.env.PINTA_RELAY_TOKEN ?? '',
25
30
  },
26
31
  body: JSON.stringify({ input }),
@@ -1 +1 @@
1
- {"version":3,"file":"guard.js","sourceRoot":"","sources":["../../src/core/guard.ts"],"names":[],"mappings":";;AA8BA,sCAsCC;AAlDD,MAAM,UAAU,GAAG,MAAM,CAAC;AAE1B,SAAS,KAAK,CAAC,EAAU;IACvB,OAAO,IAAI,OAAO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AAI,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC;IACxH,CAAC;AACH,CAAC"}
package/dist/core/otlp.js CHANGED
@@ -12,7 +12,7 @@ const fs_1 = __importDefault(require("fs"));
12
12
  const os_1 = __importDefault(require("os"));
13
13
  const path_1 = __importDefault(require("path"));
14
14
  const redact_js_1 = require("./redact.js");
15
- const PLUGIN_VERSION = "1.2.0"; // keep in sync with .claude-plugin/plugin.json
15
+ const PLUGIN_VERSION = "1.4.1"; // keep in sync with .claude-plugin/plugin.json
16
16
  /**
17
17
  * Resolve the Claude Code CLI version by walking up from the binary path
18
18
  * (CLAUDE_CODE_EXECPATH) until we find the `@anthropic-ai/claude-code`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinta-ai/pinta-cc",
3
- "version": "1.3.2",
3
+ "version": "1.4.1",
4
4
  "description": "Generic OTLP forwarder for Claude Code hook events",
5
5
  "main": "dist/index.js",
6
6
  "license": "PolyForm-Noncommercial-1.0.0",
@@ -14,13 +14,14 @@
14
14
  ],
15
15
  "repository": {
16
16
  "type": "git",
17
- "url": "https://github.com/awarecorp/pinta-cc.git"
17
+ "url": "https://github.com/pinta-ai/pinta-cc.git"
18
18
  },
19
- "homepage": "https://github.com/awarecorp/pinta-cc#readme",
19
+ "homepage": "https://github.com/pinta-ai/pinta-cc#readme",
20
20
  "bugs": {
21
- "url": "https://github.com/awarecorp/pinta-cc/issues"
21
+ "url": "https://github.com/pinta-ai/pinta-cc/issues"
22
22
  },
23
23
  "scripts": {
24
+ "bump": "node scripts/bump.mjs",
24
25
  "build": "tsc",
25
26
  "dev": "tsc --watch",
26
27
  "test": "vitest run",