@tscircuit/eval 0.0.545 → 0.0.547
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/blob-url.js +1 -1
- package/dist/eval/index.d.ts +13 -1
- package/dist/eval/index.js +19 -5
- package/dist/lib/index.d.ts +13 -1
- package/dist/lib/index.js +19 -5
- package/dist/webworker/entrypoint.js +3 -3
- package/dist/worker.d.ts +5 -0
- package/package.json +1 -1
package/dist/lib/index.d.ts
CHANGED
|
@@ -9,6 +9,11 @@ interface CircuitRunnerConfiguration {
|
|
|
9
9
|
verbose?: boolean;
|
|
10
10
|
platform?: PlatformConfig;
|
|
11
11
|
projectConfig?: Partial<PlatformConfig>;
|
|
12
|
+
/**
|
|
13
|
+
* Session token for authenticating with the tscircuit npm registry.
|
|
14
|
+
* Used to fetch private @tsci/* packages from npm.tscircuit.com
|
|
15
|
+
*/
|
|
16
|
+
sessionToken?: string;
|
|
12
17
|
}
|
|
13
18
|
interface WebWorkerConfiguration extends CircuitRunnerConfiguration {
|
|
14
19
|
evalVersion?: string;
|
|
@@ -54,6 +59,7 @@ interface CircuitRunnerApi {
|
|
|
54
59
|
setProjectConfig: (project: Partial<PlatformConfig>) => Promise<void>;
|
|
55
60
|
setPlatformConfigProperty: (property: string, value: any) => Promise<void>;
|
|
56
61
|
setProjectConfigProperty: (property: string, value: any) => Promise<void>;
|
|
62
|
+
setSessionToken: (token: string) => Promise<void>;
|
|
57
63
|
enableDebug: (namespace: string) => Promise<void>;
|
|
58
64
|
on: (event: RootCircuitEventName, callback: (...args: any[]) => void) => void;
|
|
59
65
|
clearEventListeners: () => void;
|
|
@@ -146,11 +152,15 @@ declare class CircuitRunner implements CircuitRunnerApi {
|
|
|
146
152
|
setPlatformConfigProperty(property: string, value: any): Promise<void>;
|
|
147
153
|
setProjectConfig(project: Partial<PlatformConfig>): Promise<void>;
|
|
148
154
|
setProjectConfigProperty(property: string, value: any): Promise<void>;
|
|
155
|
+
setSessionToken(token: string): Promise<void>;
|
|
149
156
|
enableDebug(namespace: string): Promise<void>;
|
|
150
157
|
private _bindEventListeners;
|
|
151
158
|
}
|
|
152
159
|
|
|
153
|
-
declare function runTscircuitCode(filesystemOrCodeString: Record<string, string> | string, opts?: Omit<Parameters<CircuitRunner["executeWithFsMap"]>[0], "fsMap">
|
|
160
|
+
declare function runTscircuitCode(filesystemOrCodeString: Record<string, string> | string, opts?: Omit<Parameters<CircuitRunner["executeWithFsMap"]>[0], "fsMap"> & {
|
|
161
|
+
/** Session token for authenticating with the tscircuit npm registry */
|
|
162
|
+
sessionToken?: string;
|
|
163
|
+
}): Promise<({
|
|
154
164
|
type: "source_trace";
|
|
155
165
|
source_trace_id: string;
|
|
156
166
|
connected_source_port_ids: string[];
|
|
@@ -2481,6 +2491,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
2481
2491
|
declare const runTscircuitModule: (module: string, opts?: {
|
|
2482
2492
|
props?: Record<string, any>;
|
|
2483
2493
|
exportName?: string;
|
|
2494
|
+
/** Session token for authenticating with the tscircuit npm registry */
|
|
2495
|
+
sessionToken?: string;
|
|
2484
2496
|
}) => Promise<({
|
|
2485
2497
|
type: "source_trace";
|
|
2486
2498
|
source_trace_id: string;
|