@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/eval/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;
|
|
@@ -130,11 +136,15 @@ declare class CircuitRunner implements CircuitRunnerApi {
|
|
|
130
136
|
setPlatformConfigProperty(property: string, value: any): Promise<void>;
|
|
131
137
|
setProjectConfig(project: Partial<PlatformConfig>): Promise<void>;
|
|
132
138
|
setProjectConfigProperty(property: string, value: any): Promise<void>;
|
|
139
|
+
setSessionToken(token: string): Promise<void>;
|
|
133
140
|
enableDebug(namespace: string): Promise<void>;
|
|
134
141
|
private _bindEventListeners;
|
|
135
142
|
}
|
|
136
143
|
|
|
137
|
-
declare function runTscircuitCode(filesystemOrCodeString: Record<string, string> | string, opts?: Omit<Parameters<CircuitRunner["executeWithFsMap"]>[0], "fsMap">
|
|
144
|
+
declare function runTscircuitCode(filesystemOrCodeString: Record<string, string> | string, opts?: Omit<Parameters<CircuitRunner["executeWithFsMap"]>[0], "fsMap"> & {
|
|
145
|
+
/** Session token for authenticating with the tscircuit npm registry */
|
|
146
|
+
sessionToken?: string;
|
|
147
|
+
}): Promise<({
|
|
138
148
|
type: "source_trace";
|
|
139
149
|
source_trace_id: string;
|
|
140
150
|
connected_source_port_ids: string[];
|
|
@@ -2465,6 +2475,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
2465
2475
|
declare const runTscircuitModule: (module: string, opts?: {
|
|
2466
2476
|
props?: Record<string, any>;
|
|
2467
2477
|
exportName?: string;
|
|
2478
|
+
/** Session token for authenticating with the tscircuit npm registry */
|
|
2479
|
+
sessionToken?: string;
|
|
2468
2480
|
}) => Promise<({
|
|
2469
2481
|
type: "source_trace";
|
|
2470
2482
|
source_trace_id: string;
|