@rasputin-ai/node 0.9.0 → 0.9.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-configuration-report.d.ts","sourceRoot":"","sources":["../../src/auto-instrumentation/format-configuration-report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,KAAK,wBAAwB,GAAG;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAClD,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,EAAE,kBAAkB,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;CAClB,CAAC;
|
|
1
|
+
{"version":3,"file":"format-configuration-report.d.ts","sourceRoot":"","sources":["../../src/auto-instrumentation/format-configuration-report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,KAAK,wBAAwB,GAAG;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAClD,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,EAAE,kBAAkB,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;CAClB,CAAC;AA8CF,eAAO,MAAM,yBAAyB,GAAI,OAAO,wBAAwB,KAAG,MAwF3E,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,MAI/B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -384,6 +384,9 @@ var issueHeadline = (issue) => {
|
|
|
384
384
|
if (issue.reason === "invalid_mapping") {
|
|
385
385
|
return `The configured package root for ${target} does not match this Git release.`;
|
|
386
386
|
}
|
|
387
|
+
if (issue.reason === "commit_not_found") {
|
|
388
|
+
return `GitHub does not have this release commit while locating ${target}.`;
|
|
389
|
+
}
|
|
387
390
|
return `GitHub could not be reached while locating ${target}.`;
|
|
388
391
|
};
|
|
389
392
|
var formatIssue = (issue) => {
|
|
@@ -402,8 +405,11 @@ var formatIssue = (issue) => {
|
|
|
402
405
|
var formatConfigurationReport = (input) => {
|
|
403
406
|
const packages = input.verification.packages ?? [];
|
|
404
407
|
const unresolved = input.verification.unresolved;
|
|
405
|
-
const mappingIssues = unresolved.filter(
|
|
408
|
+
const mappingIssues = unresolved.filter(
|
|
409
|
+
(issue) => issue.reason !== "github_unavailable" && issue.reason !== "commit_not_found"
|
|
410
|
+
);
|
|
406
411
|
const githubUnavailable = input.verification.status === "unavailable" || unresolved.some((issue) => issue.reason === "github_unavailable");
|
|
412
|
+
const commitNotFound = input.verification.status === "commit_not_found";
|
|
407
413
|
const verified = input.uploaded && input.verification.status === "verified";
|
|
408
414
|
const lines = [
|
|
409
415
|
...BANNER,
|
|
@@ -442,13 +448,19 @@ var formatConfigurationReport = (input) => {
|
|
|
442
448
|
lines.push("! upload failed");
|
|
443
449
|
} else {
|
|
444
450
|
lines.push("\u2713 uploaded");
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
)
|
|
451
|
+
if (verified) {
|
|
452
|
+
lines.push("\u2713 verified against GitHub");
|
|
453
|
+
} else if (commitNotFound) {
|
|
454
|
+
lines.push("! this Git commit was not found in the connected repository");
|
|
455
|
+
} else {
|
|
456
|
+
lines.push("! some source files could not be mapped to this Git release");
|
|
457
|
+
}
|
|
448
458
|
}
|
|
449
459
|
lines.push("", "GitHub");
|
|
450
460
|
if (!input.uploaded) {
|
|
451
461
|
lines.push("! not verified");
|
|
462
|
+
} else if (commitNotFound) {
|
|
463
|
+
lines.push("! push this commit to GitHub so Rasputin can map source");
|
|
452
464
|
} else if (githubUnavailable) {
|
|
453
465
|
lines.push("! repository is not connected, or this release could not be read");
|
|
454
466
|
} else {
|
|
@@ -595,7 +607,7 @@ var scheduleInstrumentationManifestUpload = (options) => {
|
|
|
595
607
|
failedAttempts = 0;
|
|
596
608
|
clearRetry();
|
|
597
609
|
if (verification.status === "verified") {
|
|
598
|
-
if (!loggedSuccess && options.logSuccess
|
|
610
|
+
if (!loggedSuccess && options.logSuccess === true) {
|
|
599
611
|
loggedSuccess = true;
|
|
600
612
|
console.info(report(manifest, true, verification));
|
|
601
613
|
}
|
|
@@ -4268,7 +4280,7 @@ var installGlobalHandlers = (client, options = {}) => {
|
|
|
4268
4280
|
|
|
4269
4281
|
// src/sdk-meta.ts
|
|
4270
4282
|
var SDK_NAME = "@rasputin-ai/node";
|
|
4271
|
-
var SDK_VERSION = "0.9.
|
|
4283
|
+
var SDK_VERSION = "0.9.1";
|
|
4272
4284
|
|
|
4273
4285
|
// src/rasputin-init.ts
|
|
4274
4286
|
var publicExecution = (runtime) => ({
|
package/dist/instrument/bun.js
CHANGED
|
@@ -1606,7 +1606,7 @@ import ts14 from "typescript";
|
|
|
1606
1606
|
import { originalPositionFor as originalPositionFor2, TraceMap as TraceMap3 } from "@jridgewell/trace-mapping";
|
|
1607
1607
|
|
|
1608
1608
|
// src/sdk-meta.ts
|
|
1609
|
-
var SDK_VERSION = "0.9.
|
|
1609
|
+
var SDK_VERSION = "0.9.1";
|
|
1610
1610
|
|
|
1611
1611
|
// src/auto-instrumentation/source-map-locations.ts
|
|
1612
1612
|
import { readFileSync } from "node:fs";
|
package/dist/instrument/node.js
CHANGED
|
@@ -1668,7 +1668,7 @@ import ts14 from "typescript";
|
|
|
1668
1668
|
import { originalPositionFor as originalPositionFor3, TraceMap as TraceMap4 } from "@jridgewell/trace-mapping";
|
|
1669
1669
|
|
|
1670
1670
|
// src/sdk-meta.ts
|
|
1671
|
-
var SDK_VERSION = "0.9.
|
|
1671
|
+
var SDK_VERSION = "0.9.1";
|
|
1672
1672
|
|
|
1673
1673
|
// src/auto-instrumentation/transform-disk-cache.ts
|
|
1674
1674
|
var projectCacheDir = () => {
|
package/dist/internal.js
CHANGED
|
@@ -26,6 +26,9 @@ var issueHeadline = (issue) => {
|
|
|
26
26
|
if (issue.reason === "invalid_mapping") {
|
|
27
27
|
return `The configured package root for ${target} does not match this Git release.`;
|
|
28
28
|
}
|
|
29
|
+
if (issue.reason === "commit_not_found") {
|
|
30
|
+
return `GitHub does not have this release commit while locating ${target}.`;
|
|
31
|
+
}
|
|
29
32
|
return `GitHub could not be reached while locating ${target}.`;
|
|
30
33
|
};
|
|
31
34
|
var formatIssue = (issue) => {
|
|
@@ -44,8 +47,11 @@ var formatIssue = (issue) => {
|
|
|
44
47
|
var formatConfigurationReport = (input) => {
|
|
45
48
|
const packages = input.verification.packages ?? [];
|
|
46
49
|
const unresolved = input.verification.unresolved;
|
|
47
|
-
const mappingIssues = unresolved.filter(
|
|
50
|
+
const mappingIssues = unresolved.filter(
|
|
51
|
+
(issue) => issue.reason !== "github_unavailable" && issue.reason !== "commit_not_found"
|
|
52
|
+
);
|
|
48
53
|
const githubUnavailable = input.verification.status === "unavailable" || unresolved.some((issue) => issue.reason === "github_unavailable");
|
|
54
|
+
const commitNotFound = input.verification.status === "commit_not_found";
|
|
49
55
|
const verified = input.uploaded && input.verification.status === "verified";
|
|
50
56
|
const lines = [
|
|
51
57
|
...BANNER,
|
|
@@ -84,13 +90,19 @@ var formatConfigurationReport = (input) => {
|
|
|
84
90
|
lines.push("! upload failed");
|
|
85
91
|
} else {
|
|
86
92
|
lines.push("\u2713 uploaded");
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
)
|
|
93
|
+
if (verified) {
|
|
94
|
+
lines.push("\u2713 verified against GitHub");
|
|
95
|
+
} else if (commitNotFound) {
|
|
96
|
+
lines.push("! this Git commit was not found in the connected repository");
|
|
97
|
+
} else {
|
|
98
|
+
lines.push("! some source files could not be mapped to this Git release");
|
|
99
|
+
}
|
|
90
100
|
}
|
|
91
101
|
lines.push("", "GitHub");
|
|
92
102
|
if (!input.uploaded) {
|
|
93
103
|
lines.push("! not verified");
|
|
104
|
+
} else if (commitNotFound) {
|
|
105
|
+
lines.push("! push this commit to GitHub so Rasputin can map source");
|
|
94
106
|
} else if (githubUnavailable) {
|
|
95
107
|
lines.push("! repository is not connected, or this release could not be read");
|
|
96
108
|
} else {
|
|
@@ -566,7 +578,7 @@ var scheduleInstrumentationManifestUpload = (options) => {
|
|
|
566
578
|
failedAttempts = 0;
|
|
567
579
|
clearRetry();
|
|
568
580
|
if (verification.status === "verified") {
|
|
569
|
-
if (!loggedSuccess && options.logSuccess
|
|
581
|
+
if (!loggedSuccess && options.logSuccess === true) {
|
|
570
582
|
loggedSuccess = true;
|
|
571
583
|
console.info(report(manifest, true, verification));
|
|
572
584
|
}
|
package/dist/sdk-meta.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rasputin-ai/node",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "Official Rasputin AI SDK for Node and Bun.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
52
|
-
"@rasputin-ai/core": "0.9.
|
|
52
|
+
"@rasputin-ai/core": "0.9.1",
|
|
53
53
|
"typescript": "5"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|