ts-procedures 6.0.1 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/agent_config/bin/setup.mjs +0 -0
  2. package/agent_config/claude-code/skills/ts-procedures/SKILL.md +1 -0
  3. package/agent_config/claude-code/skills/ts-procedures/api-reference.md +2 -0
  4. package/agent_config/claude-code/skills/ts-procedures-kotlin/SKILL.md +106 -0
  5. package/agent_config/copilot/copilot-instructions.md +2 -0
  6. package/agent_config/cursor/cursorrules +2 -0
  7. package/build/codegen/bin/cli.d.ts +25 -0
  8. package/build/codegen/bin/cli.js +88 -0
  9. package/build/codegen/bin/cli.js.map +1 -1
  10. package/build/codegen/bin/cli.test.js +180 -1
  11. package/build/codegen/bin/cli.test.js.map +1 -1
  12. package/build/codegen/index.d.ts +19 -0
  13. package/build/codegen/index.js +5 -0
  14. package/build/codegen/index.js.map +1 -1
  15. package/build/codegen/pipeline.d.ts +7 -0
  16. package/build/codegen/pipeline.js +57 -0
  17. package/build/codegen/pipeline.js.map +1 -1
  18. package/build/codegen/pipeline.test.js +162 -0
  19. package/build/codegen/pipeline.test.js.map +1 -1
  20. package/build/codegen/targets/kotlin/ajsc-adapter.d.ts +26 -0
  21. package/build/codegen/targets/kotlin/ajsc-adapter.js +38 -0
  22. package/build/codegen/targets/kotlin/ajsc-adapter.js.map +1 -0
  23. package/build/codegen/targets/kotlin/ajsc-adapter.test.d.ts +1 -0
  24. package/build/codegen/targets/kotlin/ajsc-adapter.test.js +37 -0
  25. package/build/codegen/targets/kotlin/ajsc-adapter.test.js.map +1 -0
  26. package/build/codegen/targets/kotlin/e2e-compile.test.d.ts +1 -0
  27. package/build/codegen/targets/kotlin/e2e-compile.test.js +75 -0
  28. package/build/codegen/targets/kotlin/e2e-compile.test.js.map +1 -0
  29. package/build/codegen/targets/kotlin/emit-route-kotlin.d.ts +15 -0
  30. package/build/codegen/targets/kotlin/emit-route-kotlin.js +80 -0
  31. package/build/codegen/targets/kotlin/emit-route-kotlin.js.map +1 -0
  32. package/build/codegen/targets/kotlin/emit-route-kotlin.test.d.ts +1 -0
  33. package/build/codegen/targets/kotlin/emit-route-kotlin.test.js +207 -0
  34. package/build/codegen/targets/kotlin/emit-route-kotlin.test.js.map +1 -0
  35. package/build/codegen/targets/kotlin/emit-scope-kotlin.d.ts +14 -0
  36. package/build/codegen/targets/kotlin/emit-scope-kotlin.js +40 -0
  37. package/build/codegen/targets/kotlin/emit-scope-kotlin.js.map +1 -0
  38. package/build/codegen/targets/kotlin/emit-scope-kotlin.test.d.ts +1 -0
  39. package/build/codegen/targets/kotlin/emit-scope-kotlin.test.js +91 -0
  40. package/build/codegen/targets/kotlin/emit-scope-kotlin.test.js.map +1 -0
  41. package/build/codegen/targets/kotlin/format-kotlin.d.ts +15 -0
  42. package/build/codegen/targets/kotlin/format-kotlin.js +40 -0
  43. package/build/codegen/targets/kotlin/format-kotlin.js.map +1 -0
  44. package/build/codegen/targets/kotlin/format-kotlin.test.d.ts +1 -0
  45. package/build/codegen/targets/kotlin/format-kotlin.test.js +50 -0
  46. package/build/codegen/targets/kotlin/format-kotlin.test.js.map +1 -0
  47. package/build/codegen/targets/kotlin/integration.test.d.ts +1 -0
  48. package/build/codegen/targets/kotlin/integration.test.js +51 -0
  49. package/build/codegen/targets/kotlin/integration.test.js.map +1 -0
  50. package/build/codegen/targets/kotlin/probe-unsupported-unions.test.d.ts +1 -0
  51. package/build/codegen/targets/kotlin/probe-unsupported-unions.test.js +50 -0
  52. package/build/codegen/targets/kotlin/probe-unsupported-unions.test.js.map +1 -0
  53. package/build/codegen/test-helpers/golden.d.ts +15 -0
  54. package/build/codegen/test-helpers/golden.js +30 -0
  55. package/build/codegen/test-helpers/golden.js.map +1 -0
  56. package/build/codegen/test-helpers/golden.test.d.ts +1 -0
  57. package/build/codegen/test-helpers/golden.test.js +76 -0
  58. package/build/codegen/test-helpers/golden.test.js.map +1 -0
  59. package/docs/codegen-kotlin.md +175 -0
  60. package/docs/http-integrations.md +32 -0
  61. package/docs/superpowers/plans/2026-04-24-kotlin-codegen-target.md +1265 -0
  62. package/docs/superpowers/plans/2026-04-25-ajsc-v7-kotlin-polish.md +1993 -0
  63. package/docs/superpowers/specs/2026-04-24-kotlin-swift-codegen-design.md +401 -0
  64. package/docs/superpowers/specs/2026-04-25-ajsc-v7-kotlin-polish-design.md +314 -0
  65. package/package.json +2 -2
  66. package/src/codegen/bin/cli.test.ts +200 -1
  67. package/src/codegen/bin/cli.ts +103 -0
  68. package/src/codegen/index.ts +27 -0
  69. package/src/codegen/pipeline.test.ts +175 -0
  70. package/src/codegen/pipeline.ts +79 -0
  71. package/src/codegen/targets/kotlin/__fixtures__/users-envelope.json +144 -0
  72. package/src/codegen/targets/kotlin/__fixtures__/users-golden.kt +121 -0
  73. package/src/codegen/targets/kotlin/__snapshots__/probe-unsupported-unions.test.ts.snap +27 -0
  74. package/src/codegen/targets/kotlin/ajsc-adapter.test.ts +47 -0
  75. package/src/codegen/targets/kotlin/ajsc-adapter.ts +66 -0
  76. package/src/codegen/targets/kotlin/e2e-compile.test.ts +86 -0
  77. package/src/codegen/targets/kotlin/emit-route-kotlin.test.ts +239 -0
  78. package/src/codegen/targets/kotlin/emit-route-kotlin.ts +109 -0
  79. package/src/codegen/targets/kotlin/emit-scope-kotlin.test.ts +112 -0
  80. package/src/codegen/targets/kotlin/emit-scope-kotlin.ts +65 -0
  81. package/src/codegen/targets/kotlin/format-kotlin.test.ts +70 -0
  82. package/src/codegen/targets/kotlin/format-kotlin.ts +45 -0
  83. package/src/codegen/targets/kotlin/integration.test.ts +77 -0
  84. package/src/codegen/targets/kotlin/probe-unsupported-unions.test.ts +64 -0
  85. package/src/codegen/test-helpers/golden.test.ts +80 -0
  86. package/src/codegen/test-helpers/golden.ts +34 -0
  87. package/src/implementations/http/README.md +2 -0
  88. package/src/implementations/http/hono-stream/README.md +15 -0
@@ -221,6 +221,21 @@ builder.register(factory, context, {
221
221
  })
222
222
  ```
223
223
 
224
+ ## Using an Existing Hono App
225
+
226
+ Pass an existing `Hono` instance to mount stream routes alongside other routes — including those registered by `HonoRPCAppBuilder` and `HonoAPIAppBuilder`. One Hono server can host all three builders.
227
+
228
+ ```typescript
229
+ const app = new Hono()
230
+ app.use('*', cors())
231
+
232
+ new HonoStreamAppBuilder({ app })
233
+ .register(StreamFactory, contextResolver)
234
+ .build()
235
+ ```
236
+
237
+ For the full single-server pattern (RPC + API + Stream + `DocRegistry` on one app), see [docs/http-integrations.md § One Hono Server, Multiple Builders](../../../../docs/http-integrations.md#one-hono-server-multiple-builders).
238
+
224
239
  ## Lifecycle Hooks
225
240
 
226
241
  Hooks execute in the following order: