bamboo-agents 0.1.5-dev.46.a33345f → 0.1.5-dev.47.e6dcb2e
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/VERSION +1 -1
- package/dist/index.js +20 -3
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.5-dev.
|
|
1
|
+
0.1.5-dev.47.e6dcb2e
|
package/dist/index.js
CHANGED
|
@@ -3037,7 +3037,7 @@ var VERSION;
|
|
|
3037
3037
|
var init_version = __esm({
|
|
3038
3038
|
"src/version.ts"() {
|
|
3039
3039
|
"use strict";
|
|
3040
|
-
VERSION = "0.1.5-dev.
|
|
3040
|
+
VERSION = "0.1.5-dev.47.e6dcb2e";
|
|
3041
3041
|
}
|
|
3042
3042
|
});
|
|
3043
3043
|
|
|
@@ -12187,7 +12187,7 @@ var init_save = __esm({
|
|
|
12187
12187
|
});
|
|
12188
12188
|
|
|
12189
12189
|
// ../../src/lib/api-contracts/cli/context-health.ts
|
|
12190
|
-
var ScopeKindSchema, ScopeSchema, CriterionMetricsSchema, StatusSchema, CriterionContributionSchema, CriterionResultSchema, BucketScoresSchema, ResolvedScopeSchema, GapsSchema, ContextHealthResponseSchema;
|
|
12190
|
+
var ScopeKindSchema, ScopeSchema, CriterionMetricsSchema, StatusSchema, CriterionContributionSchema, CriterionResultSchema, BucketScoresSchema, ResolvedScopeSchema, GapsSchema, HealthyResponseSchema, UnavailableResponseSchema, ContextHealthResponseSchema;
|
|
12191
12191
|
var init_context_health = __esm({
|
|
12192
12192
|
"../../src/lib/api-contracts/cli/context-health.ts"() {
|
|
12193
12193
|
init_zod();
|
|
@@ -12239,7 +12239,8 @@ var init_context_health = __esm({
|
|
|
12239
12239
|
/** Criterion keys that are at "basic" status (partially filled). */
|
|
12240
12240
|
basic: external_exports.array(external_exports.string())
|
|
12241
12241
|
});
|
|
12242
|
-
|
|
12242
|
+
HealthyResponseSchema = external_exports.object({
|
|
12243
|
+
available: external_exports.literal(true),
|
|
12243
12244
|
scope: ScopeSchema,
|
|
12244
12245
|
grade: external_exports.enum(["A", "B", "C", "D", "F"]),
|
|
12245
12246
|
score: external_exports.number(),
|
|
@@ -12250,6 +12251,15 @@ var init_context_health = __esm({
|
|
|
12250
12251
|
* don't need to iterate the full results array. */
|
|
12251
12252
|
gaps: GapsSchema
|
|
12252
12253
|
});
|
|
12254
|
+
UnavailableResponseSchema = external_exports.object({
|
|
12255
|
+
available: external_exports.literal(false),
|
|
12256
|
+
/** Short, human-readable reason health is unavailable. */
|
|
12257
|
+
reason: external_exports.string()
|
|
12258
|
+
});
|
|
12259
|
+
ContextHealthResponseSchema = external_exports.discriminatedUnion("available", [
|
|
12260
|
+
HealthyResponseSchema,
|
|
12261
|
+
UnavailableResponseSchema
|
|
12262
|
+
]);
|
|
12253
12263
|
}
|
|
12254
12264
|
});
|
|
12255
12265
|
|
|
@@ -16262,6 +16272,13 @@ async function runContextHealth(options) {
|
|
|
16262
16272
|
console.log(JSON.stringify(data, null, 2));
|
|
16263
16273
|
return;
|
|
16264
16274
|
}
|
|
16275
|
+
if (!data.available) {
|
|
16276
|
+
console.log("");
|
|
16277
|
+
console.log(" Context health is unavailable right now.");
|
|
16278
|
+
console.log(` (${data.reason})`);
|
|
16279
|
+
console.log("");
|
|
16280
|
+
return;
|
|
16281
|
+
}
|
|
16265
16282
|
printHealth(data);
|
|
16266
16283
|
}
|
|
16267
16284
|
var init_context = __esm({
|