Skip to content

feat(web): one installer puts any workflow package into a tenant over stock routes (CL-9526) - #1050

Merged
TheGreatAxios merged 3 commits into
mainfrom
cl-9526-package-installer
Sep 30, 2026
Merged

TheGreatAxios merged 3 commits into
mainfrom
cl-9526-package-installer

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Extracts the client-driven install path out of agent-deploy.ts into a generic installPackage (asset, git token, push, stock deploy). Re-running with identical files pushes nothing and returns the existing deployment.

deployAgentSource is now a thin caller. git-push.ts takes an injected fetch, uses an in-memory fs, and skips the push when main already holds the tree.

Adds e2e/install/: boots the hub, installs a minimal echo workflow into a fresh tenant, mails it, asserts a run is listed, and asserts a second install makes no second deployment.

Resolves CL-9526

@linear-code

linear-code Bot commented Sep 30, 2026

Copy link
Copy Markdown

CL-9526

@TheGreatAxios
TheGreatAxios force-pushed the cl-9526-package-installer branch from ef7d754 to fff3e30 Compare September 30, 2026 17:03
… stock routes (CL-9526)

installPackage composes the stock asset, git-token, git push and deployments routes; identical files make no new commit and no new deployment. deployAgentSource now calls it. A hub-level e2e installs a minimal echo workflow into a fresh tenant, mails it, and checks a run is listed.
Use LightningFS instead of memfs (which needs Node's Buffer at import) and call the injected fetch unbound (window.fetch throws Illegal invocation as a method). The install e2e provides IndexedDB via fake-indexeddb.
@TheGreatAxios
TheGreatAxios force-pushed the cl-9526-package-installer branch from 08de2f0 to c019090 Compare September 30, 2026 17:42
@TheGreatAxios
TheGreatAxios merged commit 6597e6b into main Sep 30, 2026
3 checks passed
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