@pinta-ai/pinta-gemini 0.3.0 → 0.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -130,6 +130,7 @@ function asString(v) {
130
130
 
131
131
  // src/core/guard.ts
132
132
  var TIMEOUT_MS = 50;
133
+ var GUARD_UA = "pinta-gemini/0.4.1";
133
134
  function shellCommandText(toolInput) {
134
135
  if (!toolInput || typeof toolInput !== "object" || Array.isArray(toolInput)) return void 0;
135
136
  const o = toolInput;
@@ -155,6 +156,7 @@ async function evaluateGuard(input, endpoint, relayToken) {
155
156
  method: "POST",
156
157
  headers: {
157
158
  "content-type": "application/json",
159
+ "user-agent": GUARD_UA,
158
160
  "x-pinta-relay-token": relayToken ?? process.env.PINTA_RELAY_TOKEN ?? ""
159
161
  },
160
162
  body: JSON.stringify({ input })
@@ -408,7 +410,7 @@ function redact(input, opts = {}) {
408
410
  }
409
411
 
410
412
  // src/core/otlp.ts
411
- var PLUGIN_VERSION = "0.3.0";
413
+ var PLUGIN_VERSION = "0.4.1";
412
414
  var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
413
415
  function ulidToTraceId(ulid) {
414
416
  if (ulid.length !== 26) throw new Error(`ulidToTraceId: expected 26 chars, got ${ulid.length}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinta-ai/pinta-gemini",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "description": "Unified OTLP forwarder + guard adapter for Gemini CLI and Antigravity (agy v1.0.x / 2.0) hooks",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -16,6 +16,7 @@
16
16
  "url": "git+https://github.com/pinta-ai/pinta-gemini.git"
17
17
  },
18
18
  "scripts": {
19
+ "bump": "node scripts/bump.mjs",
19
20
  "build": "esbuild src/index.ts --bundle --platform=node --format=esm --target=node18 --outfile=dist/index.js",
20
21
  "test": "vitest run",
21
22
  "install-hooks": "tsx tools/install-hooks.ts",