tencil 0.6.1 → 0.7.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 { _ as parsePairingInput, a as detectAgents, c as savedProvider, f as VERSION, g as exchangePairingCredential, h as createLocalPairingCode, i as PROVIDERS, m as DEFAULT_T3_URL, n as probeDaemon, o as providerLabel, p as CredentialStore, r as startDaemon, s as saveProvider, t as DEFAULT_PORT, u as defaultDataDir, v as withoutNpmEnv, y as loadAgentSdk } from "./server-CbF3t-Cx.mjs";
2
+ import { _ as parsePairingInput, a as detectAgents, c as savedProvider, f as VERSION, g as exchangePairingCredential, h as createLocalPairingCode, i as PROVIDERS, m as DEFAULT_T3_URL, n as probeDaemon, o as providerLabel, p as CredentialStore, r as startDaemon, s as saveProvider, t as DEFAULT_PORT, u as defaultDataDir, v as withoutNpmEnv, y as loadAgentSdk } from "./server-1L4Fi2wN.mjs";
3
3
  import { t as DEFAULT_CLOUD_URL } from "./cloud-CiwIrP1h.mjs";
4
4
  import { execFileSync, spawn, spawnSync } from "node:child_process";
5
5
  import { existsSync, mkdirSync, openSync, readFileSync, rmSync, writeFileSync } from "node:fs";
@@ -1,4 +1,4 @@
1
- import "./index-B0phpEz9.mjs";
1
+ import "./index-BRcZL2Ov.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. */
@@ -30,6 +30,24 @@ declare const ElementContext: z.ZodObject<{
30
30
  dpr: z.ZodNumber;
31
31
  }, z.core.$strip>;
32
32
  selection: z.ZodOptional<z.ZodString>;
33
+ box: z.ZodOptional<z.ZodObject<{
34
+ margin: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
35
+ padding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
36
+ border: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
37
+ gap: z.ZodOptional<z.ZodObject<{
38
+ row: z.ZodNumber;
39
+ column: z.ZodNumber;
40
+ }, z.core.$strip>>;
41
+ }, z.core.$strip>>;
42
+ spacing: z.ZodOptional<z.ZodObject<{
43
+ to: z.ZodString;
44
+ selector: z.ZodOptional<z.ZodString>;
45
+ parent: z.ZodOptional<z.ZodBoolean>;
46
+ top: z.ZodOptional<z.ZodNumber>;
47
+ right: z.ZodOptional<z.ZodNumber>;
48
+ bottom: z.ZodOptional<z.ZodNumber>;
49
+ left: z.ZodOptional<z.ZodNumber>;
50
+ }, z.core.$strip>>;
33
51
  }, z.core.$strip>;
34
52
  type ElementContext = z.infer<typeof ElementContext>;
35
53
  declare const ImageAttachment: z.ZodObject<{
@@ -154,6 +172,24 @@ declare const Thread: z.ZodObject<{
154
172
  dpr: z.ZodNumber;
155
173
  }, z.core.$strip>;
156
174
  selection: z.ZodOptional<z.ZodString>;
175
+ box: z.ZodOptional<z.ZodObject<{
176
+ margin: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
177
+ padding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
178
+ border: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
179
+ gap: z.ZodOptional<z.ZodObject<{
180
+ row: z.ZodNumber;
181
+ column: z.ZodNumber;
182
+ }, z.core.$strip>>;
183
+ }, z.core.$strip>>;
184
+ spacing: z.ZodOptional<z.ZodObject<{
185
+ to: z.ZodString;
186
+ selector: z.ZodOptional<z.ZodString>;
187
+ parent: z.ZodOptional<z.ZodBoolean>;
188
+ top: z.ZodOptional<z.ZodNumber>;
189
+ right: z.ZodOptional<z.ZodNumber>;
190
+ bottom: z.ZodOptional<z.ZodNumber>;
191
+ left: z.ZodOptional<z.ZodNumber>;
192
+ }, z.core.$strip>>;
157
193
  }, z.core.$strip>>;
158
194
  status: z.ZodEnum<{
159
195
  error: "error";
@@ -312,6 +348,7 @@ declare const ProjectSettings: z.ZodObject<{
312
348
  }, z.core.$strip>>;
313
349
  model: z.ZodOptional<z.ZodString>;
314
350
  batch: z.ZodBoolean;
351
+ ruler: z.ZodBoolean;
315
352
  }, z.core.$strip>;
316
353
  type ProjectSettings = z.infer<typeof ProjectSettings>;
317
354
  type ServerMessage = {
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Thread, i as Viewer, n as ProviderOption, o as ElementContext, r as ServerMessage, t as Provider } from "./index-B0phpEz9.mjs";
1
+ import { a as Thread, i as Viewer, n as ProviderOption, o as ElementContext, r as ServerMessage, t as Provider } from "./index-BRcZL2Ov.mjs";
2
2
  //#region ../bridge/src/project-providers.d.ts
3
3
  /** What a project picked in the overlay's settings. */
4
4
  interface SavedProjectSettings {
@@ -8,6 +8,8 @@ interface SavedProjectSettings {
8
8
  models?: Record<string, string>;
9
9
  /** Queue new comments and send them together; on when unset. */
10
10
  batch?: boolean;
11
+ /** Offer the ruler in the overlay's toolbar; on when unset. */
12
+ ruler?: boolean;
11
13
  }
12
14
  /**
13
15
  * Where a project's settings live: a file next to its pins for the daemon,
@@ -54,7 +56,9 @@ declare class ProjectProviders {
54
56
  setModel(id: string, model: string | null): Promise<void>;
55
57
  get batch(): boolean;
56
58
  setBatch(on: boolean): Promise<void>;
57
- /** Fires when a picked model or batching changes. */
59
+ get ruler(): boolean;
60
+ setRuler(on: boolean): Promise<void>;
61
+ /** Fires when a picked model, batching or the ruler changes. */
58
62
  onSettingsChange(listener: () => void): () => void;
59
63
  onDefaultChange(listener: () => void): () => void;
60
64
  dispose(): Promise<void>;
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { C as renderPrompt, S as Bridge, b as ProjectResolver, d as projectStorePath, l as FileThreadStore, n as probeDaemon, r as startDaemon, t as DEFAULT_PORT, u as defaultDataDir, w as stripContext, x as projectRoot } from "./server-CbF3t-Cx.mjs";
1
+ import { C as renderPrompt, S as Bridge, b as ProjectResolver, d as projectStorePath, l as FileThreadStore, n as probeDaemon, r as startDaemon, t as DEFAULT_PORT, u as defaultDataDir, w as stripContext, x as projectRoot } from "./server-1L4Fi2wN.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-CIAGUsk2.mjs";
1
+ import { t as TencilCloudOptions } from "./cloud-jOobzTY9.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