tencil 0.14.0 → 0.14.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/README.md CHANGED
@@ -202,7 +202,7 @@ tencil connect [pairing-link] Pair with T3 Code (automatic for a local T3 Code)
202
202
 
203
203
  --port <n> Port (default 4747, env TENCIL_PORT)
204
204
  --provider <name> Agent for projects without their own: t3code (default) | claude-code | codex | ensemble
205
- --t3-url <url> T3 Code server (default: last paired, then http://127.0.0.1:3773)
205
+ --t3-url <url> T3 Code server (default: your running T3 Code or last paired, then http://127.0.0.1:3773)
206
206
  --model <model> T3 Code: instance:model, e.g. claudeAgent:claude-fable-5-1
207
207
  Claude Code: a model, e.g. claude-opus-5-5 (default: its default)
208
208
  Codex: a model, e.g. gpt-6.1-sol (default: its default)
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-DKRDfb-p.mjs";
2
+ import { A as resolveT3Url, D as createLocalPairingCode, E as DEFAULT_T3_URL, I as EnsembleCredentialStore, L as EnsembleClient, M as codexProblem, N 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 withoutNpmEnv, 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-CK7bUOfk.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";
@@ -84,7 +84,10 @@ async function prepareProvider(provider, t3Url, log) {
84
84
  /** Pair with the local T3 Code. */
85
85
  async function pairWithLocalT3(t3Url, log) {
86
86
  const store = new CredentialStore();
87
- const baseUrl = t3Url ?? await store.lastBaseUrl() ?? "http://127.0.0.1:3773";
87
+ const baseUrl = await resolveT3Url({
88
+ baseUrl: t3Url,
89
+ credentials: store
90
+ });
88
91
  if (await store.get(baseUrl)) return log(` ${pc.green("✓")} Paired with T3 Code.`);
89
92
  const code = await createLocalPairingCode(baseUrl).catch(() => void 0);
90
93
  if (!code) {
@@ -589,7 +592,10 @@ function describe(framework) {
589
592
  //#region src/cli/commands/connect.ts
590
593
  async function connect(input, t3Url) {
591
594
  const store = new CredentialStore();
592
- const baseUrl = t3Url ?? await store.lastBaseUrl() ?? "http://127.0.0.1:3773";
595
+ const baseUrl = await resolveT3Url({
596
+ baseUrl: t3Url,
597
+ credentials: store
598
+ });
593
599
  let pairing = input;
594
600
  if (!pairing) {
595
601
  console.log(`\n ${pc.dim("Creating a pairing code on the local T3 Code…")}`);
@@ -909,7 +915,7 @@ ${pc.dim("Usage")}
909
915
  ${pc.dim("Daemon options")}
910
916
  --port <n> Port (default ${DEFAULT_PORT}, env TENCIL_PORT)
911
917
  --provider <name> t3code | claude-code | codex | ensemble: this machine's agent (setup asks when unset)
912
- --t3-url <url> T3 Code server (default ${DEFAULT_T3_URL}, env TENCIL_T3_URL)
918
+ --t3-url <url> T3 Code server (default: your running one or last paired, then ${DEFAULT_T3_URL}; env TENCIL_T3_URL)
913
919
  --model <model> T3 Code: instance:model, e.g. claudeAgent:claude-fable-5-1
914
920
  Claude Code: a model, e.g. claude-opus-5-5 (default: its default)
915
921
  Codex: a model, e.g. gpt-6.1-sol (default: its default)
@@ -1,4 +1,4 @@
1
- import "./index-CNE_Axhd.mjs";
1
+ import "./index-2g3L9A16.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. */
@@ -81,9 +81,9 @@ declare const ThreadStatus: z.ZodEnum<{
81
81
  }>;
82
82
  type ThreadStatus = z.infer<typeof ThreadStatus>;
83
83
  declare const MessageRole: z.ZodEnum<{
84
+ system: "system";
84
85
  user: "user";
85
86
  assistant: "assistant";
86
- system: "system";
87
87
  }>;
88
88
  type MessageRole = z.infer<typeof MessageRole>;
89
89
  declare const Delivery: z.ZodObject<{
@@ -204,9 +204,9 @@ declare const Thread: z.ZodObject<{
204
204
  messages: z.ZodArray<z.ZodObject<{
205
205
  id: z.ZodString;
206
206
  role: z.ZodEnum<{
207
+ system: "system";
207
208
  user: "user";
208
209
  assistant: "assistant";
209
- system: "system";
210
210
  }>;
211
211
  text: z.ZodString;
212
212
  streaming: z.ZodDefault<z.ZodBoolean>;
@@ -340,9 +340,9 @@ interface UpdateStatus {
340
340
  */
341
341
  declare const Preferences: z.ZodObject<{
342
342
  theme: z.ZodOptional<z.ZodEnum<{
343
- system: "system";
344
343
  dark: "dark";
345
344
  light: "light";
345
+ system: "system";
346
346
  }>>;
347
347
  shortcuts: z.ZodOptional<z.ZodObject<{
348
348
  comment: z.ZodNullable<z.ZodObject<{
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-CNE_Axhd.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-2g3L9A16.mjs";
2
2
  import { z } from "zod";
3
3
  import { Readable, Writable } from "node:stream";
4
4
  //#region ../bridge/src/global-context.d.ts
@@ -306,7 +306,10 @@ interface ModelSelection {
306
306
  interface T3CodeProviderOptions {
307
307
  /** Directory the dev site lives in; mapped to a T3 Code project by workspace root. */
308
308
  projectRoot: string;
309
- /** Defaults to the server `tencil connect` paired with last, then localhost:3773. */
309
+ /**
310
+ * Defaults to the T3 Code running for this user (its `server-runtime.json`) or
311
+ * the server paired with last, then localhost:3773. See `resolveT3Url`.
312
+ */
310
313
  baseUrl?: string;
311
314
  /** Explicit bearer token. Defaults to the one stored by `tencil connect`. */
312
315
  token?: 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-DKRDfb-p.mjs";
1
+ import { B as stripContext, C as projectStorePath, F as projectRoot, P as ProjectResolver, R as Bridge, S as defaultDataDir, n as probeDaemon, r as startDaemon, t as DEFAULT_PORT, x as FileThreadStore, z as renderPrompt } from "./server-CK7bUOfk.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-CRDNwbe9.mjs";
1
+ import { t as TencilCloudOptions } from "./cloud-CblA1guP.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