@twininc/work-cell-plugin
@twininc/work-cell-plugin
The inside-namespace TS half of the TwinInc Work Cell Seam (ADR 034 hybrid packaging; seam contracts in ADR 029). A Paperclip plugin that runs inside the twininc-firm namespace, receives a WorkCellTrigger-v1 from the TwinInc Bridge, and returns a ProposalReturn-v1.
Spec: twininc-work-cell-plugin-v0.
Provenance
Slice 1 was authored by the Work Cell agent itself — the firm's own AI Work Cell building the firm's own infrastructure (issue TWI-2, run log work-cell-standup-2026-06-14). Built in-container against the SDK as workspace:*; extracted here repointed to the published @paperclipai/plugin-sdk@2026.609.0.
Slice 1 surface (current)
src/manifest.ts— plugin idtwininc.work-cell, single capabilityui.action.register, worker entrypoint.src/contracts.ts— TS mirrors of the two seam JSON Schemas +isWorkCellTriggerV1/isProposalReturnV1runtime guards.src/worker.ts— registers theexecute-triggeraction: validates the inbound trigger, thenbuildProposalReturn()echoes it into aProposalReturn-v1(stub artifact + stub audit; no real orchestration yet).
The Slice 1 handler is an echo only. It does not draft proposals, read/write host entities, emit events, or make outbound calls — that arrives in later slices (schema validation via ajv, lock+scan+publish, real orchestration, install + Bridge wiring).
Develop
npm install
npm run build # tsc → dist/
npm run typecheck # src + tests, no emit
npm test # vitest (createTestHarness from the SDK)