tencil 0.11.0 → 0.13.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.
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { A as withoutNpmEnv, D as createLocalPairingCode, E as DEFAULT_T3_URL, F as EnsembleCredentialStore, I as EnsembleClient, M as loadAgentSdk, O as exchangePairingCredential, S as defaultDataDir, T as CredentialStore, _ as detectAgents, a as readPlan, b as savedProvider, c as runtimeDir, d as uninstallService, f as startInBackground, g as PROVIDERS, h as updateNotice, i as finishUpdate, j as codexProblem, k as parsePairingInput, l as isServiceInstalled, m as isNewerThanThis, n as probeDaemon, o as enableAutostart, p as stopDaemon, r as startDaemon, s as ensureDaemon, t as DEFAULT_PORT, u as stopService, v as providerLabel, w as VERSION, y as saveProvider } from "./server-7jKlEaWk.mjs";
2
+ import { A as withoutNpmEnv, D as createLocalPairingCode, E as DEFAULT_T3_URL, F as EnsembleCredentialStore, I as EnsembleClient, M as loadAgentSdk, O as exchangePairingCredential, S as defaultDataDir, T as CredentialStore, _ as detectAgents, a as readPlan, b as savedProvider, c as runtimeDir, d as uninstallService, f as startInBackground, g as PROVIDERS, h as updateNotice, i as finishUpdate, j as codexProblem, k as parsePairingInput, l as isServiceInstalled, m as isNewerThanThis, n as probeDaemon, o as enableAutostart, p as stopDaemon, r as startDaemon, s as ensureDaemon, t as DEFAULT_PORT, u as stopService, v as providerLabel, w as VERSION, y as saveProvider } from "./server-D1QuPhoI.mjs";
3
3
  import { t as DEFAULT_CLOUD_URL } from "./cloud-CiwIrP1h.mjs";
4
4
  import { spawnSync } from "node:child_process";
5
5
  import { existsSync, rmSync } from "node:fs";
@@ -1,4 +1,4 @@
1
- import "./index-BSKV-nDI.mjs";
1
+ import "./index-CCzEXssj.mjs";
2
2
  //#region src/integrations/cloud.d.ts
3
3
  interface TencilCloudOptions {
4
4
  /** Project key from the Tencil Cloud dashboard. Defaults to TENCIL_CLOUD. */
@@ -491,6 +491,15 @@ type ServerMessage = {
491
491
  type: 'settings';
492
492
  settings: ProjectSettings;
493
493
  } |
494
+ /**
495
+ * Local daemon: this site isn't allowed to connect yet. The developer can allow it
496
+ * at `approveUrl`, a page the daemon serves; the socket closes right after.
497
+ */
498
+ {
499
+ type: 'origin.blocked';
500
+ origin: string;
501
+ approveUrl: string;
502
+ } |
494
503
  /** The daemon couldn't tell which project this page belongs to; the overlay asks. */
495
504
  {
496
505
  type: 'project.unknown';
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as UpdateStatus, c as ElementContext, i as ServerMessage, n as ProjectSource, o as Viewer, r as ProviderOption, s as Thread, t as Provider } from "./index-BSKV-nDI.mjs";
1
+ import { a as UpdateStatus, c as ElementContext, i as ServerMessage, n as ProjectSource, o as Viewer, r as ProviderOption, s as Thread, t as Provider } from "./index-CCzEXssj.mjs";
2
2
  import { Readable, Writable } from "node:stream";
3
3
  //#region ../bridge/src/project-providers.d.ts
4
4
  /** What a project picked in the overlay's settings. */
@@ -341,7 +341,7 @@ interface DaemonOptions {
341
341
  host?: string;
342
342
  /** Extra addresses to listen on, e.g. a Tailscale IP for a remote browser. */
343
343
  listen?: string[];
344
- /** Extra origins allowed to connect, besides loopback ones. */
344
+ /** Extra origins allowed to connect, besides loopback ones and those allowed from the overlay. */
345
345
  allowedOrigins?: string[];
346
346
  /** Pins, credentials and remembered projects; defaults to ~/.config/tencil. */
347
347
  dataDir?: string;
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { C as projectStorePath, L as Bridge, N as ProjectResolver, P as projectRoot, R as renderPrompt, S as defaultDataDir, n as probeDaemon, r as startDaemon, t as DEFAULT_PORT, x as FileThreadStore, z as stripContext } from "./server-7jKlEaWk.mjs";
1
+ import { C as projectStorePath, L as Bridge, N as ProjectResolver, P as projectRoot, R as renderPrompt, S as defaultDataDir, n as probeDaemon, r as startDaemon, t as DEFAULT_PORT, x as FileThreadStore, z as stripContext } from "./server-D1QuPhoI.mjs";
2
2
  export { Bridge, DEFAULT_PORT, ProjectResolver, FileThreadStore as ThreadStore, defaultDataDir, probeDaemon, projectRoot, projectStorePath, renderPrompt, startDaemon, stripContext };
package/dist/next.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as TencilCloudOptions } from "./cloud-DKtU6lcZ.mjs";
1
+ import { t as TencilCloudOptions } from "./cloud-kfsssyEM.mjs";
2
2
  //#region src/integrations/next.d.ts
3
3
  /**
4
4
  * Wrap `next.config` for Tencil Cloud preview builds: every element gets a