inferative 0.4.0 → 0.5.0-next.20261111223013

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/README.md CHANGED
@@ -263,6 +263,18 @@ INFERATIVE_MEMORY_TOKEN=<credential> pnpm exec inferative memory setup --project
263
263
  No file holds the credential. The hook calls `memory_index` on the MCP server through Claude Code's own sign-in, which
264
264
  `inferative plugin claude` sets up, and loads the memory index of the project at the start of a session.
265
265
 
266
+ ## `inferative clone`
267
+
268
+ `inferative clone <project key>/<role> [directory] --url <origin>` clones your own work copy of a hosted repository: a
269
+ fork that only you write, of a repository whose default branch only the platform writes. It reads
270
+ `INFERATIVE_PROJECTS_TOKEN` (your credential of the host with `projects:write`) from the environment or from `.env`,
271
+ opens the work copy (the host forks it then) and runs `git clone`. The clone names `inferative git-credential` as the
272
+ credential helper of the copy's address, with `credential.useHttpPath`, so Git asks the host for a new 1-hour token
273
+ before each fetch and push and sends it to no other repository of the same host. The helper reads the credential from
274
+ the environment, else from the `.env` of the folder the clone ran in, whose path the clone records. No token is written
275
+ to a file;
276
+ `inferative` must be on the path for the helper.
277
+
266
278
  ## The derived secrets
267
279
 
268
280
  A host derives some secrets from its root secret (`INFERATIVE_ROOT_SECRET`) when their own variable is not set. One of
package/dist/bin.mjs CHANGED
@@ -6,6 +6,8 @@ import { existsSync, readFileSync } from "node:fs";
6
6
  import { basename, dirname, extname, isAbsolute, join, normalize, relative, resolve, sep } from "node:path";
7
7
  import { pathToFileURL } from "node:url";
8
8
  import { createJiti } from "jiti";
9
+ import { execFile } from "node:child_process";
10
+ import { parseEnv } from "node:util";
9
11
  import { InitCommand, RegistryAccess, RegistryAccessStatus } from "create-inferative";
10
12
  import { mkdir, readFile, readdir, rename, rm, stat, writeFile } from "node:fs/promises";
11
13
  import { ClientTransport } from "@heximon/client";
@@ -13,7 +15,6 @@ import { ContractError } from "@heximon/contract";
13
15
  import { MemoryAgentApi } from "@inferative/memory/api";
14
16
  import { ChannelManifestGateway, LocalePathPrefix, ManifestDriftReport, SiteDoctorReport, SiteHealth, SiteHealthDocument, SiteHealthRoute, SiteKeyPresence, SiteManifest, SiteManifestSyncExit, SiteManifestSyncRunner } from "@inferative/sdk/site";
15
17
  import { SdkVersion } from "@inferative/sdk/common";
16
- import { parseEnv } from "node:util";
17
18
  import { TomlError, parse } from "smol-toml";
18
19
  import { createHash, randomUUID } from "node:crypto";
19
20
  import { DeploymentSecret, LocalizationConfig, RootSecret, RootSecretPurpose } from "@inferative/base/config";
@@ -414,6 +415,399 @@ var BackupCommand = class BackupCommand {
414
415
  }
415
416
  };
416
417
  //#endregion
418
+ //#region src/plugin/plugin-error.ts
419
+ /** A failure that `inferative plugin` reports in plain words, without a stack trace. */
420
+ var PluginError = class extends Error {
421
+ constructor(message, options) {
422
+ super(message, options);
423
+ this.name = "PluginError";
424
+ }
425
+ };
426
+ //#endregion
427
+ //#region src/plugin/dev-host-address.ts
428
+ /** Where an address came from. */
429
+ const DevHostAddressSource = {
430
+ /** The `--url` flag. */
431
+ Flag: "flag",
432
+ /** No value was set. */
433
+ Default: "default"
434
+ };
435
+ /** Resolves the address of the dev host. */
436
+ var DevHostAddress = class DevHostAddress {
437
+ /** The origin of `nuxt dev` when nothing else is set. */
438
+ static defaultOrigin = "http://localhost:3000";
439
+ /** The path of the MCP endpoint below the origin. */
440
+ static mcpPath = "/api/mcp";
441
+ /**
442
+ * @param explicit - The `--url` value.
443
+ * @returns The origin, the MCP address and where the origin came from.
444
+ * @throws {@link PluginError} when the address is not an `http(s)` origin.
445
+ */
446
+ static resolve(explicit) {
447
+ return explicit === void 0 ? DevHostAddress.of(DevHostAddress.defaultOrigin, DevHostAddressSource.Default) : DevHostAddress.of(explicit, DevHostAddressSource.Flag);
448
+ }
449
+ /** The address, checked to be an `http(s)` origin with no path. */
450
+ static of(value, source) {
451
+ let url;
452
+ try {
453
+ url = new URL(value);
454
+ } catch (error) {
455
+ throw new PluginError(`The address ${value} is not a URL. Pass an origin such as ${DevHostAddress.defaultOrigin}.`, { cause: error });
456
+ }
457
+ if (url.protocol !== "http:" && url.protocol !== "https:" || url.pathname !== "/" || url.search !== "" || url.hash !== "") throw new PluginError(`The address ${value} is not an origin. Pass the origin of the dev host only, such as ${DevHostAddress.defaultOrigin}.`);
458
+ return {
459
+ origin: url.origin,
460
+ mcpUrl: `${url.origin}${DevHostAddress.mcpPath}`,
461
+ source
462
+ };
463
+ }
464
+ };
465
+ //#endregion
466
+ //#region src/site/site-environment.ts
467
+ /** Reads the `.env` file of a site root. */
468
+ var SiteEnvironment = class SiteEnvironment {
469
+ /** The file name, in the site root. */
470
+ static fileName = ".env";
471
+ /**
472
+ * The environment of one run.
473
+ *
474
+ * Without `provided`, the run is the real process: the file's values are written into `process.env`, because
475
+ * the runtime config loader reads `process.env` itself. With `provided`, a test or a caller owns the
476
+ * environment, and nothing global changes.
477
+ *
478
+ * @param root - The site root.
479
+ * @param provided - The environment to read, when the caller supplies one.
480
+ * @returns The environment, with a value that is already set winning over the file.
481
+ */
482
+ static resolve(root, provided) {
483
+ if (provided !== void 0) return SiteEnvironment.merged(root, provided);
484
+ for (const [name, value] of Object.entries(SiteEnvironment.fileValues(root))) if (process.env[name] === void 0) process.env[name] = value;
485
+ return process.env;
486
+ }
487
+ /** The file's values under `environment`: a variable that is set wins. */
488
+ static merged(root, environment) {
489
+ return {
490
+ ...SiteEnvironment.fileValues(root),
491
+ ...SiteEnvironment.defined(environment)
492
+ };
493
+ }
494
+ /** The variables of `environment` that have a value. */
495
+ static defined(environment) {
496
+ return Object.fromEntries(Object.entries(environment).filter((entry) => entry[1] !== void 0));
497
+ }
498
+ /** The values in the root's `.env`; none when there is no such file. */
499
+ static fileValues(root) {
500
+ const path = join(root, SiteEnvironment.fileName);
501
+ if (!existsSync(path)) return {};
502
+ const values = {};
503
+ for (const [name, value] of Object.entries(parseEnv(readFileSync(path, "utf8")))) if (value !== void 0) values[name] = value;
504
+ return values;
505
+ }
506
+ };
507
+ //#endregion
508
+ //#region src/clone/hosted-repository-api.ts
509
+ /** Calls the projects API of a host with a person's bearer credential. */
510
+ var HostedRepositoryApi = class HostedRepositoryApi {
511
+ origin;
512
+ bearer;
513
+ call;
514
+ /** The variable that holds the bearer of the host: a person's credential with `projects:write`. */
515
+ static credentialVariable = "INFERATIVE_PROJECTS_TOKEN";
516
+ /**
517
+ * @param origin - The origin of the host.
518
+ * @param bearer - The person's credential.
519
+ * @param call - The `fetch` of the requests.
520
+ */
521
+ constructor(origin, bearer, call = globalThis.fetch) {
522
+ this.origin = origin;
523
+ this.bearer = bearer;
524
+ this.call = call;
525
+ }
526
+ /**
527
+ * @param name - `<project key>/<role>`, such as `WEB/site`.
528
+ * @returns The project and the repository that the name names.
529
+ * @throws {@link PluginError} When the name names no hosted repository that the person reaches.
530
+ */
531
+ async targetOf(name) {
532
+ const [key, role, ...rest] = name.split("/");
533
+ if (key === void 0 || role === void 0 || key === "" || role === "" || rest.length > 0) throw new PluginError(`Name the repository as <project key>/<role>, such as WEB/site; ${name} is not one.`);
534
+ const projectId = HostedRepositoryApi.textOf(await this.json("GET", `/api/projects/by-key/${encodeURIComponent(key.toUpperCase())}`), "id");
535
+ const list = HostedRepositoryApi.recordOf(await this.json("GET", `/api/projects/${encodeURIComponent(projectId)}/repositories`))["items"];
536
+ const repository = (Array.isArray(list) ? list : []).map((item) => HostedRepositoryApi.recordOf(item)).find((item) => item["role"] === role);
537
+ if (repository === void 0) throw new PluginError(`The project ${key} has no repository with the role ${role}.`);
538
+ if (repository["hosting"] !== "hosted") throw new PluginError(`The repository ${name} lives on an outside forge: clone it from its own address.`);
539
+ return {
540
+ projectId,
541
+ repositoryId: HostedRepositoryApi.textOf(repository, "id")
542
+ };
543
+ }
544
+ /** @returns The person's work copy, opened when it has none. */
545
+ async openWorkCopy(target) {
546
+ const answer = HostedRepositoryApi.recordOf(await this.json("POST", `${HostedRepositoryApi.pathOf(target)}/work-copy`));
547
+ const remote = answer["remote"];
548
+ return {
549
+ state: HostedRepositoryApi.textOf(answer, "state"),
550
+ remote: typeof remote === "string" ? remote : null
551
+ };
552
+ }
553
+ /** @returns A new token of the person's open work copy. */
554
+ async credentialOf(target) {
555
+ const answer = HostedRepositoryApi.recordOf(await this.json("POST", `${HostedRepositoryApi.pathOf(target)}/work-copy/credential`));
556
+ return {
557
+ remote: HostedRepositoryApi.textOf(answer, "remote"),
558
+ username: HostedRepositoryApi.textOf(answer, "username"),
559
+ password: HostedRepositoryApi.textOf(answer, "password")
560
+ };
561
+ }
562
+ /** A JSON value's members, or none for anything but an object. */
563
+ static recordOf(value) {
564
+ return typeof value === "object" && value !== null ? Object.fromEntries(Object.entries(value)) : {};
565
+ }
566
+ /** @throws {@link PluginError} When the answer holds no text under the key. */
567
+ static textOf(value, key) {
568
+ const text = HostedRepositoryApi.recordOf(value)[key];
569
+ if (typeof text !== "string" || text === "") throw new PluginError("The host answered in a form this command does not read. Update it.");
570
+ return text;
571
+ }
572
+ static pathOf(target) {
573
+ return `/api/projects/${encodeURIComponent(target.projectId)}/repositories/${encodeURIComponent(target.repositoryId)}`;
574
+ }
575
+ /** One request; a refusal throws a {@link PluginError} that names its status, never the credential. */
576
+ async json(method, path) {
577
+ let response;
578
+ try {
579
+ response = await this.call(new URL(path, this.origin), {
580
+ method,
581
+ headers: {
582
+ authorization: `Bearer ${this.bearer}`,
583
+ accept: "application/json"
584
+ }
585
+ });
586
+ } catch (error) {
587
+ throw new PluginError(`The host ${this.origin} does not answer. Check --url.`, { cause: error });
588
+ }
589
+ if (!response.ok) throw new PluginError(HostedRepositoryApi.refusalOf(response.status));
590
+ return response.json();
591
+ }
592
+ static refusalOf(status) {
593
+ switch (status) {
594
+ case 401: return `The host refused ${HostedRepositoryApi.credentialVariable}. Set a current credential, then run again.`;
595
+ case 403: return `${HostedRepositoryApi.credentialVariable} may not do this: it needs projects:write, and it must be your own.`;
596
+ case 404: return "The host has no such project or repository that you may read.";
597
+ case 409: return "The host keeps no work copy of this repository now. Try again later.";
598
+ default: return `The host answered ${String(status)}.`;
599
+ }
600
+ }
601
+ };
602
+ //#endregion
603
+ //#region src/clone/clone-command.ts
604
+ /** The `clone` and `git-credential` commands. */
605
+ var CloneCommand = class CloneCommand {
606
+ /** The names they are registered under. */
607
+ static name = "clone";
608
+ static helperName = "git-credential";
609
+ /** How long the clone waits for the work copy to open, and how long between two reads. */
610
+ static openWaitMs = 6e4;
611
+ static openPollMs = 1e3;
612
+ /** The exit codes. */
613
+ static okExitCode = 0;
614
+ static failureExitCode = 1;
615
+ /** Both definitions, for the command tree. */
616
+ static subCommands() {
617
+ return {
618
+ [CloneCommand.name]: CloneCommand.cloneDefinition(),
619
+ [CloneCommand.helperName]: CloneCommand.helperDefinition()
620
+ };
621
+ }
622
+ /**
623
+ * Opens the person's work copy of the repository and clones it.
624
+ *
625
+ * @param name - `<project key>/<role>`.
626
+ * @param directory - The folder of the clone; the role by default.
627
+ * @param url - The origin of the host.
628
+ * @param options - The parts a test replaces.
629
+ * @returns The exit code.
630
+ */
631
+ static async clone(name, directory, url, options = {}) {
632
+ const print = options.print ?? ((text) => void process.stdout.write(text));
633
+ const fail = options.fail ?? ((line) => void process.stderr.write(`${line}\n`));
634
+ const cwd = resolve(options.cwd ?? process.cwd());
635
+ try {
636
+ const origin = DevHostAddress.resolve(url).origin;
637
+ const api = CloneCommand.apiOf(origin, cwd, options);
638
+ const target = await api.targetOf(name);
639
+ const remote = await CloneCommand.openedRemote(api, target, options);
640
+ const folder = directory ?? name.split("/").at(-1) ?? "repository";
641
+ const helper = `!inferative ${CloneCommand.helperName} --url ${origin} --project ${target.projectId} --repository ${target.repositoryId} --from ${CloneCommand.quoted(cwd)}`;
642
+ await (options.git ?? CloneCommand.runGit)([
643
+ "-c",
644
+ "credential.useHttpPath=true",
645
+ "-c",
646
+ `credential.${remote}.helper=`,
647
+ "-c",
648
+ `credential.${remote}.helper=${helper}`,
649
+ "clone",
650
+ "--config",
651
+ "credential.useHttpPath=true",
652
+ "--config",
653
+ `credential.${remote}.helper=`,
654
+ "--config",
655
+ `credential.${remote}.helper=${helper}`,
656
+ remote,
657
+ folder
658
+ ], cwd);
659
+ print(`Cloned your work copy of ${name} into ${folder}. Push to it as you like: only the platform writes main.\n`);
660
+ return CloneCommand.okExitCode;
661
+ } catch (error) {
662
+ fail(error instanceof PluginError ? error.message : `Clone: ${String(error)}`);
663
+ return CloneCommand.failureExitCode;
664
+ }
665
+ }
666
+ /**
667
+ * The Git credential helper of a work copy: on `get` it asks the host for a new token of the copy and prints it, when
668
+ * Git asks for the copy's own address; `store` and `erase` do nothing.
669
+ *
670
+ * @param action - What Git asks: `get`, `store` or `erase`.
671
+ * @param url - The origin of the host.
672
+ * @param target - The project and the repository.
673
+ * @param from - The folder the clone ran in, whose `.env` the credential may come from; the working folder by default.
674
+ * @param options - The parts a test replaces.
675
+ * @returns The exit code.
676
+ */
677
+ static async credential(action, url, target, from, options = {}) {
678
+ const print = options.print ?? ((text) => void process.stdout.write(text));
679
+ const fail = options.fail ?? ((line) => void process.stderr.write(`${line}\n`));
680
+ if (action !== "get") return CloneCommand.okExitCode;
681
+ try {
682
+ const asked = CloneCommand.addressOf(await (options.input ?? CloneCommand.readStandardInput)());
683
+ const origin = DevHostAddress.resolve(url).origin;
684
+ const credential = await CloneCommand.apiOf(origin, resolve(from ?? options.cwd ?? process.cwd()), options).credentialOf(target);
685
+ if (asked === void 0 || asked !== CloneCommand.normalized(credential.remote)) return CloneCommand.okExitCode;
686
+ print(`username=${credential.username}\npassword=${credential.password}\n`);
687
+ return CloneCommand.okExitCode;
688
+ } catch (error) {
689
+ fail(error instanceof PluginError ? error.message : `Git credential: ${String(error)}`);
690
+ return CloneCommand.failureExitCode;
691
+ }
692
+ }
693
+ /**
694
+ * @param input - The lines Git writes to a helper: `protocol=https`, `host=…`, `path=…`.
695
+ * @returns The address they name, in the form {@link normalized} gives, or `undefined` without a host.
696
+ */
697
+ static addressOf(input) {
698
+ const fields = new Map(input.split("\n").map((line) => line.trim()).filter((line) => line.includes("=")).map((line) => [line.slice(0, line.indexOf("=")), line.slice(line.indexOf("=") + 1)]));
699
+ const host = fields.get("host");
700
+ return host === void 0 ? void 0 : CloneCommand.normalized(`${fields.get("protocol") ?? "https"}://${host}/${fields.get("path") ?? ""}`);
701
+ }
702
+ /** An address with no `.git` and no trailing slash, so Git's path and the copy's remote compare. */
703
+ static normalized(address) {
704
+ return address.replace(/\/+$/u, "").replace(/\.git$/u, "");
705
+ }
706
+ /** A path as one word of the shell that runs a `!` helper, with no way out of its quotes. */
707
+ static quoted(path) {
708
+ return `'${path.replaceAll("'", "'\\''")}'`;
709
+ }
710
+ static async openedRemote(api, target, options) {
711
+ const sleep = options.sleep ?? ((milliseconds) => new Promise((done) => setTimeout(done, milliseconds)));
712
+ const deadline = Date.now() + CloneCommand.openWaitMs;
713
+ for (;;) {
714
+ const copy = await api.openWorkCopy(target);
715
+ if (copy.state === "open" && copy.remote !== null) return copy.remote;
716
+ if (Date.now() > deadline) throw new PluginError("Your work copy did not open in time. Run the clone again.");
717
+ await sleep(CloneCommand.openPollMs);
718
+ }
719
+ }
720
+ static apiOf(origin, cwd, options) {
721
+ const bearer = SiteEnvironment.resolve(cwd, options.environment)[HostedRepositoryApi.credentialVariable];
722
+ if (bearer === void 0 || bearer === "") throw new PluginError(`Set ${HostedRepositoryApi.credentialVariable} in the environment or in .env: your credential of ${origin} with projects:write.`);
723
+ return new HostedRepositoryApi(origin, bearer, options.fetch);
724
+ }
725
+ static runGit(args, cwd) {
726
+ return new Promise((done, failed) => {
727
+ execFile("git", [...args], { cwd }, (error) => {
728
+ if (error === null) done();
729
+ else failed(new PluginError("Git could not clone the work copy."));
730
+ });
731
+ });
732
+ }
733
+ static async readStandardInput() {
734
+ const chunks = [];
735
+ for await (const chunk of process.stdin) chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(String(chunk)));
736
+ return Buffer.concat(chunks).toString("utf8");
737
+ }
738
+ static cloneDefinition() {
739
+ return defineCommand({
740
+ meta: {
741
+ name: CloneCommand.name,
742
+ description: `Clone your own work copy of a hosted repository. Reads ${HostedRepositoryApi.credentialVariable}; writes no credential.`
743
+ },
744
+ args: {
745
+ repository: {
746
+ type: "positional",
747
+ required: true,
748
+ description: "The repository: <project key>/<role>, such as WEB/site."
749
+ },
750
+ directory: {
751
+ type: "positional",
752
+ required: false,
753
+ description: "The folder of the clone; the role by default."
754
+ },
755
+ url: {
756
+ type: "string",
757
+ description: `The origin of the host, ${DevHostAddress.defaultOrigin} by default.`,
758
+ valueHint: "origin"
759
+ }
760
+ },
761
+ run: async (context) => {
762
+ const args = context.args;
763
+ process.exitCode = await CloneCommand.clone(String(args["repository"]), typeof args["directory"] === "string" ? args["directory"] : void 0, typeof args["url"] === "string" ? args["url"] : void 0);
764
+ }
765
+ });
766
+ }
767
+ static helperDefinition() {
768
+ return defineCommand({
769
+ meta: {
770
+ name: CloneCommand.helperName,
771
+ description: "The Git credential helper of a work copy, which a clone names. Not for a person to run."
772
+ },
773
+ args: {
774
+ action: {
775
+ type: "positional",
776
+ required: true,
777
+ description: "get, store or erase."
778
+ },
779
+ url: {
780
+ type: "string",
781
+ description: "The origin of the host.",
782
+ valueHint: "origin"
783
+ },
784
+ project: {
785
+ type: "string",
786
+ required: true,
787
+ description: "The project's id."
788
+ },
789
+ repository: {
790
+ type: "string",
791
+ required: true,
792
+ description: "The repository's id."
793
+ },
794
+ from: {
795
+ type: "string",
796
+ description: "The folder the clone ran in, whose .env may hold the credential.",
797
+ valueHint: "folder"
798
+ }
799
+ },
800
+ run: async (context) => {
801
+ const args = context.args;
802
+ process.exitCode = await CloneCommand.credential(String(args["action"]), typeof args["url"] === "string" ? args["url"] : void 0, {
803
+ projectId: String(args["project"]),
804
+ repositoryId: String(args["repository"])
805
+ }, typeof args["from"] === "string" ? args["from"] : void 0);
806
+ }
807
+ });
808
+ }
809
+ };
810
+ //#endregion
417
811
  //#region src/database/database-command.ts
418
812
  /** The `database` command group. */
419
813
  var DatabaseCommand = class DatabaseCommand {
@@ -464,54 +858,6 @@ var DatabaseCommand = class DatabaseCommand {
464
858
  }
465
859
  };
466
860
  //#endregion
467
- //#region src/plugin/plugin-error.ts
468
- /** A failure that `inferative plugin` reports in plain words, without a stack trace. */
469
- var PluginError = class extends Error {
470
- constructor(message, options) {
471
- super(message, options);
472
- this.name = "PluginError";
473
- }
474
- };
475
- //#endregion
476
- //#region src/plugin/dev-host-address.ts
477
- /** Where an address came from. */
478
- const DevHostAddressSource = {
479
- /** The `--url` flag. */
480
- Flag: "flag",
481
- /** No value was set. */
482
- Default: "default"
483
- };
484
- /** Resolves the address of the dev host. */
485
- var DevHostAddress = class DevHostAddress {
486
- /** The origin of `nuxt dev` when nothing else is set. */
487
- static defaultOrigin = "http://localhost:3000";
488
- /** The path of the MCP endpoint below the origin. */
489
- static mcpPath = "/api/mcp";
490
- /**
491
- * @param explicit - The `--url` value.
492
- * @returns The origin, the MCP address and where the origin came from.
493
- * @throws {@link PluginError} when the address is not an `http(s)` origin.
494
- */
495
- static resolve(explicit) {
496
- return explicit === void 0 ? DevHostAddress.of(DevHostAddress.defaultOrigin, DevHostAddressSource.Default) : DevHostAddress.of(explicit, DevHostAddressSource.Flag);
497
- }
498
- /** The address, checked to be an `http(s)` origin with no path. */
499
- static of(value, source) {
500
- let url;
501
- try {
502
- url = new URL(value);
503
- } catch (error) {
504
- throw new PluginError(`The address ${value} is not a URL. Pass an origin such as ${DevHostAddress.defaultOrigin}.`, { cause: error });
505
- }
506
- if (url.protocol !== "http:" && url.protocol !== "https:" || url.pathname !== "/" || url.search !== "" || url.hash !== "") throw new PluginError(`The address ${value} is not an origin. Pass the origin of the dev host only, such as ${DevHostAddress.defaultOrigin}.`);
507
- return {
508
- origin: url.origin,
509
- mcpUrl: `${url.origin}${DevHostAddress.mcpPath}`,
510
- source
511
- };
512
- }
513
- };
514
- //#endregion
515
861
  //#region ../base/core/text/html-fragment.ts
516
862
  /** What one node of an {@link HtmlFragment} is. */
517
863
  const HtmlFragmentNodeKind = {
@@ -1665,48 +2011,6 @@ const MemoryAgentFileWrite = {
1665
2011
  MergeJson: "merge-json"
1666
2012
  };
1667
2013
  //#endregion
1668
- //#region src/site/site-environment.ts
1669
- /** Reads the `.env` file of a site root. */
1670
- var SiteEnvironment = class SiteEnvironment {
1671
- /** The file name, in the site root. */
1672
- static fileName = ".env";
1673
- /**
1674
- * The environment of one run.
1675
- *
1676
- * Without `provided`, the run is the real process: the file's values are written into `process.env`, because
1677
- * the runtime config loader reads `process.env` itself. With `provided`, a test or a caller owns the
1678
- * environment, and nothing global changes.
1679
- *
1680
- * @param root - The site root.
1681
- * @param provided - The environment to read, when the caller supplies one.
1682
- * @returns The environment, with a value that is already set winning over the file.
1683
- */
1684
- static resolve(root, provided) {
1685
- if (provided !== void 0) return SiteEnvironment.merged(root, provided);
1686
- for (const [name, value] of Object.entries(SiteEnvironment.fileValues(root))) if (process.env[name] === void 0) process.env[name] = value;
1687
- return process.env;
1688
- }
1689
- /** The file's values under `environment`: a variable that is set wins. */
1690
- static merged(root, environment) {
1691
- return {
1692
- ...SiteEnvironment.fileValues(root),
1693
- ...SiteEnvironment.defined(environment)
1694
- };
1695
- }
1696
- /** The variables of `environment` that have a value. */
1697
- static defined(environment) {
1698
- return Object.fromEntries(Object.entries(environment).filter((entry) => entry[1] !== void 0));
1699
- }
1700
- /** The values in the root's `.env`; none when there is no such file. */
1701
- static fileValues(root) {
1702
- const path = join(root, SiteEnvironment.fileName);
1703
- if (!existsSync(path)) return {};
1704
- const values = {};
1705
- for (const [name, value] of Object.entries(parseEnv(readFileSync(path, "utf8")))) if (value !== void 0) values[name] = value;
1706
- return values;
1707
- }
1708
- };
1709
- //#endregion
1710
2014
  //#region src/memory/claude-settings.ts
1711
2015
  /** Joins a setup's settings object into a Claude Code `.claude/settings.json`. */
1712
2016
  var ClaudeSettings = class ClaudeSettings {
@@ -5303,6 +5607,7 @@ var InferativeCli = class InferativeCli {
5303
5607
  [DatabaseCommand.name]: DatabaseCommand.definition(),
5304
5608
  [PluginCommand.name]: PluginCommand.definition(),
5305
5609
  [MemoryCommand.name]: MemoryCommand.definition(),
5610
+ ...CloneCommand.subCommands(),
5306
5611
  ...DerivedSecretCommand.subCommands()
5307
5612
  };
5308
5613
  }
@@ -10,16 +10,16 @@
10
10
  "../base/core/access/render-public-origin.ts": "e7fy0kKqjXsze8e07SkpSKzkTMtnu3Bzl6Cs069qHqk",
11
11
  "../base/core/access/render-session.ts": "pjkSh3JtSqsip3wmpdZu3KbWGTuhiBfQTg0MFZ5z18A",
12
12
  "../base/core/actors/acting-through.ts": "3PxfOg3hrDUfjMDA7WzOPbilN5ufJScc5Ke5TBTIDlg",
13
- "../base/core/actors/acting-vocabulary.ts": "i1VLhKkMKQDacbmUZAvE3DwPfK0AM0gdjPeuVclsZ7U",
14
- "../base/core/actors/actor-card-batcher.ts": "BRJoIGhRiw8e_mQDdeYN8KjrCZ2CXO34pWdpb3AU4Gs",
15
- "../base/core/actors/actor-card-cache.ts": "PhLGdi8zLv8BTScmTeR7YrOXDxZsYFrXbbU5zXwL4DQ",
13
+ "../base/core/actors/acting-vocabulary.ts": "3I4W78zF7qUN46_EOlmS50K2FKlNuLAOnkaQjxR0eig",
14
+ "../base/core/actors/actor-card-batcher.ts": "6YAMdkOpQC7sV7X2aPvuDBEnCXnuzUaiZ4ZTX7LDw0w",
15
+ "../base/core/actors/actor-card-cache.ts": "wYHswg6j8QAwkqrPGTB-MyEJyj2hh6W9xYQCq1XXe6Q",
16
16
  "../base/core/actors/actor-card-carry.ts": "1pXxySG0iJq5MXXGv4BLZ3uO512x0z3AkR5tJJy290s",
17
- "../base/core/actors/actor-card.ts": "B9d2_Qt9w5ZrYkT7zAbhalGNh6OqUQGRs9NrDPBYh-M",
17
+ "../base/core/actors/actor-card.ts": "6d4wTg2kkHsBw2v-FH5Y2mKAGZg6neK2hvsjqg3AoKs",
18
18
  "../base/core/actors/actor-errors.ts": "rrVeYqTTS7GvZEXp4MXb9XI54V6Tt6tyKyvPzvD-zRo",
19
19
  "../base/core/actors/actor-presentation.ts": "jMVHXsjAeIvyTayOEI9xWI0XR5qtnuILvN4jeghoj6k",
20
20
  "../base/core/actors/actor-reference-lengths.leaf.ts": "TgdKI7ecr9PunxdgiavrzbC-KEjFE_Zy3fkU8G1OP3k",
21
21
  "../base/core/actors/actor-reference.ts": "dvGOcHYfU0fYtibTdNH1S56pH1zvcvQrTdIJeqPJBRk",
22
- "../base/core/actors/actors-contract.ts": "XWC3ziCyVYCO6jDgZimKvG09hFcikHsFBkecUUv1KsE",
22
+ "../base/core/actors/actors-contract.ts": "FMwMkTbcV2kcnHYHHGB1IhTvR5bdh0zJpmrXIlUdeDw",
23
23
  "../base/core/actors/agent-avatar.ts": "j83_SOfT9Jgl3lrRBFzJU5jbsBWVAcFAnwuEQWb6SrQ",
24
24
  "../base/core/actors/agent-connection-vendor.ts": "Ix4T8jwWQaRrL3htlzmWLd0QK8eHSjsC4jXmDg8gjPE",
25
25
  "../base/core/actors/caller-card-ask.ts": "Rtoj5OqnJB8Cq-Gn4sRBMReUNLmTnvtPSt7UvEdtjcw",
@@ -50,10 +50,10 @@
50
50
  "../base/core/command/shortcut-reference.ts": "E8NH9qKa_9TgUviRjru4UlJpy_sAbeNkkN-_3p328PY",
51
51
  "../base/core/conversations/conversation-card-sections.ts": "9zlCdNNwLFzKyFITFHiFe9ufVeouLHwQGuAnaGHNIok",
52
52
  "../base/core/conversations/conversation-models.ts": "IIUlf_pO46Av1z1FtnqRfGksTGNTHt3GCz3waNzYO6Q",
53
- "../base/core/conversations/conversation-runner.ts": "oRZIkxN_oEP1oRG8ytPZOrivtJDBSHryvaoVt_w1KxE",
53
+ "../base/core/conversations/conversation-runner.ts": "zBOrHkQ_8JdunrAkYoLclC1lKVcsaL5IuqIF3TN263s",
54
54
  "../base/core/conversations/conversation-state.ts": "_SkqRW_TYP8Zs330lXPSLmE7BsS_F0UB9_bSyEzfC64",
55
55
  "../base/core/conversations/helper-work.ts": "Bo-lhm8xqxfa7lxhV0HB4efjXtTbf8pj5E3isAHu8uY",
56
- "../base/core/date/date-cell-format.ts": "jwnrqqinUr1-BFl8leTuT1GXuSGnz5jPtYV09U2uqyM",
56
+ "../base/core/date/date-cell-format.ts": "17UVF9ueQ4TLvfR6Yfn5h9ve1whNGO-XliQP72u5uAk",
57
57
  "../base/core/date/day-boundary.ts": "nY5oGRDGmAvsI2BFsLBsRvddNIHtYYKD4aTj_CF3Lf0",
58
58
  "../base/core/date/iana-time-zone.ts": "6lZux4fVOb4nuBAzarEQSARINNzKuRgEDjUfuwI3ChE",
59
59
  "../base/core/date/iso-date.ts": "_ze3w3ZnsZB98ZueerYy_JaM4BarMdkQ-hShaHLGKoE",
@@ -73,7 +73,7 @@
73
73
  "../base/core/editing/section-palette-groups.ts": "4-8tUDpX5q0Gk_FbR0GsWu1ZvsEzh6X3117V2LgVfJs",
74
74
  "../base/core/editing/source-marker.ts": "kv-cL7QrjZS8ZG7VNgHAqVhew88bBf0JNAJLJy0m8e0",
75
75
  "../base/core/entry-source/entry-id.ts": "eVq7R_9SJ2aPR4rP-84H8DGzX3V6VbXKbKjeaIQxEtE",
76
- "../base/core/entry-source/entry-source-registry.ts": "vu-AsMWGZYIHCAoumOhU-IPZKYS1qnaGyI-yMNEyBsg",
76
+ "../base/core/entry-source/entry-source-registry.ts": "FQyabUlbYok5U9x9VLPrJj1vv-Jxdm1uKkCz49ul6Cs",
77
77
  "../base/core/entry-source/entry-type-labels.ts": "EKW3DHFbTy35u96M065Crak05ML6n9T5Qf1O1XGZDQY",
78
78
  "../base/core/field-writing/field-writing-vocabulary.ts": "VAcHX_gwxy8SCOuIN3qFRwprzG0S7QZqj3q9P43_GQA",
79
79
  "../base/core/form/answer-secrets.ts": "dlX6oSzUOiGNr7p9NqNwSA8AOnB4xtEX1AwOn9vhihs",
@@ -99,19 +99,19 @@
99
99
  "../base/core/home/home-needs-you.ts": "kBJfYU43YLz6z9IQySxAar9VLeWOo-AY2Frz5ZRBWqA",
100
100
  "../base/core/home/home-section-registry.ts": "TvTzuCJW6fPV-2Y14g-QV6RVKR7imcLlySZlPokeIH0",
101
101
  "../base/core/icon/curated-icon-set.ts": "laeubJPjmsDE5InfzkPh3E7CeYG-jSzoeBcpgmM-ChA",
102
- "../base/core/index.ts": "lTf4u8Fllzs_zQ8Bcpeje75k6qNaAJcMvVtYOH7WpNw",
102
+ "../base/core/index.ts": "mBGbYqm1lik18O0BaSP3_w9ruUbv4p20frz40TlC0-s",
103
103
  "../base/core/layer/api-config.ts": "LTG3w3wjC6v9hrBJgI3ZiJHUYLsSJvztUXT9bJ8ygZg",
104
104
  "../base/core/layer/api-public-config.ts": "y1IUdyKxNv9XUUczB5uSQIkUMEfSZ7bLIiYG6m35jsA",
105
105
  "../base/core/layer/document-policy-preparation.ts": "uVwrC_dXvXTsuCmaQfTB6gT0gyXRGDUCFfu0h6OUhsI",
106
106
  "../base/core/layer/domain-refusal.ts": "tourCi9KaP-rNN9FA1_cJsQGjtuzcBuOpFX5sIJwz4Q",
107
107
  "../base/core/layer/domain-vocabulary.ts": "QFxjbpy0JK0203uN5jWnf7wH_y5D0yU2rzTnDwLLpU0",
108
108
  "../base/core/layer/locale-public-config.ts": "p7pubdtm6K2CBrxir0wZos0v6nSqySy95qQURmAFaH8",
109
- "../base/core/layer/shell-boot.ts": "w4bmbu_uEpRGbE4dP--CNbQBag7SsbW5sWN85fEXD8c",
109
+ "../base/core/layer/shell-boot.ts": "NlgxWBKkkRdV3ZRb7A_dGXyir3XVx-kPdLCHkuvYO3g",
110
110
  "../base/core/locale/common-locales.ts": "mupxXChdtneYF2v7D3ahx5cka4AUmEO0xHr4qloTIQo",
111
111
  "../base/core/locale/locale-tag.ts": "re--TB0qA6JEJ9_2GK4BbB9HjBlz_K4JHDvfVUBQpLQ",
112
112
  "../base/core/locale/organization-languages.ts": "0VeU7uVOygJA3PcGGZ0WFW081hmuGHVqbH_ndolOfCQ",
113
113
  "../base/core/memory/citation.ts": "OPMNttazcDauFuabQyBpglzGpTdSq_5Xcgr46JLZF8M",
114
- "../base/core/memory/memory-vocabulary.ts": "ERZX_uYprCQmygasom4rQiQArO2cT_NMzQYBwHTOA0c",
114
+ "../base/core/memory/memory-vocabulary.ts": "QrilOYoar-50drebqplE5NQBWHzbNMr35vQKS3BMye8",
115
115
  "../base/core/menu/menu-item-availability.ts": "xXcBEzxDbL3WMajHNW3NzsFjkat7M8NLbdErzCf2DKE",
116
116
  "../base/core/messages/locale-chain.ts": "AwXtShLGnQnmZCQ4yylIkFBONG65BN2Z7cWzjqPHVcE",
117
117
  "../base/core/messages/locale-transitions.ts": "IfCJ4YfORhrT_s3JwNns32gDYqZhttpe9ueX5b5fryw",
@@ -119,25 +119,31 @@
119
119
  "../base/core/models/ai-task-models-contract.ts": "9KIiBtWi9qZscTiDMKgeRI9XQj2Ou_MhDCRRinBnzKY",
120
120
  "../base/core/models/ai-task-models.ts": "5QYfczDqctPYKZe7bNCzhfqPq8pBpZdTlkqUXgDo2V4",
121
121
  "../base/core/models/machine-login-lending.ts": "nCqM9WwX3dPMinYLIuYS6jEf8ysFbmlDb_f1Xv4N0LI",
122
- "../base/core/models/model-catalog.ts": "a3bdgsvHUilX_m_vmNzQzw5dJ16qA8qdGWJ5EbFcNJw",
122
+ "../base/core/models/model-catalog-facts.ts": "sJ_VTzyzz-0235J3ICVHcJpx7tgDxN7BeqbN4nOu-IU",
123
+ "../base/core/models/model-catalog-logos-contract.ts": "PBz86QU1sAwZfIWI2IBGphvDtjOBZ8qrlsloNaVo2PQ",
124
+ "../base/core/models/model-catalog-page.ts": "A7Ld5B960t22WaMbR1pqA8Tg7DxgWi5YpGiLsFobalQ",
125
+ "../base/core/models/model-catalog-view.ts": "8cEnNtCaREg91e5l_t2Ep-DFH_4aOcENZrIzalpHukE",
126
+ "../base/core/models/model-catalog.ts": "Ohad0vnPsNBDZYqi93VBrKMeB34AXKHLFOJ6TzatDPM",
127
+ "../base/core/models/model-category.ts": "XBqBJ2m47-b4XIdxe-j3A9IqaWWun2q4eoi3jG0A01c",
123
128
  "../base/core/models/model-connection-checklist-step.ts": "5K99U80TvpqlcQbYJzBkcTb7vmTl-2YijaTfrr0Bgpw",
124
129
  "../base/core/models/model-connection-errors.ts": "2M8mw58JO_zFGPQLu-Riaa5X6-MfDkTH3N9aghws1wQ",
125
- "../base/core/models/model-connection-kinds.ts": "PL5qDIgb50HkG0lfnZu6xi_6T6C4AykVfg6R8IA0keY",
130
+ "../base/core/models/model-connection-kinds.ts": "UdTKsS7LN03QvDi3SHDddGY3ba0dVs7tqCR6mxlJ57U",
126
131
  "../base/core/models/model-connection-limits.leaf.ts": "wNILjtJAkAGFqmG3ImR93Bobfrn56VFSrgz5FMSTHrc",
127
132
  "../base/core/models/model-connection-pools.ts": "K6E1c9VH562y4H8mkPGYlOFVaTOEg1HG1A55rRqZ0oQ",
128
133
  "../base/core/models/model-connection-seats-contract.ts": "78Ozg0jo47_XutW1TCtHT3UmSzr5H8OQjC0PLrdQODQ",
129
- "../base/core/models/model-connection-vocabulary.ts": "3eoIK4asiHV_dTanwqr3ueWEhbx9UOh3sEFImxcBvPI",
130
- "../base/core/models/model-connection-words.ts": "Q9KdwciKNpOSBBVJ9zjUhIDqO1xIjAY-coyk2yrbcqA",
131
- "../base/core/models/model-connections-contract.ts": "jgsVXWg6vS410dDnokVUoX_PBKzg_bqzMu-ajBNiNlc",
134
+ "../base/core/models/model-connection-vocabulary.ts": "woWZ9w7tAB31fwh22IB4Lb4-2liny_B6t9L8catzbSw",
135
+ "../base/core/models/model-connection-words.ts": "nsnjxGQXNlzcSGpBOQYczuhDiousix0VDbC6BY2LDWE",
136
+ "../base/core/models/model-connections-contract.ts": "0uS8752xZMeqpIbcTChzDa65g9gP8SZNqI_7-zpogug",
132
137
  "../base/core/models/model-efforts.ts": "Cl66c8z4uB0YAAlU4oyyRt-4RpdypziORsLADE1JZvs",
138
+ "../base/core/models/model-money-checks.ts": "uF8cQMKpCaytejaW6Xt8ETtL6Fv8gjDKrDJNmbce_8w",
133
139
  "../base/core/models/model-provider-logos.ts": "MC5rS1z1Av3m6UuA90Q658X3nt0NFLZzUZcen-elPps",
134
140
  "../base/core/models/model-proxy-errors.ts": "T0zlY-ZgoWULGAppujpjwyIyDOH15Cnda5bCVyqCjj4",
135
141
  "../base/core/models/model-proxy-limits.leaf.ts": "gmxm0snpUcmE7ZGOr81ySEtFjemjXHY9JhtlGBE35lQ",
136
142
  "../base/core/models/model-proxy-seat-limits.leaf.ts": "NhRW_b06ydrV5utifqxU2y1up-ymS7gbl56ov9ZiH6Y",
137
- "../base/core/models/model-proxy-seat-notice-presentation.ts": "UaNpyUTnhPnShk646gMHnhoGWlWt2zeXBhVyar391rY",
143
+ "../base/core/models/model-proxy-seat-notice-presentation.ts": "T8qhOjKGq6LEe0QJNAMESH9_wjf7iLUcpCvjYgZp260",
138
144
  "../base/core/models/model-proxy-seat-vocabulary.ts": "6uOQI78Rnf58lrcFPkQIfWJRR4PsblaTjXq10oAjYns",
139
145
  "../base/core/models/model-proxy-vocabulary.ts": "EbXz_xbAGnKlonSXQjrDo_yFJDT6p3dpRDIj1c-V4ps",
140
- "../base/core/models/models-tier-catalog.ts": "WUFo0i7d0v18nO8fz7KSknimwhZcfRUzMl2hT6cbDPQ",
146
+ "../base/core/models/models-tier-catalog.ts": "fataEK6MtDKYC4q5j-tEySRdJNB3klO8xmPPH3BUO7k",
141
147
  "../base/core/models/models-tier-words.ts": "viqbwSwHBSQgflQ9GY75uNfgaXg6JNVjCg5OjZ1kNyg",
142
148
  "../base/core/network/dns-over-https.ts": "XzVij-hIcN9n6X_7KjG7lM7f4zsix2w2jRP2k-5bqkw",
143
149
  "../base/core/network/public-address.ts": "mbiMQJeQyHiOJak6JL2HbO8Ovti8qQrwLNl7J0mydd4",
@@ -177,23 +183,25 @@
177
183
  "../base/core/path/path-parameters.ts": "BRcyK3ix6t_E2HnoNeTWjp-qHbodK4dp0BOu5e027po",
178
184
  "../base/core/path/website-address.ts": "XOUdMJn4QBQ41bj9S_hZ9AxHmRH-zpLS7SSnviEgarE",
179
185
  "../base/core/platform/deployment-locale.ts": "yyTtvOmd3UG-HhKtFlC_RIYHM6GMKTZsh3UZU3hsmfQ",
180
- "../base/core/platform/operator-alerts.ts": "pvbsuRdVR1KstbSvr1IEqfnKAf8PfpFXrhKj-JnYRl4",
186
+ "../base/core/platform/operator-alerts.ts": "jWFw3DNwXSQNprHeQAk1g0Z-ZqXAxOt4RpbHIwdtbp4",
181
187
  "../base/core/platform/platform-settings.ts": "5ZYp8KloVkyYqPUPtm53lI4TOpyGx1_b0SlOHvfQ_6M",
182
- "../base/core/policy/access-change-watcher.ts": "b1sG54RPl-R5NhbMAaq1BEC-vNtMqCAwHP_Xsm3Dbps",
188
+ "../base/core/policy/access-change-watcher.ts": "ptVPghcq-7qKFZB10uSG4vH_6OqXJKCGcjS-25uzIuU",
183
189
  "../base/core/policy/access-changed.ts": "lOVRo35wVHmQgbYPelJ_5I0XVemP0MMrsYWA7X0C_c0",
184
190
  "../base/core/policy/access-label.ts": "sfgrV48TzejkNwD13t-y5U0Aarj61oY3ymMn8Q63HEU",
185
191
  "../base/core/policy/access-scope.ts": "XnJ7ADBbJ2xu4JcorXLqJ1suEb7r_vFvM573en1Ey6I",
186
- "../base/core/policy/access-state-contract.ts": "B3xgDt2G3wlWPV8C5EoKzT6XXGeOZrFlz6RP3vQRvik",
192
+ "../base/core/policy/access-state-contract.ts": "PH-_AqECAjHccwDbxi5J00PJg0pm4sLHLTirs74k8fs",
187
193
  "../base/core/policy/access-state-tags.ts": "UFI-mqJIG0xi9KWRxxGwl7JD-dAFdemwy0dfxvK-XuE",
188
- "../base/core/policy/audience-key.ts": "q_TsOjcHyyjS03ZKlnhoaKhNfaGDNViUOcio1GU57ig",
194
+ "../base/core/policy/audience-key.ts": "OdoXjVK79CJ3MD3zpf4Z-jGqM0vZeuQcm08F79or8Ds",
189
195
  "../base/core/policy/flow-rule.ts": "OPcf2kKa8hwwFVagZCVEwnSpKpilzT73tUFQES1FV_g",
196
+ "../base/core/policy/label-release-contract.ts": "AwDaQbP5gpXUXQ-EG0WeEJ5dz-Lmw4xXLXZ9__RBLs0",
190
197
  "../base/core/policy/label-terms.ts": "2hfRkTw9uT4jjfekpABqLxFZSfhtY7sd_75GD6sRE0c",
191
198
  "../base/core/policy/model-data-block.ts": "Ncw__x0PEaOusfXqhZ2Uu6WL-aMdk2iIBQr4Uw87mUg",
199
+ "../base/core/policy/permission-area.ts": "LT1Yf5yeYDYfFmnPzq1YBtQ0qPCuxKz2ys6zkb7yv_k",
192
200
  "../base/core/policy/policy-blocks-contract.ts": "-_uwTuAnivJlaomoX6VpFYlIxZS68cH2ehk-KJEW7yE",
193
201
  "../base/core/policy/policy-errors.ts": "czmKvFVp2qVJqUUs4bkeXl9FLmWUXKLU2dQtKhjIi_M",
194
202
  "../base/core/policy/policy-lengths.leaf.ts": "24mkhFFxZ0YAgGXx9cXXGc2JJGNo7wKV6Kzbdn7nUcA",
195
203
  "../base/core/policy/policy-remedies.ts": "LYz98TicVZvlAi_QU87DEzAtFeFZv7t-gEU8YJ_P3po",
196
- "../base/core/policy/policy-vocabulary.ts": "PA8iHdXDeZi7JRTJWX7XXpUmCw0gJxy0AsbiovwAuxY",
204
+ "../base/core/policy/policy-vocabulary.ts": "ERhB3FOMJq-_t3eDVrZ-HrRUFckQizkmnr1F8AXfTNM",
197
205
  "../base/core/policy/pushed-source.ts": "0DwqV-wYf1bJGiRdMjcGEGJRTIQPVOCnufOjRqEWKPo",
198
206
  "../base/core/policy/recipient-addresses.ts": "uMCeWd629NLmraW_omfElpevLn27tZ2ruy6b5jqYBlw",
199
207
  "../base/core/policy/result-schema.ts": "z5rwgvoc_fW60AmiNTkzHEDYsNDJMKOhcilmv8tp4-w",
@@ -230,7 +238,7 @@
230
238
  "../base/core/realtime/realtime-backoff.ts": "zq12WgAGM6a7yVcKXkL9CFBhdmUq17Aqr6W6tQ-ifBI",
231
239
  "../base/core/realtime/realtime-change-kind.ts": "DeXkFXT-E_VmwhhH_-RP3qEroDh0qTZUMhG4dgjmi5c",
232
240
  "../base/core/realtime/realtime-client.ts": "cDTGbcCNJIwVOWL13cVDMFLImg55tEOE8-Q411Fxuao",
233
- "../base/core/realtime/realtime-connection-pool.ts": "6t9zGROTBEpmWgKbDakRk4Ivs4v3KGN1eMO2HgvoSwE",
241
+ "../base/core/realtime/realtime-connection-pool.ts": "4j9JXnqiKUzuWPZ0No2ft2GcQet65pZekq3yrHJ9H3g",
234
242
  "../base/core/realtime/realtime-connection-status.ts": "M-EGUFzaWn4_kMSR2UcrQf4fHHiwU3tCRXmBn43LJL8",
235
243
  "../base/core/realtime/realtime-entity-change.ts": "GLCMT8iY1g2m4sePC686CIbaRkxGXK6-YEFSjlHbvNY",
236
244
  "../base/core/realtime/realtime-gap-fill.ts": "kzzVfX6vGcYTya8lSNDqLFaeYR1CtIBWghLtCPJ98Vw",
@@ -252,7 +260,7 @@
252
260
  "../base/core/reorder/level-splice.ts": "uHak3gIX10K3btqVrNY2pr32XVSlxjuDfk0BRA6EHcc",
253
261
  "../base/core/reorder/reorder-qualification.ts": "LaH4nxf1KYrgjR1ydD9r-p9AdG4ZLpVCwFpnKEQMYg4",
254
262
  "../base/core/reorder/step-placement.ts": "mvIa2N74c__BdvXpzOqwbxLEUEPaZpFaxWHlnNdlWzg",
255
- "../base/core/reorder/table-reorder.ts": "3_iQLOTXuGFlrWhC7xcBzG-sGLFu9_D5lTZUG1WOGGg",
263
+ "../base/core/reorder/table-reorder.ts": "5-ylxf_xp-NgWF6_dvm5-pjPKAf1svVW5PPl6MiRxZs",
256
264
  "../base/core/reorder/tree-placement.ts": "TczRstWyTc8WuEuHENwxUmpuv5SYOQNs42Xpcb2hIOs",
257
265
  "../base/core/revisions/acting-record-shape.ts": "PhZO7FhbsZWcxOuw_ftpCKRgOS82UwRLxR6PNCcWBgQ",
258
266
  "../base/core/revisions/change-rows.ts": "3lsGQkjRl53ClFMYwryY1LVOYMyuWv-YjGorifmWqfI",
@@ -264,10 +272,10 @@
264
272
  "../base/core/revisions/revision-purge-vocabulary.ts": "BW8WxEOTE_F2klzL39YjHZCAGy2MP5E3tqaMKhsJbPU",
265
273
  "../base/core/revisions/revision-reference-kind.ts": "tVTXZ3LVcUSBLOo9JGdQINNo_yvWYMzMzV3vvNaBy1w",
266
274
  "../base/core/revisions/revision-retention-contract.ts": "lP0oywFS9t6QYZCrjC3_zscZQMLByGkqt1YM85UQwAs",
267
- "../base/core/revisions/revision-retention.ts": "m2W--VCh8-_fmz3DpRgBeMJQIzhJuTuCxPuZMjcN4-E",
275
+ "../base/core/revisions/revision-retention.ts": "iVqSS2cMAOQXtrB7os8LjG9mkonzK97P2cwG6QyjNQA",
268
276
  "../base/core/revisions/revision-shape.ts": "tt7WmaA6dRCKxa73kZReiG4VNgRIb9_22eBQ9r4NITo",
269
277
  "../base/core/revisions/revision-value-text.ts": "nMUGgplMK0bpsytRUYLEiJ7AL35NmE5wnGehjAQ8IGQ",
270
- "../base/core/revisions/revisions-contract.ts": "hOt72032SO0fMOC8spW6K5e53U6R0QCmJoZNUOY6Qq8",
278
+ "../base/core/revisions/revisions-contract.ts": "YNJ7pt8HKxGNvWPdDErDayIP2J-7yUDTjl-2IX6RWLg",
271
279
  "../base/core/revisions/rich-text-changes.ts": "S5OJQu6hVgFXjOrjAjavnCc0uuzfUod2--Hmr76RKj0",
272
280
  "../base/core/revisions/word-diff.ts": "FL1jj-3rgWSdq4Q8oMGWYswVaHAqpVWvxW5LzPTGoMo",
273
281
  "../base/core/revisions/word-runs.ts": "3S91ByMor3kMr7ACOA7i2_rQUvzOCSYBG-ldJRMHkSQ",
@@ -292,7 +300,7 @@
292
300
  "../base/core/table/list-query.ts": "fuuKms2ljUXfdEnXvCrBkBUsqSrNukA2vOcKqbWfZUw",
293
301
  "../base/core/table/reference-cell.ts": "Seo3mDb4TVu8twKt8YoGpy1Tx7FaDsSna6vP8kGm8yA",
294
302
  "../base/core/table/reference-items.ts": "ptuEfVIJLHO16UCqEn4fnmk6dzG8OZrEVb3iPnrIm1o",
295
- "../base/core/table/table-actions.ts": "231Aui3xL75RhXwk_Hv0dGIojOUbtzBIhACtdVUMIrw",
303
+ "../base/core/table/table-actions.ts": "cDNiedWLbyY5w5kbkWhxymS_IPbFnCuIazRaZ6WiFKk",
296
304
  "../base/core/table/table-core.ts": "osX-JNOYoSYxA56kdG4s8kiFtkv3E6k1TvX_jYAEvgE",
297
305
  "../base/core/table/table-empty-state.ts": "NvCWMYVB9rCAOwjD0A8V0nKl-F1BK_TQQYGQH_dcdSo",
298
306
  "../base/core/table/terms-cell.ts": "Z_kJKh-4hC0DecgkYn2u4BUbnVJPCcNf3V9MlMfvOXM",
@@ -315,7 +323,7 @@
315
323
  "../base/core/tiers/tier-plan-presentation.ts": "skTfoAMNq06NPLKSlKVaV9d-T_gt_m2PtSRxkXgSBjc",
316
324
  "../base/core/tiers/tier-request-errors.ts": "m3Iccai_DxzE_WccO-z76wxdiolouYT6N_JJtMD3rak",
317
325
  "../base/core/tiers/tier-transition-errors.ts": "IWpECCMpVWZ1un9KkiqJNj8lBmJqYd2U_LseSZrHoYM",
318
- "../base/core/tiers/tier-vocabulary.ts": "mN1gnx10nQP2mi-lpTy2NCD63WOU46hI8IT6hKLEjzU",
326
+ "../base/core/tiers/tier-vocabulary.ts": "0VlqJE4dvZdwbWrffh2hRg4uYP-wLFOJq4KJZzspg_U",
319
327
  "../base/core/tiers/tier-words.ts": "pioy9E1z6kkMtVJecoHrjRDgMOyfaBgGfltqqfGuNGQ",
320
328
  "../base/core/transitions/transition-log.ts": "jrABEGQApWPnmRlnzKxc_WExD_LfLfwM7fRVlkTxQaw",
321
329
  "../base/core/transitions/transition-rows.ts": "_xOvGkHeDqBF-PHcEr4ZmfsHhQtkulD5Sw8xbtwIRLM",
@@ -324,6 +332,7 @@
324
332
  "../base/core/unsaved-work/save-parts.ts": "iQSrsr57ZWciEf_3S0xkZhLMGLPGSVmbrmm4XgFBVfg",
325
333
  "../base/core/unsaved-work/unsaved-work-registry.ts": "FI0AgtJ3jvLf2koiSY258mDIBk4pXDb8dGjW1KGfUeU",
326
334
  "../base/core/workspace/landing-view-state.ts": "QkRxRYpGYS_mKxTrTnVRzbNS3KP5AHJhhJ1UetJ16fg",
335
+ "../base/core/workspace/saved-view-change.ts": "OYv90f1CKud--ID_H32OLNYxXDoctHN4Xby_2vZWS7I",
327
336
  "../base/core/workspace/saved-view-storage-limits.ts": "jmS8Vk3gzZDlCiy6_b_ZEEPYzgwmCPPv63k6i14sUJ0",
328
337
  "../base/core/workspace/view-state-codec.ts": "9G59aQ5wiHXjzQnoz1UPSSMLQr9ARh7hP81yD08j34Q",
329
338
  "../base/core/workspace/view-state-match.ts": "JwE6WL4BX9bt4X660hOzMBNLKhMKtubH8XxvWQykbkY",
@@ -336,8 +345,8 @@
336
345
  "../memory/core/memory-tier-catalog.ts": "MeZLzh47xItVpAgVTG4wgoB6kkQrmhAXTtbT63WNu5Q",
337
346
  "../memory/core/memory-tier-words.ts": "G0mId6lX7TVUpcsCGYygemkhI1JHXijRuKk4sabPxDM",
338
347
  "../memory/core/memory-topics.ts": "zRoUGsxS6ZZJqAA60y5aklPs2YgAjfMYY3fdjBT-iFw",
339
- "../memory/core/memory-vocabulary.ts": "BigbzZqxtoQ1HxL18EIJBTqdF6p2sundIId_tzSWA6o",
340
- "package.json": "EVn2HsrFzU3CsyZciTy9r4OM2MTdXYOl2qT9jLPCbQs",
348
+ "../memory/core/memory-vocabulary.ts": "Oc987_v389HjcpzjTBPyqlbMfYje9OIo6APOaFINJBA",
349
+ "package.json": "7UMQIBDz0hi5so-zmoJxI_zKHsbn54fOMRPwieTA5AA",
341
350
  "src/backup/archive-encryption.ts": "K61RyOAvVCyTTNlcVUtjQUcIMA3G9ZBIFvcnMx4Ve0M",
342
351
  "src/backup/archive-scan.ts": "FFYOJ8-2yaBMLTAUmc_f4uyjDYRLK1kCA5YgtYb1B-4",
343
352
  "src/backup/backup-cli.ts": "noFTUi-ofUN5bsMCDtGY-Lp3Z3OI-ykCR6CZ9v2XEBc",
@@ -384,10 +393,12 @@
384
393
  "src/backup/wrangler-state-store.ts": "N556JEJhXbVKI6iBNJrM3ebKvN0_ggOO-A5TvTXbxNk",
385
394
  "src/bin.ts": "OmQ-ffIvcm1ka0_NO_UZFZtWGyO9IBSnUxe9Y1Yxy58",
386
395
  "src/cli-version.ts": "o5OC2arNSkJ5Vu136pZVOwhoGpl4fYaJ3-7U71yb9gc",
396
+ "src/clone/clone-command.ts": "uEUaSy6pyGarmzd6gQ9OnifY9WM8PcQsREYu_kcc1Sg",
397
+ "src/clone/hosted-repository-api.ts": "b8jRpNeHT9NqCxKhWnErorh2yXAowQRm_jdvw7aEwHc",
387
398
  "src/database/database-command.ts": "BydxtovhLo663IQ_HMNUtYQCLDSs2X6s_MhOUj2xUuE",
388
399
  "src/database/pg-migrator.ts": "hLYNoaAz0tk2Q8_6D78hUzZt_s4P45RMiLZzyk1Xhx8",
389
400
  "src/index.ts": "CIbU0cKqqn-mYSJKt4UsgxK0FIrkd0mnpEtD1GdbjQA",
390
- "src/inferative-cli.ts": "naEyVhp-WSpA8vnf_3y_4zPd213USi2K5BG4mB9Kd8Q",
401
+ "src/inferative-cli.ts": "Fy5IUNtkOxi7t6o2_rDOYOc-eCNHCAFB0CIOoxPtM8A",
391
402
  "src/memory/claude-settings.ts": "3MiKtJADQzs3hVx4LwoS0ITQzMdgP1mADWecVcsHZ-w",
392
403
  "src/memory/memory-command.ts": "jVzXJd7YZxoVbUJvpD8eyiOdXZ2lQpu7H5HEz02MIdA",
393
404
  "src/memory/memory-setup.ts": "Za95lyUt-dWg7-rSGOMET0M6PO3TPoIOSHhprHxCrn8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inferative",
3
- "version": "0.4.0",
3
+ "version": "0.5.0-next.20261111223013",
4
4
  "description": "The Inferative command line: create a project, publish, audit, diagnose and import a site, back up and restore an install, connect a coding agent to the dev host, set a coding agent up for a project's memory, and print the secrets that a host derives from its root secret.",
5
5
  "keywords": [
6
6
  "backup",
@@ -36,24 +36,24 @@
36
36
  "@aws-sdk/client-s3": "^3.1144.0",
37
37
  "@aws-sdk/lib-storage": "^3.1144.0",
38
38
  "@aws-sdk/s3-request-presigner": "^3.1144.0",
39
- "@heximon/blob": "0.36.0",
40
- "@heximon/build": "0.36.0",
41
- "@heximon/client": "0.36.0",
42
- "@heximon/compiler": "0.36.0",
43
- "@heximon/contract": "0.36.0",
44
- "@heximon/runtime": "0.36.0",
45
- "@heximon/schema": "0.36.0",
46
- "@inferative/base": "0.4.0",
47
- "@inferative/channels": "0.4.0",
48
- "@inferative/content": "0.4.0",
49
- "@inferative/files": "0.4.0",
50
- "@inferative/memory": "0.4.0",
51
- "@inferative/pages": "0.4.0",
52
- "@inferative/sdk": "0.4.0",
53
- "@inferative/site": "0.4.0",
39
+ "@heximon/blob": "0.37.0",
40
+ "@heximon/build": "0.37.0",
41
+ "@heximon/client": "0.37.0",
42
+ "@heximon/compiler": "0.37.0",
43
+ "@heximon/contract": "0.37.0",
44
+ "@heximon/runtime": "0.37.0",
45
+ "@heximon/schema": "0.37.0",
46
+ "@inferative/base": "0.5.0-next.20261111223013",
47
+ "@inferative/channels": "0.5.0-next.20261111223013",
48
+ "@inferative/content": "0.5.0-next.20261111223013",
49
+ "@inferative/files": "0.5.0-next.20261111223013",
50
+ "@inferative/memory": "0.5.0-next.20261111223013",
51
+ "@inferative/pages": "0.5.0-next.20261111223013",
52
+ "@inferative/sdk": "0.5.0-next.20261111223013",
53
+ "@inferative/site": "0.5.0-next.20261111223013",
54
54
  "age-encryption": "^0.3.1",
55
55
  "citty": "0.1.6",
56
- "create-inferative": "0.4.0",
56
+ "create-inferative": "0.5.0-next.20261111223013",
57
57
  "drizzle-orm": "^1.0.0-rc.5-169397b",
58
58
  "htmlparser2": "^12.0.0",
59
59
  "jiti": "2.7.0",