@sheetxl/scripting 0.7.22 → 0.7.23-beta.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.
Files changed (117) hide show
  1. package/README.md +208 -229
  2. package/browser/cjs/1_xhnTjP6m5oj6za.cjs +21 -0
  3. package/browser/cjs/BsZkw6_kfPB5b80k.cjs +1 -0
  4. package/browser/cjs/Bu4cZ8iSZ3rij-oV.cjs +1 -0
  5. package/browser/cjs/BvG8N7G_8CXIAlT-.cjs +1 -0
  6. package/browser/cjs/C_7w8EJZpHw8ueuq.cjs +1 -0
  7. package/browser/cjs/C_IEgjM-hSJCv6Gm.cjs +1 -0
  8. package/browser/cjs/CctaCN_w3o34V9AR.cjs +1 -0
  9. package/browser/cjs/D9Oz5YU4OTd5nNFg.cjs +1 -0
  10. package/browser/cjs/DSEShe7kGtxvljOr.cjs +1 -0
  11. package/browser/cjs/index.cjs +1 -6
  12. package/browser/cjs/qWYyYsBboXc9p0Lw.cjs +7 -0
  13. package/browser/esm/B609eaWQPO1XuznE.mjs +421 -0
  14. package/browser/esm/BbWhc8uJ8fNhVS5l.mjs +105 -0
  15. package/browser/esm/BvBLYHivUCrzyetH.mjs +87 -0
  16. package/browser/esm/CB6ULc6IX1XDHZi_.mjs +152 -0
  17. package/browser/esm/C_dDiKP0qhT8BhBm.mjs +27 -0
  18. package/browser/esm/CibjE6zDpZbn9Tch.mjs +12 -0
  19. package/browser/esm/DRa-YITYJZzB6CN0.mjs +8 -0
  20. package/browser/esm/DYVVBj4MfOVWrWWg.mjs +25 -0
  21. package/browser/esm/ESZQAKxwcZjX497y.mjs +15 -0
  22. package/browser/esm/UxKnYr9eSfIMndHc.mjs +23 -0
  23. package/browser/esm/index.mjs +40 -20
  24. package/node/esm/07eMkALj6l3ic2-e.mjs +23 -0
  25. package/node/esm/BpJRg8aS8svFd1fz.mjs +14 -0
  26. package/node/esm/DRa-YITYJZzB6CN0.mjs +8 -0
  27. package/node/esm/DX7jQUpPgudcUIMl.mjs +17 -0
  28. package/node/esm/H2OlmRdD_MaeXWfw.mjs +152 -0
  29. package/node/esm/LMRQvZ1FTfeeBOAm.mjs +27 -0
  30. package/node/esm/MHtkzgv6-lmftCf4.mjs +12 -0
  31. package/node/esm/index.mjs +144 -20
  32. package/node/esm/t_oN97enVU1dxwlA.mjs +421 -0
  33. package/package.json +11 -8
  34. package/types/index.d.ts +2 -165
  35. package/types/src/ScriptCompiler.d.ts +40 -0
  36. package/types/src/ScriptCompiler.d.ts.map +1 -0
  37. package/types/src/compiler/Bundler.d.ts +7 -0
  38. package/types/src/compiler/Bundler.d.ts.map +1 -0
  39. package/types/src/compiler/TypescriptCompiler.d.ts +27 -0
  40. package/types/src/compiler/TypescriptCompiler.d.ts.map +1 -0
  41. package/types/src/compiler/TypescriptCompiler.impl.d.ts +17 -0
  42. package/types/src/compiler/TypescriptCompiler.impl.d.ts.map +1 -0
  43. package/types/src/compiler/TypescriptCompiler.worker.d.ts +2 -0
  44. package/types/src/compiler/TypescriptCompiler.worker.d.ts.map +1 -0
  45. package/types/src/compiler/compiler.browser.d.ts +8 -0
  46. package/types/src/compiler/compiler.browser.d.ts.map +1 -0
  47. package/types/src/compiler/compiler.node.d.ts +14 -0
  48. package/types/src/compiler/compiler.node.d.ts.map +1 -0
  49. package/types/src/compiler/constants.d.ts +10 -0
  50. package/types/src/compiler/constants.d.ts.map +1 -0
  51. package/types/src/compiler/insertYieldBetweenStatements.d.ts +5 -0
  52. package/types/src/compiler/insertYieldBetweenStatements.d.ts.map +1 -0
  53. package/types/src/compiler/transformAwaitToYield.d.ts +6 -0
  54. package/types/src/compiler/transformAwaitToYield.d.ts.map +1 -0
  55. package/types/src/index.d.ts +7 -0
  56. package/types/src/index.d.ts.map +1 -0
  57. package/types/src/lib/esbuild/esbuild.browser.d.ts +4 -0
  58. package/types/src/lib/esbuild/esbuild.browser.d.ts.map +1 -0
  59. package/types/src/lib/esbuild/esbuild.node.d.ts +11 -0
  60. package/types/src/lib/esbuild/esbuild.node.d.ts.map +1 -0
  61. package/types/src/lib/typescript/typescript.browser.d.ts +4 -0
  62. package/types/src/lib/typescript/typescript.browser.d.ts.map +1 -0
  63. package/types/src/lib/typescript/typescript.node.d.ts +4 -0
  64. package/types/src/lib/typescript/typescript.node.d.ts.map +1 -0
  65. package/types/src/linter/Linter.d.ts +63 -0
  66. package/types/src/linter/Linter.d.ts.map +1 -0
  67. package/types/src/linter/index.d.ts +2 -0
  68. package/types/src/linter/index.d.ts.map +1 -0
  69. package/types/src/loader/index.d.ts +2 -0
  70. package/types/src/loader/index.d.ts.map +1 -0
  71. package/types/src/loader/loadCompiledModule.d.ts +19 -0
  72. package/types/src/loader/loadCompiledModule.d.ts.map +1 -0
  73. package/types/src/loader/moduleLoader.browser.d.ts +11 -0
  74. package/types/src/loader/moduleLoader.browser.d.ts.map +1 -0
  75. package/types/src/loader/moduleLoader.node.d.ts +15 -0
  76. package/types/src/loader/moduleLoader.node.d.ts.map +1 -0
  77. package/types/src/plugin/generate.d.ts +17 -0
  78. package/types/src/plugin/generate.d.ts.map +1 -0
  79. package/types/src/plugin/vite.d.ts +24 -0
  80. package/types/src/plugin/vite.d.ts.map +1 -0
  81. package/types/src/runtime/Constants.d.ts +9 -0
  82. package/types/src/runtime/Constants.d.ts.map +1 -0
  83. package/types/src/runtime/index.d.ts +2 -0
  84. package/types/src/runtime/index.d.ts.map +1 -0
  85. package/types/src/tags/DocTags.d.ts +46 -0
  86. package/types/src/tags/DocTags.d.ts.map +1 -0
  87. package/types/src/tags/index.d.ts +2 -0
  88. package/types/src/tags/index.d.ts.map +1 -0
  89. package/types/src/type/CompileOptions.d.ts +58 -0
  90. package/types/src/type/CompileOptions.d.ts.map +1 -0
  91. package/types/src/type/CompiledModule.d.ts +70 -0
  92. package/types/src/type/CompiledModule.d.ts.map +1 -0
  93. package/types/src/type/Diagnostic.d.ts +120 -0
  94. package/types/src/type/Diagnostic.d.ts.map +1 -0
  95. package/types/src/type/Types.d.ts +72 -0
  96. package/types/src/type/Types.d.ts.map +1 -0
  97. package/types/src/type/index.d.ts +6 -0
  98. package/types/src/type/index.d.ts.map +1 -0
  99. package/types/src/worker/WorkerWrapper.d.ts +44 -0
  100. package/types/src/worker/WorkerWrapper.d.ts.map +1 -0
  101. package/types/src/worker/index.d.ts +2 -0
  102. package/types/src/worker/index.d.ts.map +1 -0
  103. package/browser/cjs/BSbIAsHhYU7A5end.cjs +0 -6
  104. package/browser/cjs/CBX--k0ZF7N3ca9G.cjs +0 -6
  105. package/browser/cjs/CK5E20Dn71XrTL6f.cjs +0 -1513
  106. package/browser/cjs/CqvlpYJcTXwLSCeF.cjs +0 -6
  107. package/browser/cjs/X_4PpRMAyEugNQVF.cjs +0 -32
  108. package/browser/esm/BLVMvYOWPFJLAiVU.mjs +0 -1588
  109. package/browser/esm/BrgkkarCKAJwXqVq.mjs +0 -24
  110. package/browser/esm/CESLtyXDfsydQVVg.mjs +0 -29
  111. package/browser/esm/D3or5W11kF3AtQDv.mjs +0 -266
  112. package/browser/esm/abRLINET0a_kxRah.mjs +0 -21
  113. package/node/esm/-NP1i_GBpal8QBm3.mjs +0 -1588
  114. package/node/esm/CkU2dBuZtTuNqHcn.mjs +0 -266
  115. package/node/esm/D3lnhtV6t_HipNni.mjs +0 -16
  116. package/node/esm/DI8Xz2qZF4qNjBVV.mjs +0 -29
  117. package/node/esm/DlKzpSFnzfag8ZYJ.mjs +0 -14
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Bundles a single JavaScript module string using esbuild programmatically,
3
+ * resolving '@sheetxl/primitives' to a framework-controlled implementation.
4
+ * Other imports are treated as external.
5
+ */
6
+ export declare function bundleScript(ts: typeof import('typescript'), codeAsString: string, entryPointId?: string, globalVariable?: string): Promise<string>;
7
+ //# sourceMappingURL=Bundler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Bundler.d.ts","sourceRoot":"","sources":["../../../../src/compiler/Bundler.ts"],"names":[],"mappings":"AAkEA;;;;GAIG;AACH,wBAAsB,YAAY,CAChC,EAAE,EAAE,cAAc,YAAY,CAAC,EAC/B,YAAY,EAAE,MAAM,EACpB,YAAY,GAAE,MAAqB,EACnC,cAAc,GAAE,MAA0C,GACzD,OAAO,CAAC,MAAM,CAAC,CAiGjB"}
@@ -0,0 +1,27 @@
1
+ import { CompileOptions, CompileResult } from '../type';
2
+ /**
3
+ * Options for the TypeScript compiler worker.
4
+ */
5
+ export interface TypeScriptCompilerOptions {
6
+ }
7
+ /**
8
+ * TypeScript compiler that uses a web worker when available.
9
+ */
10
+ export declare class TypeScriptCompiler {
11
+ private workerWrapper;
12
+ constructor(options?: TypeScriptCompilerOptions);
13
+ /**
14
+ * Asynchronously gets or creates the worker instance.
15
+ * This is the core of the SSR-safe pattern.
16
+ */
17
+ private getWorkerWrapper;
18
+ /**
19
+ * Compiles a TypeScript module using a web worker.
20
+ */
21
+ compileModule(options: CompileOptions): Promise<CompileResult>;
22
+ /**
23
+ * Terminates the worker.
24
+ */
25
+ terminate(): void;
26
+ }
27
+ //# sourceMappingURL=TypescriptCompiler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypescriptCompiler.d.ts","sourceRoot":"","sources":["../../../../src/compiler/TypescriptCompiler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,yBAAyB;CAAG;AAE7C;;GAEG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,aAAa,CAA8C;gBAEvD,OAAO,GAAE,yBAA8B;IAGnD;;;OAGG;YACW,gBAAgB;IAc9B;;OAEG;IACG,aAAa,CACjB,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,aAAa,CAAC;IAezB;;OAEG;IACH,SAAS,IAAI,IAAI;CAIlB"}
@@ -0,0 +1,17 @@
1
+ import { CompileOptions, CompileResult } from '../type';
2
+ /**
3
+ * Returns a function definition and javascript.
4
+ *
5
+ * @param options Compile options
6
+ *
7
+ * @remarks
8
+ * TypescriptCompiler.impl
9
+ *
10
+ * This does **not** throw on script-level errors. Semantic rule violations (invalid types, missing
11
+ * `export`, ...) and TypeScript syntax errors are returned on {@link CompileResult.diagnostics} so
12
+ * callers can render them. When any diagnostic is an error, `module.compiled` is omitted (the script
13
+ * must not run). It will still throw for infrastructure failures (e.g. the TypeScript module failing
14
+ * to load), which are not the author's fault.
15
+ */
16
+ export declare function compileModule(options: CompileOptions): Promise<CompileResult>;
17
+ //# sourceMappingURL=TypescriptCompiler.impl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypescriptCompiler.impl.d.ts","sourceRoot":"","sources":["../../../../src/compiler/TypescriptCompiler.impl.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAwC,MAAM,SAAS,CAAC;AAiFxG;;;;;;;;;;;;;GAaG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,aAAa,CAAC,CA+HxB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TypescriptCompiler.worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypescriptCompiler.worker.d.ts","sourceRoot":"","sources":["../../../../src/compiler/TypescriptCompiler.worker.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { IWorkerWrapper } from '../worker/WorkerWrapper';
2
+ /**
3
+ * This function exists in a separate file so it can be dynamically imported.
4
+ * This prevents the `new Worker` and `new URL` code from ever being seen
5
+ * by the server-side build process.
6
+ */
7
+ export declare function createCompilerWorker<T = any, P = any>(): Promise<IWorkerWrapper<T, P>>;
8
+ //# sourceMappingURL=compiler.browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compiler.browser.d.ts","sourceRoot":"","sources":["../../../../src/compiler/compiler.browser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAA8B,MAAM,yBAAyB,CAAC;AAK1F;;;;GAIG;AACH,wBAAsB,oBAAoB,CAAC,CAAC,GAAC,GAAG,EAAE,CAAC,GAAC,GAAG,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CA0BxF"}
@@ -0,0 +1,14 @@
1
+ import { IWorkerWrapper } from '../worker/WorkerWrapper';
2
+ /**
3
+ * Node resolution of the TypeScript compiler.
4
+ *
5
+ * There is no Web Worker in Node, so the compiler runs synchronously on the main thread via the
6
+ * node-safe `TypescriptCompiler.impl`.
7
+ *
8
+ * This file is the `node` half of the `@sheetxl/scripting/compiler` conditional export. It
9
+ * deliberately does NOT import `TypescriptCompiler.worker.ts?worker&inline` (a Vite-only specifier
10
+ * that fails to resolve outside a Vite pipeline) so it can be bundled and loaded under plain Node -
11
+ * CLI, MCP server, and vitest. The browser half lives in `compiler.browser.ts`.
12
+ */
13
+ export declare function createCompilerWorker<T = any, P = any>(): Promise<IWorkerWrapper<T, P>>;
14
+ //# sourceMappingURL=compiler.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compiler.node.d.ts","sourceRoot":"","sources":["../../../../src/compiler/compiler.node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAe,MAAM,yBAAyB,CAAC;AAE3E;;;;;;;;;;GAUG;AACH,wBAAsB,oBAAoB,CAAC,CAAC,GAAC,GAAG,EAAE,CAAC,GAAC,GAAG,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAMxF"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The trailing sourcemap marker appended to / extracted from compiled output (`//# sourceMappingURL`).
3
+ *
4
+ * @remarks
5
+ * Compile-output specific (the compiler emits it; the loader appends it). Internal to
6
+ * `@sheetxl/scripting` — not part of the package's public export surface. Kept in a standalone file
7
+ * (no engine imports) so the loader entry can share it without pulling the compiler.
8
+ */
9
+ export declare const SOURCEMAP_IDENTIFIER = "//# sourceMappingURL";
10
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/compiler/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,yBAAyB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Inserts `yield;` after each top-level statement in function bodies.
3
+ */
4
+ export declare function insertYieldBetweenStatements(ts: typeof import('typescript'), sourceText: string, fileName?: string): string;
5
+ //# sourceMappingURL=insertYieldBetweenStatements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insertYieldBetweenStatements.d.ts","sourceRoot":"","sources":["../../../../src/compiler/insertYieldBetweenStatements.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,EAAE,EAAE,cAAc,YAAY,CAAC,EAC/B,UAAU,EAAE,MAAM,EAClB,QAAQ,SAAY,GACnB,MAAM,CA0GR"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Transforms macro functions into `async function*` generators.
3
+ * Leaves `await` untouched and yields must be injected separately (e.g., via insertYieldBetweenStatements).
4
+ */
5
+ export declare function transformToAsyncGenerators(ts: typeof import("typescript"), sourceText: string, fileName?: string): string;
6
+ //# sourceMappingURL=transformAwaitToYield.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformAwaitToYield.d.ts","sourceRoot":"","sources":["../../../../src/compiler/transformAwaitToYield.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,EAAE,EAAE,cAAc,YAAY,CAAC,EAC/B,UAAU,EAAE,MAAM,EAClB,QAAQ,SAAY,GACnB,MAAM,CAgER"}
@@ -0,0 +1,7 @@
1
+ export * from './type';
2
+ export * from './tags';
3
+ export * from './runtime';
4
+ export * from './loader';
5
+ export type * from './linter';
6
+ export { ScriptCompiler } from './ScriptCompiler';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,mBAAmB,UAAU,CAAC;AAE9B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type * as esbuild from 'esbuild-wasm';
2
+ export type EsbuildInstance = typeof esbuild;
3
+ export declare function initialize(): Promise<EsbuildInstance>;
4
+ //# sourceMappingURL=esbuild.browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"esbuild.browser.d.ts","sourceRoot":"","sources":["../../../../../src/lib/esbuild/esbuild.browser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,cAAc,CAAC;AAG7C,MAAM,MAAM,eAAe,GAAG,OAAO,OAAO,CAAC;AAK7C,wBAAsB,UAAU,IAAI,OAAO,CAAC,eAAe,CAAC,CAwB3D"}
@@ -0,0 +1,11 @@
1
+ import * as esbuild from 'esbuild-wasm';
2
+ export type EsbuildInstance = typeof esbuild;
3
+ /**
4
+ * Initializes esbuild-wasm under Node.
5
+ *
6
+ * The Node entry of esbuild-wasm runs the wasm via a child process and rejects all browser-only
7
+ * options (`wasmURL`, `wasmModule`, `worker`). So `initialize()` must be called with no options -
8
+ * no network fetch, no native binary, always version-matched to the installed package.
9
+ */
10
+ export declare function initialize(): Promise<EsbuildInstance>;
11
+ //# sourceMappingURL=esbuild.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"esbuild.node.d.ts","sourceRoot":"","sources":["../../../../../src/lib/esbuild/esbuild.node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AAGxC,MAAM,MAAM,eAAe,GAAG,OAAO,OAAO,CAAC;AAI7C;;;;;;GAMG;AACH,wBAAgB,UAAU,IAAI,OAAO,CAAC,eAAe,CAAC,CAKrD"}
@@ -0,0 +1,4 @@
1
+ type TypeScriptModule = typeof import('typescript');
2
+ export declare function initialize(): Promise<TypeScriptModule>;
3
+ export {};
4
+ //# sourceMappingURL=typescript.browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript.browser.d.ts","sourceRoot":"","sources":["../../../../../src/lib/typescript/typescript.browser.ts"],"names":[],"mappings":"AACA,KAAK,gBAAgB,GAAG,cAAc,YAAY,CAAC,CAAC;AAKpD,wBAAsB,UAAU,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAoB5D"}
@@ -0,0 +1,4 @@
1
+ type TypeScriptModule = typeof import('typescript');
2
+ export declare function initialize(): Promise<TypeScriptModule>;
3
+ export {};
4
+ //# sourceMappingURL=typescript.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript.node.d.ts","sourceRoot":"","sources":["../../../../../src/lib/typescript/typescript.node.ts"],"names":[],"mappings":"AACA,KAAK,gBAAgB,GAAG,cAAc,YAAY,CAAC,CAAC;AAGpD,wBAAsB,UAAU,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAU5D"}
@@ -0,0 +1,63 @@
1
+ import { default as ts } from 'typescript';
2
+ import { IFunction } from '@sheetxl/primitives';
3
+ import { Diagnostic } from '../type';
4
+ /**
5
+ * The result of analyzing a script module: the function declarations/descriptors that the compiler
6
+ * needs, the auto-run entry point (if any), and the positioned diagnostics produced by our semantic
7
+ * rules.
8
+ */
9
+ export interface Analysis {
10
+ /**
11
+ * The `Declaration`/`Descriptor` pairs for each exported function. Always populated for functions
12
+ * that parsed, even when error-severity diagnostics exist (so partial results remain useful).
13
+ */
14
+ functions: [IFunction.DeclarationJSON, IFunction.DescriptorJSON][];
15
+ /**
16
+ * The name of the `export default` function to run automatically, if any.
17
+ */
18
+ autoRun: string | null;
19
+ /**
20
+ * Positioned diagnostics (errors + warnings).
21
+ */
22
+ diagnostics: Diagnostic[];
23
+ }
24
+ /**
25
+ * What the analysis needs from the host — facts this package cannot know on its own.
26
+ */
27
+ export interface AnalyzeOptions {
28
+ /**
29
+ * The names of the host's built-in functions. A calculation function that takes one is reported
30
+ * ({@link DiagnosticCode.BuiltInName}); omitted, the rule does not run. Compared
31
+ * case-insensitively.
32
+ */
33
+ builtInNames?: readonly string[];
34
+ }
35
+ /**
36
+ * Walks an already-parsed/checked source file and applies SheetXL's semantic authoring rules.
37
+ *
38
+ * @param ts The TypeScript module (compiler API).
39
+ * @param sourceFile The script source file (must be created with `setParentNodes = true`).
40
+ * @param checker The type checker from the program containing `sourceFile`.
41
+ * @param options {@link AnalyzeOptions} — host facts the rules need.
42
+ *
43
+ * @remarks
44
+ * This is the single environment-agnostic engine. It does not emit, bundle, touch the DOM, or read
45
+ * the filesystem. {@link compileModule} calls it to build declarations and decide whether to emit;
46
+ * {@link lintScript} calls it to produce diagnostics for editors/CLIs.
47
+ */
48
+ export declare function analyzeModule(ts: typeof import('typescript'), sourceFile: ts.SourceFile, checker: ts.TypeChecker, options?: AnalyzeOptions): Analysis;
49
+ /**
50
+ * Lints a script source string and returns positioned diagnostics.
51
+ *
52
+ * @param ts The TypeScript module (compiler API).
53
+ * @param source The script source to lint.
54
+ * @param options {@link AnalyzeOptions} — host facts the rules need (the built-in function names).
55
+ *
56
+ * @remarks
57
+ * This is the public, environment-agnostic entry point for adapters (Monaco markers, the `sheetxl
58
+ * lint` CLI, a VSCode language-service plugin). It builds a lightweight, emit-free program — our
59
+ * rules match type names by text, so the ambient SheetXL types do not need to be loaded here.
60
+ * TypeScript's own type checking is layered separately by each editor's TS worker.
61
+ */
62
+ export declare function lintScript(ts: typeof import('typescript'), source: string, options?: AnalyzeOptions): Diagnostic[];
63
+ //# sourceMappingURL=Linter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Linter.d.ts","sourceRoot":"","sources":["../../../../src/linter/Linter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,EAA8C,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEjG,OAAO,EACL,KAAK,UAAU,EAChB,MAAM,SAAS,CAAC;AAgNjB;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACvB;;;OAGG;IACH,SAAS,EAAE,CAAC,SAAS,CAAC,eAAe,EAAE,SAAS,CAAC,cAAc,CAAC,EAAE,CAAC;IACnE;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAC3B,EAAE,EAAE,cAAc,YAAY,CAAC,EAC/B,UAAU,EAAE,EAAE,CAAC,UAAU,EACzB,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,QAAQ,CAsgCV;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,UAAU,CACxB,EAAE,EAAE,cAAc,YAAY,CAAC,EAC/B,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,EAAE,CAqCd"}
@@ -0,0 +1,2 @@
1
+ export type { Analysis, AnalyzeOptions } from './Linter';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/linter/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { loadCompiledModule } from './loadCompiledModule';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/loader/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Loads a compiled module string and returns its namespace (the executor side of scripting).
3
+ *
4
+ * This is the public, environment-agnostic entry point. The actual loading is environment-split
5
+ * behind the internal `@sheetxl/scripting/loader` conditional export - a real temp `.mjs` under Node
6
+ * (breakpoints, Bun, Vitest), a `data:` URL in the browser.
7
+ *
8
+ * The explicit `Promise<any>` signature is deliberate: it keeps this module's generated declaration
9
+ * self-contained, so cross-package consumers (the sdk runtime) depend only on `@sheetxl/scripting`'s
10
+ * public types - never on the internal loader's per-file declarations (which avoids a composite
11
+ * project-reference build error).
12
+ *
13
+ * @param compiled The compiled JavaScript module source.
14
+ * @param options Optional `sourceMap` to append for debugging.
15
+ */
16
+ export declare function loadCompiledModule(compiled: string, options?: {
17
+ sourceMap?: string;
18
+ }): Promise<any>;
19
+ //# sourceMappingURL=loadCompiledModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadCompiledModule.d.ts","sourceRoot":"","sources":["../../../../src/loader/loadCompiledModule.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,kBAAkB,CACtC,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAC/B,OAAO,CAAC,GAAG,CAAC,CAGd"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Browser/`default` half of the `@sheetxl/scripting/loader` conditional export.
3
+ *
4
+ * Loads a compiled module string by importing it as a `data:` URL. The `new Function` indirection
5
+ * keeps bundlers (webpack/vite) from statically analyzing the dynamic import. CSP-aware and the path
6
+ * used when applying a script to live client state.
7
+ */
8
+ export declare function loadCompiledModule(compiled: string, options?: {
9
+ sourceMap?: string;
10
+ }): Promise<any>;
11
+ //# sourceMappingURL=moduleLoader.browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moduleLoader.browser.d.ts","sourceRoot":"","sources":["../../../../src/loader/moduleLoader.browser.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CACtC,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAC/B,OAAO,CAAC,GAAG,CAAC,CAOd"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Node half of the `@sheetxl/scripting/loader` conditional export.
3
+ *
4
+ * Writes the compiled module to a uniquely-named `.mjs` in the OS temp dir and imports the file URL.
5
+ * Unlike a `data:` URL this gives the module a real path - so breakpoints and stack traces resolve
6
+ * in vscode - and it runs under Bun and Vitest's VM (where `data:` dynamic imports fail).
7
+ *
8
+ * The file is intentionally left on disk: the module's functions execute lazily (a macro runs when
9
+ * invoked, not at import), so a debugger must still be able to resolve the source afterwards. The OS
10
+ * reclaims its temp dir; session-scoped cleanup can be tied to module disposal later.
11
+ */
12
+ export declare function loadCompiledModule(compiled: string, options?: {
13
+ sourceMap?: string;
14
+ }): Promise<any>;
15
+ //# sourceMappingURL=moduleLoader.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moduleLoader.node.d.ts","sourceRoot":"","sources":["../../../../src/loader/moduleLoader.node.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CACtC,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAC/B,OAAO,CAAC,GAAG,CAAC,CAgBd"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Simple logging interface that matches console methods
3
+ * This removes the dependency on Vite's Logger
4
+ */
5
+ export interface SimpleLogger {
6
+ info(message: string): void;
7
+ warn(message: string): void;
8
+ error(message: string): void;
9
+ }
10
+ export interface CompileOptions {
11
+ inputDir: string;
12
+ outputDir: string;
13
+ /** Simple logger interface */
14
+ logger?: SimpleLogger;
15
+ }
16
+ export declare function compile(options: CompileOptions): Promise<any>;
17
+ //# sourceMappingURL=generate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../../src/plugin/generate.ts"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAibD,wBAAsB,OAAO,CAC3B,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,GAAG,CAAC,CA2Ed"}
@@ -0,0 +1,24 @@
1
+ import { Plugin } from 'vite';
2
+ /**
3
+ * Vite plugin to compile built-in formulas from TypeScript files.
4
+ * This plugin generates a single `index.ts` file containing all built-in formulas
5
+ * and watches for changes in the input directory during development.
6
+ */
7
+ export interface FormulaCompilerPluginOptions {
8
+ /** Directory containing input TypeScript files (relative to {@link root}). */
9
+ inputDir: string;
10
+ /** Directory to output compiled files (relative to {@link root}). */
11
+ outputDir: string;
12
+ /** Base for resolving {@link inputDir}/{@link outputDir}. Defaults to the Vite project root (`process.cwd()`). */
13
+ root?: string;
14
+ /** Whether to run compiler during build (default: true) */
15
+ runOnBuild?: boolean;
16
+ /** Whether to watch for file changes in dev mode (default: true) */
17
+ watchInDev?: boolean;
18
+ /** Enable verbose logging (default: false) */
19
+ verbose?: boolean;
20
+ /** Skip if output is newer than input (default: false) */
21
+ skipIfUpCurrent?: boolean;
22
+ }
23
+ export declare function FormulaCompilerPlugin(options: FormulaCompilerPluginOptions): Plugin;
24
+ //# sourceMappingURL=vite.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../../src/plugin/vite.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAmC,MAAM,MAAM,CAAC;AAMpE;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C,8EAA8E;IAC9E,QAAQ,EAAE,MAAM,CAAC;IACjB,qEAAqE;IACrE,SAAS,EAAE,MAAM,CAAC;IAClB,kHAAkH;IAClH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2DAA2D;IAC3D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oEAAoE;IACpE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0DAA0D;IAC1D,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAID,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,4BAA4B,GAAG,MAAM,CAmNnF"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The global variable the compiled script reads its formula/run context from (`globalThis.__SHEETXL`).
3
+ *
4
+ * @remarks
5
+ * Language-agnostic runtime contract: the compiled script references it and any executor must match
6
+ * it.
7
+ */
8
+ export declare const GLOBAL_CONTEXT_VARIABLE = "__SHEETXL";
9
+ //# sourceMappingURL=Constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../../src/runtime/Constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * as Constants from './Constants';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Definition for JSDoc tags the script compiler understands.
3
+ */
4
+ export interface DocTagDef {
5
+ /** Canonical tag name, lower-case, without the leading `@`. */
6
+ readonly name: string;
7
+ /** Alternate spellings (lower-case) that resolve to this tag, e.g. `return` for `returns`. */
8
+ readonly aliases?: readonly string[];
9
+ /** Human readable description (shown in editor autocomplete). */
10
+ readonly description: string;
11
+ /**
12
+ * Whether the tag is meaningful with no trailing value (e.g. `@deprecated`, `@hidden`).
13
+ * Non-standalone tags require a value/comment.
14
+ */
15
+ readonly standalone?: boolean;
16
+ /**
17
+ * Where the tag originates - `'sheetxl'` for SheetXL-specific tags, `'jsdoc'` for standard ones.
18
+ * Used as the autocomplete detail label.
19
+ */
20
+ readonly group: 'sheetxl' | 'jsdoc';
21
+ /**
22
+ * Optional editor insertion snippet (without the leading `@`); may contain `${n:placeholder}`
23
+ * fields. Falls back to {@link JSDocTagDef.name} when omitted.
24
+ */
25
+ readonly snippet?: string;
26
+ }
27
+ /**
28
+ * The recognized Doc tags.
29
+ *
30
+ * @remarks
31
+ * Keep aligned with the tag handling in {@link analyzeModule}.
32
+ */
33
+ export declare const DocTags: readonly DocTagDef[];
34
+ /**
35
+ * Resolves a tag definition by name or alias (case-insensitive).
36
+ *
37
+ * @param name The tag name with or without a leading `@`.
38
+ */
39
+ export declare function getJSDocTag(name: string): DocTagDef | undefined;
40
+ /**
41
+ * Whether a tag is meaningful with no trailing value (e.g. `@deprecated`, `@hidden`).
42
+ *
43
+ * @param name The tag name with or without a leading `@`.
44
+ */
45
+ export declare function isStandaloneJSDocTag(name: string): boolean;
46
+ //# sourceMappingURL=DocTags.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocTags.d.ts","sourceRoot":"","sources":["../../../../src/tags/DocTags.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,+DAA+D;IAC/D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,8FAA8F;IAC9F,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,iEAAiE;IACjE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC;IACpC;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;GAKG;AACH,eAAO,MAAM,OAAO,EAAE,SAAS,SAAS,EAWvC,CAAC;AAaF;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAI/D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D"}
@@ -0,0 +1,2 @@
1
+ export { DocTags } from './DocTags';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tags/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { CompiledModule } from './CompiledModule';
2
+ import { Diagnostic } from './Diagnostic';
3
+ /**
4
+ * Options for compiling a script module.
5
+ */
6
+ export interface CompileOptions {
7
+ /**
8
+ * The source code of the script module to compile.
9
+ */
10
+ source: string;
11
+ /**
12
+ * If true, this will not include the bundle in the compiled module.
13
+ *
14
+ * @remarks
15
+ * This is useful for validation
16
+ */
17
+ disableBundle?: boolean;
18
+ /**
19
+ * If true, this will not include the source map in the compiled module.
20
+ */
21
+ disableSourceMap?: boolean;
22
+ /**
23
+ * For validation
24
+ */
25
+ declarationsOnly?: boolean;
26
+ /**
27
+ * The commit ID for the compilation.
28
+ */
29
+ commitId?: string;
30
+ /**
31
+ * The names of the host's built-in functions, so a calculation function that takes one can be
32
+ * reported here rather than at registration.
33
+ *
34
+ * @remarks
35
+ * Supplied by the caller because this package has no registry of its own: the names come from
36
+ * wherever the script will run (a workbook's calculation engine). Omitted, the rule simply does
37
+ * not run - the collision is still refused when the function is registered, just later and
38
+ * without a position. Compared case-insensitively.
39
+ */
40
+ builtInNames?: readonly string[];
41
+ }
42
+ /**
43
+ * The result of a compile operation: the compiled artifact plus this compile's positioned
44
+ * diagnostics.
45
+ *
46
+ * @remarks
47
+ * Diagnostics live HERE — on the transient operation result — NOT on the persisted
48
+ * {@link CompiledModule}/`.sxlm` artifact (they are a function of the source and recomputable).
49
+ * When any diagnostic has `severity: 'error'`, `module.compiled` is omitted and the artifact must
50
+ * not run. Conceptually mirrors a run's `RunResults` (outcome + diagnostics).
51
+ */
52
+ export interface CompileResult {
53
+ /** The compiled artifact, or `null` when there was no source to compile. */
54
+ module: CompiledModule | null;
55
+ /** Positioned diagnostics (errors + warnings) produced by this compile. */
56
+ diagnostics: Diagnostic[];
57
+ }
58
+ //# sourceMappingURL=CompileOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompileOptions.d.ts","sourceRoot":"","sources":["../../../../src/type/CompileOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAGD;;;;;;;;;GASG;AACH,MAAM,WAAW,aAAa;IAC5B,4EAA4E;IAC5E,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC;IAC9B,2EAA2E;IAC3E,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B"}
@@ -0,0 +1,70 @@
1
+ import { IFunction } from '@sheetxl/primitives';
2
+ /**
3
+ * A compiled collection of functions — the serialized form of one module.
4
+ *
5
+ * @remarks
6
+ * This is the on-disk shape of a `.sxlm` macro artifact and the wire shape shipped from the MCP
7
+ * server to the VS Code webview. It is a self-contained container: human-readable {@link source},
8
+ * runnable {@link compiled} JS, a {@link sourceMap}, and the {@link functions} declarations. Aliased
9
+ * as `IModule.JSON` in the SDK. Produced by `ScriptCompiler.compile` (Node, which returns
10
+ * it inside a {@link CompileResult} alongside diagnostics) and executed compiler-free via
11
+ * `loadCompiledModule`. Compile diagnostics are NOT part of this artifact — they live on
12
+ * {@link CompileResult}. See `private-assets/design/SXLM-FORMAT.md` for the normative reference.
13
+ */
14
+ export interface CompiledModule {
15
+ /**
16
+ * An array of `Declaration` and `Description pairs describing the functions within the script.
17
+ *
18
+ * @remarks
19
+ * This array can be empty. It is possible that a script might contain only comments or other non-executable code.
20
+ */
21
+ functions: [IFunction.DeclarationJSON, IFunction.DescriptorJSON][];
22
+ /**
23
+ * The human-readable source code of the script.
24
+ *
25
+ * @remarks
26
+ * If this property is missing, the script will not be displayed but the 'actions' will still be available if `compiled` is present.
27
+ */
28
+ source?: string;
29
+ /**
30
+ * The compiled or pre-processed version of the script, ready for execution.
31
+ *
32
+ * @remarks
33
+ * If this property is missing, the script will be compiled on demand if possible.
34
+ */
35
+ compiled?: string;
36
+ /**
37
+ * If provided this will include a source map for the compiled script.
38
+ */
39
+ sourceMap?: string;
40
+ /**
41
+ * The language the function is written in.
42
+ *
43
+ * @defaultValue typescript
44
+ */
45
+ language?: string;
46
+ /**
47
+ * The name of the module.
48
+ */
49
+ name?: string;
50
+ /**
51
+ * A unique identifier for the function (e.g., a Git commit ID).
52
+ * // https://stackoverflow.com/questions/29106996/what-is-a-git-commit-id
53
+ */
54
+ commitId?: string;
55
+ /**
56
+ * The name of the function to run automatically when the script is loaded.
57
+ */
58
+ autoRun?: string;
59
+ /**
60
+ * ** NOT IMPLEMENTED **
61
+ * Available in functions via the 'this' value.
62
+ * Will auto persist values on save.
63
+ *
64
+ * TODO - this doesn't belong here.
65
+ * Create a new interface for session state.
66
+ * TODO - rename to sessionData
67
+ */
68
+ scope?: any;
69
+ }
70
+ //# sourceMappingURL=CompiledModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompiledModule.d.ts","sourceRoot":"","sources":["../../../../src/type/CompiledModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,SAAS,EAAE,CAAC,SAAS,CAAC,eAAe,EAAE,SAAS,CAAC,cAAc,CAAC,EAAE,CAAC;IACnE;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;CACb"}