npm.io
0.2.0 • Published yesterday

@twininc/work-cell-plugin

Licence
MIT
Version
0.2.0
Deps
3
Size
72 kB
Vulns
0
Weekly
0

@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 id twininc.work-cell, single capability ui.action.register, worker entrypoint.
  • src/contracts.ts — TS mirrors of the two seam JSON Schemas + isWorkCellTriggerV1 / isProposalReturnV1 runtime guards.
  • src/worker.ts — registers the execute-trigger action: validates the inbound trigger, then buildProposalReturn() echoes it into a ProposalReturn-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)

Keywords