{"_id":"@autosk/sdk","_rev":"2-18485b9007aa4394179a27a3404c194f","name":"@autosk/sdk","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@autosk/sdk","version":"0.1.0","keywords":["autosk","autosk-sdk","workflow","agent","types"],"author":{"name":"wierdbytes"},"license":"MIT","_id":"@autosk/sdk@0.1.0","maintainers":[{"name":"wierdbytes","email":"wb@xff.pw"}],"homepage":"https://github.com/wierdbytes/autosk#readme","bugs":{"url":"https://github.com/wierdbytes/autosk/issues"},"dist":{"shasum":"5d96a1d2e2daa3c8d8cbc881e5e0a2c939b4f7d2","tarball":"https://registry.npmjs.org/@autosk/sdk/-/sdk-0.1.0.tgz","fileCount":13,"integrity":"sha512-fecazxIB2fQTIQyzmAeBFNi7ykQ/tAhf4E1ZY62guBd61QszHbdJx+cQucSBuyiVPwesOJFB1RLt8h8SLvC22w==","signatures":[{"sig":"MEQCIH0N1VAAZL6BUa9DmA2E9uIAz/yPdlpTSRaJdOtWRWpsAiBq/cDZo08ZBduUPiRiy9D2rB0Q+C4AEwIKkGQHHcd64g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42980},"type":"module","types":"./index.ts","exports":{".":"./index.ts"},"gitHead":"33fb3204a8ad14fa0f994796ea9e90a3def5a998","scripts":{"typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"wierdbytes","email":"wb@xff.pw"},"repository":{"url":"git+https://github.com/wierdbytes/autosk.git","type":"git","directory":"daemon/sdk"},"_npmVersion":"11.9.0","description":"Public extension-facing types for autoskd v2: Task / Session / Workflow / Agent / Isolation / AutoskAPI, pi-format transcript entries, and proto-v2 wire types.","directories":{},"_nodeVersion":"25.6.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.0_1781464684115_0.789284140613483","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@autosk/sdk","version":"0.1.1","description":"Public extension-facing types for autoskd v2: Task / Session / Workflow / Agent / Isolation / AutoskAPI, pi-format transcript entries, and proto-v2 wire types.","license":"MIT","author":{"name":"wierdbytes"},"homepage":"https://github.com/wierdbytes/autosk#readme","repository":{"type":"git","url":"git+https://github.com/wierdbytes/autosk.git","directory":"daemon/sdk"},"bugs":{"url":"https://github.com/wierdbytes/autosk/issues"},"keywords":["autosk","autosk-sdk","workflow","agent","types"],"type":"module","publishConfig":{"access":"public"},"exports":{".":"./index.ts"},"types":"./index.ts","scripts":{"typecheck":"tsc --noEmit -p tsconfig.json"},"gitHead":"6e4189216039fd42317f92d84106b7415ac1e9dd","_id":"@autosk/sdk@0.1.1","_nodeVersion":"25.6.1","_npmVersion":"11.9.0","dist":{"integrity":"sha512-HmRiluiIkdYTLqu466vfEaVSREeVWfagYLiFwvevzSUqjcLwQi4z5b5IOThyuPSx3LIsYoJ4Xf4pKRcR1V/o7A==","shasum":"e4e0e45364045e5094aadc4eae7e6ff8a7ac93ca","tarball":"https://registry.npmjs.org/@autosk/sdk/-/sdk-0.1.1.tgz","fileCount":14,"unpackedSize":62406,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDH5IK8wd32yBY+C4XTasneroDkMdSPimDFYQA1CR0AqAiBgXK+NP3qFQlGXqoS1c1A5jtf5q/sa5RT76tqeg3QVKQ=="}]},"_npmUser":{"name":"wierdbytes","email":"wb@xff.pw"},"directories":{},"maintainers":[{"name":"wierdbytes","email":"wb@xff.pw"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.1.1_1782167538491_0.5797297179141543"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-14T19:18:03.938Z","modified":"2026-06-22T22:32:18.851Z","0.1.0":"2026-06-14T19:18:04.271Z","0.1.1":"2026-06-22T22:32:18.691Z"},"bugs":{"url":"https://github.com/wierdbytes/autosk/issues"},"author":{"name":"wierdbytes"},"license":"MIT","homepage":"https://github.com/wierdbytes/autosk#readme","keywords":["autosk","autosk-sdk","workflow","agent","types"],"repository":{"type":"git","url":"git+https://github.com/wierdbytes/autosk.git","directory":"daemon/sdk"},"description":"Public extension-facing types for autoskd v2: Task / Session / Workflow / Agent / Isolation / AutoskAPI, pi-format transcript entries, and proto-v2 wire types.","maintainers":[{"name":"wierdbytes","email":"wb@xff.pw"}],"readme":"# @autosk/sdk\n\nPublic, extension-facing types for autoskd v2. An autosk extension is a\ndefault-export factory that receives an `AutoskAPI` and registers workflows\n(their agents are inline step values — the step key is the agent name):\n\n```ts\nimport { type AutoskAPI } from \"@autosk/sdk\";\n\nexport default function (autosk: AutoskAPI) {\n  autosk.registerWorkflow({\n    name: \"trivial\",\n    firstStep: \"do\",\n    steps: {\n      // The step key \"do\" is the inline agent's name; registering the\n      // workflow registers its agents (there is no registerAgent).\n      do: {\n        async onRun(ctx) {\n          await ctx.comment(\"hello from do\");\n          await ctx.transit({ status: \"done\" });\n        },\n      },\n    },\n  });\n}\n```\n\nThis package contains three layers:\n\n- **Concept model** (`workflow.ts`, `agent.ts`, `types.ts`, `api.ts`) — the\n  types extensions program against (plan §3).\n- **Transcript format** (`transcript.ts`) — the pi-compatible session entry\n  schema autosk writes to `./.autosk/sessions/<id>.jsonl` (plan §3.2).\n- **Proto-v2** (`proto.ts`) — the JSON-RPC v2 wire types and the canonical\n  method / notification manifest the Go and Tauri clients mirror (plan §4).\n\nIt also ships the `statusStep(status)` step helper (build a terminal/park step\nwith `statusStep(\"done\"|\"cancel\"|\"human\")`) and the shared id helpers\n(`newTaskId`, `newCommentId`, `newSessionId`, `newEntryId`). Comment ids\nare strings in v2 (v1's autoincrement ints die with the SQL store), and\n`newCommentId` is collision-checked against a task's existing comment ids since\nthe id is the edit/delete key.\n","readmeFilename":"README.md"}