Skip to content

Commit 0b865d6

Browse files
authored
Merge pull request #278 from cloudflare/nightly
Release: nightly to build.cloudflare.dev
2 parents b2fc217 + 595ead5 commit 0b865d6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/deploy-release-live.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
4646
timeout-minutes: 45
4747
needs: test-build
4848

49-
# If secrets aren't configured (e.g. forks), do not attempt deploy.
50-
if: ${{ secrets.CLOUDFLARE_API_TOKEN != '' }}
49+
# Skip deploy for forks (they won't have secrets anyway)
50+
if: github.repository_owner == 'cloudflare'
5151

5252
env:
5353
CI: true

sdk/src/state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class SessionStateStore {
117117

118118
case 'phase_generating': {
119119
const m = msg as WsMessageOf<'phase_generating'>;
120-
this.setState({ phase: { status: 'generating', ...extractPhaseInfo(m as any) } });
120+
this.setState({ phase: { status: 'generating', ...extractPhaseInfo(m) } });
121121
break;
122122
}
123123
case 'phase_generated': {

sdk/src/ws.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export function createAgentConnection(url: string, options: AgentConnectionOptio
231231

232232
if (ws.on) {
233233
ws.on('open', () => onOpen());
234-
ws.on('close', (code: unknown, reason: unknown) => onClose({ code: code as any, reason: reason as any }));
234+
ws.on('close', (code: unknown, reason: unknown) => onClose({ code: typeof code === 'number' ? code : undefined, reason: typeof reason === 'string' ? reason : undefined }));
235235
ws.on('error', (error: unknown) => onError(error));
236236
ws.on('message', (data: unknown) => onMessage(data));
237237
}

0 commit comments

Comments
 (0)