@senticor/hive 1.64.1 → 1.68.0

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.
Files changed (2) hide show
  1. package/hive.cjs +39 -7
  2. package/package.json +1 -1
package/hive.cjs CHANGED
@@ -10376,22 +10376,22 @@ var artifactName = injectedString(
10376
10376
  true ? "hive-cli" : void 0
10377
10377
  ) || String(process.env.HIVE_CLI_ARTIFACT_NAME || "hive-cli").trim() || "hive-cli";
10378
10378
  var packageVersion = injectedString(
10379
- true ? "1.64.1" : void 0
10379
+ true ? "1.68.0" : void 0
10380
10380
  ) || String(process.env.HIVE_CLI_PACKAGE_VERSION || "").trim() || readPackageVersion();
10381
10381
  var releaseVersion = injectedString(
10382
- true ? "1.64.1" : void 0
10382
+ true ? "1.68.0" : void 0
10383
10383
  ) || String(process.env.HIVE_CLI_RELEASE_VERSION || "").trim() || packageVersion || "dev";
10384
10384
  var releaseChannel = injectedString(
10385
10385
  true ? "final" : void 0
10386
10386
  ) || String(process.env.HIVE_CLI_RELEASE_CHANNEL || "").trim() || (releaseVersion.includes("-rc.") ? "rc" : releaseVersion === "dev" ? "dev" : "final");
10387
10387
  var buildCommit = injectedString(
10388
- true ? "a20f650daa321670182992dd4f6e96f78cbbc806" : void 0
10388
+ true ? "5ca4af510710698963f1da8474abc0d27dfae90c" : void 0
10389
10389
  ) || String(process.env.HIVE_CLI_BUILD_COMMIT || "").trim() || "unknown";
10390
10390
  var buildTimestamp = injectedString(
10391
- true ? "2026-10-20T19:31:42Z" : void 0
10391
+ true ? "2026-10-22T15:49:44Z" : void 0
10392
10392
  ) || String(process.env.HIVE_CLI_BUILD_TIMESTAMP || "").trim() || "unknown";
10393
10393
  var ociRef = injectedString(
10394
- true ? "registry.onstackit.cloud/senticor/hive-cli:1.64.1" : void 0
10394
+ true ? "registry.onstackit.cloud/senticor/hive-cli:1.68.0" : void 0
10395
10395
  ) || String(process.env.HIVE_CLI_OCI_REF || "").trim() || `registry.onstackit.cloud/senticor/${artifactName}:${releaseVersion}`;
10396
10396
  var RELEASE_INFO = Object.freeze({
10397
10397
  packageVersion,
@@ -29033,7 +29033,8 @@ var missionArgs = withArgs({
29033
29033
  tenantWideRead: { type: "string", description: "Mission access policy: tenant-wide read (true|false)" },
29034
29034
  yes: { type: "boolean", description: "Confirm a sensitive change (e.g. widening tenant-wide read)" },
29035
29035
  dryRun: { type: "boolean", description: "Print the request that would be sent; perform no write" },
29036
- pin: { type: "boolean", description: "Pin created/reused mission as CLI context" }
29036
+ pin: { type: "boolean", description: "Pin created/reused mission as CLI context" },
29037
+ view: { type: "string", description: "mission list: summary (public summaries) or full (raw mission cells, default)" }
29037
29038
  });
29038
29039
  var missionTransferArgs = withArgs({
29039
29040
  out: { type: "string", description: "mission export: directory to write export.jsonl and objects/ into (must not hold an export yet)" },
@@ -29055,6 +29056,37 @@ function readPrincipalMap(file2) {
29055
29056
  }
29056
29057
  return raw;
29057
29058
  }
29059
+ var MISSION_PAGE_MAX = 200;
29060
+ var MISSION_LIST_MAX_PAGES = 100;
29061
+ async function listMissionPages(client, args) {
29062
+ const view = String(args.view || "full");
29063
+ if (view !== "summary" && view !== "full") throw commandError("INVALID_VIEW", 2, "--view must be summary or full");
29064
+ const cap = args.limit === void 0 ? Infinity : Number(args.limit);
29065
+ if (args.limit !== void 0 && (!Number.isInteger(cap) || cap < 1)) {
29066
+ throw commandError("INVALID_LIMIT", 2, "--limit must be a positive integer");
29067
+ }
29068
+ const missions = [];
29069
+ const failures = [];
29070
+ let cursor = args.cursor ? String(args.cursor) : null;
29071
+ let nextCursor = null;
29072
+ for (let page = 0; page < MISSION_LIST_MAX_PAGES; page += 1) {
29073
+ const qs = new URLSearchParams({ view, limit: String(Math.min(MISSION_PAGE_MAX, cap - missions.length)) });
29074
+ if (cursor) qs.set("cursor", cursor);
29075
+ const res = await client.get(`/api/missions?${qs}`);
29076
+ const body = asObject2(res.data);
29077
+ if (!isHttpOk(res.status)) return body;
29078
+ if (view === "summary" && body.view !== "summary") {
29079
+ throw commandError("SUMMARY_UNSUPPORTED", 1, "this API does not offer the mission summary view; use --view full");
29080
+ }
29081
+ if (Array.isArray(body.missions)) missions.push(...body.missions);
29082
+ if (Array.isArray(body.failures)) failures.push(...body.failures);
29083
+ nextCursor = body.hasMore === true && typeof body.nextCursor === "string" ? body.nextCursor : null;
29084
+ if (!nextCursor || missions.length >= cap) break;
29085
+ cursor = nextCursor;
29086
+ }
29087
+ const paging = { hasMore: nextCursor !== null, nextCursor };
29088
+ return view === "summary" ? { ok: true, view: "summary", missions, failures, ...paging } : { ok: true, missions, rows: missions, ...paging };
29089
+ }
29058
29090
  var mission = defineCommand({
29059
29091
  meta: { name: "mission", description: "Missions, their cases, bundles and members" },
29060
29092
  args: missionArgs,
@@ -29065,7 +29097,7 @@ var mission = defineCommand({
29065
29097
  args: missionArgs,
29066
29098
  async run({ args }) {
29067
29099
  const { client, fmt } = ctx(args);
29068
- return output((await client.get(`/api/missions?limit=${args.limit || 50}`)).data, fmt);
29100
+ return output(await listMissionPages(client, args), fmt);
29069
29101
  }
29070
29102
  }),
29071
29103
  get: defineCommand({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@senticor/hive",
3
- "version": "1.64.1",
3
+ "version": "1.68.0",
4
4
  "description": "Cognitive Hive OS — unified CLI",
5
5
  "type": "commonjs",
6
6
  "bin": {