@miniaxolotl/grove 1.11.6 → 1.11.13
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 +80 -6
- package/dist/bridge.js.map +2 -2
- package/dist/cli.js +82 -8
- package/dist/cli.js.map +2 -2
- package/dist/hook.js +75 -5
- package/dist/hook.js.map +2 -2
- package/dist/index.js +12 -3
- package/dist/index.js.map +2 -2
- package/dist/telemetry-build.json +1 -1
- package/package.json +2 -2
package/dist/bridge.js
CHANGED
|
@@ -5,11 +5,20 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __esm = (fn, res) => function __init() {
|
|
9
|
-
|
|
8
|
+
var __esm = (fn, res, err) => function __init() {
|
|
9
|
+
if (err) throw err[0];
|
|
10
|
+
try {
|
|
11
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
12
|
+
} catch (e) {
|
|
13
|
+
throw err = [e], e;
|
|
14
|
+
}
|
|
10
15
|
};
|
|
11
16
|
var __commonJS = (cb, mod) => function __require() {
|
|
12
|
-
|
|
17
|
+
try {
|
|
18
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
|
+
} catch (e) {
|
|
20
|
+
throw mod = 0, e;
|
|
21
|
+
}
|
|
13
22
|
};
|
|
14
23
|
var __export = (target, all) => {
|
|
15
24
|
for (var name in all)
|
|
@@ -36,7 +45,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
36
45
|
var define_GROVE_TELEMETRY_default;
|
|
37
46
|
var init_define_GROVE_TELEMETRY = __esm({
|
|
38
47
|
"<define:__GROVE_TELEMETRY__>"() {
|
|
39
|
-
define_GROVE_TELEMETRY_default = { enabled: true, revision: "
|
|
48
|
+
define_GROVE_TELEMETRY_default = { enabled: true, revision: "e72bd842c6b37fcb0ece8087b3673fbdb3a59ec5", version: "1.11.13", component: "cli", key: "phc_AqVrjhk7W2X2pFjyngY7uWxcSSRREfJhgr8mBmKbXYEh", cliDsn: "https://3f6d0711b5890dea4ce8e6ccf2a1a7fd@o4511632209346560.ingest.us.sentry.io/4512290791620608", apiDsn: "https://4524e8910e318110277babdfe818999b@o4511632209346560.ingest.us.sentry.io/4512290791489536" };
|
|
40
49
|
}
|
|
41
50
|
});
|
|
42
51
|
|
|
@@ -47025,11 +47034,64 @@ var events = [
|
|
|
47025
47034
|
"memory_created",
|
|
47026
47035
|
"memory_recalled",
|
|
47027
47036
|
"chat_completed",
|
|
47028
|
-
"$ai_generation"
|
|
47037
|
+
"$ai_generation",
|
|
47038
|
+
"ai_cache"
|
|
47029
47039
|
];
|
|
47030
47040
|
function projectProperties(input = {}) {
|
|
47031
47041
|
const output = {};
|
|
47032
47042
|
const enums = {
|
|
47043
|
+
failure_code: [
|
|
47044
|
+
"auth_unavailable",
|
|
47045
|
+
"provider_authentication",
|
|
47046
|
+
"provider_rate_limited",
|
|
47047
|
+
"provider_unavailable",
|
|
47048
|
+
"provider_timeout",
|
|
47049
|
+
"provider_invalid_response",
|
|
47050
|
+
"provider_empty_response",
|
|
47051
|
+
"provider_response_too_large",
|
|
47052
|
+
"inference_budget",
|
|
47053
|
+
"generation_invalid_response",
|
|
47054
|
+
"generation_incomplete",
|
|
47055
|
+
"generation_invalid_citation",
|
|
47056
|
+
"generation_invalid_reference",
|
|
47057
|
+
"generation_invalid_proposal",
|
|
47058
|
+
"generation_invalid_organization",
|
|
47059
|
+
"generation_invalid_lifecycle",
|
|
47060
|
+
"generation_invalid_web_citation",
|
|
47061
|
+
"generation_invalid_cursor",
|
|
47062
|
+
"generation_missing_document_evidence",
|
|
47063
|
+
"embedding_invalid_response",
|
|
47064
|
+
"embedding_profile_mismatch",
|
|
47065
|
+
"invalid_embedding",
|
|
47066
|
+
"decision_invalid_response"
|
|
47067
|
+
],
|
|
47068
|
+
failure_stage: ["response_json", "response_schema"],
|
|
47069
|
+
validation_field: [
|
|
47070
|
+
"message",
|
|
47071
|
+
"statements",
|
|
47072
|
+
"proposals",
|
|
47073
|
+
"organization",
|
|
47074
|
+
"lifecycle",
|
|
47075
|
+
"webStatements",
|
|
47076
|
+
"documentStatements",
|
|
47077
|
+
"title",
|
|
47078
|
+
"tags",
|
|
47079
|
+
"query",
|
|
47080
|
+
"intent",
|
|
47081
|
+
"references",
|
|
47082
|
+
"research",
|
|
47083
|
+
"organizeAfter"
|
|
47084
|
+
],
|
|
47085
|
+
cache_feature: [
|
|
47086
|
+
"query_embedding",
|
|
47087
|
+
"document_embedding",
|
|
47088
|
+
"organization",
|
|
47089
|
+
"classification",
|
|
47090
|
+
"planning",
|
|
47091
|
+
"answer",
|
|
47092
|
+
"research"
|
|
47093
|
+
],
|
|
47094
|
+
cache_status: ["fresh", "cached", "coalesced"],
|
|
47033
47095
|
operation: operations,
|
|
47034
47096
|
outcome: ["success", "unavailable", "error", "cancelled"],
|
|
47035
47097
|
command: [
|
|
@@ -47054,6 +47116,7 @@ function projectProperties(input = {}) {
|
|
|
47054
47116
|
output[key] = input[key];
|
|
47055
47117
|
for (const key of [
|
|
47056
47118
|
"duration_ms",
|
|
47119
|
+
"requests_avoided",
|
|
47057
47120
|
"result_count",
|
|
47058
47121
|
"input_tokens",
|
|
47059
47122
|
"output_tokens"
|
|
@@ -47464,11 +47527,22 @@ var Reporter = class {
|
|
|
47464
47527
|
operation(operation, started, outcome2, properties = {}, cause, identity = this.config.identity) {
|
|
47465
47528
|
if (!operations.includes(operation) || !Number.isFinite(started) || !opaqueIdentity(identity))
|
|
47466
47529
|
return;
|
|
47530
|
+
let diagnostics = {};
|
|
47531
|
+
try {
|
|
47532
|
+
if (cause && typeof cause === "object")
|
|
47533
|
+
diagnostics = projectProperties({
|
|
47534
|
+
failure_code: "code" in cause ? cause.code : void 0,
|
|
47535
|
+
failure_stage: "stage" in cause ? cause.stage : void 0,
|
|
47536
|
+
validation_field: "field" in cause ? cause.field : void 0
|
|
47537
|
+
});
|
|
47538
|
+
} catch {
|
|
47539
|
+
}
|
|
47467
47540
|
const ended = performance2.now();
|
|
47468
47541
|
this.enqueue({
|
|
47469
47542
|
event: "operation_completed",
|
|
47470
47543
|
properties: projectProperties({
|
|
47471
47544
|
...properties,
|
|
47545
|
+
...diagnostics,
|
|
47472
47546
|
operation,
|
|
47473
47547
|
outcome: outcome2,
|
|
47474
47548
|
duration_ms: ended - started
|
|
@@ -47479,7 +47553,7 @@ var Reporter = class {
|
|
|
47479
47553
|
error: outcome2 === "error" ? safeError(
|
|
47480
47554
|
{
|
|
47481
47555
|
type: void 0,
|
|
47482
|
-
tags: { operation, outcome: outcome2 },
|
|
47556
|
+
tags: { ...diagnostics, operation, outcome: outcome2 },
|
|
47483
47557
|
exception: {
|
|
47484
47558
|
values: [
|
|
47485
47559
|
{
|