@openape/apes 0.9.0 → 0.9.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/cli.js CHANGED
@@ -538,6 +538,14 @@ var inboxCommand = defineCommand5({
538
538
 
539
539
  // src/commands/grants/status.ts
540
540
  import { defineCommand as defineCommand6 } from "citty";
541
+ function formatTs(ts) {
542
+ if (ts === void 0 || ts === null)
543
+ return void 0;
544
+ const ms = ts * 1e3;
545
+ if (!Number.isFinite(ms))
546
+ return void 0;
547
+ return new Date(ms).toISOString();
548
+ }
541
549
  var statusCommand = defineCommand6({
542
550
  meta: {
543
551
  name: "status",
@@ -565,23 +573,32 @@ var statusCommand = defineCommand6({
565
573
  }
566
574
  console.log(`Grant: ${grant.id}`);
567
575
  console.log(`Status: ${grant.status}`);
568
- console.log(`Type: ${grant.type}`);
569
- console.log(`Requester: ${grant.requester}`);
570
- console.log(`Owner: ${grant.owner}`);
571
- if (grant.approver)
572
- console.log(`Approver: ${grant.approver}`);
576
+ if (grant.request?.audience)
577
+ console.log(`Audience: ${grant.request.audience}`);
578
+ if (grant.request?.requester)
579
+ console.log(`Requester: ${grant.request.requester}`);
580
+ if (grant.request?.target_host)
581
+ console.log(`Host: ${grant.request.target_host}`);
573
582
  if (grant.request?.command)
574
583
  console.log(`Command: ${grant.request.command.join(" ")}`);
575
584
  if (grant.request?.grant_type)
576
585
  console.log(`Approval: ${grant.request.grant_type}`);
577
586
  if (grant.request?.reason)
578
587
  console.log(`Reason: ${grant.request.reason}`);
588
+ const createdAt = formatTs(grant.created_at);
589
+ if (createdAt)
590
+ console.log(`Created: ${createdAt}`);
579
591
  if (grant.decided_by)
580
592
  console.log(`Decided by: ${grant.decided_by}`);
581
- if (grant.decided_at)
582
- console.log(`Decided at: ${grant.decided_at}`);
583
- if (grant.expires_at)
584
- console.log(`Expires: ${grant.expires_at}`);
593
+ const decidedAt = formatTs(grant.decided_at);
594
+ if (decidedAt)
595
+ console.log(`Decided at: ${decidedAt}`);
596
+ const usedAt = formatTs(grant.used_at);
597
+ if (usedAt)
598
+ console.log(`Used at: ${usedAt}`);
599
+ const expiresAt = formatTs(grant.expires_at);
600
+ if (expiresAt)
601
+ console.log(`Expires: ${expiresAt}`);
585
602
  }
586
603
  });
587
604
 
@@ -2512,7 +2529,7 @@ var mcpCommand = defineCommand26({
2512
2529
  if (transport !== "stdio" && transport !== "sse") {
2513
2530
  throw new Error('Transport must be "stdio" or "sse"');
2514
2531
  }
2515
- const { startMcpServer } = await import("./server-FFOPFICW.js");
2532
+ const { startMcpServer } = await import("./server-UA3JNXXZ.js");
2516
2533
  await startMcpServer(transport, port);
2517
2534
  }
2518
2535
  });
@@ -3004,7 +3021,7 @@ async function bestEffortGrantCount(idp) {
3004
3021
  }
3005
3022
  }
3006
3023
  async function runHealth(args) {
3007
- const version = true ? "0.9.0" : "0.0.0";
3024
+ const version = true ? "0.9.2" : "0.0.0";
3008
3025
  const auth = loadAuth();
3009
3026
  if (!auth) {
3010
3027
  throw new CliError("Not logged in. Run `apes login` first.", 1);
@@ -3206,10 +3223,10 @@ if (shellRewrite) {
3206
3223
  if (shellRewrite.action === "rewrite") {
3207
3224
  process.argv = shellRewrite.argv;
3208
3225
  } else if (shellRewrite.action === "version") {
3209
- console.log(`ape-shell ${"0.9.0"} (OpenApe DDISA shell wrapper)`);
3226
+ console.log(`ape-shell ${"0.9.2"} (OpenApe DDISA shell wrapper)`);
3210
3227
  process.exit(0);
3211
3228
  } else if (shellRewrite.action === "help") {
3212
- console.log(`ape-shell ${"0.9.0"} \u2014 OpenApe DDISA shell wrapper`);
3229
+ console.log(`ape-shell ${"0.9.2"} \u2014 OpenApe DDISA shell wrapper`);
3213
3230
  console.log("");
3214
3231
  console.log("Usage:");
3215
3232
  console.log(" ape-shell Start interactive grant-mediated REPL");
@@ -3224,7 +3241,7 @@ if (shellRewrite) {
3224
3241
  console.log(" --help, -h Show this help message");
3225
3242
  process.exit(0);
3226
3243
  } else if (shellRewrite.action === "interactive") {
3227
- const { runInteractiveShell } = await import("./orchestrator-GPNL543L.js");
3244
+ const { runInteractiveShell } = await import("./orchestrator-GJ5V4XDT.js");
3228
3245
  await runInteractiveShell();
3229
3246
  process.exit(0);
3230
3247
  } else {
@@ -3267,7 +3284,7 @@ var configCommand = defineCommand33({
3267
3284
  var main = defineCommand33({
3268
3285
  meta: {
3269
3286
  name: "apes",
3270
- version: "0.9.0",
3287
+ version: "0.9.2",
3271
3288
  description: "Unified CLI for OpenApe"
3272
3289
  },
3273
3290
  subCommands: {