@unisonlabs/sixminute-admin 0.1.1330 → 0.1.1331-next

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.
@@ -21,7 +21,7 @@ import { homedir } from "node:os";
21
21
  import { fileURLToPath } from "node:url";
22
22
 
23
23
  // tools/admin/src/build-info.ts
24
- var BUILT = { version: "0.1.1330", commit: "4042fa79c0f0ae1a013febb5ff82877c40785544", surface: "b6f5e5ab99843501" };
24
+ var BUILT = { version: "0.1.1331-next", commit: "90b49749d4d65b4d87555c19954b9a8bddd3f1f4", surface: "20ea8005a02a0df9" };
25
25
 
26
26
  // tools/admin/src/run.ts
27
27
  import { readFileSync as readFileSync4, writeFileSync as writeFileSync2 } from "node:fs";
@@ -6716,13 +6716,6 @@ var AdminContextRetentionResultSchema = exports_external.object({
6716
6716
  calendar_events: exports_external.number().int().default(0)
6717
6717
  })
6718
6718
  });
6719
- var AdminSealedBackfillResultSchema = exports_external.object({
6720
- tenant: TenantIdSchema,
6721
- decisions_sealed: exports_external.number().int(),
6722
- intervals_aged: exports_external.number().int(),
6723
- judged_sealed: exports_external.number().int(),
6724
- done: exports_external.boolean()
6725
- });
6726
6719
  var AdminNarrativeInstructionsSetSchema = exports_external.object({ instructions: NarrativeGuidanceSchema });
6727
6720
  var AdminNarrativeInstructionsSchema = exports_external.object({
6728
6721
  tenant: exports_external.object({ id: TenantIdSchema, name: exports_external.string() }),
@@ -9125,17 +9118,12 @@ is required; without one every command answers 403.
9125
9118
  matter and client, decision latency, model cost, failed and held runs.
9126
9119
  Numbers and member ids only. Until the shadow ends (phase 7).
9127
9120
 
9128
- sixminute-admin backfill sealed --env <env> --tenant tenant_... [--json]
9129
- Seals the firm's interval summaries and labels and its entries' judged
9130
- drafts under its own key, and gives intervals stored before the context
9131
- store an age, a bounded pass at a time until nothing is left.
9132
-
9133
9121
  sixminute-admin scrub plaintext --env <env> --tenant tenant_... [--json]
9134
9122
  Starts the plaintext scrub of the firm's old rows, one job per active
9135
9123
  member, and prints how many it started: each job clears the plaintext
9136
9124
  twin of a sealed value (an entry's judged copy, an old interval's
9137
9125
  summary and label) only where the sealed value opens to the same
9138
- content, so nothing is lost. Run backfill sealed first. Refused, exit
9126
+ content, so nothing is lost. Refused, exit
9139
9127
  2, while a release older than the API's may still be served, because
9140
9128
  an older revision still reads the plaintext. Safe to run again: a
9141
9129
  member's job already started today is not started twice.
@@ -9572,8 +9560,6 @@ async function runAdmin(argv, deps) {
9572
9560
  return runNarrativeActivities(run2, rest[0] === "set");
9573
9561
  if (group === "narrative" && (subcommand === "show" || subcommand === "set"))
9574
9562
  return runNarrativeInstructions(run2, subcommand === "set");
9575
- if (group === "backfill" && subcommand === "sealed")
9576
- return runBackfillSealed(run2);
9577
9563
  if (group === "scrub" && subcommand === "plaintext")
9578
9564
  return runScrubPlaintext(run2);
9579
9565
  if (group === "pipeline" && subcommand === "shadow-report")
@@ -9803,23 +9789,6 @@ async function runNarrativeActivities(run2, set) {
9803
9789
  ...!set && file !== undefined ? [`written ${file}`] : []
9804
9790
  ]);
9805
9791
  }
9806
- async function runBackfillSealed(run2) {
9807
- const tenantId = required(run2.flags, "tenant", "whose rows to seal");
9808
- const total = { decisions_sealed: 0, intervals_aged: 0, judged_sealed: 0 };
9809
- for (;; ) {
9810
- const pass = AdminSealedBackfillResultSchema.parse(expectOk(await call(run2.api, "POST", tenantPath(tenantId, "/backfill/sealed"))));
9811
- total.decisions_sealed += pass.decisions_sealed;
9812
- total.intervals_aged += pass.intervals_aged;
9813
- total.judged_sealed += pass.judged_sealed;
9814
- if (pass.done)
9815
- break;
9816
- }
9817
- return render(run2, { tenant: tenantId, ...total }, [
9818
- `tenant ${tenantId}`,
9819
- `sealed ${total.decisions_sealed} interval decision(s), ${total.judged_sealed} judged draft(s)`,
9820
- `aged ${total.intervals_aged} interval(s)`
9821
- ]);
9822
- }
9823
9792
  var ScrubStartedSchema = exports_external.object({ tenant: exports_external.string(), started: exports_external.number().int().nonnegative() });
9824
9793
  async function runScrubPlaintext(run2) {
9825
9794
  const tenantId = required(run2.flags, "tenant", "whose old rows to scrub");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisonlabs/sixminute-admin",
3
- "version": "0.1.1330",
3
+ "version": "0.1.1331-next",
4
4
  "description": "Sixminute operator tool: the admin commands of the Sixminute API, run with your own operator sign-in.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {