@withgauge/cli 0.10.0 → 0.10.2
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/index.js +131 -44
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -80,6 +80,8 @@ import { z as z3 } from "zod";
|
|
|
80
80
|
var checkStatusSchema = z3.enum(["pass", "attention", "unassessed"]);
|
|
81
81
|
var checklistItemSchema = z3.object({
|
|
82
82
|
label: z3.string().min(1),
|
|
83
|
+
/** Still running; distinct from a completed, unassessed finding. */
|
|
84
|
+
pending: z3.boolean().optional(),
|
|
83
85
|
status: checkStatusSchema,
|
|
84
86
|
evidence: z3.string().min(1),
|
|
85
87
|
/** Present when the item is backed by observed coding sessions rather than a
|
|
@@ -180,6 +182,7 @@ var checkProgressStatusSchema = z3.enum([
|
|
|
180
182
|
"failed"
|
|
181
183
|
]);
|
|
182
184
|
var progressSchema = z3.object({
|
|
185
|
+
revision: z3.string().optional(),
|
|
183
186
|
status: checkProgressStatusSchema,
|
|
184
187
|
/** Checks ahead of this one in the sessions queue; null when unknown. */
|
|
185
188
|
queuePosition: z3.number().int().nonnegative().nullable(),
|
|
@@ -971,6 +974,19 @@ var connectionSetSchema = z10.array(connectionSetEntrySchema).max(
|
|
|
971
974
|
MAX_CONNECTION_SET_ENTRIES,
|
|
972
975
|
`a run may attach at most ${MAX_CONNECTION_SET_ENTRIES} connections`
|
|
973
976
|
);
|
|
977
|
+
var connectionSummarySchema = z10.object({
|
|
978
|
+
id: z10.string(),
|
|
979
|
+
handle: z10.string(),
|
|
980
|
+
providerName: z10.string(),
|
|
981
|
+
credentialKey: z10.string(),
|
|
982
|
+
allowedHosts: z10.array(z10.string()),
|
|
983
|
+
profileSlug: z10.string(),
|
|
984
|
+
profileLabel: z10.string(),
|
|
985
|
+
kind: z10.enum(["static", "oauth"]),
|
|
986
|
+
last4: z10.string().nullable(),
|
|
987
|
+
createdAt: z10.string()
|
|
988
|
+
}).strict();
|
|
989
|
+
var listConnectionsResponseSchema = z10.object({ items: z10.array(connectionSummarySchema) }).strict();
|
|
974
990
|
|
|
975
991
|
// ../packages/api-schemas/src/dashboards.ts
|
|
976
992
|
import { z as z13 } from "zod";
|
|
@@ -1075,6 +1091,8 @@ var whereClauseSchema = z12.object({
|
|
|
1075
1091
|
});
|
|
1076
1092
|
var queryFiltersSchema = z12.object({
|
|
1077
1093
|
prompt: z12.string(),
|
|
1094
|
+
visibilityPrompt: z12.array(z12.string()),
|
|
1095
|
+
preferenceOnly: z12.boolean(),
|
|
1078
1096
|
topic: z12.array(z12.string()),
|
|
1079
1097
|
tag: z12.array(z12.string()),
|
|
1080
1098
|
repo: z12.array(z12.string()),
|
|
@@ -1162,11 +1180,24 @@ var widgetEncodingSchema = z13.object({
|
|
|
1162
1180
|
y: z13.array(z13.string())
|
|
1163
1181
|
// metric keys for the value axis
|
|
1164
1182
|
}).partial();
|
|
1183
|
+
var preferenceSpecSchema = z13.object({
|
|
1184
|
+
dataset: z13.literal("preference"),
|
|
1185
|
+
report: z13.enum([
|
|
1186
|
+
"ranking",
|
|
1187
|
+
"head_to_head",
|
|
1188
|
+
"recommended_over_time",
|
|
1189
|
+
"mentioned_over_time"
|
|
1190
|
+
])
|
|
1191
|
+
});
|
|
1192
|
+
var widgetSpecSchema = z13.union([
|
|
1193
|
+
querySpecSchema,
|
|
1194
|
+
preferenceSpecSchema
|
|
1195
|
+
]);
|
|
1165
1196
|
var widgetFields = {
|
|
1166
1197
|
id: z13.string().min(1),
|
|
1167
1198
|
title: z13.string(),
|
|
1168
1199
|
viz: vizTypeSchema,
|
|
1169
|
-
spec:
|
|
1200
|
+
spec: widgetSpecSchema,
|
|
1170
1201
|
// 12-col grid placement.
|
|
1171
1202
|
x: z13.number().int().min(0).max(11),
|
|
1172
1203
|
y: z13.number().int().min(0),
|
|
@@ -2763,6 +2794,15 @@ var estimateOptimizationBodySchema = z29.object({
|
|
|
2763
2794
|
...planShape,
|
|
2764
2795
|
target: targetSchema.optional()
|
|
2765
2796
|
}).strict().superRefine(refinePlan);
|
|
2797
|
+
var RUN_CREDIT_BASES = [
|
|
2798
|
+
"subject-history",
|
|
2799
|
+
"model-history",
|
|
2800
|
+
"catalog-rates",
|
|
2801
|
+
"platform-history",
|
|
2802
|
+
"byok",
|
|
2803
|
+
"reserve"
|
|
2804
|
+
];
|
|
2805
|
+
var runCreditBasisSchema = z29.enum(RUN_CREDIT_BASES);
|
|
2766
2806
|
var optimizationEstimateSchema = z29.object({
|
|
2767
2807
|
sampleCount: z29.number().int(),
|
|
2768
2808
|
maxRounds: z29.number().int(),
|
|
@@ -2772,7 +2812,11 @@ var optimizationEstimateSchema = z29.object({
|
|
|
2772
2812
|
leverPassCredits: z29.number(),
|
|
2773
2813
|
trialCredits: z29.number(),
|
|
2774
2814
|
/** Whole credits for the full climb; this is what start reserves. */
|
|
2775
|
-
estimate: z29.number().int()
|
|
2815
|
+
estimate: z29.number().int(),
|
|
2816
|
+
/** True when no price or history covered a model: a bound, not a forecast. */
|
|
2817
|
+
approximate: z29.boolean().default(false),
|
|
2818
|
+
/** Which rung priced the run, so the UI can say why a figure is what it is. */
|
|
2819
|
+
basis: runCreditBasisSchema.optional()
|
|
2776
2820
|
});
|
|
2777
2821
|
var diagnoseBodySchema = z29.object({
|
|
2778
2822
|
subjectKind: climbSubjectKindSchema,
|
|
@@ -4729,16 +4773,50 @@ function register7(program2) {
|
|
|
4729
4773
|
});
|
|
4730
4774
|
}
|
|
4731
4775
|
|
|
4776
|
+
// src/commands/connections.ts
|
|
4777
|
+
var connections_exports2 = {};
|
|
4778
|
+
__export(connections_exports2, {
|
|
4779
|
+
register: () => register8
|
|
4780
|
+
});
|
|
4781
|
+
function connectionsPath(org) {
|
|
4782
|
+
return `/api/v1/orgs/${encodeURIComponent(org)}/connections`;
|
|
4783
|
+
}
|
|
4784
|
+
function register8(program2) {
|
|
4785
|
+
const group = program2.command("connections").alias("credentials").description("Inspect the org's stored credentials (no secrets)");
|
|
4786
|
+
group.command("list").description("List credentials with the ids --connection accepts").action(async (_opts, cmd) => {
|
|
4787
|
+
const org = resolveOrg(cmd);
|
|
4788
|
+
const res = await createClient().get(
|
|
4789
|
+
connectionsPath(org)
|
|
4790
|
+
);
|
|
4791
|
+
if (resolveOutput(cmd) === "json") {
|
|
4792
|
+
printJson(res.items);
|
|
4793
|
+
return;
|
|
4794
|
+
}
|
|
4795
|
+
printItems(
|
|
4796
|
+
res.items.map((c) => ({
|
|
4797
|
+
id: c.id,
|
|
4798
|
+
name: c.handle,
|
|
4799
|
+
vendor: c.profileLabel,
|
|
4800
|
+
placeholder: c.credentialKey,
|
|
4801
|
+
domains: c.allowedHosts.join(", "),
|
|
4802
|
+
kind: c.kind,
|
|
4803
|
+
value: c.last4 ? `\xB7\xB7\xB7\xB7${c.last4}` : ""
|
|
4804
|
+
})),
|
|
4805
|
+
"table"
|
|
4806
|
+
);
|
|
4807
|
+
});
|
|
4808
|
+
}
|
|
4809
|
+
|
|
4732
4810
|
// src/commands/dashboards.ts
|
|
4733
4811
|
var dashboards_exports2 = {};
|
|
4734
4812
|
__export(dashboards_exports2, {
|
|
4735
|
-
register: () =>
|
|
4813
|
+
register: () => register9
|
|
4736
4814
|
});
|
|
4737
4815
|
import { readFileSync as readFileSync5 } from "fs";
|
|
4738
4816
|
function dashboardsPath(org) {
|
|
4739
4817
|
return `/api/v1/orgs/${encodeURIComponent(org)}/dashboards`;
|
|
4740
4818
|
}
|
|
4741
|
-
function
|
|
4819
|
+
function register9(program2) {
|
|
4742
4820
|
const group = program2.command("dashboards").description("Saved dashboards (CRUD + view filters; layout is UI-only)");
|
|
4743
4821
|
group.command("list").description("List your dashboard library").action(async (_opts, cmd) => {
|
|
4744
4822
|
const org = resolveOrg(cmd);
|
|
@@ -4840,7 +4918,7 @@ var evals_exports2 = {};
|
|
|
4840
4918
|
__export(evals_exports2, {
|
|
4841
4919
|
evalSetsPath: () => evalSetsPath,
|
|
4842
4920
|
parseCriterion: () => parseCriterion,
|
|
4843
|
-
register: () =>
|
|
4921
|
+
register: () => register10
|
|
4844
4922
|
});
|
|
4845
4923
|
import { readFileSync as readFileSync6 } from "fs";
|
|
4846
4924
|
|
|
@@ -5129,7 +5207,7 @@ function printDetail(e) {
|
|
|
5129
5207
|
console.log("criteria:");
|
|
5130
5208
|
for (const c of e.criteria) console.log(` [${c.id}] ${c.name}: ${c.rubric}`);
|
|
5131
5209
|
}
|
|
5132
|
-
function
|
|
5210
|
+
function register10(program2) {
|
|
5133
5211
|
const group = program2.command("evals").description("Manage eval sets (judged agent-experience measurements)");
|
|
5134
5212
|
group.command("list").description("List the org's eval sets with pass-rate stats").option(
|
|
5135
5213
|
"--agents <agents>",
|
|
@@ -5319,7 +5397,7 @@ function register9(program2) {
|
|
|
5319
5397
|
// src/commands/experiments.ts
|
|
5320
5398
|
var experiments_exports2 = {};
|
|
5321
5399
|
__export(experiments_exports2, {
|
|
5322
|
-
register: () =>
|
|
5400
|
+
register: () => register11,
|
|
5323
5401
|
rewriteContentType: () => rewriteContentType
|
|
5324
5402
|
});
|
|
5325
5403
|
import { readFileSync as readFileSync7 } from "fs";
|
|
@@ -5382,7 +5460,7 @@ function printDetail2(e) {
|
|
|
5382
5460
|
}
|
|
5383
5461
|
}
|
|
5384
5462
|
}
|
|
5385
|
-
function
|
|
5463
|
+
function register11(program2) {
|
|
5386
5464
|
const group = program2.command("experiments").description(
|
|
5387
5465
|
"Author, launch, and read Fixer content experiments (legacy: orgs with Optimizations answer 409 on writes; use `gauge optimizations`)"
|
|
5388
5466
|
);
|
|
@@ -5731,7 +5809,7 @@ function register10(program2) {
|
|
|
5731
5809
|
// src/commands/keys.ts
|
|
5732
5810
|
var keys_exports2 = {};
|
|
5733
5811
|
__export(keys_exports2, {
|
|
5734
|
-
register: () =>
|
|
5812
|
+
register: () => register12
|
|
5735
5813
|
});
|
|
5736
5814
|
function keysPath(org) {
|
|
5737
5815
|
return `/api/v1/orgs/${encodeURIComponent(org)}/provider-keys`;
|
|
@@ -5774,7 +5852,7 @@ async function readKeyInput(opts) {
|
|
|
5774
5852
|
}
|
|
5775
5853
|
return key;
|
|
5776
5854
|
}
|
|
5777
|
-
function
|
|
5855
|
+
function register12(program2) {
|
|
5778
5856
|
const group = program2.command("keys").description("Manage BYOK provider keys (write-only; reads show last4)");
|
|
5779
5857
|
group.command("set <provider>").description(
|
|
5780
5858
|
"Set a provider key (anthropic|openai); reads it from stdin or GAUGE_PROVIDER_KEY"
|
|
@@ -5830,7 +5908,7 @@ function register11(program2) {
|
|
|
5830
5908
|
// src/commands/mcp.ts
|
|
5831
5909
|
var mcp_exports2 = {};
|
|
5832
5910
|
__export(mcp_exports2, {
|
|
5833
|
-
register: () =>
|
|
5911
|
+
register: () => register13
|
|
5834
5912
|
});
|
|
5835
5913
|
import { readFileSync as readFileSync8 } from "fs";
|
|
5836
5914
|
function mcpPath(org) {
|
|
@@ -5877,7 +5955,7 @@ function specFromOpts(opts) {
|
|
|
5877
5955
|
...tools.length ? { tools } : {}
|
|
5878
5956
|
};
|
|
5879
5957
|
}
|
|
5880
|
-
function
|
|
5958
|
+
function register13(program2) {
|
|
5881
5959
|
const group = program2.command("mcp").description("Manage MCP servers used by eval and visibility runs");
|
|
5882
5960
|
group.command("list").description("List the org's MCP servers with their newest version").action(async (_opts, cmd) => {
|
|
5883
5961
|
const org = resolveOrg(cmd);
|
|
@@ -6008,9 +6086,9 @@ function register12(program2) {
|
|
|
6008
6086
|
// src/commands/members.ts
|
|
6009
6087
|
var members_exports = {};
|
|
6010
6088
|
__export(members_exports, {
|
|
6011
|
-
register: () =>
|
|
6089
|
+
register: () => register14
|
|
6012
6090
|
});
|
|
6013
|
-
function
|
|
6091
|
+
function register14(program2) {
|
|
6014
6092
|
const group = program2.command("members").description("Team members and pending invites (read-only)");
|
|
6015
6093
|
group.command("list").description("List members and pending invites").action(async (_opts, cmd) => {
|
|
6016
6094
|
const org = resolveOrg(cmd);
|
|
@@ -6052,7 +6130,7 @@ var models_exports = {};
|
|
|
6052
6130
|
__export(models_exports, {
|
|
6053
6131
|
capabilityLabel: () => capabilityLabel,
|
|
6054
6132
|
executionTargetsPath: () => executionTargetsPath,
|
|
6055
|
-
register: () =>
|
|
6133
|
+
register: () => register15
|
|
6056
6134
|
});
|
|
6057
6135
|
function executionTargetsPath(org) {
|
|
6058
6136
|
return `/api/v1/orgs/${encodeURIComponent(org)}/execution-targets`;
|
|
@@ -6060,7 +6138,7 @@ function executionTargetsPath(org) {
|
|
|
6060
6138
|
function capabilityLabel(capabilities) {
|
|
6061
6139
|
return Object.entries(capabilities).filter(([, supported]) => supported).map(([name]) => name === "agentContext" ? "context" : name).join(", ");
|
|
6062
6140
|
}
|
|
6063
|
-
function
|
|
6141
|
+
function register15(program2) {
|
|
6064
6142
|
const group = program2.command("models").description("Discover supported models, harnesses, and providers");
|
|
6065
6143
|
group.command("list", { isDefault: true }).description("List execution targets available to the organization").action(async (_opts, cmd) => {
|
|
6066
6144
|
const org = resolveOrg(cmd);
|
|
@@ -6087,7 +6165,7 @@ function register14(program2) {
|
|
|
6087
6165
|
// src/commands/onboard.ts
|
|
6088
6166
|
var onboard_exports = {};
|
|
6089
6167
|
__export(onboard_exports, {
|
|
6090
|
-
register: () =>
|
|
6168
|
+
register: () => register16
|
|
6091
6169
|
});
|
|
6092
6170
|
function orgNameFromEmail(email) {
|
|
6093
6171
|
const domain = email?.split("@")[1] ?? "";
|
|
@@ -6095,7 +6173,7 @@ function orgNameFromEmail(email) {
|
|
|
6095
6173
|
if (!base) return "My Workspace";
|
|
6096
6174
|
return base.charAt(0).toUpperCase() + base.slice(1);
|
|
6097
6175
|
}
|
|
6098
|
-
function
|
|
6176
|
+
function register16(program2) {
|
|
6099
6177
|
program2.command("onboard").description(
|
|
6100
6178
|
"Self-serve onboarding: sign in (device flow) and create your first workspace"
|
|
6101
6179
|
).option("--email <email>", "email a sign-in link (device-flow convenience)").option("--org-name <name>", "workspace name (default: from your email)").option("--website <url>", "company site (scanned to seed the workspace)").option("--new", "create a new workspace even if you already belong to one").option(
|
|
@@ -6197,7 +6275,7 @@ __export(optimizations_exports2, {
|
|
|
6197
6275
|
parseSubject: () => parseSubject,
|
|
6198
6276
|
parseTarget: () => parseTarget,
|
|
6199
6277
|
planFromOpts: () => planFromOpts,
|
|
6200
|
-
register: () =>
|
|
6278
|
+
register: () => register17,
|
|
6201
6279
|
trialBodyFromOpts: () => trialBodyFromOpts
|
|
6202
6280
|
});
|
|
6203
6281
|
import { readFileSync as readFileSync9 } from "fs";
|
|
@@ -6445,6 +6523,14 @@ function printEstimate(e) {
|
|
|
6445
6523
|
);
|
|
6446
6524
|
console.log(`per trial: ${e.trialCredits.toFixed(1)} credits`);
|
|
6447
6525
|
console.log(`estimate: ${e.estimate} credits (reserved as the cap)`);
|
|
6526
|
+
if (e.basis === "byok")
|
|
6527
|
+
console.log(
|
|
6528
|
+
"note: flat rate \u2014 your own key buys the tokens, so every model costs the same"
|
|
6529
|
+
);
|
|
6530
|
+
else if (e.approximate)
|
|
6531
|
+
console.log(
|
|
6532
|
+
"note: no price or past run covers this model, so the figure is the credit hold, not a forecast"
|
|
6533
|
+
);
|
|
6448
6534
|
}
|
|
6449
6535
|
function printDiagnosis(d) {
|
|
6450
6536
|
console.log(`id: ${d.id}`);
|
|
@@ -6471,7 +6557,7 @@ function addPlanOptions(command) {
|
|
|
6471
6557
|
"the one harness/model every session runs on, e.g. claude-code:claude-opus-4-8"
|
|
6472
6558
|
);
|
|
6473
6559
|
}
|
|
6474
|
-
function
|
|
6560
|
+
function register17(program2) {
|
|
6475
6561
|
const group = program2.command("optimizations").alias("optimize").description(
|
|
6476
6562
|
"Start, steer, and read optimizations: Gauge changes one owned surface per trial and adopts what improves an eval or preference prompt"
|
|
6477
6563
|
);
|
|
@@ -6776,7 +6862,7 @@ function register16(program2) {
|
|
|
6776
6862
|
// src/commands/org.ts
|
|
6777
6863
|
var org_exports = {};
|
|
6778
6864
|
__export(org_exports, {
|
|
6779
|
-
register: () =>
|
|
6865
|
+
register: () => register18
|
|
6780
6866
|
});
|
|
6781
6867
|
function printSettings(s) {
|
|
6782
6868
|
console.log(`slug: ${s.slug}`);
|
|
@@ -6790,7 +6876,7 @@ function printSettings(s) {
|
|
|
6790
6876
|
);
|
|
6791
6877
|
console.log(`auto-join: ${s.autoJoinDomain ?? "off"}`);
|
|
6792
6878
|
}
|
|
6793
|
-
function
|
|
6879
|
+
function register18(program2) {
|
|
6794
6880
|
const group = program2.command("org").description(
|
|
6795
6881
|
"This org's settings, read-only (see `gauge orgs` for the org list)"
|
|
6796
6882
|
);
|
|
@@ -6807,12 +6893,12 @@ function register17(program2) {
|
|
|
6807
6893
|
// src/commands/orgs.ts
|
|
6808
6894
|
var orgs_exports2 = {};
|
|
6809
6895
|
__export(orgs_exports2, {
|
|
6810
|
-
register: () =>
|
|
6896
|
+
register: () => register19
|
|
6811
6897
|
});
|
|
6812
6898
|
function isDefault(org, defaultOrg) {
|
|
6813
6899
|
return defaultOrg !== void 0 && (org.slug === defaultOrg || org.publicId === defaultOrg);
|
|
6814
6900
|
}
|
|
6815
|
-
function
|
|
6901
|
+
function register19(program2) {
|
|
6816
6902
|
const orgs = program2.command("orgs").description("Organizations");
|
|
6817
6903
|
orgs.command("list").description("List orgs you belong to").action(async (_opts, command) => {
|
|
6818
6904
|
const output = resolveOutput(command);
|
|
@@ -6883,12 +6969,12 @@ function register18(program2) {
|
|
|
6883
6969
|
// src/commands/personas.ts
|
|
6884
6970
|
var personas_exports2 = {};
|
|
6885
6971
|
__export(personas_exports2, {
|
|
6886
|
-
register: () =>
|
|
6972
|
+
register: () => register20
|
|
6887
6973
|
});
|
|
6888
6974
|
function personasPath(org) {
|
|
6889
6975
|
return `/api/v1/orgs/${encodeURIComponent(org)}/personas`;
|
|
6890
6976
|
}
|
|
6891
|
-
function
|
|
6977
|
+
function register20(program2) {
|
|
6892
6978
|
const group = program2.command("personas").description("Manage simulated-user personas for eval and visibility runs");
|
|
6893
6979
|
group.command("list").description("List the org's personas").action(async (_opts, cmd) => {
|
|
6894
6980
|
const org = resolveOrg(cmd);
|
|
@@ -6961,7 +7047,7 @@ function register19(program2) {
|
|
|
6961
7047
|
// src/commands/query.ts
|
|
6962
7048
|
var query_exports2 = {};
|
|
6963
7049
|
__export(query_exports2, {
|
|
6964
|
-
register: () =>
|
|
7050
|
+
register: () => register21
|
|
6965
7051
|
});
|
|
6966
7052
|
var collect3 = (value, prev = []) => [
|
|
6967
7053
|
...prev,
|
|
@@ -7153,7 +7239,7 @@ async function showMetadata(command, mode, dataset) {
|
|
|
7153
7239
|
console.error(`dataset: ${ds.name} \u2014 ${ds.grain}`);
|
|
7154
7240
|
printItems(rows, "table");
|
|
7155
7241
|
}
|
|
7156
|
-
function
|
|
7242
|
+
function register21(program2) {
|
|
7157
7243
|
const group = program2.command("query").description(
|
|
7158
7244
|
"Flexible reports over your event warehouse (run a report, or discover the catalog)"
|
|
7159
7245
|
);
|
|
@@ -7189,7 +7275,7 @@ function register20(program2) {
|
|
|
7189
7275
|
// src/commands/repos.ts
|
|
7190
7276
|
var repos_exports2 = {};
|
|
7191
7277
|
__export(repos_exports2, {
|
|
7192
|
-
register: () =>
|
|
7278
|
+
register: () => register22
|
|
7193
7279
|
});
|
|
7194
7280
|
function reposPath(org) {
|
|
7195
7281
|
return `/api/v1/orgs/${encodeURIComponent(org)}/repos`;
|
|
@@ -7212,7 +7298,7 @@ function toRow5(repo) {
|
|
|
7212
7298
|
function syncWarning(repo) {
|
|
7213
7299
|
return `warning: GitHub metadata sync failed; retry with \`gauge repos resync ${repo.url}\``;
|
|
7214
7300
|
}
|
|
7215
|
-
function
|
|
7301
|
+
function register22(program2) {
|
|
7216
7302
|
const repos = program2.command("repos").description("Manage repositories");
|
|
7217
7303
|
repos.command("list").description("List repositories (yours + read-only Gauge-provided ones)").action(async (_opts, command) => {
|
|
7218
7304
|
const org = resolveOrg(command);
|
|
@@ -7309,7 +7395,7 @@ function register21(program2) {
|
|
|
7309
7395
|
// src/commands/runs.ts
|
|
7310
7396
|
var runs_exports2 = {};
|
|
7311
7397
|
__export(runs_exports2, {
|
|
7312
|
-
register: () =>
|
|
7398
|
+
register: () => register23
|
|
7313
7399
|
});
|
|
7314
7400
|
function runPath(id) {
|
|
7315
7401
|
return `/api/v1/runs/${encodeURIComponent(id)}`;
|
|
@@ -7569,7 +7655,7 @@ async function streamRun(id, json, opts) {
|
|
|
7569
7655
|
if (drainTimer) clearTimeout(drainTimer);
|
|
7570
7656
|
}
|
|
7571
7657
|
}
|
|
7572
|
-
function
|
|
7658
|
+
function register23(program2) {
|
|
7573
7659
|
const runs = program2.command("runs").description("Inspect and manage runs");
|
|
7574
7660
|
runs.command("list").description("List runs (newest first)").option("--status <status>", "filter by status, e.g. running,queued").option("--batch <id>", "filter by batch").option("--prompt <id>", "filter by prompt").option("--experiment <experiment>", "filter by experiment label").option("--eval-set <id>", "filter by eval set").option("--since <window>", "e.g. 24h, 7d, or an ISO date").option("--limit <n>", "page size (1-200)", "50").option("--cursor <cursor>", "resume from a previous page's nextCursor").action(
|
|
7575
7661
|
async (opts, command) => {
|
|
@@ -7693,7 +7779,7 @@ function register22(program2) {
|
|
|
7693
7779
|
var skills_exports2 = {};
|
|
7694
7780
|
__export(skills_exports2, {
|
|
7695
7781
|
buildSkillEditBody: () => buildSkillEditBody,
|
|
7696
|
-
register: () =>
|
|
7782
|
+
register: () => register24
|
|
7697
7783
|
});
|
|
7698
7784
|
function skillsPath(org) {
|
|
7699
7785
|
return `/api/v1/orgs/${encodeURIComponent(org)}/skills`;
|
|
@@ -7755,7 +7841,7 @@ async function buildSkillEditBody(opts, fetchCurrentSource) {
|
|
|
7755
7841
|
throw new CliError("usage", "nothing to change");
|
|
7756
7842
|
return body;
|
|
7757
7843
|
}
|
|
7758
|
-
function
|
|
7844
|
+
function register24(program2) {
|
|
7759
7845
|
const group = program2.command("skills").description("Manage agent skills used by eval and visibility runs");
|
|
7760
7846
|
group.command("list").description("List the org's skills with their newest version").action(async (_opts, cmd) => {
|
|
7761
7847
|
const org = resolveOrg(cmd);
|
|
@@ -7896,7 +7982,7 @@ function register23(program2) {
|
|
|
7896
7982
|
// src/commands/stats.ts
|
|
7897
7983
|
var stats_exports2 = {};
|
|
7898
7984
|
__export(stats_exports2, {
|
|
7899
|
-
register: () =>
|
|
7985
|
+
register: () => register25
|
|
7900
7986
|
});
|
|
7901
7987
|
function addFilterOptions(cmd) {
|
|
7902
7988
|
return cmd.option("--prompt <id>", "filter to a single prompt").option("--tag <ids>", "comma-separated tag ids").option("--repo <urls>", "comma-separated base repo urls").option("--language <langs>", "comma-separated repo languages").option("--framework <names>", "comma-separated repo frameworks").option("--size <buckets>", "comma-separated codebase-size buckets").option("--branded", "only branded prompts").option("--unbranded", "only non-branded prompts").option("--limit <n>", "max rows (default 50)").option("--full", "return all rows (up to 1000)");
|
|
@@ -7979,7 +8065,7 @@ var domainRow = (r) => ({
|
|
|
7979
8065
|
rate: pct3(r.rate),
|
|
7980
8066
|
requests: r.requests
|
|
7981
8067
|
});
|
|
7982
|
-
function
|
|
8068
|
+
function register25(program2) {
|
|
7983
8069
|
const group = program2.command("stats").description("Read-only analytics over your runs");
|
|
7984
8070
|
addFilterOptions(
|
|
7985
8071
|
group.command("rankings").description("Brands ranked by install rate")
|
|
@@ -8011,7 +8097,7 @@ function register24(program2) {
|
|
|
8011
8097
|
// src/commands/status.ts
|
|
8012
8098
|
var status_exports = {};
|
|
8013
8099
|
__export(status_exports, {
|
|
8014
|
-
register: () =>
|
|
8100
|
+
register: () => register26
|
|
8015
8101
|
});
|
|
8016
8102
|
function pct4(rate) {
|
|
8017
8103
|
return rate == null ? "\u2014" : `${Math.round(rate * 100)}%`;
|
|
@@ -8021,7 +8107,7 @@ function delta2(pp) {
|
|
|
8021
8107
|
const rounded = Math.round(pp);
|
|
8022
8108
|
return rounded === 0 ? "" : ` (${rounded > 0 ? "+" : ""}${rounded}pp)`;
|
|
8023
8109
|
}
|
|
8024
|
-
function
|
|
8110
|
+
function register26(program2) {
|
|
8025
8111
|
program2.command("status").description("One-shot org summary: actions, visibility, agent experience").action(async (_opts, cmd) => {
|
|
8026
8112
|
const org = resolveOrg(cmd);
|
|
8027
8113
|
const s = await createClient().get(
|
|
@@ -8083,12 +8169,12 @@ function register25(program2) {
|
|
|
8083
8169
|
// src/commands/tags.ts
|
|
8084
8170
|
var tags_exports2 = {};
|
|
8085
8171
|
__export(tags_exports2, {
|
|
8086
|
-
register: () =>
|
|
8172
|
+
register: () => register27
|
|
8087
8173
|
});
|
|
8088
8174
|
function tagsPath(org) {
|
|
8089
8175
|
return `/api/v1/orgs/${encodeURIComponent(org)}/tags`;
|
|
8090
8176
|
}
|
|
8091
|
-
function
|
|
8177
|
+
function register27(program2) {
|
|
8092
8178
|
const group = program2.command("tags").description("Manage org tags");
|
|
8093
8179
|
group.command("list").description("List tags").action(async (_opts, cmd) => {
|
|
8094
8180
|
const org = resolveOrg(cmd);
|
|
@@ -8131,9 +8217,9 @@ function register26(program2) {
|
|
|
8131
8217
|
// src/commands/usage.ts
|
|
8132
8218
|
var usage_exports = {};
|
|
8133
8219
|
__export(usage_exports, {
|
|
8134
|
-
register: () =>
|
|
8220
|
+
register: () => register28
|
|
8135
8221
|
});
|
|
8136
|
-
function
|
|
8222
|
+
function register28(program2) {
|
|
8137
8223
|
program2.command("usage").description("List credit ledger entries").option("--since <window>", 'e.g. "30d", "24h", or an ISO date').option("--limit <n>", "page size (1-200)", parseLimit, 50).option("--cursor <cursor>", "resume from a previous page's nextCursor").action(
|
|
8138
8224
|
async (opts, cmd) => {
|
|
8139
8225
|
const org = resolveOrg(cmd);
|
|
@@ -8180,7 +8266,7 @@ function register27(program2) {
|
|
|
8180
8266
|
// src/commands/visibility.ts
|
|
8181
8267
|
var visibility_exports2 = {};
|
|
8182
8268
|
__export(visibility_exports2, {
|
|
8183
|
-
register: () =>
|
|
8269
|
+
register: () => register29,
|
|
8184
8270
|
visibilityPath: () => visibilityPath
|
|
8185
8271
|
});
|
|
8186
8272
|
function visibilityPath(org) {
|
|
@@ -8529,7 +8615,7 @@ function registerPreferenceGroup(group) {
|
|
|
8529
8615
|
);
|
|
8530
8616
|
});
|
|
8531
8617
|
}
|
|
8532
|
-
function
|
|
8618
|
+
function register29(program2) {
|
|
8533
8619
|
const preference = program2.command("preference").description("Manage Agent Preference prompts and measured markets");
|
|
8534
8620
|
registerPreferenceGroup(preference);
|
|
8535
8621
|
const legacy = program2.command("visibility", { hidden: true });
|
|
@@ -8559,6 +8645,7 @@ for (const group of [
|
|
|
8559
8645
|
personas_exports2,
|
|
8560
8646
|
skills_exports2,
|
|
8561
8647
|
mcp_exports2,
|
|
8648
|
+
connections_exports2,
|
|
8562
8649
|
repos_exports2,
|
|
8563
8650
|
runs_exports2,
|
|
8564
8651
|
optimizations_exports2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@withgauge/cli",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "Gauge customer CLI — Agent Preference, evals, runs, and organization settings over the Gauge API",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Gauge <support@withgauge.com> (https://withgauge.com)",
|