dsh-typst-plugin 0.0.0-stage → 0.1.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.
Files changed (129) hide show
  1. package/LICENSE +21 -0
  2. package/README.en.md +121 -0
  3. package/README.md +120 -2
  4. package/cordis.patch.yml +6 -0
  5. package/docs/images/icon.png +0 -0
  6. package/docs/plugin-detail.en.md +2 -0
  7. package/docs/plugin-detail.md +2 -0
  8. package/lib/client.js +41996 -0
  9. package/lib/client.js.map +7 -0
  10. package/lib/config.d.ts +107 -0
  11. package/lib/config.d.ts.map +1 -0
  12. package/lib/config.js +167 -0
  13. package/lib/config.js.map +1 -0
  14. package/lib/constants.d.ts +77 -0
  15. package/lib/constants.d.ts.map +1 -0
  16. package/lib/constants.js +85 -0
  17. package/lib/constants.js.map +1 -0
  18. package/lib/contract.d.ts +263 -0
  19. package/lib/contract.d.ts.map +1 -0
  20. package/lib/contract.js +9 -0
  21. package/lib/contract.js.map +1 -0
  22. package/lib/diagnostic-text.d.ts +13 -0
  23. package/lib/diagnostic-text.d.ts.map +1 -0
  24. package/lib/diagnostic-text.js +28 -0
  25. package/lib/diagnostic-text.js.map +1 -0
  26. package/lib/errors.d.ts +119 -0
  27. package/lib/errors.d.ts.map +1 -0
  28. package/lib/errors.js +161 -0
  29. package/lib/errors.js.map +1 -0
  30. package/lib/host/facts.d.ts +31 -0
  31. package/lib/host/facts.d.ts.map +1 -0
  32. package/lib/host/facts.js +145 -0
  33. package/lib/host/facts.js.map +1 -0
  34. package/lib/host/which.d.ts +20 -0
  35. package/lib/host/which.d.ts.map +1 -0
  36. package/lib/host/which.js +50 -0
  37. package/lib/host/which.js.map +1 -0
  38. package/lib/index.d.ts +2 -0
  39. package/lib/index.d.ts.map +1 -0
  40. package/lib/index.js +2 -0
  41. package/lib/index.js.map +1 -0
  42. package/lib/remote.d.ts +70 -0
  43. package/lib/remote.d.ts.map +1 -0
  44. package/lib/remote.js +156 -0
  45. package/lib/remote.js.map +1 -0
  46. package/lib/service.d.ts +71 -0
  47. package/lib/service.d.ts.map +1 -0
  48. package/lib/service.js +213 -0
  49. package/lib/service.js.map +1 -0
  50. package/lib/skills/typst.d.ts +13 -0
  51. package/lib/skills/typst.d.ts.map +1 -0
  52. package/lib/skills/typst.js +78 -0
  53. package/lib/skills/typst.js.map +1 -0
  54. package/lib/status-codec.d.ts +11 -0
  55. package/lib/status-codec.d.ts.map +1 -0
  56. package/lib/status-codec.js +11 -0
  57. package/lib/status-codec.js.map +1 -0
  58. package/lib/tools/registration.d.ts +23 -0
  59. package/lib/tools/registration.d.ts.map +1 -0
  60. package/lib/tools/registration.js +758 -0
  61. package/lib/tools/registration.js.map +1 -0
  62. package/lib/tools/shared.d.ts +30 -0
  63. package/lib/tools/shared.d.ts.map +1 -0
  64. package/lib/tools/shared.js +79 -0
  65. package/lib/tools/shared.js.map +1 -0
  66. package/lib/typert.d.ts +25 -0
  67. package/lib/typert.d.ts.map +1 -0
  68. package/lib/typert.js +116 -0
  69. package/lib/typert.js.map +1 -0
  70. package/lib/typst/diagnostics.d.ts +58 -0
  71. package/lib/typst/diagnostics.d.ts.map +1 -0
  72. package/lib/typst/diagnostics.js +237 -0
  73. package/lib/typst/diagnostics.js.map +1 -0
  74. package/lib/typst/flags.d.ts +8 -0
  75. package/lib/typst/flags.d.ts.map +1 -0
  76. package/lib/typst/flags.js +8 -0
  77. package/lib/typst/flags.js.map +1 -0
  78. package/lib/typst/locate.d.ts +61 -0
  79. package/lib/typst/locate.d.ts.map +1 -0
  80. package/lib/typst/locate.js +152 -0
  81. package/lib/typst/locate.js.map +1 -0
  82. package/lib/typst/mainfile.d.ts +40 -0
  83. package/lib/typst/mainfile.d.ts.map +1 -0
  84. package/lib/typst/mainfile.js +136 -0
  85. package/lib/typst/mainfile.js.map +1 -0
  86. package/lib/typst/match.d.ts +67 -0
  87. package/lib/typst/match.d.ts.map +1 -0
  88. package/lib/typst/match.js +227 -0
  89. package/lib/typst/match.js.map +1 -0
  90. package/lib/typst/oneshot.d.ts +48 -0
  91. package/lib/typst/oneshot.d.ts.map +1 -0
  92. package/lib/typst/oneshot.js +86 -0
  93. package/lib/typst/oneshot.js.map +1 -0
  94. package/lib/typst/owners.d.ts +28 -0
  95. package/lib/typst/owners.d.ts.map +1 -0
  96. package/lib/typst/owners.js +98 -0
  97. package/lib/typst/owners.js.map +1 -0
  98. package/lib/typst/pdf-extract.d.ts +28 -0
  99. package/lib/typst/pdf-extract.d.ts.map +1 -0
  100. package/lib/typst/pdf-extract.js +111 -0
  101. package/lib/typst/pdf-extract.js.map +1 -0
  102. package/lib/typst/process.d.ts +73 -0
  103. package/lib/typst/process.d.ts.map +1 -0
  104. package/lib/typst/process.js +147 -0
  105. package/lib/typst/process.js.map +1 -0
  106. package/lib/typst/text.d.ts +62 -0
  107. package/lib/typst/text.d.ts.map +1 -0
  108. package/lib/typst/text.js +282 -0
  109. package/lib/typst/text.js.map +1 -0
  110. package/lib/typst/watcher.d.ts +76 -0
  111. package/lib/typst/watcher.d.ts.map +1 -0
  112. package/lib/typst/watcher.js +210 -0
  113. package/lib/typst/watcher.js.map +1 -0
  114. package/lib/wire-schemas.d.ts +433 -0
  115. package/lib/wire-schemas.d.ts.map +1 -0
  116. package/lib/wire-schemas.js +428 -0
  117. package/lib/wire-schemas.js.map +1 -0
  118. package/lib/workspace/containment.d.ts +25 -0
  119. package/lib/workspace/containment.d.ts.map +1 -0
  120. package/lib/workspace/containment.js +54 -0
  121. package/lib/workspace/containment.js.map +1 -0
  122. package/lib/workspace/session.d.ts +268 -0
  123. package/lib/workspace/session.d.ts.map +1 -0
  124. package/lib/workspace/session.js +1576 -0
  125. package/lib/workspace/session.js.map +1 -0
  126. package/locale/en.json +15 -0
  127. package/locale/zh.json +15 -0
  128. package/package.json +113 -4
  129. package/release-provenance.json +137 -0
@@ -0,0 +1,107 @@
1
+ /**
2
+ * Plugin configuration. The schema fills defaults and every field is
3
+ * `volatile`, so a settings commit lands in the running fiber without
4
+ * remounting and the workbench reads it per request. Structural reactions
5
+ * (changed toolchain inputs restart every live session) ride
6
+ * `loader/volatile-update` in the service.
7
+ *
8
+ * Paths are normalized on read rather than on write: a leading `~` expands to
9
+ * the user's home directory on every platform (the CLI itself does not
10
+ * expand it), whitespace is trimmed, and repeated entries are dropped. A
11
+ * relative font or package path keeps its meaning: both compiles run with the
12
+ * workspace as their working directory, so typst resolves it there.
13
+ * @module dsh-typst/config
14
+ */
15
+ import type { Volatile } from "@deepseek-ai/cordis";
16
+ import Schema from "@deepseek-ai/schemastery";
17
+ export interface Config {
18
+ /**
19
+ * Full path of the typst executable. Empty looks typst up on PATH, in the
20
+ * common install locations, and finally in the login shell; set it only
21
+ * when Typst is installed somewhere else.
22
+ */
23
+ typstPath?: Volatile<string>;
24
+ /**
25
+ * Extra font directories passed to typst as `--font-path`, in order after
26
+ * the workspace's own `fonts/` and `assets/fonts/`. A leading `~` means the
27
+ * user's home directory.
28
+ */
29
+ fontPaths?: Volatile<string[]>;
30
+ /**
31
+ * Local package directory passed to typst as `--package-path`: private
32
+ * `@local` packages, or an offline mirror of `@preview`. Empty uses typst's
33
+ * default location.
34
+ */
35
+ packagePath?: Volatile<string>;
36
+ /**
37
+ * Directory names skipped while scanning for the main file, in addition to
38
+ * the built-in build-output list. Names only — no separators — matched at
39
+ * any depth and without case on every platform. The panel's "include
40
+ * excluded directories" toggle reveals them together with the built-ins.
41
+ */
42
+ excludeDirs?: Volatile<string[]>;
43
+ }
44
+ /** The plain values the workbench and its sessions compile with. */
45
+ export interface ResolvedConfig {
46
+ typstPath: string;
47
+ fontPaths: string[];
48
+ packagePath: string;
49
+ excludeDirs: string[];
50
+ }
51
+ /**
52
+ * Every field is `volatile`: the settings page edits the live entry, and the
53
+ * loader commits volatile edits into the running fiber without remounting.
54
+ * `excludeDirs` rejects path-shaped entries at commit time instead of
55
+ * silently never matching them.
56
+ */
57
+ export declare const Config: Schema<Schemastery.ObjectS<NoInfer<{
58
+ typstPath: Schema<string, string, "volatile-defined">;
59
+ fontPaths: Schema<NoInfer<string[]>, NoInfer<string[]>, "volatile-defined">;
60
+ packagePath: Schema<string, string, "volatile-defined">;
61
+ excludeDirs: Schema<NoInfer<string[]>, NoInfer<string[]>, "volatile-defined">;
62
+ }>>, Schemastery.ObjectT<NoInfer<{
63
+ typstPath: Schema<string, string, "volatile-defined">;
64
+ fontPaths: Schema<NoInfer<string[]>, NoInfer<string[]>, "volatile-defined">;
65
+ packagePath: Schema<string, string, "volatile-defined">;
66
+ excludeDirs: Schema<NoInfer<string[]>, NoInfer<string[]>, "volatile-defined">;
67
+ }>>, "plain">;
68
+ /** The live entry the service holds: volatile references re-read per access. */
69
+ export interface LiveEntry {
70
+ typstPath: string | Volatile<string>;
71
+ fontPaths: string[] | Volatile<string[]>;
72
+ packagePath: string | Volatile<string>;
73
+ excludeDirs: string[] | Volatile<string[]>;
74
+ }
75
+ /**
76
+ * Read the live config values per request. The entry already passed the
77
+ * schema (the loader applies `Config` before the constructor runs), so this
78
+ * only unwraps volatile references and normalizes.
79
+ * @param entry - the live entry the service holds.
80
+ * @returns the plain current values.
81
+ */
82
+ export declare function readResolvedConfig(entry: Config | object): ResolvedConfig;
83
+ /**
84
+ * Accept a loader entry (volatile references) or plain written values and
85
+ * normalize to the live-entry shape the service holds. Validation stays
86
+ * minimal: an empty string means "look typst up"; an empty list means "none".
87
+ * @param entry - what the loader handed the constructor or the settings page wrote.
88
+ * @returns the live entry.
89
+ */
90
+ export declare function toLiveEntry(entry: Config | object): LiveEntry;
91
+ /** Which live behaviour a committed settings change has to re-apply. */
92
+ export interface SettingsChange {
93
+ /** The typst binary, fonts or packages changed: every watch must restart. */
94
+ toolchain: boolean;
95
+ /** The exclusion list changed: discovery must run again. */
96
+ discovery: boolean;
97
+ }
98
+ /**
99
+ * Compare the settings a session is running with the ones just committed.
100
+ * @param previous - the snapshot already applied.
101
+ * @param next - the snapshot read after the commit.
102
+ * @returns `null` when nothing observable changed, otherwise the affected behaviours.
103
+ */
104
+ export declare function settingsChanged(previous: ResolvedConfig, next: ResolvedConfig): SettingsChange | null;
105
+ /** Order-sensitive list equality for the resolved string lists. */
106
+ export declare function sameList(a: readonly string[], b: readonly string[]): boolean;
107
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAG9C,MAAM,WAAW,MAAM;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC7B;;;;OAIG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IAC/B;;;;OAIG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC/B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;CAClC;AAED,oEAAoE;AACpE,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED;;;;;GAKG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;aAOjB,CAAC;AAEH,gFAAgF;AAChF,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;IACrC,SAAS,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IACzC,WAAW,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;IACvC,WAAW,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;CAC5C;AA8ED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,cAAc,CAQzE;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAQ7D;AAED,wEAAwE;AACxE,MAAM,WAAW,cAAc;IAC7B,6EAA6E;IAC7E,SAAS,EAAE,OAAO,CAAC;IACnB,4DAA4D;IAC5D,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,cAAc,GACnB,cAAc,GAAG,IAAI,CAOvB;AAED,mEAAmE;AACnE,wBAAgB,QAAQ,CAAC,CAAC,EAAE,SAAS,MAAM,EAAE,EAAE,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAE5E"}
package/lib/config.js ADDED
@@ -0,0 +1,167 @@
1
+ /**
2
+ * Plugin configuration. The schema fills defaults and every field is
3
+ * `volatile`, so a settings commit lands in the running fiber without
4
+ * remounting and the workbench reads it per request. Structural reactions
5
+ * (changed toolchain inputs restart every live session) ride
6
+ * `loader/volatile-update` in the service.
7
+ *
8
+ * Paths are normalized on read rather than on write: a leading `~` expands to
9
+ * the user's home directory on every platform (the CLI itself does not
10
+ * expand it), whitespace is trimmed, and repeated entries are dropped. A
11
+ * relative font or package path keeps its meaning: both compiles run with the
12
+ * workspace as their working directory, so typst resolves it there.
13
+ * @module dsh-typst/config
14
+ */
15
+ import { homedir } from "node:os";
16
+ import { join } from "node:path";
17
+ import { isVolatile } from "@deepseek-ai/cosmokit";
18
+ import Schema from "@deepseek-ai/schemastery";
19
+ import { TYPST_DIRECTORY_NAME } from "./constants.js";
20
+ /**
21
+ * Every field is `volatile`: the settings page edits the live entry, and the
22
+ * loader commits volatile edits into the running fiber without remounting.
23
+ * `excludeDirs` rejects path-shaped entries at commit time instead of
24
+ * silently never matching them.
25
+ */
26
+ export const Config = Schema.object({
27
+ typstPath: Schema.string().default("").volatile(),
28
+ fontPaths: Schema.array(Schema.string()).default([]).volatile(),
29
+ packagePath: Schema.string().default("").volatile(),
30
+ excludeDirs: Schema.array(Schema.string().pattern(TYPST_DIRECTORY_NAME))
31
+ .default([])
32
+ .volatile(),
33
+ });
34
+ /**
35
+ * Read the current value behind a volatile reference. Plain values pass
36
+ * through untouched, so callers holding pre-resolution input need no
37
+ * wrapping.
38
+ * @param value - a field value, possibly a volatile reference.
39
+ * @returns the current plain value.
40
+ */
41
+ function current(value) {
42
+ return isVolatile(value) ? value.get() : value;
43
+ }
44
+ /**
45
+ * Unwrap every top-level field of an entry to its plain value.
46
+ * @param config - a Loader-resolved `Config` or human-written values.
47
+ * @returns the plain field map, without schema defaults.
48
+ */
49
+ function unwrapConfig(config) {
50
+ return Object.fromEntries(Object.entries(config ?? {}).map(([key, value]) => [key, current(value)]));
51
+ }
52
+ /**
53
+ * Expand a leading `~` to the home directory. Both separator spellings are
54
+ * accepted so a path typed on Windows and a path typed on macOS mean the same
55
+ * thing to the user.
56
+ * @param path - a configured path.
57
+ * @returns the expanded path.
58
+ */
59
+ function expandHome(path) {
60
+ if (path === "~")
61
+ return homedir();
62
+ if (path.startsWith("~/") || path.startsWith("~\\")) {
63
+ return join(homedir(), path.slice(2));
64
+ }
65
+ return path;
66
+ }
67
+ /** A trimmed, `~`-expanded path, or `""`. */
68
+ function pathText(value) {
69
+ return typeof value === "string" ? expandHome(value.trim()) : "";
70
+ }
71
+ /** A trimmed, `~`-expanded, de-duplicated, order-preserving path list. */
72
+ function pathList(value) {
73
+ if (!Array.isArray(value))
74
+ return [];
75
+ const paths = [];
76
+ const seen = new Set();
77
+ for (const item of value) {
78
+ if (typeof item !== "string")
79
+ continue;
80
+ const path = expandHome(item.trim());
81
+ if (!path || seen.has(path))
82
+ continue;
83
+ seen.add(path);
84
+ paths.push(path);
85
+ }
86
+ return paths;
87
+ }
88
+ /** A trimmed, de-duplicated list of bare directory names; path-shaped entries are dropped. */
89
+ function nameList(value) {
90
+ if (!Array.isArray(value))
91
+ return [];
92
+ const names = [];
93
+ const seen = new Set();
94
+ for (const item of value) {
95
+ if (typeof item !== "string")
96
+ continue;
97
+ const name = item.trim();
98
+ if (!TYPST_DIRECTORY_NAME.test(name))
99
+ continue;
100
+ const key = name.toLowerCase();
101
+ if (seen.has(key))
102
+ continue;
103
+ seen.add(key);
104
+ names.push(name);
105
+ }
106
+ return names;
107
+ }
108
+ /**
109
+ * Read the live config values per request. The entry already passed the
110
+ * schema (the loader applies `Config` before the constructor runs), so this
111
+ * only unwraps volatile references and normalizes.
112
+ * @param entry - the live entry the service holds.
113
+ * @returns the plain current values.
114
+ */
115
+ export function readResolvedConfig(entry) {
116
+ const plain = unwrapConfig(entry);
117
+ return {
118
+ typstPath: pathText(plain.typstPath),
119
+ fontPaths: pathList(plain.fontPaths),
120
+ packagePath: pathText(plain.packagePath),
121
+ excludeDirs: nameList(plain.excludeDirs),
122
+ };
123
+ }
124
+ /**
125
+ * Accept a loader entry (volatile references) or plain written values and
126
+ * normalize to the live-entry shape the service holds. Validation stays
127
+ * minimal: an empty string means "look typst up"; an empty list means "none".
128
+ * @param entry - what the loader handed the constructor or the settings page wrote.
129
+ * @returns the live entry.
130
+ */
131
+ export function toLiveEntry(entry) {
132
+ const value = entry;
133
+ return {
134
+ typstPath: liveValue(value.typstPath, "string", ""),
135
+ fontPaths: liveValue(value.fontPaths, "array", []),
136
+ packagePath: liveValue(value.packagePath, "string", ""),
137
+ excludeDirs: liveValue(value.excludeDirs, "array", []),
138
+ };
139
+ }
140
+ /**
141
+ * Compare the settings a session is running with the ones just committed.
142
+ * @param previous - the snapshot already applied.
143
+ * @param next - the snapshot read after the commit.
144
+ * @returns `null` when nothing observable changed, otherwise the affected behaviours.
145
+ */
146
+ export function settingsChanged(previous, next) {
147
+ const toolchain = previous.typstPath !== next.typstPath ||
148
+ previous.packagePath !== next.packagePath ||
149
+ !sameList(previous.fontPaths, next.fontPaths);
150
+ const discovery = !sameList(previous.excludeDirs, next.excludeDirs);
151
+ return toolchain || discovery ? { toolchain, discovery } : null;
152
+ }
153
+ /** Order-sensitive list equality for the resolved string lists. */
154
+ export function sameList(a, b) {
155
+ return a.length === b.length && a.every((value, index) => value === b[index]);
156
+ }
157
+ /** Keep a volatile reference, a plain value of the expected shape, or the fallback. */
158
+ function liveValue(value, shape, fallback) {
159
+ if (isVolatile(value))
160
+ return value;
161
+ if (shape === "string" && typeof value === "string")
162
+ return value;
163
+ if (shape === "array" && Array.isArray(value))
164
+ return value;
165
+ return fallback;
166
+ }
167
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAsCtD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAClC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC/D,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnD,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,CAA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Q,CAAC,CAAoB,EAAE,CAAoB;IACjE,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AAChF,CAAC;AAED,uFAAuF;AACvF,SAAS,SAAS,CAChB,KAAc,EACd,KAAyB,EACzB,QAAW;IAEX,IAAI,UAAU,CAAC,KAAK,CAAC;QAAE,OAAO,KAAoB,CAAC;IACnD,IAAI,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAU,CAAC;IACvE,IAAI,KAAK,KAAK,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAU,CAAC;IACjE,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -0,0 +1,77 @@
1
+ /**
2
+ * Runtime constants shared by both halves. Values and type-only imports
3
+ * only: this module is on the client-graph allowlist
4
+ * (`scripts/client-graph-authority.mjs`), so a host-side import here would
5
+ * put host authority in the browser bundle.
6
+ * @module dsh-typst/constants
7
+ */
8
+ /** The npm package that owns the Remote methods (Typert's package identity). */
9
+ export declare const TYPST_REMOTE_PACKAGE = "dsh-typst-plugin";
10
+ /** The wire namespace this plugin mounts its Typert remote under. */
11
+ export declare const TYPST_REMOTE_NAMESPACE = "typst";
12
+ /** The settings/config namespace spelling shared by both halves. */
13
+ export declare const TYPST_SETTINGS_NAMESPACE = "typst";
14
+ /**
15
+ * A bare directory name as the exclusion setting accepts it: no path
16
+ * separators, not `.` and not `..`. Shared by the host schema and the settings
17
+ * page so an entry is refused identically before and after it is staged.
18
+ */
19
+ export declare const TYPST_DIRECTORY_NAME: RegExp;
20
+ /** Cordis service key of the host remote runtime (`TypstRuntime`). */
21
+ export declare const TYPST_STATUS_SERVICE_KEY = "typstStatus";
22
+ /** The real wire type of the session id a typst lookup is keyed by. */
23
+ export declare const TYPST_SCOPE_WIRE_SYMBOL = "@deepseek-ai/dsh-session/types#SessionId";
24
+ /** The host-side type symbol of the typst scope (this package owns it). */
25
+ export declare const TYPST_SCOPE_HOST_SYMBOL = "dsh-typst-plugin#TypstScope";
26
+ export declare const TYPST_STATUS_METHOD = "status";
27
+ export declare const TYPST_SET_MAIN_METHOD = "setMain";
28
+ export declare const TYPST_WATCH_METHOD = "watch";
29
+ export declare const TYPST_READ_PREVIEW_METHOD = "readPreview";
30
+ export declare const TYPST_LOCATE_SOURCE_METHOD = "locateSource";
31
+ /** Typst versions older than this are refused (ZCode typst-workbench parity). */
32
+ export declare const MIN_TYPST: readonly [number, number, number];
33
+ /** Tool names, flat domain-prefixed snake_case (dsh-zotero convention). */
34
+ export declare const TYPST_TOOL_NAMES: readonly ["typst_status", "typst_set_main", "typst_check", "typst_render_pages", "typst_show", "typst_clear_highlights", "typst_export_pdf"];
35
+ /**
36
+ * Ported from the ZCode typst-workbench server (0.2.0): the behavioral
37
+ * bounds every tool and the panel observe.
38
+ */
39
+ export declare const LIMITS: {
40
+ /** Silence window that decides a watch round has produced its diagnostics. */
41
+ readonly settleMs: 1500;
42
+ /** One-shot compile (render, export) timeout. */
43
+ readonly oneshotTimeoutMs: 120000;
44
+ /** Diagnostics returned to the model. */
45
+ readonly diagnostics: 30;
46
+ /** Status notification throttle. */
47
+ readonly notifyMs: 30;
48
+ /** Re-lookup interval while the panel is open and Typst is unusable; every setupShellEvery ticks the login shell is queried too. */
49
+ readonly setupWatchMs: 3000;
50
+ readonly setupShellEvery: 5;
51
+ /** How long `typst_check` waits for the document to settle. */
52
+ readonly checkTimeoutMs: 60000;
53
+ /** Provider grace before a managed child range is terminated. */
54
+ readonly stopGraceMs: 2000;
55
+ /** Collected stdout/stderr cap for one short command. */
56
+ readonly processOutputBytes: number;
57
+ /** Maximum pages rendered per `typst_render_pages` call. */
58
+ readonly renderPages: 4;
59
+ readonly ppiDefault: 110;
60
+ readonly ppiMin: 36;
61
+ readonly ppiMax: 300;
62
+ /** Preview PDFs above this size are not served. */
63
+ readonly pdfBytes: number;
64
+ /** Retained compile snapshots (old ones drop for highlight relocation). */
65
+ readonly snapshots: 3;
66
+ /** Total bytes retained across all preview snapshots. */
67
+ readonly snapshotBytes: number;
68
+ };
69
+ /** Source files larger than this never enter source matching. */
70
+ export declare const SOURCE_FILE_MAX_BYTES: number;
71
+ /** Source files considered for one `locateSource` call. */
72
+ export declare const SOURCE_FILES_MAX = 500;
73
+ /** Total source bytes one `locateSource` call may read. */
74
+ export declare const SOURCE_BYTES_MAX: number;
75
+ /** Dependency files consulted when computing the latest input modification. */
76
+ export declare const INPUT_FILES_MAX = 2000;
77
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,gFAAgF;AAChF,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AACvD,qEAAqE;AACrE,eAAO,MAAM,sBAAsB,UAAU,CAAC;AAC9C,oEAAoE;AACpE,eAAO,MAAM,wBAAwB,UAAU,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,QAA8B,CAAC;AAChE,sEAAsE;AACtE,eAAO,MAAM,wBAAwB,gBAAgB,CAAC;AAEtD,uEAAuE;AACvE,eAAO,MAAM,uBAAuB,6CACQ,CAAC;AAE7C,2EAA2E;AAC3E,eAAO,MAAM,uBAAuB,gCAAuC,CAAC;AAE5E,eAAO,MAAM,mBAAmB,WAAW,CAAC;AAC5C,eAAO,MAAM,qBAAqB,YAAY,CAAC;AAC/C,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAC1C,eAAO,MAAM,yBAAyB,gBAAgB,CAAC;AACvD,eAAO,MAAM,0BAA0B,iBAAiB,CAAC;AAEzD,iFAAiF;AACjF,eAAO,MAAM,SAAS,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAc,CAAC;AAEvE,2EAA2E;AAC3E,eAAO,MAAM,gBAAgB,8IAQnB,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,MAAM;IACjB,8EAA8E;;IAE9E,iDAAiD;;IAEjD,yCAAyC;;IAEzC,oCAAoC;;IAEpC,oIAAoI;;;IAGpI,+DAA+D;;IAE/D,iEAAiE;;IAEjE,yDAAyD;;IAEzD,4DAA4D;;;;;IAK5D,mDAAmD;;IAEnD,2EAA2E;;IAE3E,yDAAyD;;CAEjD,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,qBAAqB,QAAkB,CAAC;AACrD,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,MAAM,CAAC;AACpC,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,QAAmB,CAAC;AACjD,+EAA+E;AAC/E,eAAO,MAAM,eAAe,OAAQ,CAAC"}
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Runtime constants shared by both halves. Values and type-only imports
3
+ * only: this module is on the client-graph allowlist
4
+ * (`scripts/client-graph-authority.mjs`), so a host-side import here would
5
+ * put host authority in the browser bundle.
6
+ * @module dsh-typst/constants
7
+ */
8
+ /** The npm package that owns the Remote methods (Typert's package identity). */
9
+ export const TYPST_REMOTE_PACKAGE = "dsh-typst-plugin";
10
+ /** The wire namespace this plugin mounts its Typert remote under. */
11
+ export const TYPST_REMOTE_NAMESPACE = "typst";
12
+ /** The settings/config namespace spelling shared by both halves. */
13
+ export const TYPST_SETTINGS_NAMESPACE = "typst";
14
+ /**
15
+ * A bare directory name as the exclusion setting accepts it: no path
16
+ * separators, not `.` and not `..`. Shared by the host schema and the settings
17
+ * page so an entry is refused identically before and after it is staged.
18
+ */
19
+ export const TYPST_DIRECTORY_NAME = /^(?!\.$)(?!\.\.$)[^/\\]+$/;
20
+ /** Cordis service key of the host remote runtime (`TypstRuntime`). */
21
+ export const TYPST_STATUS_SERVICE_KEY = "typstStatus";
22
+ /** The real wire type of the session id a typst lookup is keyed by. */
23
+ export const TYPST_SCOPE_WIRE_SYMBOL = "@deepseek-ai/dsh-session/types#SessionId";
24
+ /** The host-side type symbol of the typst scope (this package owns it). */
25
+ export const TYPST_SCOPE_HOST_SYMBOL = `${TYPST_REMOTE_PACKAGE}#TypstScope`;
26
+ export const TYPST_STATUS_METHOD = "status";
27
+ export const TYPST_SET_MAIN_METHOD = "setMain";
28
+ export const TYPST_WATCH_METHOD = "watch";
29
+ export const TYPST_READ_PREVIEW_METHOD = "readPreview";
30
+ export const TYPST_LOCATE_SOURCE_METHOD = "locateSource";
31
+ /** Typst versions older than this are refused (ZCode typst-workbench parity). */
32
+ export const MIN_TYPST = [0, 12, 0];
33
+ /** Tool names, flat domain-prefixed snake_case (dsh-zotero convention). */
34
+ export const TYPST_TOOL_NAMES = [
35
+ "typst_status",
36
+ "typst_set_main",
37
+ "typst_check",
38
+ "typst_render_pages",
39
+ "typst_show",
40
+ "typst_clear_highlights",
41
+ "typst_export_pdf",
42
+ ];
43
+ /**
44
+ * Ported from the ZCode typst-workbench server (0.2.0): the behavioral
45
+ * bounds every tool and the panel observe.
46
+ */
47
+ export const LIMITS = {
48
+ /** Silence window that decides a watch round has produced its diagnostics. */
49
+ settleMs: 1_500,
50
+ /** One-shot compile (render, export) timeout. */
51
+ oneshotTimeoutMs: 120_000,
52
+ /** Diagnostics returned to the model. */
53
+ diagnostics: 30,
54
+ /** Status notification throttle. */
55
+ notifyMs: 30,
56
+ /** Re-lookup interval while the panel is open and Typst is unusable; every setupShellEvery ticks the login shell is queried too. */
57
+ setupWatchMs: 3_000,
58
+ setupShellEvery: 5,
59
+ /** How long `typst_check` waits for the document to settle. */
60
+ checkTimeoutMs: 60_000,
61
+ /** Provider grace before a managed child range is terminated. */
62
+ stopGraceMs: 2_000,
63
+ /** Collected stdout/stderr cap for one short command. */
64
+ processOutputBytes: 4 * 1024 * 1024,
65
+ /** Maximum pages rendered per `typst_render_pages` call. */
66
+ renderPages: 4,
67
+ ppiDefault: 110,
68
+ ppiMin: 36,
69
+ ppiMax: 300,
70
+ /** Preview PDFs above this size are not served. */
71
+ pdfBytes: 64 * 1024 * 1024,
72
+ /** Retained compile snapshots (old ones drop for highlight relocation). */
73
+ snapshots: 3,
74
+ /** Total bytes retained across all preview snapshots. */
75
+ snapshotBytes: 128 * 1024 * 1024,
76
+ };
77
+ /** Source files larger than this never enter source matching. */
78
+ export const SOURCE_FILE_MAX_BYTES = 4 * 1024 * 1024;
79
+ /** Source files considered for one `locateSource` call. */
80
+ export const SOURCE_FILES_MAX = 500;
81
+ /** Total source bytes one `locateSource` call may read. */
82
+ export const SOURCE_BYTES_MAX = 32 * 1024 * 1024;
83
+ /** Dependency files consulted when computing the latest input modification. */
84
+ export const INPUT_FILES_MAX = 2_000;
85
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,gFAAgF;AAChF,MAAM,CAAC,MAAM,oBAAoB,GAAG,kBAAkB,CAAC;AACvD,qEAAqE;AACrE,MAAM,CAAC,MAAM,sBAAsB,GAAG,OAAO,CAAC;AAC9C,oEAAoE;AACpE,MAAM,CAAC,MAAM,wBAAwB,GAAG,OAAO,CAAC;AAEhD;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,2BAA2B,CAAC;AAChE,sEAAsE;AACtE,MAAM,CAAC,MAAM,wBAAwB,GAAG,aAAa,CAAC;AAEtD,uEAAuE;AACvE,MAAM,CAAC,MAAM,uBAAuB,GAClC,0CAA0C,CAAC;AAE7C,2EAA2E;AAC3E,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,oBAAoB,aAAa,CAAC;AAE5E,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AAC5C,MAAM,CAAC,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAC/C,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAA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