bamboo-agents 0.1.5-dev.60.6d2930c → 0.1.5-dev.61.c67ae11

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.5-dev.60.6d2930c
1
+ 0.1.5-dev.61.c67ae11
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.60.6d2930c";
3040
+ VERSION = "0.1.5-dev.61.c67ae11";
3041
3041
  }
3042
3042
  });
3043
3043
 
@@ -7161,7 +7161,9 @@ var init_history = __esm({
7161
7161
  tool_name: external_exports.string().nullable(),
7162
7162
  status: external_exports.string(),
7163
7163
  timestamp: external_exports.string(),
7164
- duration_ms: external_exports.number().nullable()
7164
+ duration_ms: external_exports.number().nullable(),
7165
+ /** BAM-2661: runtime origin so `bamboo history --source <X>` can filter. */
7166
+ source: external_exports.string().nullable()
7165
7167
  });
7166
7168
  HistoryResponseSchema = external_exports.object({
7167
7169
  entries: external_exports.array(HistoryEntrySchema),
@@ -12665,6 +12667,7 @@ async function saveWorkspace(bambooSession, body) {
12665
12667
  async function getHistory(bambooSession, opts = {}) {
12666
12668
  const url = new URL(`${apiBase()}/api/v1/cli/history`);
12667
12669
  if (opts.limit) url.searchParams.set("limit", String(opts.limit));
12670
+ if (opts.source) url.searchParams.set("source", opts.source);
12668
12671
  const res = await cliApiFetch(url.toString(), {
12669
12672
  headers: { Authorization: `Bearer ${bambooSession}` }
12670
12673
  });
@@ -17566,7 +17569,10 @@ async function runHistory(options) {
17566
17569
  const session = await requireSession4(opts);
17567
17570
  let data;
17568
17571
  try {
17569
- data = await getHistory(session, { limit: parseLimit(options.limit) });
17572
+ data = await getHistory(session, {
17573
+ limit: parseLimit(options.limit),
17574
+ source: options.source
17575
+ });
17570
17576
  } catch (err) {
17571
17577
  emitError(
17572
17578
  { code: "history_failed", message: `couldn't load history: ${err.message}` },
@@ -18531,7 +18537,10 @@ knowledge.command("save").description("Save a knowledge file (routed write \u201
18531
18537
  const { runKnowledgeSave: runKnowledgeSave2 } = await Promise.resolve().then(() => (init_knowledge(), knowledge_exports));
18532
18538
  await runKnowledgeSave2(options);
18533
18539
  });
18534
- program2.command("history").description("Recent workspace actions (reverse-chronological)").option("--limit <n>", "Max entries (default 20, max 100)").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 (options) => {
18540
+ program2.command("history").description("Recent workspace actions (reverse-chronological)").option("--limit <n>", "Max entries (default 20, max 100)").option(
18541
+ "--source <runtime>",
18542
+ "Filter by runtime origin (boo | sandbox-boo | managed-agent)"
18543
+ ).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 (options) => {
18535
18544
  const { runHistory: runHistory2 } = await Promise.resolve().then(() => (init_history2(), history_exports2));
18536
18545
  await runHistory2(options);
18537
18546
  });