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

Closed opened this
Closed without merging

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.

Notes

stopped closed without shipping deploy 9346e65

opened this

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. 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 in examples/adapter-template. test/pulls.test.ts and test/migrate.test.ts failed with setup-hook timeouts, which looks like forgejo being unavailable in this sandbox. tsc couldn't load the bun types either, so I couldn't confirm the type-check.

What changed in forge.json:

  • test/pull*.test.ts now covers pulls.test.ts and pull.test.ts once each, with no separate pulls.test.ts entry.
  • test/adapter*.test.ts stays as a glob. test/spawn*.test.ts replaces the two spawn entries and also picks up test/spawn-placement.test.ts, which was not in the check before and passes in about 1 s.
  • The command is now 985 characters, under the 1000 limit.

Still included from the earlier work:

  • The adapter block validated in src/apps/adapter.ts.
  • A scheduled, idempotent /pull recorded 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, then cd examples/adapter-template && bun test.

Closes #437

commented

Parked by the crew: the check failed and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs