fix: reuse bundled agent runtime resources
This commit is contained in:
@@ -2044,7 +2044,7 @@ function createRuntimeInput(
|
||||
architecture === 'x64'
|
||||
? 'opencode-linux-x64-baseline'
|
||||
: 'opencode-linux-arm64',
|
||||
version: '1.18.9'
|
||||
version: '1.18.29'
|
||||
})}\n`
|
||||
)
|
||||
writeFileSync(
|
||||
@@ -2059,8 +2059,8 @@ function createRuntimeInput(
|
||||
const archive = join(
|
||||
temporaryRoot,
|
||||
architecture === 'x64'
|
||||
? 'opencode-linux-x64-baseline-1.18.9.tgz'
|
||||
: 'opencode-linux-arm64-1.18.9.tgz'
|
||||
? 'opencode-linux-x64-baseline-1.18.29.tgz'
|
||||
: 'opencode-linux-arm64-1.18.29.tgz'
|
||||
)
|
||||
createTar(
|
||||
{
|
||||
@@ -2085,7 +2085,7 @@ function createRemoteRuntimeLock(
|
||||
formatVersion: 1,
|
||||
runtimes: {
|
||||
opencode: {
|
||||
version: '1.18.9',
|
||||
version: '1.18.29',
|
||||
provider: 'opencode',
|
||||
entrypoint: 'bin/opencode',
|
||||
entrypointIdentity: 'opencode-acp',
|
||||
|
||||
@@ -899,7 +899,7 @@ describe('release build arguments', () => {
|
||||
join(projectRoot, 'package.json'),
|
||||
JSON.stringify({
|
||||
dependencies: {
|
||||
'@deepseek-ai/dsh-llm': '0.1.0-rc.8'
|
||||
'@deepseek-ai/dsh-llm': '0.1.2-rc.1'
|
||||
}
|
||||
})
|
||||
)
|
||||
@@ -908,7 +908,7 @@ describe('release build arguments', () => {
|
||||
JSON.stringify({
|
||||
packages: {
|
||||
[`node_modules/${packageName}`]: {
|
||||
version: '1.18.9',
|
||||
version: '1.18.29',
|
||||
integrity
|
||||
}
|
||||
}
|
||||
@@ -932,7 +932,7 @@ describe('release build arguments', () => {
|
||||
),
|
||||
JSON.stringify({
|
||||
packageName,
|
||||
version: '1.18.9',
|
||||
version: '1.18.29',
|
||||
integrity,
|
||||
executableSha256: createHash('sha256')
|
||||
.update(executable)
|
||||
@@ -959,7 +959,7 @@ describe('release build arguments', () => {
|
||||
)
|
||||
).toMatchObject({
|
||||
name: '@deepseek-ai/dsh-llm',
|
||||
version: '0.1.0-rc.8'
|
||||
version: '0.1.2-rc.1'
|
||||
})
|
||||
} finally {
|
||||
rmSync(projectRoot, { recursive: true, force: true })
|
||||
|
||||
@@ -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(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user