@miniaxolotl/grove-codex-plugin 1.7.0 → 1.8.0
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/dist/bridge.js +37 -2
- package/dist/bridge.js.map +2 -2
- package/dist/cli.js +39 -4
- package/dist/cli.js.map +2 -2
- package/dist/hook.js +37 -2
- package/dist/hook.js.map +2 -2
- package/package.json +1 -1
- package/plugin.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -37,7 +37,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
37
37
|
var define_GROVE_TELEMETRY_default;
|
|
38
38
|
var init_define_GROVE_TELEMETRY = __esm({
|
|
39
39
|
"<define:__GROVE_TELEMETRY__>"() {
|
|
40
|
-
define_GROVE_TELEMETRY_default = { enabled: true, revision: "
|
|
40
|
+
define_GROVE_TELEMETRY_default = { enabled: true, revision: "c2d8d32e50f3cb197b6b83abdec64ef4423fbc11", version: "1.8.0", component: "cli", key: "phc_AqVrjhk7W2X2pFjyngY7uWxcSSRREfJhgr8mBmKbXYEh", cliDsn: "https://3f6d0711b5890dea4ce8e6ccf2a1a7fd@o4511632209346560.ingest.us.sentry.io/4512290791620608", apiDsn: "https://4524e8910e318110277babdfe818999b@o4511632209346560.ingest.us.sentry.io/4512290791489536" };
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
|
|
@@ -39633,6 +39633,31 @@ var dataCollection = {
|
|
|
39633
39633
|
stackFrameVariables: false,
|
|
39634
39634
|
frameContextLines: 0
|
|
39635
39635
|
};
|
|
39636
|
+
function safeSpanEnvelope(envelope, identity, dsn, sampleRate) {
|
|
39637
|
+
const spanItems = envelope[1].filter(([header]) => header.type === "span");
|
|
39638
|
+
if (!spanItems.length) return envelope;
|
|
39639
|
+
const payload = spanItems[0][1];
|
|
39640
|
+
const traceId = payload.items?.[0]?.trace_id;
|
|
39641
|
+
const publicKey = dsnFromString(dsn)?.publicKey;
|
|
39642
|
+
if (spanItems.length !== 1 || !traceId || !/^[a-f0-9]{32}$/.test(traceId) || !payload.items.every((span) => span.trace_id === traceId) || !publicKey || !Number.isFinite(sampleRate) || sampleRate <= 0 || sampleRate > 1)
|
|
39643
|
+
return null;
|
|
39644
|
+
const operation = payload.items[0].name;
|
|
39645
|
+
return [
|
|
39646
|
+
{
|
|
39647
|
+
...envelope[0],
|
|
39648
|
+
trace: {
|
|
39649
|
+
trace_id: traceId,
|
|
39650
|
+
public_key: publicKey,
|
|
39651
|
+
release: identity.release,
|
|
39652
|
+
environment: "production",
|
|
39653
|
+
sampled: "true",
|
|
39654
|
+
sample_rate: String(sampleRate),
|
|
39655
|
+
transaction: operations.includes(operation) ? operation : "command_run"
|
|
39656
|
+
}
|
|
39657
|
+
},
|
|
39658
|
+
envelope[1]
|
|
39659
|
+
];
|
|
39660
|
+
}
|
|
39636
39661
|
var attributes = (identity, raw = {}) => ({
|
|
39637
39662
|
...projectProperties(raw),
|
|
39638
39663
|
product: "grove",
|
|
@@ -39958,7 +39983,17 @@ var Reporter = class {
|
|
|
39958
39983
|
);
|
|
39959
39984
|
return {
|
|
39960
39985
|
...transport,
|
|
39961
|
-
send: (envelope) =>
|
|
39986
|
+
send: (envelope) => {
|
|
39987
|
+
if (!this.allowed())
|
|
39988
|
+
return Promise.resolve({ statusCode: 200 });
|
|
39989
|
+
const projected = safeSpanEnvelope(
|
|
39990
|
+
envelope,
|
|
39991
|
+
this.identity,
|
|
39992
|
+
config2.dsn,
|
|
39993
|
+
config2.sampleRate ?? 0.1
|
|
39994
|
+
);
|
|
39995
|
+
return projected ? transport.send(projected) : Promise.resolve({ statusCode: 200 });
|
|
39996
|
+
}
|
|
39962
39997
|
};
|
|
39963
39998
|
}
|
|
39964
39999
|
});
|
|
@@ -50346,7 +50381,7 @@ function applyEdits(text, edits) {
|
|
|
50346
50381
|
// packages/grove-claude-plugin/package.json
|
|
50347
50382
|
var package_default = {
|
|
50348
50383
|
name: "@miniaxolotl/grove-claude-plugin",
|
|
50349
|
-
version: "1.
|
|
50384
|
+
version: "1.8.0",
|
|
50350
50385
|
type: "module",
|
|
50351
50386
|
description: "Grove private memory tools and skills for Claude Code",
|
|
50352
50387
|
license: "MIT",
|
|
@@ -50373,7 +50408,7 @@ var package_default = {
|
|
|
50373
50408
|
// packages/grove-codex-plugin/package.json
|
|
50374
50409
|
var package_default2 = {
|
|
50375
50410
|
name: "@miniaxolotl/grove-codex-plugin",
|
|
50376
|
-
version: "1.
|
|
50411
|
+
version: "1.8.0",
|
|
50377
50412
|
type: "module",
|
|
50378
50413
|
description: "Grove private memory tools and skills for Codex",
|
|
50379
50414
|
license: "MIT",
|