|
|
@@ -18,7 +18,7 @@ describe('dsh-sdk-minimal bundle', () => {
|
|
|
const patches = yaml.load(
|
|
|
readFileSync(resolve(root, manifest.dsh!.bundle!.patch!), 'utf8'),
|
|
|
{ schema: entryListSchema },
|
|
|
- ) as Array<{ insert?: Array<{ id?: string; inject?: string[]; name?: string; config?: Record<string, unknown> }> }>
|
|
|
+ ) as Array<{ insert?: Array<{ id?: string; inject?: string[]; name?: string; config?: Record<string, unknown>; disabled?: unknown }> }>
|
|
|
expect(patches).toHaveLength(1)
|
|
|
const rows = patches[0]?.insert ?? []
|
|
|
expect(rows.map(row => [row.id, row.name])).toEqual([
|
|
|
@@ -33,9 +33,11 @@ describe('dsh-sdk-minimal bundle', () => {
|
|
|
['subprocess', '@deepseek-ai/dsh-subprocess-local'],
|
|
|
['pty', '@deepseek-ai/dsh-terminal'],
|
|
|
['terminal-bash', '@deepseek-ai/dsh-terminal-bash'],
|
|
|
+ ['terminal-pwsh', '@deepseek-ai/dsh-terminal-bash'],
|
|
|
['fs-local', '@deepseek-ai/dsh-fs-local'],
|
|
|
['agent-spine', '@deepseek-ai/dsh-agent-spine-demo'],
|
|
|
['persistent-bash', '@deepseek-ai/dsh-tool-bash-persistent'],
|
|
|
+ ['persistent-pwsh', '@deepseek-ai/dsh-tool-pwsh-persistent'],
|
|
|
['str-replace-editor', '@deepseek-ai/dsh-tool-str-replace-editor'],
|
|
|
['sessions', '@deepseek-ai/dsh-session-persistence-jsonl'],
|
|
|
])
|
|
|
@@ -57,6 +59,13 @@ describe('dsh-sdk-minimal bundle', () => {
|
|
|
toolBash: false,
|
|
|
toolJobs: false,
|
|
|
})
|
|
|
+ expect(rows.find(row => row.id === 'terminal-bash')).toMatchObject({
|
|
|
+ disabled: { __jsExpr: "process.platform === 'win32'" },
|
|
|
+ })
|
|
|
+ expect(rows.find(row => row.id === 'terminal-pwsh')).toMatchObject({
|
|
|
+ disabled: { __jsExpr: "process.platform !== 'win32'" },
|
|
|
+ config: { shellDialect: 'pwsh', timeoutMs: 300000 },
|
|
|
+ })
|
|
|
expect(Object.keys(manifest.dependencies ?? {}).sort()).toEqual(
|
|
|
[...new Set(rows.map(row => row.name).filter((name): name is string => name !== undefined))].sort(),
|
|
|
)
|