Skip to content

Add Assembly Instructions compiler#445

Merged
kvz merged 3 commits into
mainfrom
prompt-asm
Jun 29, 2026
Merged

Add Assembly Instructions compiler#445
kvz merged 3 commits into
mainfrom
prompt-asm

Conversation

@kvz

@kvz kvz commented Jun 29, 2026

Copy link
Copy Markdown
Member

Why:

transloadit/api2#8211 needs the console and CLI to share the same prompt-to-Assembly-Instructions compiler without treating generated instructions as Templates. This puts the compiler contract in @transloadit/utils, exposes it through the Node SDK, and adds CLI entry points for compiling and running raw Assembly Instructions.

What:

  • add a shared prompt-to-Assembly-Instructions compiler in @transloadit/utils
  • expose Transloadit.compileAssemblyInstructionsFromPrompt() with a client-shaped adapter around /ai/chat
  • add transloadit assembly-instructions compile and transloadit run
  • cover compiler retry behavior and CLI raw-steps submission with unit tests
  • add a changeset for @transloadit/node and @transloadit/utils

Validation:

  • yarn tsc:utils
  • yarn tsc:node
  • ../../node_modules/.bin/vitest run ./test/unit/assembly-instructions-compiler.test.ts ./test/unit/cli/run-command.test.ts
  • live CLI: node packages/node/dist/cli.js assemblies compile ... --max-attempts 2 --timeout 300000 before command rename; current tested command path is assembly-instructions compile
  • live CLI: node packages/node/dist/cli.js run ... --input packages/node/test/e2e/fixtures/sample.jpg --print-urls --max-attempts 3 --timeout 300000

@kvz kvz changed the title Add prompt Assembly compiler Add Assembly Instructions compiler Jun 29, 2026
@kvz kvz marked this pull request as ready for review June 29, 2026 19:23
@kvz kvz merged commit c2de344 into main Jun 29, 2026
12 checks passed
@kvz kvz deleted the prompt-asm branch June 29, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant