-
Notifications
You must be signed in to change notification settings - Fork 1
release: 0.35.1 #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
release: 0.35.1 #88
Changes from all commits
ce8107e
75ac934
e614b67
eadfc98
62d04a2
408ed83
9270ff5
b7abcfb
4ed8bba
0dc945e
14012e7
6aaa435
acf8988
97f213b
c6d4043
4a9b2cf
40c8402
1394392
8ab7798
9e3018f
f218072
0ebc5b3
bb96b8b
eee2438
a305f3d
2a71a6e
41a4e6a
2b1db35
752879e
4ee9dca
1b7ca39
5f1ad6d
138925b
aa4d800
9451cde
8254ca5
d0e4012
532797f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| { | ||
| ".": "0.35.0" | ||
| ".": "0.35.1" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| configured_endpoints: 30 | ||
| openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-b1f2b7cb843e6f4e6123e838ce29cbbaea0a48b1a72057632de1d0d21727c5d8.yml | ||
| openapi_spec_hash: 21a354f587a2fe19797860c7b6da81a9 | ||
| config_hash: 0ed970a9634b33d0af471738b478740d | ||
| openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-460d7c66cd5e8cf979cd761066c51d8f813a119a20e2149fcfcf847eb650d545.yml | ||
| openapi_spec_hash: 8ee512464a88de45c86faf4f46f4905c | ||
| config_hash: bd8505e17db740d82e578d0edaa9bfe0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,10 @@ import ts from 'typescript'; | |
| import { WorkerOutput } from './code-tool-types'; | ||
| import { Hyperspell, ClientOptions } from 'hyperspell'; | ||
|
|
||
| async function tseval(code: string) { | ||
|
Comment on lines
8
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: 🤖 AI Agent Prompt for Cursor/Windsurf
Comment on lines
8
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: 🤖 AI Agent Prompt for Cursor/Windsurf
Comment on lines
8
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: The 🤖 AI Agent Prompt for Cursor/Windsurf
Comment on lines
8
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: The 🤖 AI Agent Prompt for Cursor/Windsurf
|
||
| return import('data:application/typescript;charset=utf-8;base64,' + Buffer.from(code).toString('base64')); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: 🤖 AI Agent Prompt for Cursor/Windsurf
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: 🤖 AI Agent Prompt for Cursor/Windsurf
|
||
| } | ||
|
|
||
| function getRunFunctionSource(code: string): { | ||
| type: 'declaration' | 'expression'; | ||
| client: string | undefined; | ||
|
|
@@ -266,7 +270,9 @@ const fetch = async (req: Request): Promise<Response> => { | |
|
|
||
| const log_lines: string[] = []; | ||
| const err_lines: string[] = []; | ||
|
Comment on lines
271
to
272
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Mutating 🤖 AI Agent Prompt for Cursor/Windsurf
Comment on lines
271
to
272
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: 🔴 Mutating 🤖 AI Agent Prompt for Cursor/Windsurf
Comment on lines
271
to
272
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: 🐛 Mutating 🤖 AI Agent Prompt for Cursor/Windsurf
Comment on lines
271
to
272
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: 🐛 Mutating 🤖 AI Agent Prompt for Cursor/Windsurf
|
||
| const console = { | ||
| const originalConsole = globalThis.console; | ||
| globalThis.console = { | ||
| ...originalConsole, | ||
| log: (...args: unknown[]) => { | ||
| log_lines.push(util.format(...args)); | ||
| }, | ||
|
Comment on lines
271
to
278
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: 🔴 Mutating 🤖 AI Agent Prompt for Cursor/Windsurf
Comment on lines
271
to
278
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Mutating 🤖 AI Agent Prompt for Cursor/Windsurf
Comment on lines
271
to
278
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: 🐛 Mutating 🤖 AI Agent Prompt for Cursor/Windsurf
Comment on lines
271
to
278
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Mutating 🤖 AI Agent Prompt for Cursor/Windsurf
Comment on lines
271
to
278
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Mutating 🤖 AI Agent Prompt for Cursor/Windsurf
Comment on lines
271
to
278
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: 🐛 Mutating 🤖 AI Agent Prompt for Cursor/Windsurf
Comment on lines
271
to
278
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Mutating 🤖 AI Agent Prompt for Cursor/Windsurf
|
||
|
|
@@ -276,7 +282,7 @@ const fetch = async (req: Request): Promise<Response> => { | |
| }; | ||
| try { | ||
| let run_ = async (client: any) => {}; | ||
| eval(`${code}\nrun_ = run;`); | ||
| run_ = (await tseval(`${code}\nexport default run;`)).default; | ||
| const result = await run_(makeSdkProxy(client, { path: ['client'] })); | ||
| return Response.json({ | ||
| is_error: false, | ||
|
|
@@ -294,6 +300,8 @@ const fetch = async (req: Request): Promise<Response> => { | |
| } satisfies WorkerOutput, | ||
| { status: 400, statusText: 'Code execution error' }, | ||
| ); | ||
| } finally { | ||
| globalThis.console = originalConsole; | ||
| } | ||
| }; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correctness:
Bufferis used as a global, but in a Deno environment (evidenced by theexport default { fetch }pattern and Deno stack trace parsing) it is not globally available without an explicitimport { Buffer } from 'node:buffer'— this will throw aReferenceErrorat runtime whentsevalis called.🤖 AI Agent Prompt for Cursor/Windsurf