@rightkit/release 0.6.83 → 0.6.85

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.
File without changes
package/deps.mjs CHANGED
File without changes
package/lsclean.sh CHANGED
File without changes
@@ -230,15 +230,31 @@ export function resolveKeyLogTrust(trust, logBytes) {
230
230
  const enrollmentComplete = REQUIRED_HOSTS.every((platform) => completedPlatforms.has(platform));
231
231
  return { ok: true, trust: { ...trust, ownershipKeys: verified.keys, ownershipAllKeys: verified.allKeys, enrollmentComplete, revokedKeyIds: [...new Set([...(trust.revokedKeyIds ?? []), ...verified.revokedKeyIds])] }, keyLogDigest: logDigest, checkpoint: verified.checkpoint };
232
232
  }
233
- export function verifyRepositoryRegistration(trust, repositoryIdentity, { files = [] } = {}) {
233
+ // The registry this gate ships (ownership-repositories.json). The host's protected copy was written by the retired
234
+ // trust-sync and can no longer be refreshed, so a repository registered here but missing there (a renamed origin, a new
235
+ // app) takes its registration from the shipped list (#1775). A repository in neither is still refused.
236
+ let shippedRegistry;
237
+ export function shippedRepositories() {
238
+ if (shippedRegistry === undefined) {
239
+ try {
240
+ const data = JSON.parse(readFileSync(new URL("./ownership-repositories.json", import.meta.url), "utf8"));
241
+ shippedRegistry = Array.isArray(data?.repositories) ? data.repositories : [];
242
+ } catch { shippedRegistry = []; }
243
+ }
244
+ return shippedRegistry;
245
+ }
246
+ const validShippedEntry = (entry) => entry && Array.isArray(entry.roots) && entry.roots.length > 0 && entry.roots.every((root) => exactRepositoryPath(root)) && ["public", "private"].includes(entry.visibility);
247
+ export function verifyRepositoryRegistration(trust, repositoryIdentity, { files = [], shipped = shippedRepositories() } = {}) {
234
248
  const validation = validateTrustRegistry(trust);
235
249
  if (!validation.ok) return { ok: false, problems: validation.problems };
236
250
  let identity;
237
251
  try { identity = canonicalRepositoryIdentity(repositoryIdentity); } catch { return { ok: false, problems: ["invalid repository identity"] }; }
238
- const registration = trust.repositories.find((entry) => entry.repositoryIdentity === identity);
252
+ const hostRegistration = trust.repositories.find((entry) => entry.repositoryIdentity === identity);
253
+ const shippedRegistration = hostRegistration ? null : shipped.find((entry) => entry?.repositoryIdentity === identity && validShippedEntry(entry));
254
+ const registration = hostRegistration ?? shippedRegistration;
239
255
  if (!registration) return { ok: false, problems: ["repository is not registered in protected trust"] };
240
256
  const problems = files.filter((file) => !exactRepositoryPath(file) || !registration.roots.some((root) => withinRoot(file, root))).map((file) => `path outside registered repository roots or malformed: ${file}`);
241
- return { ok: problems.length === 0, problems, registration };
257
+ return { ok: problems.length === 0, problems, registration, ...(shippedRegistration ? { warnings: [`repository registration for ${identity} comes from this gate's shipped list; this host's protected registry does not have it (warning only)`] } : {}) };
242
258
  }
243
259
  export function provenanceContentDigest(files) {
244
260
  return sha256([...files].map(({ path: file, content }) => ({ path: file, sha256: createHash("sha256").update(content).digest("hex") })).sort((a, b) => a.path.localeCompare(b.path)));
@@ -125,6 +125,7 @@ function createEvidence(repoRoot, {
125
125
  const origin = useCommittedSource ? source.origin : git(root, ["remote", "get-url", "origin"], gitRunner);
126
126
  repositoryIdentity = canonicalRepositoryIdentity(origin);
127
127
  registrationCheck = verifyRepositoryRegistration(trustState.trust, repositoryIdentity);
128
+ evidenceDiagnostics.push(...(registrationCheck.warnings ?? []));
128
129
  if (!registrationCheck.ok) {
129
130
  if (!enrollmentPending) throw new Error(registrationCheck.problems.join("; "));
130
131
  evidenceDiagnostics.push(...registrationCheck.problems);
@@ -52,6 +52,7 @@ export function ownershipVerdict(report, trust) {
52
52
  ] });
53
53
  } catch { return refuse("RK_OWNERSHIP_INVALID_REGISTRATION", ["protected repository registry is missing or malformed"]); }
54
54
  if (!noRegistry && !registration.ok) return refuse("RK_OWNERSHIP_INVALID_REGISTRATION", registration.problems);
55
+ if (!noRegistry) warnings.push(...(registration.warnings ?? []));
55
56
  const scannedRoots = report.metadata.roots?.map((entry) => entry.root) ?? [report.metadata.pathPrefix?.replace(/\/$/, "") || "."];
56
57
  if (!noRegistry && (new Set(scannedRoots).size !== scannedRoots.length || sha256([...scannedRoots].sort()) !== sha256([...registration.registration.roots].sort())))
57
58
  return refuse("RK_OWNERSHIP_INVALID_REGISTRATION", ["scan roots do not exactly cover protected repository registration"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rightkit/release",
3
- "version": "0.6.83",
3
+ "version": "0.6.85",
4
4
  "description": "Portable release CLI/SDK with fail-closed public GitHub Releases and private R2 + RightApps distribution.",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "type": "module",
@@ -121,7 +121,8 @@ export function publishLocalNpm(argv, { run = spawnSync, log = console.log, plat
121
121
  if (!fs.existsSync(o.archive)) fail(`--archive ${o.archive} does not exist`);
122
122
  tgzFile = path.join(work, path.basename(o.archive));
123
123
  fs.copyFileSync(o.archive, tgzFile, fs.constants.COPYFILE_EXCL);
124
- const inner = run("tar", ["-xzOf", tgzFile, "package/package.json"], { encoding: "utf8", maxBuffer: 1 << 24 });
124
+ // By name from its own folder: GNU tar (first on PATH under Git Bash) reads a drive-letter path such as D:\x.tgz as a remote host.
125
+ const inner = run("tar", ["-xzOf", path.basename(tgzFile), "package/package.json"], { cwd: work, encoding: "utf8", maxBuffer: 1 << 24 });
125
126
  let packedManifest = null;
126
127
  try { packedManifest = inner.status === 0 ? JSON.parse(String(inner.stdout ?? "")) : null; } catch { packedManifest = null; }
127
128
  if (!packedManifest) fail(`--archive ${o.archive} has no readable package/package.json`);
@@ -34,6 +34,8 @@ import { verifySealedRelease } from "./release-state.mjs";
34
34
  import { auditMain } from "./release-qa-audit.mjs";
35
35
  import { journeyRequiredItem, QA_RUN_ENV, relativePosix, validateJourneysReceipt } from "./release-qa-hardening.mjs";
36
36
  import { prepareInstalledArtifacts } from "./release-qa-installed.mjs";
37
+ import { CLASS_A_ENV } from "./gate-seam.mjs";
38
+ import { verdictForCwd } from "./seam-broker.mjs";
37
39
  import { QA_SOURCE_LISTING_ENV, writeQaSourceListing } from "./qa-source-listing.mjs";
38
40
  import { main as policyMain } from "./release-qa-policy.mjs";
39
41
  import { darwinKeyFile, PROTECTED_SECRETS } from "./protected-credentials.mjs";
@@ -201,11 +203,16 @@ export async function runQa({ stage, platform, releaseIdArg, configPath, deps =
201
203
  const sourceListing = split && journeysConfig && !journeysConfig.receipt
202
204
  ? (deps.writeSourceListing ?? writeQaSourceListing)({ source: release, dir: path.join(repoRoot, ".right-release", "qa-source"), git: gitRunner })
203
205
  : null;
206
+ // The journeys runner builds with `rustright cargo` in the app root, not through the seam, so the broker checks the stage's Class A
207
+ // verdict against that directory (its workspace is the cwd relative to the snapshot). Hand it the verdict for that directory, derived
208
+ // from the stage's root verdict exactly as the seam derives one for each of its own calls (seam-broker.mjs verdictForCwd).
209
+ const runCwd = appRoot;
210
+ const stageEnv = deps.env ?? process.env;
211
+ const classAForRoot = sourceListing && stageEnv[CLASS_A_ENV] ? (deps.verdictForCwd ?? verdictForCwd)(stageEnv, runCwd) : null;
204
212
  const runEnv = {
205
- ...process.env, ...(sourceListing ? { [QA_SOURCE_LISTING_ENV]: sourceListing } : {}), RIGHT_RELEASE_QA_STAGE: stage, RIGHT_RELEASE_QA_COMMIT: source.commit, RIGHT_RELEASE_QA_RELEASE_ID: releaseId,
213
+ ...process.env, ...(sourceListing ? { [QA_SOURCE_LISTING_ENV]: sourceListing } : {}), ...(classAForRoot ? { [CLASS_A_ENV]: classAForRoot } : {}), RIGHT_RELEASE_QA_STAGE: stage, RIGHT_RELEASE_QA_COMMIT: source.commit, RIGHT_RELEASE_QA_RELEASE_ID: releaseId,
206
214
  ...(sealed ? { RIGHT_RELEASE_QA_SEALED_DIR: sealed.sealedDir } : {}), ...(installedDirs.length ? { RIGHTKIT_QA_INSTALLED_DIRS: installedDirs.join(";") } : {}), ...(installedQa?.env ?? {}),
207
215
  };
208
- const runCwd = appRoot;
209
216
  const args = ["run", "--config", qaConfig, ...((config.qa.args?.[stage] ?? []).map(expand))];
210
217
  run = (deps.spawnRunner ?? spawnSync)(runnerFile, args, {
211
218
  cwd: runCwd, encoding: "utf8", windowsHide: true, maxBuffer: 64 * 1024 * 1024,
package/release.mjs CHANGED
File without changes
@@ -49,7 +49,7 @@
49
49
  "@rightkit/qa": "0.7.0",
50
50
  "@rightkit/qa-chrome": "0.1.12",
51
51
  "@rightkit/react-shell": "0.7.9",
52
- "@rightkit/release": "0.6.83",
52
+ "@rightkit/release": "0.6.85",
53
53
  "@rightkit/send-ui": "0.1.0",
54
54
  "@rightkit/settings-ui": "0.7.7",
55
55
  "@rightkit/social-ui": "0.2.1",
@@ -448,7 +448,9 @@
448
448
  "0.6.79",
449
449
  "0.6.80",
450
450
  "0.6.81",
451
- "0.6.82"
451
+ "0.6.82",
452
+ "0.6.83",
453
+ "0.6.84"
452
454
  ],
453
455
  "@rightkit/settings-ui": [
454
456
  "0.1.0",
@@ -541,9 +543,9 @@
541
543
  "rightkit-adapt": "0.2.1",
542
544
  "rightkit-adapt-taste": "0.1.3",
543
545
  "rightkit-agent-coding-tools": "0.1.9",
544
- "rightkit-agent-config": "0.1.3",
546
+ "rightkit-agent-config": "0.1.4",
545
547
  "rightkit-agent-daemon": "0.2.0",
546
- "rightkit-agent-demo": "0.2.0",
548
+ "rightkit-agent-demo": "0.2.1",
547
549
  "rightkit-agent-engine": "0.2.0",
548
550
  "rightkit-agent-engine-api-integrations": "0.1.6",
549
551
  "rightkit-agent-engine-api-platform": "0.1.3",
@@ -552,18 +554,18 @@
552
554
  "rightkit-agent-engine-attention": "0.2.1",
553
555
  "rightkit-agent-engine-cli": "0.1.1",
554
556
  "rightkit-agent-engine-core": "0.1.4",
555
- "rightkit-agent-engine-history": "0.1.4",
557
+ "rightkit-agent-engine-history": "0.1.6",
556
558
  "rightkit-agent-engine-mobile-runtime": "0.1.1",
557
559
  "rightkit-agent-engine-protocol": "0.4.1",
558
560
  "rightkit-agent-engine-runtime-middleware": "0.1.4",
559
- "rightkit-agent-engine-runtime-resources": "0.1.1",
560
- "rightkit-agent-engine-storage": "0.3.0",
561
+ "rightkit-agent-engine-runtime-resources": "0.1.2",
562
+ "rightkit-agent-engine-storage": "0.3.1",
561
563
  "rightkit-agent-engine-tasks": "0.3.0",
562
- "rightkit-agent-gateway": "0.3.0",
564
+ "rightkit-agent-gateway": "0.3.1",
563
565
  "rightkit-agent-host-traits": "0.1.3",
564
566
  "rightkit-agent-learning": "0.1.2",
565
567
  "rightkit-agent-local-models": "0.1.3",
566
- "rightkit-agent-orchestration": "0.1.6",
568
+ "rightkit-agent-orchestration": "0.1.7",
567
569
  "rightkit-agent-orchestration-handoff": "0.1.2",
568
570
  "rightkit-agent-plugins": "0.1.4",
569
571
  "rightkit-agent-policy": "0.2.4",
@@ -572,7 +574,7 @@
572
574
  "rightkit-agent-skills": "0.1.0",
573
575
  "rightkit-agent-task-contract": "0.1.2",
574
576
  "rightkit-agent-task-journal": "0.1.1",
575
- "rightkit-agent-telemetry": "0.1.0",
577
+ "rightkit-agent-telemetry": "0.1.1",
576
578
  "rightkit-agent-tools": "0.4.4",
577
579
  "rightkit-agent-transcript": "0.1.4",
578
580
  "rightkit-agents": "0.2.8",
@@ -580,23 +582,23 @@
580
582
  "rightkit-ai-keys": "0.1.1",
581
583
  "rightkit-android": "0.3.3",
582
584
  "rightkit-app-host": "0.1.3",
583
- "rightkit-app-icon": "0.1.0",
585
+ "rightkit-app-icon": "0.1.1",
584
586
  "rightkit-app-lock": "0.1.1",
585
587
  "rightkit-app-manager": "0.2.5",
586
588
  "rightkit-app-settings": "0.4.4",
587
- "rightkit-app-update": "0.2.0",
589
+ "rightkit-app-update": "0.2.1",
588
590
  "rightkit-apple-ops": "0.2.0",
589
591
  "rightkit-approvals": "0.2.2",
590
592
  "rightkit-asr": "0.5.2",
591
593
  "rightkit-assist": "0.1.1",
592
594
  "rightkit-audio": "0.4.4",
593
- "rightkit-autoedit": "0.2.0",
595
+ "rightkit-autoedit": "0.2.1",
594
596
  "rightkit-automation": "0.7.6",
595
597
  "rightkit-autostart": "0.1.1",
596
598
  "rightkit-bench": "0.2.1",
597
599
  "rightkit-bot-messaging": "0.3.1",
598
600
  "rightkit-browser": "0.3.12",
599
- "rightkit-cache": "0.2.4",
601
+ "rightkit-cache": "0.2.5",
600
602
  "rightkit-captions": "0.1.1",
601
603
  "rightkit-catalog": "0.1.0",
602
604
  "rightkit-channel-memory": "0.2.3",
@@ -608,13 +610,13 @@
608
610
  "rightkit-code-audit-engine": "0.2.0",
609
611
  "rightkit-code-audit-provider-sdk": "0.1.1",
610
612
  "rightkit-code-audit-qualification": "0.2.0",
611
- "rightkit-color": "0.1.1",
612
- "rightkit-compose": "0.2.3",
613
+ "rightkit-color": "0.1.2",
614
+ "rightkit-compose": "0.2.4",
613
615
  "rightkit-compositor": "0.2.1",
614
616
  "rightkit-connector-gen": "0.1.0",
615
- "rightkit-content-plan": "0.2.1",
617
+ "rightkit-content-plan": "0.2.2",
616
618
  "rightkit-content-proof": "0.1.1",
617
- "rightkit-context": "0.2.0",
619
+ "rightkit-context": "0.2.1",
618
620
  "rightkit-context-client": "0.2.0",
619
621
  "rightkit-context-core": "0.2.0",
620
622
  "rightkit-context-federation": "0.2.1",
@@ -636,22 +638,22 @@
636
638
  "rightkit-device-link": "0.1.0",
637
639
  "rightkit-device-link-core": "0.1.1",
638
640
  "rightkit-device-link-types": "0.1.2",
639
- "rightkit-dictation-app-runtime": "0.3.1",
641
+ "rightkit-dictation-app-runtime": "0.3.2",
640
642
  "rightkit-dictation-command-host": "0.3.4",
641
643
  "rightkit-dictation-core": "0.3.7",
642
644
  "rightkit-dictation-engine": "0.2.1",
643
645
  "rightkit-dictation-ffi": "0.2.1",
644
- "rightkit-dictation-inference": "0.2.4",
646
+ "rightkit-dictation-inference": "0.2.5",
645
647
  "rightkit-dictation-models": "0.3.3",
646
648
  "rightkit-dictation-pill": "0.1.2",
647
649
  "rightkit-dictation-runtime": "0.2.7",
648
650
  "rightkit-dictation-tauri": "0.3.4",
649
651
  "rightkit-dictation-telemetry": "0.2.4",
650
- "rightkit-dictation-text-pipeline": "0.2.7",
652
+ "rightkit-dictation-text-pipeline": "0.2.8",
651
653
  "rightkit-disk-cleanup": "0.2.2",
652
654
  "rightkit-docs": "0.1.6",
653
655
  "rightkit-doctor": "0.2.0",
654
- "rightkit-document-workspace": "0.2.0",
656
+ "rightkit-document-workspace": "0.2.1",
655
657
  "rightkit-embed": "0.7.1",
656
658
  "rightkit-engine-host": "0.2.1",
657
659
  "rightkit-evidence": "0.1.1",
@@ -659,7 +661,7 @@
659
661
  "rightkit-evidence-commands": "0.2.0",
660
662
  "rightkit-evidence-contracts": "0.1.1",
661
663
  "rightkit-evidence-decisions": "0.1.1",
662
- "rightkit-evidence-effects": "0.1.1",
664
+ "rightkit-evidence-effects": "0.1.2",
663
665
  "rightkit-evidence-governance": "0.1.1",
664
666
  "rightkit-evidence-report": "0.1.1",
665
667
  "rightkit-feed": "0.1.0",
@@ -667,10 +669,10 @@
667
669
  "rightkit-file-watch": "0.4.4",
668
670
  "rightkit-fs": "0.5.2",
669
671
  "rightkit-fsindex": "0.6.3",
670
- "rightkit-github": "0.2.0",
672
+ "rightkit-github": "0.2.1",
671
673
  "rightkit-google-apis": "0.2.3",
672
674
  "rightkit-google-identity": "0.3.0",
673
- "rightkit-gpu": "0.1.0",
675
+ "rightkit-gpu": "0.1.1",
674
676
  "rightkit-hooks": "0.3.0",
675
677
  "rightkit-hotkeys": "0.1.8",
676
678
  "rightkit-http": "0.4.1",
@@ -680,20 +682,20 @@
680
682
  "rightkit-job-queue": "0.6.2",
681
683
  "rightkit-launcher": "0.2.2",
682
684
  "rightkit-launcher-win": "0.2.1",
683
- "rightkit-library": "0.3.0",
685
+ "rightkit-library": "0.3.1",
684
686
  "rightkit-license": "0.3.5",
685
687
  "rightkit-llm": "0.7.1",
686
- "rightkit-local-gen": "0.1.3",
688
+ "rightkit-local-gen": "0.1.4",
687
689
  "rightkit-logs": "0.4.5",
688
690
  "rightkit-mail": "0.1.2",
689
- "rightkit-mail-gateway": "0.1.0",
690
- "rightkit-mail-store": "0.2.1",
691
+ "rightkit-mail-gateway": "0.1.1",
692
+ "rightkit-mail-store": "0.2.2",
691
693
  "rightkit-mcp": "0.10.1",
692
694
  "rightkit-media-control": "0.1.2",
693
- "rightkit-media-fetch": "0.2.0",
694
- "rightkit-media-gen": "0.2.3",
695
+ "rightkit-media-fetch": "0.2.1",
696
+ "rightkit-media-gen": "0.2.4",
695
697
  "rightkit-media-gen-approvals": "0.1.2",
696
- "rightkit-media-gen-client": "0.1.0",
698
+ "rightkit-media-gen-client": "0.1.1",
697
699
  "rightkit-media-gen-models": "0.1.1",
698
700
  "rightkit-media-pipeline": "0.2.2",
699
701
  "rightkit-memory": "0.3.1",
@@ -702,7 +704,7 @@
702
704
  "rightkit-memory-store": "0.2.2",
703
705
  "rightkit-mesh": "0.2.3",
704
706
  "rightkit-models": "0.7.3",
705
- "rightkit-motion": "0.4.0",
707
+ "rightkit-motion": "0.4.1",
706
708
  "rightkit-notch-ui": "0.2.3",
707
709
  "rightkit-notifications": "0.1.2",
708
710
  "rightkit-now-playing": "0.1.0",
@@ -712,12 +714,12 @@
712
714
  "rightkit-overlay": "0.2.4",
713
715
  "rightkit-overlay-win": "0.1.7",
714
716
  "rightkit-owner-approvals": "0.1.3",
715
- "rightkit-ownership": "0.4.6",
717
+ "rightkit-ownership": "0.4.7",
716
718
  "rightkit-passkeys": "0.1.0",
717
719
  "rightkit-pdf": "0.3.6",
718
720
  "rightkit-pipeline": "0.2.0",
719
721
  "rightkit-platform-rules": "0.1.1",
720
- "rightkit-playback": "0.3.1",
722
+ "rightkit-playback": "0.3.2",
721
723
  "rightkit-policy-rules": "0.1.1",
722
724
  "rightkit-power": "0.1.0",
723
725
  "rightkit-presence": "0.1.2",
@@ -727,24 +729,24 @@
727
729
  "rightkit-pty": "0.1.3",
728
730
  "rightkit-qa": "0.10.14",
729
731
  "rightkit-record": "0.4.1",
730
- "rightkit-reframe": "0.2.0",
731
- "rightkit-remote-compute": "0.2.1",
732
+ "rightkit-reframe": "0.2.1",
733
+ "rightkit-remote-compute": "0.2.2",
732
734
  "rightkit-remote-gateway": "0.1.5",
733
735
  "rightkit-repo-graph": "0.3.3",
734
736
  "rightkit-repo-graph-grammars": "0.1.1",
735
737
  "rightkit-research": "0.1.2",
736
- "rightkit-review": "0.6.0",
738
+ "rightkit-review": "0.6.1",
737
739
  "rightkit-roots": "0.3.0",
738
740
  "rightkit-sandbox": "0.7.0",
739
741
  "rightkit-scheduler": "0.3.1",
740
742
  "rightkit-search": "0.4.6",
741
743
  "rightkit-send": "0.4.2",
742
- "rightkit-shorts": "0.2.4",
744
+ "rightkit-shorts": "0.2.5",
743
745
  "rightkit-sidecar": "0.3.4",
744
746
  "rightkit-signal": "0.1.0",
745
- "rightkit-social-analytics": "0.3.0",
747
+ "rightkit-social-analytics": "0.3.1",
746
748
  "rightkit-social-inbox": "0.3.1",
747
- "rightkit-social-publish": "0.2.0",
749
+ "rightkit-social-publish": "0.2.1",
748
750
  "rightkit-speech-client": "0.5.0",
749
751
  "rightkit-spend": "0.2.4",
750
752
  "rightkit-sync": "0.4.4",
@@ -752,11 +754,11 @@
752
754
  "rightkit-sysmem": "0.1.0",
753
755
  "rightkit-system-monitor": "0.3.2",
754
756
  "rightkit-tauri-shell": "0.8.10",
755
- "rightkit-terminal-ui": "0.1.3",
757
+ "rightkit-terminal-ui": "0.1.4",
756
758
  "rightkit-text-polish": "0.1.4",
757
759
  "rightkit-theme": "0.1.1",
758
760
  "rightkit-time": "0.1.5",
759
- "rightkit-timeline": "0.1.1",
761
+ "rightkit-timeline": "0.1.2",
760
762
  "rightkit-transcript": "0.4.2",
761
763
  "rightkit-transcript-library": "0.1.8",
762
764
  "rightkit-tts": "0.3.2",
@@ -770,7 +772,7 @@
770
772
  "rightkit-web-extract": "0.1.2",
771
773
  "rightkit-web-session": "0.1.2",
772
774
  "rightkit-win-ui": "0.1.3",
773
- "rightkit-workflow": "0.2.3"
775
+ "rightkit-workflow": "0.2.4"
774
776
  },
775
777
  "swift": {
776
778
  "rightkit-swift": {
@@ -916,7 +918,7 @@
916
918
  "@rightkit/qa": "0.7.0",
917
919
  "@rightkit/qa-chrome": "0.1.12",
918
920
  "@rightkit/react-shell": "0.7.7",
919
- "@rightkit/release": "0.6.82",
921
+ "@rightkit/release": "0.6.84",
920
922
  "@rightkit/settings-ui": "0.7.4",
921
923
  "@rightkit/shell": "0.1.1",
922
924
  "@rightkit/tauri": "0.4.3",
@@ -1048,7 +1050,8 @@
1048
1050
  "rightkit-cache": [
1049
1051
  "0.2.0",
1050
1052
  "0.2.2",
1051
- "0.2.3"
1053
+ "0.2.3",
1054
+ "0.2.4"
1052
1055
  ],
1053
1056
  "rightkit-channel-memory": [
1054
1057
  "0.1.0",
@@ -1083,7 +1086,8 @@
1083
1086
  ],
1084
1087
  "rightkit-compose": [
1085
1088
  "0.1.0",
1086
- "0.2.0"
1089
+ "0.2.0",
1090
+ "0.2.3"
1087
1091
  ],
1088
1092
  "rightkit-context-runtime": [
1089
1093
  "0.1.4"
@@ -1162,7 +1166,8 @@
1162
1166
  ],
1163
1167
  "rightkit-dictation-app-runtime": [
1164
1168
  "0.2.0",
1165
- "0.2.2"
1169
+ "0.2.2",
1170
+ "0.3.1"
1166
1171
  ],
1167
1172
  "rightkit-dictation-command-host": [
1168
1173
  "0.3.0",
@@ -1179,7 +1184,8 @@
1179
1184
  "0.2.0"
1180
1185
  ],
1181
1186
  "rightkit-dictation-inference": [
1182
- "0.2.3"
1187
+ "0.2.3",
1188
+ "0.2.4"
1183
1189
  ],
1184
1190
  "rightkit-dictation-models": [
1185
1191
  "0.3.0",
@@ -1405,7 +1411,8 @@
1405
1411
  ],
1406
1412
  "rightkit-motion": [
1407
1413
  "0.1.0",
1408
- "0.2.0"
1414
+ "0.2.0",
1415
+ "0.4.0"
1409
1416
  ],
1410
1417
  "rightkit-notch-ui": [
1411
1418
  "0.2.1",
@@ -1459,7 +1466,8 @@
1459
1466
  "0.3.1",
1460
1467
  "0.4.0",
1461
1468
  "0.4.1",
1462
- "0.4.2"
1469
+ "0.4.2",
1470
+ "0.4.6"
1463
1471
  ],
1464
1472
  "rightkit-pdf": [
1465
1473
  "0.1.0",
@@ -1477,7 +1485,8 @@
1477
1485
  "0.2.0",
1478
1486
  "0.2.1",
1479
1487
  "0.2.2",
1480
- "0.3.0"
1488
+ "0.3.0",
1489
+ "0.3.1"
1481
1490
  ],
1482
1491
  "rightkit-presence": [
1483
1492
  "0.1.1"
@@ -1550,7 +1559,8 @@
1550
1559
  ],
1551
1560
  "rightkit-review": [
1552
1561
  "0.2.0",
1553
- "0.4.0"
1562
+ "0.4.0",
1563
+ "0.6.0"
1554
1564
  ],
1555
1565
  "rightkit-roots": [
1556
1566
  "0.2.1"
@@ -1721,7 +1731,8 @@
1721
1731
  ],
1722
1732
  "rightkit-workflow": [
1723
1733
  "0.1.0",
1724
- "0.2.0"
1734
+ "0.2.0",
1735
+ "0.2.3"
1725
1736
  ],
1726
1737
  "rightkit-owner-approvals": [
1727
1738
  "0.1.2"
@@ -1778,6 +1789,103 @@
1778
1789
  ],
1779
1790
  "rightkit-repo-graph": [
1780
1791
  "0.3.2"
1792
+ ],
1793
+ "rightkit-agent-config": [
1794
+ "0.1.3"
1795
+ ],
1796
+ "rightkit-agent-demo": [
1797
+ "0.2.0"
1798
+ ],
1799
+ "rightkit-agent-engine-history": [
1800
+ "0.1.4",
1801
+ "0.1.5"
1802
+ ],
1803
+ "rightkit-agent-engine-runtime-resources": [
1804
+ "0.1.1"
1805
+ ],
1806
+ "rightkit-agent-engine-storage": [
1807
+ "0.3.0"
1808
+ ],
1809
+ "rightkit-agent-gateway": [
1810
+ "0.3.0"
1811
+ ],
1812
+ "rightkit-agent-orchestration": [
1813
+ "0.1.6"
1814
+ ],
1815
+ "rightkit-agent-telemetry": [
1816
+ "0.1.0"
1817
+ ],
1818
+ "rightkit-app-icon": [
1819
+ "0.1.0"
1820
+ ],
1821
+ "rightkit-app-update": [
1822
+ "0.2.0"
1823
+ ],
1824
+ "rightkit-autoedit": [
1825
+ "0.2.0"
1826
+ ],
1827
+ "rightkit-color": [
1828
+ "0.1.1"
1829
+ ],
1830
+ "rightkit-content-plan": [
1831
+ "0.2.1"
1832
+ ],
1833
+ "rightkit-context": [
1834
+ "0.2.0"
1835
+ ],
1836
+ "rightkit-document-workspace": [
1837
+ "0.2.0"
1838
+ ],
1839
+ "rightkit-evidence-effects": [
1840
+ "0.1.1"
1841
+ ],
1842
+ "rightkit-github": [
1843
+ "0.2.0"
1844
+ ],
1845
+ "rightkit-gpu": [
1846
+ "0.1.0"
1847
+ ],
1848
+ "rightkit-library": [
1849
+ "0.3.0"
1850
+ ],
1851
+ "rightkit-local-gen": [
1852
+ "0.1.3"
1853
+ ],
1854
+ "rightkit-mail-gateway": [
1855
+ "0.1.0"
1856
+ ],
1857
+ "rightkit-mail-store": [
1858
+ "0.2.1"
1859
+ ],
1860
+ "rightkit-media-fetch": [
1861
+ "0.2.0"
1862
+ ],
1863
+ "rightkit-media-gen-client": [
1864
+ "0.1.0"
1865
+ ],
1866
+ "rightkit-media-gen": [
1867
+ "0.2.3"
1868
+ ],
1869
+ "rightkit-reframe": [
1870
+ "0.2.0"
1871
+ ],
1872
+ "rightkit-remote-compute": [
1873
+ "0.2.1"
1874
+ ],
1875
+ "rightkit-shorts": [
1876
+ "0.2.4"
1877
+ ],
1878
+ "rightkit-social-analytics": [
1879
+ "0.3.0"
1880
+ ],
1881
+ "rightkit-social-publish": [
1882
+ "0.2.0"
1883
+ ],
1884
+ "rightkit-terminal-ui": [
1885
+ "0.1.3"
1886
+ ],
1887
+ "rightkit-timeline": [
1888
+ "0.1.1"
1781
1889
  ]
1782
1890
  }
1783
1891
  }
package/sign-windows.mjs CHANGED
@@ -93,15 +93,28 @@ export function windowsSigningContext({ processEnv = process.env, run = spawnSyn
93
93
  const stdout = String(result.stdout ?? "").trim();
94
94
  if (!EXPIRY.test(stdout)) return { ok: false, detail: `az printed something other than an expiry (not shown, ${stdout.length} chars)` };
95
95
  const expires = new Date(stdout.replace(" ", "T")).getTime();
96
- if (!Number.isFinite(expires) || expires < now + minMinutes * 60000) return { ok: false, detail: `the token expires at ${stdout} (local), under ${minMinutes} minutes from now` };
96
+ if (!Number.isFinite(expires)) return { ok: false, detail: `the token expiry ${stdout} (local) cannot be read` };
97
+ if (expires < now + minMinutes * 60000) return { ok: false, detail: `the token expires at ${stdout} (local), under ${minMinutes} minutes from now`, expires };
97
98
  return { ok: true, detail: stdout };
98
99
  };
99
100
  return { env, platform, exists, findFirst, signtoolCandidates, run: runTool, checkToken };
100
101
  }
101
102
 
102
103
  /** Before any copy, temp file or output: the signer's Azure CLI sign-in must yield a silent token. */
103
- export function requireSignerToken(ctx = windowsSigningContext({ quiet: true })) {
104
- const state = ctx.checkToken();
104
+ // Azure CLI (MSAL) hands back its cached access token until about five minutes before it expires and refreshes it only then, so a
105
+ // token found with less than the margin left is not a dead sign-in: asked again inside MSAL's refresh window, az returns a fresh one.
106
+ // Refusing there made every hourly token unusable for its last ten minutes. Wait for that window (at most the margin) and ask once more.
107
+ export const MSAL_REFRESH_WINDOW_MS = 4.5 * 60000;
108
+ const sleepSync = (ms) => { if (ms > 0) Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms); };
109
+ export function requireSignerToken(ctx = windowsSigningContext({ quiet: true }), { now = () => Date.now(), sleep = sleepSync, log = (line) => process.stderr.write(`${line}
110
+ `) } = {}) {
111
+ let state = ctx.checkToken();
112
+ if (!state.ok && Number.isFinite(state.expires) && state.expires > now()) {
113
+ const wait = Math.max(0, state.expires - MSAL_REFRESH_WINDOW_MS - now());
114
+ log(`[sign-windows] ${state.detail}; az refreshes a cached token only near its expiry, so waiting ${Math.ceil(wait / 1000)} s and asking again`);
115
+ sleep(wait);
116
+ state = ctx.checkToken();
117
+ }
105
118
  if (!state.ok) throw new WindowsSigningTokenError(state.detail);
106
119
  }
107
120
 
package/upload-large.mjs CHANGED
File without changes