(name)
| 117 | }, |
| 118 | |
| 119 | async get(name) { |
| 120 | const handle = await binding.get(scopedName(sessionId, name)); |
| 121 | // The handle is a live Workers-RPC stub (ArtifactsRepo extends |
| 122 | // RpcTarget). The published `@cloudflare/workers-types` shape is |
| 123 | // wrong in both directions: it models the metadata as inherited |
| 124 | // `ArtifactsRepoInfo` properties (which the runtime stub does |
| 125 | // not expose — reading `handle.remote` yields an RpcPromise for |
| 126 | // a nonexistent method) and omits `info()` (which the runtime |
| 127 | // does have, returning the metadata by value). Reach `info()` |
| 128 | // through a typed view until the published types are corrected. |
| 129 | const view = handle as unknown as { info(): Promise<ArtifactsRepoInfo> }; |
| 130 | const info = await view.info(); |
| 131 | return repoInfo(info, name); |
| 132 | }, |
| 133 | |
| 134 | async list() { |
| 135 | const out: ArtifactRepoSummary[] = []; |
nothing calls this directly
no test coverage detected