@clossys/writer 0.4.0 → 0.5.1

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 (119) hide show
  1. package/README.md +592 -2
  2. package/dist/approval-bypass.d.ts +120 -0
  3. package/dist/approval-bypass.d.ts.map +1 -0
  4. package/dist/approval-bypass.js +2318 -0
  5. package/dist/approval-bypass.js.map +1 -0
  6. package/dist/approval.d.ts +62 -0
  7. package/dist/approval.d.ts.map +1 -0
  8. package/dist/approval.js +421 -0
  9. package/dist/approval.js.map +1 -0
  10. package/dist/approve-cli.d.ts +82 -0
  11. package/dist/approve-cli.d.ts.map +1 -0
  12. package/dist/approve-cli.js +430 -0
  13. package/dist/approve-cli.js.map +1 -0
  14. package/dist/cli.d.ts +15 -0
  15. package/dist/cli.d.ts.map +1 -1
  16. package/dist/cli.js +48 -13
  17. package/dist/cli.js.map +1 -1
  18. package/dist/field-options.d.ts +59 -0
  19. package/dist/field-options.d.ts.map +1 -0
  20. package/dist/field-options.js +109 -0
  21. package/dist/field-options.js.map +1 -0
  22. package/dist/front-door-browser.d.ts +5 -0
  23. package/dist/front-door-browser.d.ts.map +1 -0
  24. package/dist/front-door-browser.js +30 -0
  25. package/dist/front-door-browser.js.map +1 -0
  26. package/dist/front-door-core.d.ts +45 -0
  27. package/dist/front-door-core.d.ts.map +1 -0
  28. package/dist/front-door-core.js +224 -0
  29. package/dist/front-door-core.js.map +1 -0
  30. package/dist/front-door.check.d.ts +2 -0
  31. package/dist/front-door.check.d.ts.map +1 -0
  32. package/dist/front-door.check.js +8 -0
  33. package/dist/front-door.check.js.map +1 -0
  34. package/dist/front-door.d.ts +46 -0
  35. package/dist/front-door.d.ts.map +1 -0
  36. package/dist/front-door.js +61 -0
  37. package/dist/front-door.js.map +1 -0
  38. package/dist/generated/advisor-plan-contract.generated.d.ts +3 -0
  39. package/dist/generated/advisor-plan-contract.generated.d.ts.map +1 -0
  40. package/dist/generated/advisor-plan-contract.generated.js +430 -0
  41. package/dist/generated/advisor-plan-contract.generated.js.map +1 -0
  42. package/dist/generated/contract-schema.generated.d.ts +97 -0
  43. package/dist/generated/contract-schema.generated.d.ts.map +1 -0
  44. package/dist/generated/contract-schema.generated.js +496 -0
  45. package/dist/generated/contract-schema.generated.js.map +1 -0
  46. package/dist/index.d.ts +14 -2
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +24 -0
  49. package/dist/index.js.map +1 -1
  50. package/dist/messaging-kit.d.ts +113 -0
  51. package/dist/messaging-kit.d.ts.map +1 -0
  52. package/dist/messaging-kit.js +121 -0
  53. package/dist/messaging-kit.js.map +1 -0
  54. package/dist/passage.d.ts +2 -1
  55. package/dist/passage.d.ts.map +1 -1
  56. package/dist/passage.js +2 -1
  57. package/dist/passage.js.map +1 -1
  58. package/dist/plan-authority.d.ts +73 -0
  59. package/dist/plan-authority.d.ts.map +1 -0
  60. package/dist/plan-authority.js +126 -0
  61. package/dist/plan-authority.js.map +1 -0
  62. package/dist/plan-contract.d.ts +16 -0
  63. package/dist/plan-contract.d.ts.map +1 -0
  64. package/dist/plan-contract.js +33 -0
  65. package/dist/plan-contract.js.map +1 -0
  66. package/dist/plan-digest.d.ts +23 -0
  67. package/dist/plan-digest.d.ts.map +1 -0
  68. package/dist/plan-digest.js +82 -0
  69. package/dist/plan-digest.js.map +1 -0
  70. package/dist/plan-rules.d.ts +54 -0
  71. package/dist/plan-rules.d.ts.map +1 -0
  72. package/dist/plan-rules.js +145 -0
  73. package/dist/plan-rules.js.map +1 -0
  74. package/dist/resolve.d.ts +40 -6
  75. package/dist/resolve.d.ts.map +1 -1
  76. package/dist/resolve.js +144 -18
  77. package/dist/resolve.js.map +1 -1
  78. package/dist/scan.d.ts +32 -0
  79. package/dist/scan.d.ts.map +1 -1
  80. package/dist/scan.js +67 -6
  81. package/dist/scan.js.map +1 -1
  82. package/dist/schema.d.ts +1 -0
  83. package/dist/schema.d.ts.map +1 -1
  84. package/dist/schema.js +209 -5
  85. package/dist/schema.js.map +1 -1
  86. package/dist/site-identity.d.ts +88 -0
  87. package/dist/site-identity.d.ts.map +1 -0
  88. package/dist/site-identity.js +82 -0
  89. package/dist/site-identity.js.map +1 -0
  90. package/dist/types.d.ts +65 -7
  91. package/dist/types.d.ts.map +1 -1
  92. package/dist/types.js +9 -7
  93. package/dist/types.js.map +1 -1
  94. package/package.json +11 -6
  95. package/skill/SKILL.md +2 -2
  96. package/src/approval-bypass.ts +2263 -0
  97. package/src/approval.ts +491 -0
  98. package/src/approve-cli.ts +474 -0
  99. package/src/cli.ts +46 -13
  100. package/src/field-options.ts +134 -0
  101. package/src/front-door-browser.ts +31 -0
  102. package/src/front-door-core.ts +265 -0
  103. package/src/front-door.check.ts +10 -0
  104. package/src/front-door.ts +65 -0
  105. package/src/generated/advisor-plan-contract.generated.ts +430 -0
  106. package/src/generated/contract-schema.generated.ts +520 -0
  107. package/src/index.ts +97 -1
  108. package/src/messaging-kit.ts +195 -0
  109. package/src/passage.ts +2 -1
  110. package/src/plan-authority.ts +160 -0
  111. package/src/plan-contract.ts +45 -0
  112. package/src/plan-digest.ts +81 -0
  113. package/src/plan-rules.ts +179 -0
  114. package/src/resolve.ts +185 -19
  115. package/src/scan.ts +97 -6
  116. package/src/schema.ts +223 -5
  117. package/src/site-identity.ts +125 -0
  118. package/src/types.ts +72 -7
  119. package/templates/front-door.en.json +423 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clossys/writer",
3
- "version": "0.4.0",
3
+ "version": "0.5.1",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -16,7 +16,12 @@
16
16
  "types": "./dist/voice/index.d.ts",
17
17
  "import": "./dist/voice/index.js"
18
18
  },
19
- "./voice-record.template.jsonc": "./templates/voice-record.template.jsonc"
19
+ "./voice-record.template.jsonc": "./templates/voice-record.template.jsonc",
20
+ "./front-door.en.json": "./templates/front-door.en.json",
21
+ "./front-door": {
22
+ "types": "./dist/front-door-browser.d.ts",
23
+ "import": "./dist/front-door-browser.js"
24
+ }
20
25
  },
21
26
  "bin": {
22
27
  "writer-check": "dist/cli.js",
@@ -251,13 +256,13 @@
251
256
  "node": ">=20"
252
257
  },
253
258
  "scripts": {
254
- "build": "tsc -p tsconfig.json",
259
+ "build": "node scripts/pack-plan-contract.mjs && tsc -p tsconfig.json",
255
260
  "prepublishOnly": "node ../../scripts/check-name-collision.mjs . && npm run build",
256
- "typecheck": "tsc -p tsconfig.json --noEmit",
257
- "test": "vitest run"
261
+ "typecheck": "node scripts/pack-plan-contract.mjs && tsc -p tsconfig.json --noEmit",
262
+ "test": "node scripts/pack-plan-contract.mjs && vitest run"
258
263
  },
259
264
  "devDependencies": {
260
- "@types/node": "^26.5.1",
265
+ "@types/node": "^26.6.3",
261
266
  "typescript": "~6.0.0",
262
267
  "vitest": "^5.0.1"
263
268
  },
package/skill/SKILL.md CHANGED
@@ -12,7 +12,7 @@ You maintain approved copy records for a named page, voice conformance, and lang
12
12
 
13
13
  ## Foundry voices
14
14
 
15
- The same team is in every inventoried repo. Name another `@clossys-<package>` to talk to them. A missing mention is a bug, not a compatibility signal. Hiring and fit always go through `@clossys-advisor`.
15
+ The whole team is composed in the hub. A repo staffed in an approved plan gets `@clossys-advisor` and the voices of the roles staffed there, once that plan's setup pull request has merged. Name another `@clossys-<package>` to talk to them. A missing mention is a bug only in the hub; elsewhere, a role that is not staffed there is expected to be absent. Hiring and fit always go through `@clossys-advisor`.
16
16
 
17
17
  ## Operating wave
18
18
 
@@ -41,7 +41,7 @@ Summarize gate results in human language; keep machine kinds for tooling, not as
41
41
 
42
42
  ## When this package is not installed
43
43
 
44
- You are here as a person in this repo the same way you are in every other inventoried repo.
44
+ You are here as a person in this repo the same way you are in every other repo the team is set up in.
45
45
 
46
46
  - Intro and quick questions are always in scope.
47
47
  - If this package's engine is not pinned in *this* tree, do not act and do not run a binary. Ask `@clossys-advisor` whether to hire you **in this repository**.