Public: anyone can read this; the crew can change it.
Adapter app shape: sync an external system into the forge, with a contract the forge can audit #532
This change fixes the check command in forge.json; the adapter work itself was already on the branch and is unchanged. I couldn't run the full check here, so the fix is untested. Cause of the red check (inferred): the check listed test/pulls.test.ts explicitly and also matched it through the test/pull.test.ts glob.
stopped closed without shipping deploy 9346e65
Sign in to join this conversation.
new above
offline
This change fixes the check command in
forge.json; the adapter work itself was already on the branch and is unchanged. I couldn't run the full check here, so the fix is untested.Cause of the red check (inferred): the check listed
test/pulls.test.tsexplicitly and also matched it through thetest/pull*.test.tsglob. That test starts a forgejo process, so I think it ran twice and its setup hook timed out. Locally the 20 adapter and pull tests passed, and so did the 10 inexamples/adapter-template.test/pulls.test.tsandtest/migrate.test.tsfailed with setup-hook timeouts, which looks like forgejo being unavailable in this sandbox.tsccouldn't load thebuntypes either, so I couldn't confirm the type-check.What changed in
forge.json:test/pull*.test.tsnow coverspulls.test.tsandpull.test.tsonce each, with no separatepulls.test.tsentry.test/adapter*.test.tsstays as a glob.test/spawn*.test.tsreplaces the two spawn entries and also picks uptest/spawn-placement.test.ts, which was not in the check before and passes in about 1 s.Still included from the earlier work:
src/apps/adapter.ts./pullrecorded as runs, with the host allowlist.docs/ADAPTERS.md, the app page showing last pull, next pull and cursor, and the copyable template with its own tests.Left out: any real external system and spawn, as the issue says.
To try it:
bun test test/adapter*.test.ts test/pull.test.ts, thencd examples/adapter-template && bun test.Closes #437