@contractspec/example.locale-jurisdiction-gate 3.7.17 → 3.7.18

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 (66) hide show
  1. package/.turbo/turbo-build.log +66 -66
  2. package/CHANGELOG.md +10 -0
  3. package/dist/browser/docs/index.js +3 -27
  4. package/dist/browser/docs/locale-jurisdiction-gate.docblock.js +3 -27
  5. package/dist/browser/entities/index.js +1 -110
  6. package/dist/browser/entities/models.js +1 -110
  7. package/dist/browser/events.js +1 -73
  8. package/dist/browser/example.js +1 -35
  9. package/dist/browser/forms/assistant-context.form.js +1 -213
  10. package/dist/browser/forms/index.js +1 -213
  11. package/dist/browser/handlers/demo.handlers.js +2 -152
  12. package/dist/browser/handlers/index.js +2 -152
  13. package/dist/browser/index.js +4 -844
  14. package/dist/browser/locale-jurisdiction-gate.feature.js +1 -105
  15. package/dist/browser/operations/assistant.js +1 -192
  16. package/dist/browser/operations/index.js +1 -192
  17. package/dist/browser/policy/assistant-gate.policy.js +1 -62
  18. package/dist/browser/policy/guard.js +2 -73
  19. package/dist/browser/policy/index.js +2 -134
  20. package/dist/browser/translations/assistant-gate.en-GB.translation.js +1 -48
  21. package/dist/browser/translations/assistant-gate.en-US.translation.js +1 -50
  22. package/dist/browser/translations/assistant-gate.fr-FR.translation.js +1 -52
  23. package/dist/browser/translations/index.js +1 -148
  24. package/dist/docs/index.js +3 -27
  25. package/dist/docs/locale-jurisdiction-gate.docblock.js +3 -27
  26. package/dist/entities/index.js +1 -110
  27. package/dist/entities/models.js +1 -110
  28. package/dist/events.js +1 -73
  29. package/dist/example.js +1 -35
  30. package/dist/forms/assistant-context.form.js +1 -213
  31. package/dist/forms/index.js +1 -213
  32. package/dist/handlers/demo.handlers.js +2 -152
  33. package/dist/handlers/index.js +2 -152
  34. package/dist/index.js +4 -844
  35. package/dist/locale-jurisdiction-gate.feature.js +1 -105
  36. package/dist/node/docs/index.js +3 -27
  37. package/dist/node/docs/locale-jurisdiction-gate.docblock.js +3 -27
  38. package/dist/node/entities/index.js +1 -110
  39. package/dist/node/entities/models.js +1 -110
  40. package/dist/node/events.js +1 -73
  41. package/dist/node/example.js +1 -35
  42. package/dist/node/forms/assistant-context.form.js +1 -213
  43. package/dist/node/forms/index.js +1 -213
  44. package/dist/node/handlers/demo.handlers.js +2 -152
  45. package/dist/node/handlers/index.js +2 -152
  46. package/dist/node/index.js +4 -844
  47. package/dist/node/locale-jurisdiction-gate.feature.js +1 -105
  48. package/dist/node/operations/assistant.js +1 -192
  49. package/dist/node/operations/index.js +1 -192
  50. package/dist/node/policy/assistant-gate.policy.js +1 -62
  51. package/dist/node/policy/guard.js +2 -73
  52. package/dist/node/policy/index.js +2 -134
  53. package/dist/node/translations/assistant-gate.en-GB.translation.js +1 -48
  54. package/dist/node/translations/assistant-gate.en-US.translation.js +1 -50
  55. package/dist/node/translations/assistant-gate.fr-FR.translation.js +1 -52
  56. package/dist/node/translations/index.js +1 -148
  57. package/dist/operations/assistant.js +1 -192
  58. package/dist/operations/index.js +1 -192
  59. package/dist/policy/assistant-gate.policy.js +1 -62
  60. package/dist/policy/guard.js +2 -73
  61. package/dist/policy/index.js +2 -134
  62. package/dist/translations/assistant-gate.en-GB.translation.js +1 -48
  63. package/dist/translations/assistant-gate.en-US.translation.js +1 -50
  64. package/dist/translations/assistant-gate.fr-FR.translation.js +1 -52
  65. package/dist/translations/index.js +1 -148
  66. package/package.json +5 -5
@@ -1,149 +1,2 @@
1
1
  // @bun
2
- // src/translations/assistant-gate.en-GB.translation.ts
3
- import {
4
- OwnersEnum,
5
- StabilityEnum,
6
- TagsEnum
7
- } from "@contractspec/lib.contracts-spec/ownership";
8
- import { defineTranslation } from "@contractspec/lib.contracts-spec/translations/spec";
9
- var AssistantGateMessagesEnGb = defineTranslation({
10
- meta: {
11
- key: "locale-jurisdiction-gate.translation.assistant-gate.en-GB",
12
- version: "1.0.0",
13
- domain: "assistant",
14
- description: "British English messages for the assistant locale and jurisdiction gate.",
15
- owners: [OwnersEnum.PlatformFinance],
16
- stability: StabilityEnum.Experimental,
17
- tags: [TagsEnum.I18n, "assistant", "policy"]
18
- },
19
- locale: "en-GB",
20
- fallback: "en-US",
21
- messages: {
22
- "assistantGate.locale.label": { value: "Locale" },
23
- "assistantGate.locale.description": {
24
- value: "Select the reviewed locale for the assistant response."
25
- },
26
- "assistantGate.jurisdiction.label": { value: "Jurisdiction" },
27
- "assistantGate.jurisdiction.placeholder": { value: "UK-FCA" },
28
- "assistantGate.kbSnapshotId.label": { value: "Knowledge snapshot ID" },
29
- "assistantGate.kbSnapshotId.placeholder": {
30
- value: "kb_2026_03_20_policy_reviewed"
31
- },
32
- "assistantGate.allowedScope.label": { value: "Permitted scope" },
33
- "assistantGate.allowedScope.educationOnly": {
34
- value: "Educational content only"
35
- },
36
- "assistantGate.allowedScope.genericInfo": { value: "General information" },
37
- "assistantGate.allowedScope.escalationRequired": {
38
- value: "Escalation required"
39
- },
40
- "assistantGate.question.label": { value: "Question" },
41
- "assistantGate.question.placeholder": {
42
- value: "What may I say about this product in the selected jurisdiction?"
43
- },
44
- "assistantGate.submit.label": { value: "Generate response" }
45
- }
46
- });
47
-
48
- // src/translations/assistant-gate.en-US.translation.ts
49
- import {
50
- OwnersEnum as OwnersEnum2,
51
- StabilityEnum as StabilityEnum2,
52
- TagsEnum as TagsEnum2
53
- } from "@contractspec/lib.contracts-spec/ownership";
54
- import { defineTranslation as defineTranslation2 } from "@contractspec/lib.contracts-spec/translations/spec";
55
- var AssistantGateMessagesEnUs = defineTranslation2({
56
- meta: {
57
- key: "locale-jurisdiction-gate.translation.assistant-gate.en-US",
58
- version: "1.0.0",
59
- domain: "assistant",
60
- description: "US English messages for the assistant locale and jurisdiction gate.",
61
- owners: [OwnersEnum2.PlatformFinance],
62
- stability: StabilityEnum2.Experimental,
63
- tags: [TagsEnum2.I18n, "assistant", "policy"]
64
- },
65
- locale: "en-US",
66
- messages: {
67
- "assistantGate.locale.label": { value: "Locale" },
68
- "assistantGate.locale.description": {
69
- value: "Choose the reviewed locale for the assistant answer."
70
- },
71
- "assistantGate.locale.enUs": { value: "English (United States)" },
72
- "assistantGate.locale.enGb": { value: "English (United Kingdom)" },
73
- "assistantGate.locale.frFr": { value: "French (France)" },
74
- "assistantGate.jurisdiction.label": { value: "Jurisdiction" },
75
- "assistantGate.jurisdiction.placeholder": { value: "US-SEC" },
76
- "assistantGate.kbSnapshotId.label": { value: "Knowledge snapshot ID" },
77
- "assistantGate.kbSnapshotId.placeholder": {
78
- value: "kb_2026_03_20_policy_reviewed"
79
- },
80
- "assistantGate.allowedScope.label": { value: "Allowed scope" },
81
- "assistantGate.allowedScope.educationOnly": {
82
- value: "Educational content only"
83
- },
84
- "assistantGate.allowedScope.genericInfo": { value: "Generic information" },
85
- "assistantGate.allowedScope.escalationRequired": {
86
- value: "Escalation required"
87
- },
88
- "assistantGate.question.label": { value: "Question" },
89
- "assistantGate.question.placeholder": {
90
- value: "What can I say about this product in the selected jurisdiction?"
91
- },
92
- "assistantGate.submit.label": { value: "Generate answer" }
93
- }
94
- });
95
-
96
- // src/translations/assistant-gate.fr-FR.translation.ts
97
- import {
98
- OwnersEnum as OwnersEnum3,
99
- StabilityEnum as StabilityEnum3,
100
- TagsEnum as TagsEnum3
101
- } from "@contractspec/lib.contracts-spec/ownership";
102
- import { defineTranslation as defineTranslation3 } from "@contractspec/lib.contracts-spec/translations/spec";
103
- var AssistantGateMessagesFrFr = defineTranslation3({
104
- meta: {
105
- key: "locale-jurisdiction-gate.translation.assistant-gate.fr-FR",
106
- version: "1.0.0",
107
- domain: "assistant",
108
- description: "French messages for the assistant locale and jurisdiction gate.",
109
- owners: [OwnersEnum3.PlatformFinance],
110
- stability: StabilityEnum3.Experimental,
111
- tags: [TagsEnum3.I18n, "assistant", "policy"]
112
- },
113
- locale: "fr-FR",
114
- fallback: "en-US",
115
- messages: {
116
- "assistantGate.locale.label": { value: "Langue" },
117
- "assistantGate.locale.description": {
118
- value: "S\xE9lectionnez la langue valid\xE9e pour la r\xE9ponse de l'assistant."
119
- },
120
- "assistantGate.jurisdiction.label": { value: "Juridiction" },
121
- "assistantGate.jurisdiction.placeholder": { value: "FR-AMF" },
122
- "assistantGate.kbSnapshotId.label": {
123
- value: "Identifiant du snapshot documentaire"
124
- },
125
- "assistantGate.kbSnapshotId.placeholder": {
126
- value: "kb_2026_03_20_policy_reviewed"
127
- },
128
- "assistantGate.allowedScope.label": { value: "P\xE9rim\xE8tre autoris\xE9" },
129
- "assistantGate.allowedScope.educationOnly": {
130
- value: "Contenu \xE9ducatif uniquement"
131
- },
132
- "assistantGate.allowedScope.genericInfo": {
133
- value: "Information g\xE9n\xE9rale"
134
- },
135
- "assistantGate.allowedScope.escalationRequired": {
136
- value: "Escalade obligatoire"
137
- },
138
- "assistantGate.question.label": { value: "Question" },
139
- "assistantGate.question.placeholder": {
140
- value: "Que puis-je dire sur ce produit dans la juridiction s\xE9lectionn\xE9e ?"
141
- },
142
- "assistantGate.submit.label": { value: "G\xE9n\xE9rer la r\xE9ponse" }
143
- }
144
- });
145
- export {
146
- AssistantGateMessagesFrFr,
147
- AssistantGateMessagesEnUs,
148
- AssistantGateMessagesEnGb
149
- };
2
+ import{OwnersEnum as h,StabilityEnum as j,TagsEnum as k}from"@contractspec/lib.contracts-spec/ownership";import{defineTranslation as q}from"@contractspec/lib.contracts-spec/translations/spec";var J=q({meta:{key:"locale-jurisdiction-gate.translation.assistant-gate.en-GB",version:"1.0.0",domain:"assistant",description:"British English messages for the assistant locale and jurisdiction gate.",owners:[h.PlatformFinance],stability:j.Experimental,tags:[k.I18n,"assistant","policy"]},locale:"en-GB",fallback:"en-US",messages:{"assistantGate.locale.label":{value:"Locale"},"assistantGate.locale.description":{value:"Select the reviewed locale for the assistant response."},"assistantGate.jurisdiction.label":{value:"Jurisdiction"},"assistantGate.jurisdiction.placeholder":{value:"UK-FCA"},"assistantGate.kbSnapshotId.label":{value:"Knowledge snapshot ID"},"assistantGate.kbSnapshotId.placeholder":{value:"kb_2026_03_20_policy_reviewed"},"assistantGate.allowedScope.label":{value:"Permitted scope"},"assistantGate.allowedScope.educationOnly":{value:"Educational content only"},"assistantGate.allowedScope.genericInfo":{value:"General information"},"assistantGate.allowedScope.escalationRequired":{value:"Escalation required"},"assistantGate.question.label":{value:"Question"},"assistantGate.question.placeholder":{value:"What may I say about this product in the selected jurisdiction?"},"assistantGate.submit.label":{value:"Generate response"}}});import{OwnersEnum as v,StabilityEnum as x,TagsEnum as z}from"@contractspec/lib.contracts-spec/ownership";import{defineTranslation as A}from"@contractspec/lib.contracts-spec/translations/spec";var N=A({meta:{key:"locale-jurisdiction-gate.translation.assistant-gate.en-US",version:"1.0.0",domain:"assistant",description:"US English messages for the assistant locale and jurisdiction gate.",owners:[v.PlatformFinance],stability:x.Experimental,tags:[z.I18n,"assistant","policy"]},locale:"en-US",messages:{"assistantGate.locale.label":{value:"Locale"},"assistantGate.locale.description":{value:"Choose the reviewed locale for the assistant answer."},"assistantGate.locale.enUs":{value:"English (United States)"},"assistantGate.locale.enGb":{value:"English (United Kingdom)"},"assistantGate.locale.frFr":{value:"French (France)"},"assistantGate.jurisdiction.label":{value:"Jurisdiction"},"assistantGate.jurisdiction.placeholder":{value:"US-SEC"},"assistantGate.kbSnapshotId.label":{value:"Knowledge snapshot ID"},"assistantGate.kbSnapshotId.placeholder":{value:"kb_2026_03_20_policy_reviewed"},"assistantGate.allowedScope.label":{value:"Allowed scope"},"assistantGate.allowedScope.educationOnly":{value:"Educational content only"},"assistantGate.allowedScope.genericInfo":{value:"Generic information"},"assistantGate.allowedScope.escalationRequired":{value:"Escalation required"},"assistantGate.question.label":{value:"Question"},"assistantGate.question.placeholder":{value:"What can I say about this product in the selected jurisdiction?"},"assistantGate.submit.label":{value:"Generate answer"}}});import{OwnersEnum as B,StabilityEnum as C,TagsEnum as D}from"@contractspec/lib.contracts-spec/ownership";import{defineTranslation as G}from"@contractspec/lib.contracts-spec/translations/spec";var V=G({meta:{key:"locale-jurisdiction-gate.translation.assistant-gate.fr-FR",version:"1.0.0",domain:"assistant",description:"French messages for the assistant locale and jurisdiction gate.",owners:[B.PlatformFinance],stability:C.Experimental,tags:[D.I18n,"assistant","policy"]},locale:"fr-FR",fallback:"en-US",messages:{"assistantGate.locale.label":{value:"Langue"},"assistantGate.locale.description":{value:"S\xE9lectionnez la langue valid\xE9e pour la r\xE9ponse de l'assistant."},"assistantGate.jurisdiction.label":{value:"Juridiction"},"assistantGate.jurisdiction.placeholder":{value:"FR-AMF"},"assistantGate.kbSnapshotId.label":{value:"Identifiant du snapshot documentaire"},"assistantGate.kbSnapshotId.placeholder":{value:"kb_2026_03_20_policy_reviewed"},"assistantGate.allowedScope.label":{value:"P\xE9rim\xE8tre autoris\xE9"},"assistantGate.allowedScope.educationOnly":{value:"Contenu \xE9ducatif uniquement"},"assistantGate.allowedScope.genericInfo":{value:"Information g\xE9n\xE9rale"},"assistantGate.allowedScope.escalationRequired":{value:"Escalade obligatoire"},"assistantGate.question.label":{value:"Question"},"assistantGate.question.placeholder":{value:"Que puis-je dire sur ce produit dans la juridiction s\xE9lectionn\xE9e ?"},"assistantGate.submit.label":{value:"G\xE9n\xE9rer la r\xE9ponse"}}});export{V as AssistantGateMessagesFrFr,N as AssistantGateMessagesEnUs,J as AssistantGateMessagesEnGb};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/example.locale-jurisdiction-gate",
3
- "version": "3.7.17",
3
+ "version": "3.7.18",
4
4
  "description": "Example: enforce locale + jurisdiction + kbSnapshotId + allowed scope for assistant calls (fail-closed).",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -169,20 +169,20 @@
169
169
  "dev": "contractspec-bun-build dev",
170
170
  "clean": "rimraf dist .turbo",
171
171
  "lint": "bun lint:fix",
172
- "lint:fix": "biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .",
173
- "lint:check": "biome check .",
172
+ "lint:fix": "node ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .",
173
+ "lint:check": "node ../../../scripts/biome.cjs check .",
174
174
  "test": "bun test",
175
175
  "prebuild": "contractspec-bun-build prebuild",
176
176
  "typecheck": "tsc --noEmit"
177
177
  },
178
178
  "dependencies": {
179
- "@contractspec/lib.contracts-spec": "5.1.0",
179
+ "@contractspec/lib.contracts-spec": "5.2.0",
180
180
  "@contractspec/lib.schema": "3.7.14"
181
181
  },
182
182
  "devDependencies": {
183
183
  "@contractspec/tool.typescript": "3.7.13",
184
184
  "typescript": "^5.9.3",
185
- "@contractspec/tool.bun": "3.7.13"
185
+ "@contractspec/tool.bun": "3.7.14"
186
186
  },
187
187
  "publishConfig": {
188
188
  "access": "public",