bamboo-agents 0.1.10-dev.102.32ca898 → 0.1.10-dev.104.ffdbe11

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 CHANGED
@@ -1 +1 @@
1
- 0.1.10-dev.102.32ca898
1
+ 0.1.10-dev.104.ffdbe11
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.10-dev.102.32ca898";
3040
+ VERSION = "0.1.10-dev.104.ffdbe11";
3041
3041
  }
3042
3042
  });
3043
3043
 
@@ -7436,7 +7436,9 @@ var init_agents = __esm({
7436
7436
  /** ISO timestamp when paused, else null. */
7437
7437
  paused_at: external_exports.string().nullable().optional(),
7438
7438
  /** Lite derived state (active/paused/inactive) — see CliAgentLifecycleStateSchema. */
7439
- state: external_exports.enum(["active", "paused", "inactive"]).optional()
7439
+ state: external_exports.enum(["active", "paused", "inactive"]).optional(),
7440
+ /** Brands this agent is assigned to; additive for older CLI servers. */
7441
+ brand_ids: external_exports.array(external_exports.string().uuid()).optional()
7440
7442
  });
7441
7443
  CliTierCapSchema = external_exports.object({
7442
7444
  limit: external_exports.number().int(),
@@ -14729,7 +14731,7 @@ var init_eval_test_sets = __esm({
14729
14731
  });
14730
14732
 
14731
14733
  // ../../src/lib/api-contracts/cli/eval-management.ts
14732
- var EvalManagementOperationSchema, EvalManagementBindingSchema, EvalManagementInputHelpSchema, EVAL_MANAGEMENT_INPUTS, common2, EVAL_MANAGEMENT_BINDINGS, EvalManagementCatalogResponseSchema, EvalManagementCallSchema, EvalManagementResultSchema;
14734
+ var EvalManagementOperationSchema, EvalManagementBindingSchema, EvalManagementInputHelpSchema, EVAL_MANAGEMENT_INPUTS, common2, EVAL_MANAGEMENT_BINDINGS, EvalManagementCatalogResponseSchema, EvalManagementCallSchema, EvalManagementScopeSchema, EvalManagementCatalogResultSchema, EvalManagementResultSchema;
14733
14735
  var init_eval_management = __esm({
14734
14736
  "../../src/lib/api-contracts/cli/eval-management.ts"() {
14735
14737
  init_zod();
@@ -14761,7 +14763,8 @@ var init_eval_management = __esm({
14761
14763
  authority: external_exports.string(),
14762
14764
  side_effect: external_exports.string(),
14763
14765
  receipt: external_exports.string(),
14764
- minimum_cli_version: external_exports.string()
14766
+ minimum_cli_version: external_exports.string(),
14767
+ explicit_org_scope: external_exports.boolean()
14765
14768
  });
14766
14769
  EvalManagementInputHelpSchema = external_exports.object({
14767
14770
  required: external_exports.array(external_exports.string()),
@@ -14866,7 +14869,8 @@ var init_eval_management = __esm({
14866
14869
  cli_command: "bamboo-agents eval manage",
14867
14870
  supported_runtimes: ["cli", "api"],
14868
14871
  authority: "Authenticated human or attributed agent with access to the target brand",
14869
- minimum_cli_version: "0.1.8"
14872
+ minimum_cli_version: "0.1.8",
14873
+ explicit_org_scope: false
14870
14874
  };
14871
14875
  EVAL_MANAGEMENT_BINDINGS = [
14872
14876
  {
@@ -14876,7 +14880,8 @@ var init_eval_management = __esm({
14876
14880
  method: "GET",
14877
14881
  path: "/api/v1/plays",
14878
14882
  side_effect: "none",
14879
- receipt: "investigation read model"
14883
+ receipt: "investigation read model",
14884
+ explicit_org_scope: true
14880
14885
  },
14881
14886
  {
14882
14887
  ...common2,
@@ -14885,7 +14890,8 @@ var init_eval_management = __esm({
14885
14890
  method: "GET",
14886
14891
  path: "/api/v1/plays/{id}",
14887
14892
  side_effect: "none",
14888
- receipt: "investigation read model"
14893
+ receipt: "investigation read model",
14894
+ explicit_org_scope: true
14889
14895
  },
14890
14896
  {
14891
14897
  ...common2,
@@ -14975,7 +14981,8 @@ var init_eval_management = __esm({
14975
14981
  method: "GET",
14976
14982
  path: "/api/v1/eval/waves",
14977
14983
  side_effect: "none",
14978
- receipt: "wave read model"
14984
+ receipt: "wave read model",
14985
+ explicit_org_scope: true
14979
14986
  },
14980
14987
  {
14981
14988
  ...common2,
@@ -14984,7 +14991,8 @@ var init_eval_management = __esm({
14984
14991
  method: "GET",
14985
14992
  path: "/api/v1/eval/waves/{id}",
14986
14993
  side_effect: "none",
14987
- receipt: "wave, members, and request receipts"
14994
+ receipt: "wave, members, and request receipts",
14995
+ explicit_org_scope: true
14988
14996
  },
14989
14997
  {
14990
14998
  ...common2,
@@ -15027,9 +15035,25 @@ var init_eval_management = __esm({
15027
15035
  operation: EvalManagementOperationSchema,
15028
15036
  input: external_exports.record(external_exports.string(), external_exports.unknown())
15029
15037
  });
15038
+ EvalManagementScopeSchema = external_exports.object({
15039
+ scope_contract_version: external_exports.literal(1),
15040
+ requested_org_id: external_exports.string().nullable().optional(),
15041
+ effective_org_id: external_exports.string(),
15042
+ real_actor_user_id: external_exports.string().nullable().optional(),
15043
+ effective_actor_user_id: external_exports.string().nullable().optional(),
15044
+ credential_kind: external_exports.enum(["user_session", "api_key"]).optional(),
15045
+ impersonating: external_exports.boolean().optional(),
15046
+ brand_id: external_exports.string().nullable().optional(),
15047
+ agent_id: external_exports.string().nullable().optional(),
15048
+ request_id: external_exports.string().optional()
15049
+ });
15050
+ EvalManagementCatalogResultSchema = EvalManagementCatalogResponseSchema.extend({
15051
+ scope: EvalManagementScopeSchema.optional()
15052
+ });
15030
15053
  EvalManagementResultSchema = external_exports.object({
15031
15054
  operation: EvalManagementOperationSchema,
15032
- data: external_exports.unknown()
15055
+ data: external_exports.unknown(),
15056
+ scope: EvalManagementScopeSchema.optional()
15033
15057
  });
15034
15058
  }
15035
15059
  });
@@ -15326,17 +15350,23 @@ ${answer}
15326
15350
  Saved by Boo via CLI magic-moment, ${stamp}.
15327
15351
  `;
15328
15352
  }
15329
- async function listCliAgents(bambooSession) {
15353
+ async function listCliAgents(bambooSession, orgId) {
15330
15354
  const res = await cliApiFetch(`${apiBase()}/api/v1/cli/agents`, {
15331
- headers: { Authorization: `Bearer ${bambooSession}` }
15355
+ headers: {
15356
+ Authorization: `Bearer ${bambooSession}`,
15357
+ ...orgId ? { "bamboo-active-org": orgId } : {}
15358
+ }
15332
15359
  });
15333
15360
  if (!res.ok) throw await parseError(res);
15334
15361
  const json = await res.json();
15335
15362
  return CliAgentsListResponseSchema.parse(json);
15336
15363
  }
15337
- async function listCliBrands(bambooSession) {
15364
+ async function listCliBrands(bambooSession, orgId) {
15338
15365
  const res = await cliApiFetch(`${apiBase()}/api/v1/cli/brands`, {
15339
- headers: { Authorization: `Bearer ${bambooSession}` }
15366
+ headers: {
15367
+ Authorization: `Bearer ${bambooSession}`,
15368
+ ...orgId ? { "bamboo-active-org": orgId } : {}
15369
+ }
15340
15370
  });
15341
15371
  if (!res.ok) throw await parseError(res);
15342
15372
  const json = await res.json();
@@ -15596,17 +15626,37 @@ async function createEvalTestSet(bambooSession, body) {
15596
15626
  const json = await res.json();
15597
15627
  return CliEvalTestSetCreateResponseSchema.parse(json.data);
15598
15628
  }
15599
- async function getEvalManagementOperations(bambooSession) {
15629
+ async function getEvalManagementOperations(bambooSession, orgId) {
15600
15630
  const res = await cliApiFetch(`${apiBase()}/api/v1/eval/operations`, {
15601
- headers: { Authorization: `Bearer ${bambooSession}` }
15631
+ headers: {
15632
+ Authorization: `Bearer ${bambooSession}`,
15633
+ ...orgId ? { "bamboo-active-org": orgId } : {}
15634
+ }
15602
15635
  });
15603
15636
  if (!res.ok) throw await parseError(res);
15604
- const json = await res.json();
15605
- return EvalManagementCatalogResponseSchema.parse(json.data);
15637
+ try {
15638
+ const json = await res.json();
15639
+ const result = EvalManagementCatalogResultSchema.parse({
15640
+ ...json.data ?? {},
15641
+ scope: json.meta
15642
+ });
15643
+ assertExplicitOrgReceipt(result.scope, orgId);
15644
+ return result;
15645
+ } catch (error) {
15646
+ if (error instanceof ApiError) throw error;
15647
+ throw malformedEvalManagementResponse();
15648
+ }
15606
15649
  }
15607
- async function callEvalManagement(bambooSession, call) {
15650
+ async function callEvalManagement(bambooSession, call, orgId) {
15608
15651
  const binding = EVAL_MANAGEMENT_BINDINGS.find((candidate) => candidate.operation === call.operation);
15609
15652
  if (!binding) throw new ApiError(`Unsupported operation: ${call.operation}`, 400, "unsupported_operation");
15653
+ if (orgId && binding.explicit_org_scope !== true) {
15654
+ throw new ApiError(
15655
+ `${call.operation} does not support explicit customer organization scope in this release.`,
15656
+ 400,
15657
+ "unsupported_organization_scope"
15658
+ );
15659
+ }
15610
15660
  const help = EVAL_MANAGEMENT_INPUTS[call.operation];
15611
15661
  const missing = help.required.filter(
15612
15662
  (field) => call.input[field] === void 0 || call.input[field] === null || call.input[field] === ""
@@ -15636,7 +15686,10 @@ async function callEvalManagement(bambooSession, call) {
15636
15686
  let url = `${apiBase()}${path2}`;
15637
15687
  const init = {
15638
15688
  method: binding.method,
15639
- headers: { Authorization: `Bearer ${bambooSession}` }
15689
+ headers: {
15690
+ Authorization: `Bearer ${bambooSession}`,
15691
+ ...orgId ? { "bamboo-active-org": orgId } : {}
15692
+ }
15640
15693
  };
15641
15694
  if (binding.method === "GET") {
15642
15695
  const query = new URLSearchParams();
@@ -15651,12 +15704,34 @@ async function callEvalManagement(bambooSession, call) {
15651
15704
  }
15652
15705
  const res = await cliApiFetch(url, init);
15653
15706
  if (!res.ok) throw await parseError(res);
15654
- const json = await res.json();
15655
- const keys = Object.keys(json);
15656
- return EvalManagementResultSchema.parse({
15657
- operation: call.operation,
15658
- data: keys.length === 1 && keys[0] === "data" ? json.data : json
15659
- });
15707
+ try {
15708
+ const json = await res.json();
15709
+ const { data, meta, ...siblings } = json;
15710
+ const result = EvalManagementResultSchema.parse({
15711
+ operation: call.operation,
15712
+ data: Object.keys(siblings).length > 0 ? { data, ...siblings } : data,
15713
+ scope: meta
15714
+ });
15715
+ assertExplicitOrgReceipt(result.scope, orgId);
15716
+ return result;
15717
+ } catch (error) {
15718
+ if (error instanceof ApiError) throw error;
15719
+ throw malformedEvalManagementResponse();
15720
+ }
15721
+ }
15722
+ function malformedEvalManagementResponse() {
15723
+ return new ApiError(
15724
+ "The eval management response was malformed or incompatible with this CLI version.",
15725
+ 502,
15726
+ "malformed_response"
15727
+ );
15728
+ }
15729
+ function assertExplicitOrgReceipt(scope, orgId) {
15730
+ if (!orgId) return;
15731
+ const expected = orgId.toLowerCase();
15732
+ if (!scope || scope.requested_org_id?.toLowerCase() !== expected || scope.effective_org_id.toLowerCase() !== expected) {
15733
+ throw malformedEvalManagementResponse();
15734
+ }
15660
15735
  }
15661
15736
  async function getEvalTestSetMemberships(bambooSession, brandId) {
15662
15737
  const url = `${apiBase()}/api/v1/eval/test-roadmap?brand_id=${encodeURIComponent(brandId)}`;
@@ -20116,6 +20191,41 @@ var init_knowledge = __esm({
20116
20191
  }
20117
20192
  });
20118
20193
 
20194
+ // src/lib/organization-selection.ts
20195
+ async function resolveOrganizationSelection(requested, listOrganizations) {
20196
+ const query = requested.trim();
20197
+ if (!query) {
20198
+ throw Object.assign(new Error("Pass the customer organization with --org."), {
20199
+ code: "organization_scope_required"
20200
+ });
20201
+ }
20202
+ if (UUID.test(query)) return { id: query.toLowerCase() };
20203
+ const { orgs } = await listOrganizations();
20204
+ const normalized = query.toLowerCase();
20205
+ const exact = orgs.filter((org) => org.name?.toLowerCase() === normalized);
20206
+ const matches = exact.length ? exact : orgs.filter((org) => org.name?.toLowerCase().includes(normalized));
20207
+ if (matches.length === 1) return matches[0];
20208
+ if (matches.length === 0) {
20209
+ throw Object.assign(
20210
+ new Error(`No organization matches "${query}". Run \`bamboo-agents inbox organizations ${JSON.stringify(query)}\` to inspect available organizations.`),
20211
+ { code: "organization_scope_not_found" }
20212
+ );
20213
+ }
20214
+ throw Object.assign(
20215
+ new Error(
20216
+ `Organization "${query}" is ambiguous: ${matches.map((org) => `${org.name} (${org.id})`).join(", ")}. Re-run with the exact name or UUID.`
20217
+ ),
20218
+ { code: "organization_scope_ambiguous" }
20219
+ );
20220
+ }
20221
+ var UUID;
20222
+ var init_organization_selection = __esm({
20223
+ "src/lib/organization-selection.ts"() {
20224
+ "use strict";
20225
+ UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
20226
+ }
20227
+ });
20228
+
20119
20229
  // src/commands/inbox-management.ts
20120
20230
  var inbox_management_exports = {};
20121
20231
  __export(inbox_management_exports, {
@@ -20139,24 +20249,6 @@ async function inboxSession() {
20139
20249
  );
20140
20250
  return token;
20141
20251
  }
20142
- async function resolveOrganization(session, requested) {
20143
- const query = requested.trim();
20144
- if (!query) throw Object.assign(new Error("Pass the customer organization with --org."), { code: "organization_scope_required" });
20145
- if (UUID.test(query)) return { id: query, name: void 0 };
20146
- const { orgs } = await listInboxOrganizations(session);
20147
- const normalized = query.toLowerCase();
20148
- const exact = orgs.filter((org) => org.name.toLowerCase() === normalized);
20149
- const matches = exact.length ? exact : orgs.filter((org) => org.name.toLowerCase().includes(normalized));
20150
- if (matches.length === 1) return matches[0];
20151
- if (matches.length === 0) throw Object.assign(
20152
- new Error(`No organization matches "${query}". Run \`bamboo-agents inbox organizations ${JSON.stringify(query)}\` to inspect available organizations.`),
20153
- { code: "organization_scope_not_found" }
20154
- );
20155
- throw Object.assign(
20156
- new Error(`Organization "${query}" is ambiguous: ${matches.map((org) => `${org.name} (${org.id})`).join(", ")}. Re-run with the exact name or UUID.`),
20157
- { code: "organization_scope_ambiguous" }
20158
- );
20159
- }
20160
20252
  async function inputObject(value) {
20161
20253
  const raw = value.startsWith("@") ? await readFile8(value.slice(1), "utf8") : value;
20162
20254
  const parsed = JSON.parse(raw);
@@ -20214,7 +20306,10 @@ async function runInboxOrganizations(options) {
20214
20306
  async function runInboxManage(options) {
20215
20307
  try {
20216
20308
  const session = await inboxSession();
20217
- const organization = await resolveOrganization(session, options.org);
20309
+ const organization = await resolveOrganizationSelection(
20310
+ options.org,
20311
+ () => listInboxOrganizations(session)
20312
+ );
20218
20313
  const orgId = organization.id;
20219
20314
  if (organization.name) human(`Operating as organization: ${organization.name} (${orgId})`, options);
20220
20315
  if (!InboxManageOperationSchema.safeParse(options.operation).success) {
@@ -20353,7 +20448,7 @@ async function runInboxManage(options) {
20353
20448
  fail(error, options);
20354
20449
  }
20355
20450
  }
20356
- var UUID, MUTATION_EFFECTS, ANNOTATION_COMMAND_EFFECTS;
20451
+ var MUTATION_EFFECTS, ANNOTATION_COMMAND_EFFECTS;
20357
20452
  var init_inbox_management2 = __esm({
20358
20453
  "src/commands/inbox-management.ts"() {
20359
20454
  "use strict";
@@ -20361,8 +20456,8 @@ var init_inbox_management2 = __esm({
20361
20456
  init_inbox_management();
20362
20457
  init_api();
20363
20458
  init_credentials();
20459
+ init_organization_selection();
20364
20460
  init_output();
20365
- UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
20366
20461
  MUTATION_EFFECTS = {
20367
20462
  "change.approve": { effect: "merge_workspace_change", reversible: false },
20368
20463
  "change.decline": {
@@ -21691,9 +21786,38 @@ var init_episode = __esm({
21691
21786
  var eval_management_exports = {};
21692
21787
  __export(eval_management_exports, {
21693
21788
  runEvalManage: () => runEvalManage,
21694
- runEvalOperations: () => runEvalOperations
21789
+ runEvalOperations: () => runEvalOperations,
21790
+ runEvalScope: () => runEvalScope
21695
21791
  });
21696
21792
  import { readFile as readFile10 } from "node:fs/promises";
21793
+ async function runEvalScope(options) {
21794
+ const session = await requireSession12(options);
21795
+ try {
21796
+ const organization = await resolveOrganizationSelection(
21797
+ options.org,
21798
+ () => listInboxOrganizations(session)
21799
+ );
21800
+ const [brandResult, agentResult] = await Promise.all([
21801
+ listCliBrands(session, organization.id),
21802
+ listCliAgents(session, organization.id)
21803
+ ]);
21804
+ const result = {
21805
+ organization,
21806
+ brands: brandResult.brands,
21807
+ agents: agentResult.agents
21808
+ };
21809
+ human(`Operating as organization: ${organization.name ?? organization.id} (${organization.id})`, options);
21810
+ for (const brand2 of result.brands) human(` brand: ${brand2.name} (${brand2.id})`, options);
21811
+ for (const agent of result.agents) human(` agent: ${agent.name} (${agent.id})`, options);
21812
+ emitSuccess(result, options);
21813
+ } catch (error) {
21814
+ const value = error;
21815
+ emitError({
21816
+ code: value.code ?? value.errorCode ?? "scope_discovery_failed",
21817
+ message: value.message ?? "Could not discover the selected organization."
21818
+ }, options, 1);
21819
+ }
21820
+ }
21697
21821
  async function requireSession12(opts) {
21698
21822
  const session = await resolveSession();
21699
21823
  if (!session) {
@@ -21721,7 +21845,8 @@ async function parseInput(value) {
21721
21845
  async function runEvalOperations(options) {
21722
21846
  const session = await requireSession12(options);
21723
21847
  try {
21724
- const catalog = await getEvalManagementOperations(session);
21848
+ const organization = options.org ? await resolveOrganizationSelection(options.org, () => listInboxOrganizations(session)) : null;
21849
+ const catalog = organization ? await getEvalManagementOperations(session, organization.id) : await getEvalManagementOperations(session);
21725
21850
  human("", options);
21726
21851
  for (const binding of catalog.bindings) {
21727
21852
  human(
@@ -21759,18 +21884,23 @@ async function runEvalManage(options) {
21759
21884
  const session = await requireSession12(output);
21760
21885
  try {
21761
21886
  const input = await parseInput(options.input);
21887
+ const organization = options.org ? await resolveOrganizationSelection(options.org, () => listInboxOrganizations(session)) : null;
21762
21888
  const call = EvalManagementCallSchema.parse({
21763
21889
  operation: options.operation,
21764
21890
  input
21765
21891
  });
21766
- const result = await callEvalManagement(session, call);
21767
- human(`Applied ${result.operation}.`, output);
21892
+ const binding = EVAL_MANAGEMENT_BINDINGS.find(
21893
+ (candidate) => candidate.operation === call.operation
21894
+ );
21895
+ const result = organization ? await callEvalManagement(session, call, organization.id) : await callEvalManagement(session, call);
21896
+ human(`${binding?.side_effect === "none" ? "Read" : "Applied"} ${result.operation}.`, output);
21768
21897
  emitSuccess(result, output);
21769
21898
  } catch (error) {
21770
21899
  const value = error;
21900
+ const invalidInput = error instanceof SyntaxError || error instanceof ZodError || value.code === "ENOENT" || value.code === "EACCES";
21771
21901
  emitError(
21772
21902
  {
21773
- code: value.code ?? "management_failed",
21903
+ code: invalidInput ? "invalid_input" : value.code ?? "management_failed",
21774
21904
  message: value.message ?? "Management operation failed.",
21775
21905
  hint: "Run `bamboo-agents eval operations --json` for supported names and bindings."
21776
21906
  },
@@ -21782,9 +21912,11 @@ async function runEvalManage(options) {
21782
21912
  var init_eval_management2 = __esm({
21783
21913
  "src/commands/eval-management.ts"() {
21784
21914
  "use strict";
21915
+ init_zod();
21785
21916
  init_eval_management();
21786
21917
  init_credentials();
21787
21918
  init_api();
21919
+ init_organization_selection();
21788
21920
  init_output();
21789
21921
  }
21790
21922
  });
@@ -22724,11 +22856,15 @@ episode.command("log-rec").description(
22724
22856
  await runEpisodeLogRec2(options);
22725
22857
  });
22726
22858
  var evals = program2.command("eval").description("Evaluation surface \u2014 A/B a candidate skill against its baseline");
22727
- evals.command("operations").description("List the exact supported investigation and wave management operations").option("--json", "Emit a JSON envelope for agent consumption").option("--fields <list>", "Project only these dotted field paths from data (comma-separated)").option("--quiet", "Suppress human chatter (data/errors only)").action(async (options) => {
22859
+ evals.command("scope").description("Resolve one organization and list its authoritative brands and agents").requiredOption("--org <uuid-or-name>", "Customer organization UUID, exact name, or unique name fragment").option("--json", "Emit a JSON envelope for agent consumption").option("--fields <list>", "Project only these dotted field paths from data (comma-separated)").option("--quiet", "Suppress human chatter (data/errors only)").action(async (options) => {
22860
+ const { runEvalScope: runEvalScope2 } = await Promise.resolve().then(() => (init_eval_management2(), eval_management_exports));
22861
+ await runEvalScope2(options);
22862
+ });
22863
+ evals.command("operations").description("List the exact supported investigation and wave management operations").option("--org <uuid-or-name>", "Operate in this organization (exact/unique names resolve authoritatively)").option("--json", "Emit a JSON envelope for agent consumption").option("--fields <list>", "Project only these dotted field paths from data (comma-separated)").option("--quiet", "Suppress human chatter (data/errors only)").action(async (options) => {
22728
22864
  const { runEvalOperations: runEvalOperations2 } = await Promise.resolve().then(() => (init_eval_management2(), eval_management_exports));
22729
22865
  await runEvalOperations2(options);
22730
22866
  });
22731
- evals.command("manage").description("Call one canonical investigation or wave operation").argument("<operation>", "Exact name from `eval operations`").requiredOption("--input <json-or-@file>", "JSON object, inline or loaded from @path").option("--json", "Emit a JSON envelope for agent consumption").option("--fields <list>", "Project only these dotted field paths from data (comma-separated)").option("--quiet", "Suppress human chatter (data/errors only)").option("--no-sync", "Skip the auto-sync git pull on this command").action(async (operation, options) => {
22867
+ evals.command("manage").description("Call one canonical investigation or wave operation").argument("<operation>", "Exact name from `eval operations`").requiredOption("--input <json-or-@file>", "JSON object, inline or loaded from @path").option("--org <uuid-or-name>", "Operate in this organization (exact/unique names resolve authoritatively)").option("--json", "Emit a JSON envelope for agent consumption").option("--fields <list>", "Project only these dotted field paths from data (comma-separated)").option("--quiet", "Suppress human chatter (data/errors only)").option("--no-sync", "Skip the auto-sync git pull on this command").action(async (operation, options) => {
22732
22868
  const { runEvalManage: runEvalManage2 } = await Promise.resolve().then(() => (init_eval_management2(), eval_management_exports));
22733
22869
  await runEvalManage2({ operation, ...options });
22734
22870
  });