| 86 | : `/tmp/apps-packed-fixture-${slug}`; |
| 87 | |
| 88 | const windowsFixtureCommand = (path: string): string => ` |
| 89 | $ErrorActionPreference = 'Stop' |
| 90 | Remove-Item -Recurse -Force '${path}' -ErrorAction SilentlyContinue |
| 91 | New-Item -ItemType Directory -Force -Path '${path}/tools' | Out-Null |
| 92 | Set-Content -NoNewline -Encoding UTF8 -Path '${path}/tools/greet.ts' -Value @' |
| 93 | ${"import"} { z } from "zod"; |
| 94 | ${"import"} { defineTool } from "executor:app"; |
| 95 | |
| 96 | const Input = z.object({ name: z.string() }); |
| 97 | |
| 98 | export default defineTool({ |
| 99 | description: "Greet", |
| 100 | input: Input, |
| 101 | async handler(input) { |
| 102 | return { greeting: "hello " + input.name }; |
| 103 | }, |
| 104 | }); |
| 105 | '@ |
| 106 | Set-Content -NoNewline -Encoding UTF8 -Path '${path}/package.json' -Value '{"name":"packed-apps-smoke","dependencies":{"zod":"4.3.6"}}' |
| 107 | Set-Content -NoNewline -Encoding UTF8 -Path '${path}/bun.lock' -Value '' |
| 108 | `; |
| 109 | |
| 110 | const unixFixtureCommand = (path: string): string => ` |
| 111 | set -eu |