fix: reuse bundled agent runtime resources

This commit is contained in:
mesalogo
2026-09-07 16:57:59 +08:00
parent d3947c79dd
commit 19086d656e
52 changed files with 1657 additions and 867 deletions
+5 -5
View File
@@ -139,7 +139,7 @@ beforeEach(() => {
formatVersion: 1,
runtimes: {
opencode: {
version: '1.18.9',
version: '1.18.29',
provider: 'opencode',
entrypoint: 'bin/opencode',
entrypointIdentity: 'opencode-acp',
@@ -177,7 +177,7 @@ afterEach(() => {
})
describe('Remote Runtime bundle tooling', () => {
it('pins the actual OpenCode 1.18.9 ACP capabilities', () => {
it('pins the actual OpenCode 1.18.29 ACP capabilities', () => {
const capabilities = {
loadSession: true,
mcpCapabilities: {
@@ -223,7 +223,7 @@ describe('Remote Runtime bundle tooling', () => {
)
expect(first.manifest).toMatchObject({
runtimeId: 'opencode',
runtimeVersion: '1.18.9',
runtimeVersion: '1.18.29',
architecture: 'x64',
sourcePackage: {
name: 'opencode-linux-x64-baseline',
@@ -375,7 +375,7 @@ function createRuntimeInput(): string {
join(packageRoot, 'package.json'),
`${JSON.stringify({
name: 'opencode-linux-x64-baseline',
version: '1.18.9'
version: '1.18.29'
})}\n`
)
writeFileSync(
@@ -385,7 +385,7 @@ function createRuntimeInput(): string {
chmodSync(join(packageRoot, 'bin', 'opencode'), 0o755)
const archive = join(
temporaryRoot,
'opencode-linux-x64-baseline-1.18.9.tgz'
'opencode-linux-x64-baseline-1.18.29.tgz'
)
createTar(
{