ai-evaluate 0.1.0 → 2.0.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.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +17 -0
- package/package.json +3 -3
- package/.turbo/turbo-test.log +0 -51
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/coverage-final.json +0 -4
- package/coverage/evaluate.ts.html +0 -574
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -146
- package/coverage/index.ts.html +0 -145
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -210
- package/coverage/worker-template.ts.html +0 -1948
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-evaluate",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Secure code execution in sandboxed environments",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"clean": "rm -rf dist"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"ai-functions": "
|
|
24
|
-
"ai-tests": "
|
|
23
|
+
"ai-functions": "2.0.2",
|
|
24
|
+
"ai-tests": "2.0.2",
|
|
25
25
|
"capnweb": "^0.2.0",
|
|
26
26
|
"rpc.do": "^0.1.0"
|
|
27
27
|
},
|
package/.turbo/turbo-test.log
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> ai-sandbox@0.0.1 test /Users/nathanclevenger/projects/mdx.org.ai/primitives/packages/ai-sandbox
|
|
3
|
-
> vitest
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
DEV v2.1.9 /Users/nathanclevenger/projects/mdx.org.ai/primitives/packages/ai-sandbox
|
|
7
|
-
|
|
8
|
-
✓ test/worker-template.test.ts (65 tests) 8ms
|
|
9
|
-
stdout | test/evaluate.test.ts > evaluate > script execution > captures console output
|
|
10
|
-
hello
|
|
11
|
-
|
|
12
|
-
stderr | test/evaluate.test.ts > evaluate > script execution > captures console output
|
|
13
|
-
warning
|
|
14
|
-
error
|
|
15
|
-
|
|
16
|
-
stdout | test/index.test.ts > types > LogEntry has correct shape
|
|
17
|
-
test
|
|
18
|
-
|
|
19
|
-
stderr | test/evaluate.test.ts > evaluate > script execution > handles script errors
|
|
20
|
-
Script error: test error
|
|
21
|
-
|
|
22
|
-
✓ test/index.test.ts (8 tests) 421ms
|
|
23
|
-
stderr | test/evaluate-extended.test.ts > evaluate - extended tests > module errors > captures module runtime errors
|
|
24
|
-
Module error: module error
|
|
25
|
-
|
|
26
|
-
stdout | test/evaluate-extended.test.ts > evaluate - extended tests > console methods > captures console.info
|
|
27
|
-
info message
|
|
28
|
-
|
|
29
|
-
stdout | test/evaluate-extended.test.ts > evaluate - extended tests > console methods > captures console.debug
|
|
30
|
-
debug message
|
|
31
|
-
|
|
32
|
-
stdout | test/evaluate-extended.test.ts > evaluate - extended tests > console methods > stringifies objects in console output
|
|
33
|
-
{ a: 1 }
|
|
34
|
-
|
|
35
|
-
stdout | test/evaluate-extended.test.ts > evaluate - extended tests > console methods > joins multiple console arguments
|
|
36
|
-
a b c
|
|
37
|
-
|
|
38
|
-
stderr | test/evaluate-extended.test.ts > evaluate - extended tests > async scripts > handles Promise rejection in script
|
|
39
|
-
Script error: async error
|
|
40
|
-
|
|
41
|
-
✓ test/evaluate.test.ts (18 tests) 765ms
|
|
42
|
-
✓ test/evaluate-extended.test.ts (40 tests) 1352ms
|
|
43
|
-
|
|
44
|
-
Test Files 4 passed (4)
|
|
45
|
-
Tests 131 passed (131)
|
|
46
|
-
Start at 14:14:37
|
|
47
|
-
Duration 1.87s (transform 186ms, setup 0ms, collect 405ms, tests 2.55s, environment 0ms, prepare 339ms)
|
|
48
|
-
|
|
49
|
-
PASS Waiting for file changes...
|
|
50
|
-
press h to show help, press q to quit
|
|
51
|
-
ELIFECYCLE Test failed. See above for more details.
|
package/coverage/base.css
DELETED
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
body, html {
|
|
2
|
-
margin:0; padding: 0;
|
|
3
|
-
height: 100%;
|
|
4
|
-
}
|
|
5
|
-
body {
|
|
6
|
-
font-family: Helvetica Neue, Helvetica, Arial;
|
|
7
|
-
font-size: 14px;
|
|
8
|
-
color:#333;
|
|
9
|
-
}
|
|
10
|
-
.small { font-size: 12px; }
|
|
11
|
-
*, *:after, *:before {
|
|
12
|
-
-webkit-box-sizing:border-box;
|
|
13
|
-
-moz-box-sizing:border-box;
|
|
14
|
-
box-sizing:border-box;
|
|
15
|
-
}
|
|
16
|
-
h1 { font-size: 20px; margin: 0;}
|
|
17
|
-
h2 { font-size: 14px; }
|
|
18
|
-
pre {
|
|
19
|
-
font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
20
|
-
margin: 0;
|
|
21
|
-
padding: 0;
|
|
22
|
-
-moz-tab-size: 2;
|
|
23
|
-
-o-tab-size: 2;
|
|
24
|
-
tab-size: 2;
|
|
25
|
-
}
|
|
26
|
-
a { color:#0074D9; text-decoration:none; }
|
|
27
|
-
a:hover { text-decoration:underline; }
|
|
28
|
-
.strong { font-weight: bold; }
|
|
29
|
-
.space-top1 { padding: 10px 0 0 0; }
|
|
30
|
-
.pad2y { padding: 20px 0; }
|
|
31
|
-
.pad1y { padding: 10px 0; }
|
|
32
|
-
.pad2x { padding: 0 20px; }
|
|
33
|
-
.pad2 { padding: 20px; }
|
|
34
|
-
.pad1 { padding: 10px; }
|
|
35
|
-
.space-left2 { padding-left:55px; }
|
|
36
|
-
.space-right2 { padding-right:20px; }
|
|
37
|
-
.center { text-align:center; }
|
|
38
|
-
.clearfix { display:block; }
|
|
39
|
-
.clearfix:after {
|
|
40
|
-
content:'';
|
|
41
|
-
display:block;
|
|
42
|
-
height:0;
|
|
43
|
-
clear:both;
|
|
44
|
-
visibility:hidden;
|
|
45
|
-
}
|
|
46
|
-
.fl { float: left; }
|
|
47
|
-
@media only screen and (max-width:640px) {
|
|
48
|
-
.col3 { width:100%; max-width:100%; }
|
|
49
|
-
.hide-mobile { display:none!important; }
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.quiet {
|
|
53
|
-
color: #7f7f7f;
|
|
54
|
-
color: rgba(0,0,0,0.5);
|
|
55
|
-
}
|
|
56
|
-
.quiet a { opacity: 0.7; }
|
|
57
|
-
|
|
58
|
-
.fraction {
|
|
59
|
-
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
60
|
-
font-size: 10px;
|
|
61
|
-
color: #555;
|
|
62
|
-
background: #E8E8E8;
|
|
63
|
-
padding: 4px 5px;
|
|
64
|
-
border-radius: 3px;
|
|
65
|
-
vertical-align: middle;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
div.path a:link, div.path a:visited { color: #333; }
|
|
69
|
-
table.coverage {
|
|
70
|
-
border-collapse: collapse;
|
|
71
|
-
margin: 10px 0 0 0;
|
|
72
|
-
padding: 0;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
table.coverage td {
|
|
76
|
-
margin: 0;
|
|
77
|
-
padding: 0;
|
|
78
|
-
vertical-align: top;
|
|
79
|
-
}
|
|
80
|
-
table.coverage td.line-count {
|
|
81
|
-
text-align: right;
|
|
82
|
-
padding: 0 5px 0 20px;
|
|
83
|
-
}
|
|
84
|
-
table.coverage td.line-coverage {
|
|
85
|
-
text-align: right;
|
|
86
|
-
padding-right: 10px;
|
|
87
|
-
min-width:20px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
table.coverage td span.cline-any {
|
|
91
|
-
display: inline-block;
|
|
92
|
-
padding: 0 5px;
|
|
93
|
-
width: 100%;
|
|
94
|
-
}
|
|
95
|
-
.missing-if-branch {
|
|
96
|
-
display: inline-block;
|
|
97
|
-
margin-right: 5px;
|
|
98
|
-
border-radius: 3px;
|
|
99
|
-
position: relative;
|
|
100
|
-
padding: 0 4px;
|
|
101
|
-
background: #333;
|
|
102
|
-
color: yellow;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.skip-if-branch {
|
|
106
|
-
display: none;
|
|
107
|
-
margin-right: 10px;
|
|
108
|
-
position: relative;
|
|
109
|
-
padding: 0 4px;
|
|
110
|
-
background: #ccc;
|
|
111
|
-
color: white;
|
|
112
|
-
}
|
|
113
|
-
.missing-if-branch .typ, .skip-if-branch .typ {
|
|
114
|
-
color: inherit !important;
|
|
115
|
-
}
|
|
116
|
-
.coverage-summary {
|
|
117
|
-
border-collapse: collapse;
|
|
118
|
-
width: 100%;
|
|
119
|
-
}
|
|
120
|
-
.coverage-summary tr { border-bottom: 1px solid #bbb; }
|
|
121
|
-
.keyline-all { border: 1px solid #ddd; }
|
|
122
|
-
.coverage-summary td, .coverage-summary th { padding: 10px; }
|
|
123
|
-
.coverage-summary tbody { border: 1px solid #bbb; }
|
|
124
|
-
.coverage-summary td { border-right: 1px solid #bbb; }
|
|
125
|
-
.coverage-summary td:last-child { border-right: none; }
|
|
126
|
-
.coverage-summary th {
|
|
127
|
-
text-align: left;
|
|
128
|
-
font-weight: normal;
|
|
129
|
-
white-space: nowrap;
|
|
130
|
-
}
|
|
131
|
-
.coverage-summary th.file { border-right: none !important; }
|
|
132
|
-
.coverage-summary th.pct { }
|
|
133
|
-
.coverage-summary th.pic,
|
|
134
|
-
.coverage-summary th.abs,
|
|
135
|
-
.coverage-summary td.pct,
|
|
136
|
-
.coverage-summary td.abs { text-align: right; }
|
|
137
|
-
.coverage-summary td.file { white-space: nowrap; }
|
|
138
|
-
.coverage-summary td.pic { min-width: 120px !important; }
|
|
139
|
-
.coverage-summary tfoot td { }
|
|
140
|
-
|
|
141
|
-
.coverage-summary .sorter {
|
|
142
|
-
height: 10px;
|
|
143
|
-
width: 7px;
|
|
144
|
-
display: inline-block;
|
|
145
|
-
margin-left: 0.5em;
|
|
146
|
-
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
|
|
147
|
-
}
|
|
148
|
-
.coverage-summary .sorted .sorter {
|
|
149
|
-
background-position: 0 -20px;
|
|
150
|
-
}
|
|
151
|
-
.coverage-summary .sorted-desc .sorter {
|
|
152
|
-
background-position: 0 -10px;
|
|
153
|
-
}
|
|
154
|
-
.status-line { height: 10px; }
|
|
155
|
-
/* yellow */
|
|
156
|
-
.cbranch-no { background: yellow !important; color: #111; }
|
|
157
|
-
/* dark red */
|
|
158
|
-
.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
|
|
159
|
-
.low .chart { border:1px solid #C21F39 }
|
|
160
|
-
.highlighted,
|
|
161
|
-
.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
|
|
162
|
-
background: #C21F39 !important;
|
|
163
|
-
}
|
|
164
|
-
/* medium red */
|
|
165
|
-
.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
|
|
166
|
-
/* light red */
|
|
167
|
-
.low, .cline-no { background:#FCE1E5 }
|
|
168
|
-
/* light green */
|
|
169
|
-
.high, .cline-yes { background:rgb(230,245,208) }
|
|
170
|
-
/* medium green */
|
|
171
|
-
.cstat-yes { background:rgb(161,215,106) }
|
|
172
|
-
/* dark green */
|
|
173
|
-
.status-line.high, .high .cover-fill { background:rgb(77,146,33) }
|
|
174
|
-
.high .chart { border:1px solid rgb(77,146,33) }
|
|
175
|
-
/* dark yellow (gold) */
|
|
176
|
-
.status-line.medium, .medium .cover-fill { background: #f9cd0b; }
|
|
177
|
-
.medium .chart { border:1px solid #f9cd0b; }
|
|
178
|
-
/* light yellow */
|
|
179
|
-
.medium { background: #fff4c2; }
|
|
180
|
-
|
|
181
|
-
.cstat-skip { background: #ddd; color: #111; }
|
|
182
|
-
.fstat-skip { background: #ddd; color: #111 !important; }
|
|
183
|
-
.cbranch-skip { background: #ddd !important; color: #111; }
|
|
184
|
-
|
|
185
|
-
span.cline-neutral { background: #eaeaea; }
|
|
186
|
-
|
|
187
|
-
.coverage-summary td.empty {
|
|
188
|
-
opacity: .5;
|
|
189
|
-
padding-top: 4px;
|
|
190
|
-
padding-bottom: 4px;
|
|
191
|
-
line-height: 1;
|
|
192
|
-
color: #888;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.cover-fill, .cover-empty {
|
|
196
|
-
display:inline-block;
|
|
197
|
-
height: 12px;
|
|
198
|
-
}
|
|
199
|
-
.chart {
|
|
200
|
-
line-height: 0;
|
|
201
|
-
}
|
|
202
|
-
.cover-empty {
|
|
203
|
-
background: white;
|
|
204
|
-
}
|
|
205
|
-
.cover-full {
|
|
206
|
-
border-right: none !important;
|
|
207
|
-
}
|
|
208
|
-
pre.prettyprint {
|
|
209
|
-
border: none !important;
|
|
210
|
-
padding: 0 !important;
|
|
211
|
-
margin: 0 !important;
|
|
212
|
-
}
|
|
213
|
-
.com { color: #999 !important; }
|
|
214
|
-
.ignore-none { color: #999; font-weight: normal; }
|
|
215
|
-
|
|
216
|
-
.wrapper {
|
|
217
|
-
min-height: 100%;
|
|
218
|
-
height: auto !important;
|
|
219
|
-
height: 100%;
|
|
220
|
-
margin: 0 auto -48px;
|
|
221
|
-
}
|
|
222
|
-
.footer, .push {
|
|
223
|
-
height: 48px;
|
|
224
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
var jumpToCode = (function init() {
|
|
3
|
-
// Classes of code we would like to highlight in the file view
|
|
4
|
-
var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
|
|
5
|
-
|
|
6
|
-
// Elements to highlight in the file listing view
|
|
7
|
-
var fileListingElements = ['td.pct.low'];
|
|
8
|
-
|
|
9
|
-
// We don't want to select elements that are direct descendants of another match
|
|
10
|
-
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
|
|
11
|
-
|
|
12
|
-
// Selector that finds elements on the page to which we can jump
|
|
13
|
-
var selector =
|
|
14
|
-
fileListingElements.join(', ') +
|
|
15
|
-
', ' +
|
|
16
|
-
notSelector +
|
|
17
|
-
missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
|
|
18
|
-
|
|
19
|
-
// The NodeList of matching elements
|
|
20
|
-
var missingCoverageElements = document.querySelectorAll(selector);
|
|
21
|
-
|
|
22
|
-
var currentIndex;
|
|
23
|
-
|
|
24
|
-
function toggleClass(index) {
|
|
25
|
-
missingCoverageElements
|
|
26
|
-
.item(currentIndex)
|
|
27
|
-
.classList.remove('highlighted');
|
|
28
|
-
missingCoverageElements.item(index).classList.add('highlighted');
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function makeCurrent(index) {
|
|
32
|
-
toggleClass(index);
|
|
33
|
-
currentIndex = index;
|
|
34
|
-
missingCoverageElements.item(index).scrollIntoView({
|
|
35
|
-
behavior: 'smooth',
|
|
36
|
-
block: 'center',
|
|
37
|
-
inline: 'center'
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function goToPrevious() {
|
|
42
|
-
var nextIndex = 0;
|
|
43
|
-
if (typeof currentIndex !== 'number' || currentIndex === 0) {
|
|
44
|
-
nextIndex = missingCoverageElements.length - 1;
|
|
45
|
-
} else if (missingCoverageElements.length > 1) {
|
|
46
|
-
nextIndex = currentIndex - 1;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
makeCurrent(nextIndex);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function goToNext() {
|
|
53
|
-
var nextIndex = 0;
|
|
54
|
-
|
|
55
|
-
if (
|
|
56
|
-
typeof currentIndex === 'number' &&
|
|
57
|
-
currentIndex < missingCoverageElements.length - 1
|
|
58
|
-
) {
|
|
59
|
-
nextIndex = currentIndex + 1;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
makeCurrent(nextIndex);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
return function jump(event) {
|
|
66
|
-
if (
|
|
67
|
-
document.getElementById('fileSearch') === document.activeElement &&
|
|
68
|
-
document.activeElement != null
|
|
69
|
-
) {
|
|
70
|
-
// if we're currently focused on the search input, we don't want to navigate
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
switch (event.which) {
|
|
75
|
-
case 78: // n
|
|
76
|
-
case 74: // j
|
|
77
|
-
goToNext();
|
|
78
|
-
break;
|
|
79
|
-
case 66: // b
|
|
80
|
-
case 75: // k
|
|
81
|
-
case 80: // p
|
|
82
|
-
goToPrevious();
|
|
83
|
-
break;
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
})();
|
|
87
|
-
window.addEventListener('keydown', jumpToCode);
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
{"/Users/nathanclevenger/projects/mdx.org.ai/primitives/packages/ai-sandbox/src/evaluate.ts": {"path":"/Users/nathanclevenger/projects/mdx.org.ai/primitives/packages/ai-sandbox/src/evaluate.ts","all":false,"statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}},"50":{"start":{"line":51,"column":0},"end":{"line":51,"column":31}},"51":{"start":{"line":52,"column":0},"end":{"line":52,"column":27}},"52":{"start":{"line":53,"column":0},"end":{"line":53,"column":18}},"53":{"start":{"line":54,"column":0},"end":{"line":54,"column":28}},"54":{"start":{"line":55,"column":0},"end":{"line":55,"column":26}},"56":{"start":{"line":57,"column":0},"end":{"line":57,"column":7}},"58":{"start":{"line":59,"column":0},"end":{"line":59,"column":35}},"59":{"start":{"line":60,"column":0},"end":{"line":60,"column":81}},"60":{"start":{"line":61,"column":0},"end":{"line":61,"column":5}},"63":{"start":{"line":64,"column":0},"end":{"line":64,"column":54}},"64":{"start":{"line":65,"column":0},"end":{"line":65,"column":19}},"65":{"start":{"line":66,"column":0},"end":{"line":66,"column":12}},"66":{"start":{"line":67,"column":0},"end":{"line":67,"column":21}},"67":{"start":{"line":68,"column":0},"end":{"line":68,"column":15}},"68":{"start":{"line":69,"column":0},"end":{"line":69,"column":68}},"69":{"start":{"line":70,"column":0},"end":{"line":70,"column":34}},"70":{"start":{"line":71,"column":0},"end":{"line":71,"column":5}},"71":{"start":{"line":72,"column":0},"end":{"line":72,"column":3}},"72":{"start":{"line":73,"column":0},"end":{"line":73,"column":1}},"77":{"start":{"line":78,"column":0},"end":{"line":78,"column":40}},"78":{"start":{"line":79,"column":0},"end":{"line":79,"column":27}},"79":{"start":{"line":80,"column":0},"end":{"line":80,"column":23}},"80":{"start":{"line":81,"column":0},"end":{"line":81,"column":23}},"81":{"start":{"line":82,"column":0},"end":{"line":82,"column":15}},"82":{"start":{"line":83,"column":0},"end":{"line":83,"column":28}},"83":{"start":{"line":84,"column":0},"end":{"line":84,"column":48}},"84":{"start":{"line":85,"column":0},"end":{"line":85,"column":75}},"86":{"start":{"line":87,"column":0},"end":{"line":87,"column":46}},"87":{"start":{"line":88,"column":0},"end":{"line":88,"column":28}},"88":{"start":{"line":89,"column":0},"end":{"line":89,"column":14}},"89":{"start":{"line":90,"column":0},"end":{"line":90,"column":29}},"90":{"start":{"line":91,"column":0},"end":{"line":91,"column":6}},"91":{"start":{"line":92,"column":0},"end":{"line":92,"column":36}},"93":{"start":{"line":94,"column":0},"end":{"line":94,"column":62}},"94":{"start":{"line":95,"column":0},"end":{"line":95,"column":15}},"95":{"start":{"line":96,"column":0},"end":{"line":96,"column":23}},"96":{"start":{"line":97,"column":0},"end":{"line":97,"column":5}},"97":{"start":{"line":98,"column":0},"end":{"line":98,"column":5}},"99":{"start":{"line":100,"column":0},"end":{"line":100,"column":76}},"100":{"start":{"line":101,"column":0},"end":{"line":101,"column":56}},"102":{"start":{"line":103,"column":0},"end":{"line":103,"column":10}},"103":{"start":{"line":104,"column":0},"end":{"line":104,"column":14}},"104":{"start":{"line":105,"column":0},"end":{"line":105,"column":32}},"105":{"start":{"line":106,"column":0},"end":{"line":106,"column":3}},"106":{"start":{"line":107,"column":0},"end":{"line":107,"column":1}},"115":{"start":{"line":116,"column":0},"end":{"line":116,"column":37}},"116":{"start":{"line":117,"column":0},"end":{"line":117,"column":27}},"117":{"start":{"line":118,"column":0},"end":{"line":118,"column":15}},"118":{"start":{"line":119,"column":0},"end":{"line":119,"column":28}},"120":{"start":{"line":121,"column":0},"end":{"line":121,"column":49}},"122":{"start":{"line":123,"column":0},"end":{"line":123,"column":51}},"124":{"start":{"line":125,"column":0},"end":{"line":125,"column":28}},"125":{"start":{"line":126,"column":0},"end":{"line":126,"column":18}},"126":{"start":{"line":127,"column":0},"end":{"line":127,"column":23}},"127":{"start":{"line":128,"column":0},"end":{"line":128,"column":35}},"128":{"start":{"line":129,"column":0},"end":{"line":129,"column":4}},"130":{"start":{"line":131,"column":0},"end":{"line":131,"column":7}},"131":{"start":{"line":132,"column":0},"end":{"line":132,"column":69}},"132":{"start":{"line":133,"column":0},"end":{"line":133,"column":58}},"134":{"start":{"line":135,"column":0},"end":{"line":135,"column":12}},"135":{"start":{"line":136,"column":0},"end":{"line":136,"column":16}},"136":{"start":{"line":137,"column":0},"end":{"line":137,"column":34}},"137":{"start":{"line":138,"column":0},"end":{"line":138,"column":5}},"138":{"start":{"line":139,"column":0},"end":{"line":139,"column":13}},"139":{"start":{"line":140,"column":0},"end":{"line":140,"column":22}},"140":{"start":{"line":141,"column":0},"end":{"line":141,"column":3}},"141":{"start":{"line":142,"column":0},"end":{"line":142,"column":1}},"160":{"start":{"line":161,"column":0},"end":{"line":161,"column":50}},"161":{"start":{"line":162,"column":0},"end":{"line":162,"column":61}},"162":{"start":{"line":163,"column":0},"end":{"line":163,"column":1}}},"s":{"0":1,"50":62,"51":62,"52":62,"53":62,"54":62,"56":62,"58":62,"59":0,"60":0,"63":62,"64":62,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":62,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"93":0,"94":0,"95":0,"96":0,"97":0,"99":0,"100":0,"102":0,"103":0,"104":0,"105":0,"106":0,"115":62,"116":62,"117":62,"118":62,"120":62,"122":62,"124":62,"125":62,"126":62,"127":62,"128":62,"130":62,"131":62,"132":61,"134":61,"135":61,"136":61,"137":61,"138":62,"139":62,"140":61,"141":62,"160":1,"161":2,"162":2},"branchMap":{"0":{"type":"branch","line":51,"loc":{"start":{"line":51,"column":0},"end":{"line":73,"column":1}},"locations":[{"start":{"line":51,"column":0},"end":{"line":73,"column":1}}]},"1":{"type":"branch","line":59,"loc":{"start":{"line":59,"column":8},"end":{"line":59,"column":23}},"locations":[{"start":{"line":59,"column":8},"end":{"line":59,"column":23}}]},"2":{"type":"branch","line":59,"loc":{"start":{"line":59,"column":13},"end":{"line":59,"column":34}},"locations":[{"start":{"line":59,"column":13},"end":{"line":59,"column":34}}]},"3":{"type":"branch","line":59,"loc":{"start":{"line":59,"column":34},"end":{"line":61,"column":5}},"locations":[{"start":{"line":59,"column":34},"end":{"line":61,"column":5}}]},"4":{"type":"branch","line":65,"loc":{"start":{"line":65,"column":2},"end":{"line":72,"column":3}},"locations":[{"start":{"line":65,"column":2},"end":{"line":72,"column":3}}]},"5":{"type":"branch","line":69,"loc":{"start":{"line":69,"column":44},"end":{"line":69,"column":68}},"locations":[{"start":{"line":69,"column":44},"end":{"line":69,"column":68}}]},"6":{"type":"branch","line":116,"loc":{"start":{"line":116,"column":0},"end":{"line":142,"column":1}},"locations":[{"start":{"line":116,"column":0},"end":{"line":142,"column":1}}]},"7":{"type":"branch","line":132,"loc":{"start":{"line":132,"column":68},"end":{"line":139,"column":4}},"locations":[{"start":{"line":132,"column":68},"end":{"line":139,"column":4}}]},"8":{"type":"branch","line":140,"loc":{"start":{"line":140,"column":21},"end":{"line":141,"column":3}},"locations":[{"start":{"line":140,"column":21},"end":{"line":141,"column":3}}]},"9":{"type":"branch","line":161,"loc":{"start":{"line":161,"column":7},"end":{"line":163,"column":1}},"locations":[{"start":{"line":161,"column":7},"end":{"line":163,"column":1}}]},"10":{"type":"branch","line":162,"loc":{"start":{"line":162,"column":9},"end":{"line":162,"column":61}},"locations":[{"start":{"line":162,"column":9},"end":{"line":162,"column":61}}]}},"b":{"0":[62],"1":[1],"2":[0],"3":[0],"4":[1],"5":[0],"6":[62],"7":[61],"8":[61],"9":[2],"10":[1]},"fnMap":{"0":{"name":"evaluate","decl":{"start":{"line":51,"column":0},"end":{"line":73,"column":1}},"loc":{"start":{"line":51,"column":0},"end":{"line":73,"column":1}},"line":51},"1":{"name":"evaluateWithWorkerLoader","decl":{"start":{"line":78,"column":0},"end":{"line":107,"column":1}},"loc":{"start":{"line":78,"column":0},"end":{"line":107,"column":1}},"line":78},"2":{"name":"evaluateWithMiniflare","decl":{"start":{"line":116,"column":0},"end":{"line":142,"column":1}},"loc":{"start":{"line":116,"column":0},"end":{"line":142,"column":1}},"line":116},"3":{"name":"createEvaluator","decl":{"start":{"line":161,"column":7},"end":{"line":163,"column":1}},"loc":{"start":{"line":161,"column":7},"end":{"line":163,"column":1}},"line":161}},"f":{"0":62,"1":0,"2":62,"3":2}}
|
|
2
|
-
,"/Users/nathanclevenger/projects/mdx.org.ai/primitives/packages/ai-sandbox/src/index.ts": {"path":"/Users/nathanclevenger/projects/mdx.org.ai/primitives/packages/ai-sandbox/src/index.ts","all":false,"statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}},"s":{"0":1},"branchMap":{},"b":{},"fnMap":{},"f":{}}
|
|
3
|
-
,"/Users/nathanclevenger/projects/mdx.org.ai/primitives/packages/ai-sandbox/src/worker-template.ts": {"path":"/Users/nathanclevenger/projects/mdx.org.ai/primitives/packages/ai-sandbox/src/worker-template.ts","all":false,"statementMap":{"15":{"start":{"line":16,"column":0},"end":{"line":16,"column":53}},"16":{"start":{"line":17,"column":0},"end":{"line":17,"column":33}},"19":{"start":{"line":20,"column":0},"end":{"line":20,"column":42}},"20":{"start":{"line":21,"column":0},"end":{"line":21,"column":11}},"21":{"start":{"line":22,"column":0},"end":{"line":22,"column":58}},"22":{"start":{"line":23,"column":0},"end":{"line":23,"column":23}},"23":{"start":{"line":24,"column":0},"end":{"line":24,"column":3}},"26":{"start":{"line":27,"column":0},"end":{"line":27,"column":56}},"27":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"28":{"start":{"line":29,"column":0},"end":{"line":29,"column":23}},"29":{"start":{"line":30,"column":0},"end":{"line":30,"column":3}},"31":{"start":{"line":32,"column":0},"end":{"line":32,"column":50}},"32":{"start":{"line":33,"column":0},"end":{"line":33,"column":1}},"37":{"start":{"line":38,"column":0},"end":{"line":38,"column":45}},"41":{"start":{"line":42,"column":0},"end":{"line":42,"column":12}},"42":{"start":{"line":43,"column":0},"end":{"line":43,"column":58}},"44":{"start":{"line":45,"column":0},"end":{"line":45,"column":10}},"70":{"start":{"line":71,"column":0},"end":{"line":71,"column":12}},"73":{"start":{"line":74,"column":0},"end":{"line":74,"column":9}},"77":{"start":{"line":78,"column":0},"end":{"line":78,"column":33}},"81":{"start":{"line":82,"column":0},"end":{"line":82,"column":12}},"82":{"start":{"line":83,"column":0},"end":{"line":83,"column":46}},"83":{"start":{"line":84,"column":0},"end":{"line":84,"column":14}},"130":{"start":{"line":131,"column":0},"end":{"line":131,"column":15}},"133":{"start":{"line":134,"column":0},"end":{"line":134,"column":8}},"137":{"start":{"line":138,"column":0},"end":{"line":138,"column":35}},"140":{"start":{"line":141,"column":0},"end":{"line":141,"column":16}},"143":{"start":{"line":144,"column":0},"end":{"line":144,"column":9}},"149":{"start":{"line":150,"column":0},"end":{"line":150,"column":37}},"152":{"start":{"line":153,"column":0},"end":{"line":153,"column":15}},"159":{"start":{"line":160,"column":0},"end":{"line":160,"column":11}},"161":{"start":{"line":162,"column":0},"end":{"line":162,"column":49}},"175":{"start":{"line":176,"column":0},"end":{"line":176,"column":1}},"183":{"start":{"line":184,"column":0},"end":{"line":184,"column":48}},"187":{"start":{"line":188,"column":0},"end":{"line":188,"column":12}},"188":{"start":{"line":189,"column":0},"end":{"line":189,"column":58}},"190":{"start":{"line":191,"column":0},"end":{"line":191,"column":10}},"498":{"start":{"line":499,"column":0},"end":{"line":499,"column":12}},"501":{"start":{"line":502,"column":0},"end":{"line":502,"column":9}},"505":{"start":{"line":506,"column":0},"end":{"line":506,"column":33}},"509":{"start":{"line":510,"column":0},"end":{"line":510,"column":12}},"510":{"start":{"line":511,"column":0},"end":{"line":511,"column":46}},"511":{"start":{"line":512,"column":0},"end":{"line":512,"column":14}},"516":{"start":{"line":517,"column":0},"end":{"line":517,"column":11}},"519":{"start":{"line":520,"column":0},"end":{"line":520,"column":8}},"523":{"start":{"line":524,"column":0},"end":{"line":524,"column":31}},"534":{"start":{"line":535,"column":0},"end":{"line":535,"column":16}},"537":{"start":{"line":538,"column":0},"end":{"line":538,"column":9}},"547":{"start":{"line":548,"column":0},"end":{"line":548,"column":37}},"606":{"start":{"line":607,"column":0},"end":{"line":607,"column":49}},"620":{"start":{"line":621,"column":0},"end":{"line":621,"column":1}}},"s":{"15":9,"16":9,"19":9,"20":9,"21":9,"22":9,"23":9,"26":9,"27":9,"28":1,"29":1,"31":9,"32":9,"37":1,"41":14,"42":14,"44":14,"70":14,"73":3,"77":14,"81":14,"82":3,"83":14,"130":14,"133":1,"137":14,"140":14,"143":1,"149":14,"152":14,"159":14,"161":14,"175":14,"183":1,"187":97,"188":97,"190":97,"498":97,"501":6,"505":97,"509":97,"510":6,"511":97,"516":97,"519":42,"523":97,"534":97,"537":20,"547":97,"606":97,"620":97},"branchMap":{"0":{"type":"branch","line":16,"loc":{"start":{"line":16,"column":0},"end":{"line":33,"column":1}},"locations":[{"start":{"line":16,"column":0},"end":{"line":33,"column":1}}]},"1":{"type":"branch","line":22,"loc":{"start":{"line":22,"column":57},"end":{"line":24,"column":3}},"locations":[{"start":{"line":22,"column":57},"end":{"line":24,"column":3}}]},"2":{"type":"branch","line":28,"loc":{"start":{"line":28,"column":61},"end":{"line":30,"column":3}},"locations":[{"start":{"line":28,"column":61},"end":{"line":30,"column":3}}]},"3":{"type":"branch","line":32,"loc":{"start":{"line":32,"column":36},"end":{"line":32,"column":50}},"locations":[{"start":{"line":32,"column":36},"end":{"line":32,"column":50}}]},"4":{"type":"branch","line":38,"loc":{"start":{"line":38,"column":7},"end":{"line":176,"column":1}},"locations":[{"start":{"line":38,"column":7},"end":{"line":176,"column":1}}]},"5":{"type":"branch","line":71,"loc":{"start":{"line":71,"column":2},"end":{"line":74,"column":9}},"locations":[{"start":{"line":71,"column":2},"end":{"line":74,"column":9}}]},"6":{"type":"branch","line":74,"loc":{"start":{"line":74,"column":8},"end":{"line":78,"column":32}},"locations":[{"start":{"line":74,"column":8},"end":{"line":78,"column":32}}]},"7":{"type":"branch","line":82,"loc":{"start":{"line":82,"column":2},"end":{"line":84,"column":11}},"locations":[{"start":{"line":82,"column":2},"end":{"line":84,"column":11}}]},"8":{"type":"branch","line":84,"loc":{"start":{"line":84,"column":7},"end":{"line":84,"column":13}},"locations":[{"start":{"line":84,"column":7},"end":{"line":84,"column":13}}]},"9":{"type":"branch","line":131,"loc":{"start":{"line":131,"column":6},"end":{"line":134,"column":8}},"locations":[{"start":{"line":131,"column":6},"end":{"line":134,"column":8}}]},"10":{"type":"branch","line":134,"loc":{"start":{"line":134,"column":7},"end":{"line":138,"column":34}},"locations":[{"start":{"line":134,"column":7},"end":{"line":138,"column":34}}]},"11":{"type":"branch","line":141,"loc":{"start":{"line":141,"column":6},"end":{"line":144,"column":9}},"locations":[{"start":{"line":141,"column":6},"end":{"line":144,"column":9}}]},"12":{"type":"branch","line":144,"loc":{"start":{"line":144,"column":8},"end":{"line":150,"column":36}},"locations":[{"start":{"line":144,"column":8},"end":{"line":150,"column":36}}]},"13":{"type":"branch","line":153,"loc":{"start":{"line":153,"column":6},"end":{"line":153,"column":15}},"locations":[{"start":{"line":153,"column":6},"end":{"line":153,"column":15}}]},"14":{"type":"branch","line":153,"loc":{"start":{"line":153,"column":14},"end":{"line":160,"column":10}},"locations":[{"start":{"line":153,"column":14},"end":{"line":160,"column":10}}]},"15":{"type":"branch","line":162,"loc":{"start":{"line":162,"column":23},"end":{"line":162,"column":40}},"locations":[{"start":{"line":162,"column":23},"end":{"line":162,"column":40}}]},"16":{"type":"branch","line":162,"loc":{"start":{"line":162,"column":31},"end":{"line":162,"column":47}},"locations":[{"start":{"line":162,"column":31},"end":{"line":162,"column":47}}]},"17":{"type":"branch","line":184,"loc":{"start":{"line":184,"column":7},"end":{"line":621,"column":1}},"locations":[{"start":{"line":184,"column":7},"end":{"line":621,"column":1}}]},"18":{"type":"branch","line":499,"loc":{"start":{"line":499,"column":2},"end":{"line":502,"column":9}},"locations":[{"start":{"line":499,"column":2},"end":{"line":502,"column":9}}]},"19":{"type":"branch","line":502,"loc":{"start":{"line":502,"column":8},"end":{"line":506,"column":32}},"locations":[{"start":{"line":502,"column":8},"end":{"line":506,"column":32}}]},"20":{"type":"branch","line":510,"loc":{"start":{"line":510,"column":2},"end":{"line":512,"column":11}},"locations":[{"start":{"line":510,"column":2},"end":{"line":512,"column":11}}]},"21":{"type":"branch","line":512,"loc":{"start":{"line":512,"column":7},"end":{"line":512,"column":13}},"locations":[{"start":{"line":512,"column":7},"end":{"line":512,"column":13}}]},"22":{"type":"branch","line":517,"loc":{"start":{"line":517,"column":2},"end":{"line":520,"column":8}},"locations":[{"start":{"line":517,"column":2},"end":{"line":520,"column":8}}]},"23":{"type":"branch","line":520,"loc":{"start":{"line":520,"column":7},"end":{"line":524,"column":30}},"locations":[{"start":{"line":520,"column":7},"end":{"line":524,"column":30}}]},"24":{"type":"branch","line":535,"loc":{"start":{"line":535,"column":6},"end":{"line":538,"column":9}},"locations":[{"start":{"line":535,"column":6},"end":{"line":538,"column":9}}]},"25":{"type":"branch","line":538,"loc":{"start":{"line":538,"column":8},"end":{"line":548,"column":36}},"locations":[{"start":{"line":538,"column":8},"end":{"line":548,"column":36}}]},"26":{"type":"branch","line":607,"loc":{"start":{"line":607,"column":23},"end":{"line":607,"column":40}},"locations":[{"start":{"line":607,"column":23},"end":{"line":607,"column":40}}]},"27":{"type":"branch","line":607,"loc":{"start":{"line":607,"column":31},"end":{"line":607,"column":47}},"locations":[{"start":{"line":607,"column":31},"end":{"line":607,"column":47}}]}},"b":{"0":[9],"1":[9],"2":[1],"3":[1],"4":[14],"5":[3],"6":[11],"7":[3],"8":[11],"9":[1],"10":[13],"11":[1],"12":[13],"13":[1],"14":[13],"15":[1],"16":[13],"17":[97],"18":[6],"19":[91],"20":[6],"21":[91],"22":[42],"23":[55],"24":[20],"25":[77],"26":[42],"27":[55]},"fnMap":{"0":{"name":"getExportNames","decl":{"start":{"line":16,"column":0},"end":{"line":33,"column":1}},"loc":{"start":{"line":16,"column":0},"end":{"line":33,"column":1}},"line":16},"1":{"name":"generateWorkerCode","decl":{"start":{"line":38,"column":7},"end":{"line":176,"column":1}},"loc":{"start":{"line":38,"column":7},"end":{"line":176,"column":1}},"line":38},"2":{"name":"generateDevWorkerCode","decl":{"start":{"line":184,"column":7},"end":{"line":621,"column":1}},"loc":{"start":{"line":184,"column":7},"end":{"line":621,"column":1}},"line":184}},"f":{"0":9,"1":14,"2":97}}
|
|
4
|
-
}
|