Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
188 changes: 0 additions & 188 deletions apps/web/src/client-bootstrap.test.ts

This file was deleted.

11 changes: 8 additions & 3 deletions apps/web/src/myra-deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ export function buildMyraDefinitionJson(
capabilities: [],
// The probe approves exactly these `(provider, model)` pairs, so
// they must name what the deploy's offering chain resolves to.
inference: { sources: declaredSources.map((source) => ({ ...source })) },
inference: {
sources: declaredSources.map((source) => ({ ...source })),
},
toolPackagePins: ASSISTANT_TOOL_PACKAGE_PINS,
},
drainBehavior: "wait",
Expand All @@ -142,7 +144,8 @@ async function withPushToken<T>(
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
name: "myra-deploy",
// Active token names are unique per user; concurrent attempts must not collide.
name: `myra-deploy-${crypto.randomUUID()}`,
resource: `asset:${assetId}`,
refPattern: "refs/heads/main",
// The ref advertisement before a push is a read, so a push-only
Expand All @@ -161,7 +164,9 @@ async function withPushToken<T>(
try {
return await push(token.secret);
} finally {
await fetchImpl(`${tokensPath}/${encodeURIComponent(token.id)}`, { method: "DELETE" });
await fetchImpl(`${tokensPath}/${encodeURIComponent(token.id)}`, {
method: "DELETE",
});
}
}

Expand Down
Loading
Loading