@contractspec/example.personalization 0.0.0-canary-20260113170453
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.
- package/.turbo/turbo-build$colon$bundle.log +319 -0
- package/.turbo/turbo-build.log +321 -0
- package/CHANGELOG.md +408 -0
- package/LICENSE +21 -0
- package/dist/behavior-tracking.d.ts +5 -0
- package/dist/behavior-tracking.d.ts.map +1 -0
- package/dist/behavior-tracking.js +48 -0
- package/dist/behavior-tracking.js.map +1 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/docs/index.js +1 -0
- package/dist/docs/personalization.docblock.d.ts +1 -0
- package/dist/docs/personalization.docblock.js +30 -0
- package/dist/docs/personalization.docblock.js.map +1 -0
- package/dist/example.d.ts +8 -0
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +46 -0
- package/dist/example.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +7 -0
- package/dist/libs/contracts/src/app-config/branding.d.ts +20 -0
- package/dist/libs/contracts/src/app-config/branding.d.ts.map +1 -0
- package/dist/libs/contracts/src/app-config/lifecycle.d.ts +1 -0
- package/dist/libs/contracts/src/app-config/runtime.d.ts +9 -0
- package/dist/libs/contracts/src/app-config/spec.d.ts +92 -0
- package/dist/libs/contracts/src/app-config/spec.d.ts.map +1 -0
- package/dist/libs/contracts/src/app-config/validation.d.ts +7 -0
- package/dist/libs/contracts/src/capabilities/capabilities.d.ts +16 -0
- package/dist/libs/contracts/src/capabilities/capabilities.d.ts.map +1 -0
- package/dist/libs/contracts/src/client/index.d.ts +1 -0
- package/dist/libs/contracts/src/client/react/drivers/rn-reusables.d.ts +1 -0
- package/dist/libs/contracts/src/client/react/drivers/shadcn.d.ts +1 -0
- package/dist/libs/contracts/src/client/react/feature-render.d.ts +3 -0
- package/dist/libs/contracts/src/client/react/form-render.d.ts +2 -0
- package/dist/libs/contracts/src/client/react/index.d.ts +4 -0
- package/dist/libs/contracts/src/contract-registry/index.d.ts +1 -0
- package/dist/libs/contracts/src/contract-registry/schemas.d.ts +1 -0
- package/dist/libs/contracts/src/data-views/index.d.ts +3 -0
- package/dist/libs/contracts/src/data-views/registry.d.ts +2 -0
- package/dist/libs/contracts/src/data-views/spec.d.ts +1 -0
- package/dist/libs/contracts/src/data-views/types.d.ts +1 -0
- package/dist/libs/contracts/src/docs/registry.d.ts +8 -0
- package/dist/libs/contracts/src/docs/registry.d.ts.map +1 -0
- package/dist/libs/contracts/src/events.d.ts +1 -0
- package/dist/libs/contracts/src/examples/index.d.ts +4 -0
- package/dist/libs/contracts/src/examples/registry.d.ts +2 -0
- package/dist/libs/contracts/src/examples/schema.d.ts +2 -0
- package/dist/libs/contracts/src/examples/types.d.ts +138 -0
- package/dist/libs/contracts/src/examples/types.d.ts.map +1 -0
- package/dist/libs/contracts/src/examples/validation.d.ts +1 -0
- package/dist/libs/contracts/src/experiments/spec-resolver.d.ts +3 -0
- package/dist/libs/contracts/src/experiments/spec.d.ts +11 -0
- package/dist/libs/contracts/src/experiments/spec.d.ts.map +1 -0
- package/dist/libs/contracts/src/features/index.d.ts +4 -0
- package/dist/libs/contracts/src/features/install.d.ts +4 -0
- package/dist/libs/contracts/src/features/registry.d.ts +1 -0
- package/dist/libs/contracts/src/features/types.d.ts +88 -0
- package/dist/libs/contracts/src/features/types.d.ts.map +1 -0
- package/dist/libs/contracts/src/features/validation.d.ts +1 -0
- package/dist/libs/contracts/src/index.d.ts +43 -0
- package/dist/libs/contracts/src/install.d.ts +6 -0
- package/dist/libs/contracts/src/integrations/connection.d.ts +1 -0
- package/dist/libs/contracts/src/integrations/index.d.ts +5 -0
- package/dist/libs/contracts/src/integrations/openbanking/contracts/accounts.d.ts +3 -0
- package/dist/libs/contracts/src/integrations/openbanking/contracts/balances.d.ts +3 -0
- package/dist/libs/contracts/src/integrations/openbanking/contracts/index.d.ts +5 -0
- package/dist/libs/contracts/src/integrations/openbanking/contracts/transactions.d.ts +3 -0
- package/dist/libs/contracts/src/integrations/openbanking/guards.d.ts +1 -0
- package/dist/libs/contracts/src/integrations/openbanking/openbanking.feature.d.ts +1 -0
- package/dist/libs/contracts/src/integrations/operations.d.ts +3 -0
- package/dist/libs/contracts/src/integrations/providers/elevenlabs.d.ts +2 -0
- package/dist/libs/contracts/src/integrations/providers/gcs-storage.d.ts +2 -0
- package/dist/libs/contracts/src/integrations/providers/gmail.d.ts +2 -0
- package/dist/libs/contracts/src/integrations/providers/google-calendar.d.ts +2 -0
- package/dist/libs/contracts/src/integrations/providers/index.d.ts +11 -0
- package/dist/libs/contracts/src/integrations/providers/mistral.d.ts +2 -0
- package/dist/libs/contracts/src/integrations/providers/postmark.d.ts +2 -0
- package/dist/libs/contracts/src/integrations/providers/powens.d.ts +2 -0
- package/dist/libs/contracts/src/integrations/providers/qdrant.d.ts +2 -0
- package/dist/libs/contracts/src/integrations/providers/registry.d.ts +1 -0
- package/dist/libs/contracts/src/integrations/providers/stripe.d.ts +2 -0
- package/dist/libs/contracts/src/integrations/providers/twilio-sms.d.ts +2 -0
- package/dist/libs/contracts/src/integrations/spec.d.ts +8 -0
- package/dist/libs/contracts/src/integrations/spec.d.ts.map +1 -0
- package/dist/libs/contracts/src/jsonschema.d.ts +2 -0
- package/dist/libs/contracts/src/knowledge/index.d.ts +2 -0
- package/dist/libs/contracts/src/knowledge/operations.d.ts +3 -0
- package/dist/libs/contracts/src/knowledge/spaces/email-threads.d.ts +1 -0
- package/dist/libs/contracts/src/knowledge/spaces/financial-docs.d.ts +1 -0
- package/dist/libs/contracts/src/knowledge/spaces/financial-overview.d.ts +1 -0
- package/dist/libs/contracts/src/knowledge/spaces/index.d.ts +6 -0
- package/dist/libs/contracts/src/knowledge/spaces/product-canon.d.ts +1 -0
- package/dist/libs/contracts/src/knowledge/spaces/support-faq.d.ts +1 -0
- package/dist/libs/contracts/src/knowledge/spaces/uploaded-docs.d.ts +1 -0
- package/dist/libs/contracts/src/knowledge/spec.d.ts +1 -0
- package/dist/libs/contracts/src/llm/exporters.d.ts +6 -0
- package/dist/libs/contracts/src/llm/index.d.ts +3 -0
- package/dist/libs/contracts/src/llm/prompts.d.ts +2 -0
- package/dist/libs/contracts/src/llm/types.d.ts +3 -0
- package/dist/libs/contracts/src/onboarding-base.d.ts +1 -0
- package/dist/libs/contracts/src/openapi.d.ts +1 -0
- package/dist/libs/contracts/src/operations/index.d.ts +2 -0
- package/dist/libs/contracts/src/operations/operation.d.ts +24 -0
- package/dist/libs/contracts/src/operations/operation.d.ts.map +1 -0
- package/dist/libs/contracts/src/operations/registry.d.ts +5 -0
- package/dist/libs/contracts/src/ownership.d.ts +60 -0
- package/dist/libs/contracts/src/ownership.d.ts.map +1 -0
- package/dist/libs/contracts/src/policy/engine.d.ts +2 -0
- package/dist/libs/contracts/src/policy/index.d.ts +4 -0
- package/dist/libs/contracts/src/policy/opa-adapter.d.ts +2 -0
- package/dist/libs/contracts/src/policy/registry.d.ts +1 -0
- package/dist/libs/contracts/src/policy/spec.d.ts +9 -0
- package/dist/libs/contracts/src/policy/spec.d.ts.map +1 -0
- package/dist/libs/contracts/src/presentations/index.d.ts +3 -0
- package/dist/libs/contracts/src/presentations/presentations.d.ts +7 -0
- package/dist/libs/contracts/src/presentations/presentations.d.ts.map +1 -0
- package/dist/libs/contracts/src/presentations/registry.d.ts +1 -0
- package/dist/libs/contracts/src/presentations/transform-engine.d.ts +1 -0
- package/dist/libs/contracts/src/prompt.d.ts +1 -0
- package/dist/libs/contracts/src/promptRegistry.d.ts +2 -0
- package/dist/libs/contracts/src/regenerator/adapters.d.ts +1 -0
- package/dist/libs/contracts/src/regenerator/executor.d.ts +1 -0
- package/dist/libs/contracts/src/regenerator/index.d.ts +6 -0
- package/dist/libs/contracts/src/regenerator/service.d.ts +2 -0
- package/dist/libs/contracts/src/regenerator/sinks.d.ts +2 -0
- package/dist/libs/contracts/src/regenerator/types.d.ts +2 -0
- package/dist/libs/contracts/src/regenerator/utils.d.ts +1 -0
- package/dist/libs/contracts/src/registry.d.ts +1 -0
- package/dist/libs/contracts/src/resources.d.ts +1 -0
- package/dist/libs/contracts/src/server/graphql-pothos.d.ts +7 -0
- package/dist/libs/contracts/src/server/index.d.ts +7 -0
- package/dist/libs/contracts/src/server/mcp/createMcpServer.d.ts +5 -0
- package/dist/libs/contracts/src/server/mcp/mcpTypes.d.ts +3 -0
- package/dist/libs/contracts/src/server/provider-mcp.d.ts +1 -0
- package/dist/libs/contracts/src/server/rest-elysia.d.ts +3 -0
- package/dist/libs/contracts/src/server/rest-express.d.ts +3 -0
- package/dist/libs/contracts/src/server/rest-generic.d.ts +2 -0
- package/dist/libs/contracts/src/server/rest-next-app.d.ts +3 -0
- package/dist/libs/contracts/src/server/rest-next-pages.d.ts +3 -0
- package/dist/libs/contracts/src/tests/index.d.ts +1 -0
- package/dist/libs/contracts/src/tests/runner.d.ts +2 -0
- package/dist/libs/contracts/src/themes.d.ts +11 -0
- package/dist/libs/contracts/src/themes.d.ts.map +1 -0
- package/dist/libs/contracts/src/types.d.ts +3 -0
- package/dist/libs/contracts/src/workflow/adapters/db-adapter.d.ts +1 -0
- package/dist/libs/contracts/src/workflow/adapters/file-adapter.d.ts +1 -0
- package/dist/libs/contracts/src/workflow/adapters/index.d.ts +3 -0
- package/dist/libs/contracts/src/workflow/adapters/memory-store.d.ts +1 -0
- package/dist/libs/contracts/src/workflow/index.d.ts +5 -0
- package/dist/libs/contracts/src/workflow/runner.d.ts +5 -0
- package/dist/libs/contracts/src/workflow/spec.d.ts +89 -0
- package/dist/libs/contracts/src/workflow/spec.d.ts.map +1 -0
- package/dist/libs/contracts/src/workflow/state.d.ts +1 -0
- package/dist/libs/contracts/src/workflow/validation.d.ts +2 -0
- package/dist/libs/contracts/src/workspace-config/contractsrc-schema.d.ts +1 -0
- package/dist/libs/contracts/src/workspace-config/index.d.ts +1 -0
- package/dist/overlay-customization.d.ts +5 -0
- package/dist/overlay-customization.d.ts.map +1 -0
- package/dist/overlay-customization.js +50 -0
- package/dist/overlay-customization.js.map +1 -0
- package/dist/workflow-extension.d.ts +8 -0
- package/dist/workflow-extension.d.ts.map +1 -0
- package/dist/workflow-extension.js +67 -0
- package/dist/workflow-extension.js.map +1 -0
- package/package.json +64 -0
- package/src/behavior-tracking.ts +47 -0
- package/src/docs/index.ts +1 -0
- package/src/docs/personalization.docblock.ts +28 -0
- package/src/example.ts +32 -0
- package/src/index.ts +5 -0
- package/src/overlay-customization.ts +57 -0
- package/src/workflow-extension.ts +63 -0
- package/tsconfig.json +17 -0
- package/tsdown.config.js +6 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
# @contractspec/example.personalization
|
|
2
|
+
|
|
3
|
+
## 0.0.0-canary-20260113170453
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- caf8701: feat: add cli vibe command to run workflow
|
|
8
|
+
- c69b849: feat: add api web services (mcp & website)
|
|
9
|
+
- 42b8d78: feat: add cli `contractspec vibe` workflow to simplify usage
|
|
10
|
+
- fd38e85: feat: auto-fix contractspec issues
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- e7ded36: feat: improve stability (adding ts-morph)
|
|
15
|
+
- c231a8b: test: improve workspace stability
|
|
16
|
+
- Updated dependencies [e7ded36]
|
|
17
|
+
- Updated dependencies [caf8701]
|
|
18
|
+
- Updated dependencies [c69b849]
|
|
19
|
+
- Updated dependencies [c231a8b]
|
|
20
|
+
- Updated dependencies [42b8d78]
|
|
21
|
+
- Updated dependencies [fd38e85]
|
|
22
|
+
- @contractspec/lib.workflow-composer@0.0.0-canary-20260113170453
|
|
23
|
+
- @contractspec/lib.personalization@0.0.0-canary-20260113170453
|
|
24
|
+
- @contractspec/lib.overlay-engine@0.0.0-canary-20260113170453
|
|
25
|
+
- @contractspec/lib.contracts@0.0.0-canary-20260113170453
|
|
26
|
+
- @contractspec/lib.logger@0.0.0-canary-20260113170453
|
|
27
|
+
|
|
28
|
+
## 1.46.2
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- 7e21625: feat: library services (landing page & api)
|
|
33
|
+
- Updated dependencies [7e21625]
|
|
34
|
+
- @contractspec/lib.workflow-composer@1.46.2
|
|
35
|
+
- @contractspec/lib.personalization@1.46.2
|
|
36
|
+
- @contractspec/lib.overlay-engine@1.46.2
|
|
37
|
+
- @contractspec/lib.contracts@1.46.2
|
|
38
|
+
- @contractspec/lib.logger@1.46.2
|
|
39
|
+
|
|
40
|
+
## 1.46.1
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- 2d8a72b: fix: mcp for presentation
|
|
45
|
+
- Updated dependencies [2d8a72b]
|
|
46
|
+
- @contractspec/lib.workflow-composer@1.46.1
|
|
47
|
+
- @contractspec/lib.personalization@1.46.1
|
|
48
|
+
- @contractspec/lib.overlay-engine@1.46.1
|
|
49
|
+
- @contractspec/lib.contracts@1.46.1
|
|
50
|
+
- @contractspec/lib.logger@1.46.1
|
|
51
|
+
|
|
52
|
+
## 1.46.0
|
|
53
|
+
|
|
54
|
+
### Minor Changes
|
|
55
|
+
|
|
56
|
+
- 07cb19b: feat: feat: cleaude code & opencode integrations
|
|
57
|
+
|
|
58
|
+
### Patch Changes
|
|
59
|
+
|
|
60
|
+
- Updated dependencies [07cb19b]
|
|
61
|
+
- @contractspec/lib.workflow-composer@1.46.0
|
|
62
|
+
- @contractspec/lib.personalization@1.46.0
|
|
63
|
+
- @contractspec/lib.overlay-engine@1.46.0
|
|
64
|
+
- @contractspec/lib.contracts@1.46.0
|
|
65
|
+
- @contractspec/lib.logger@1.46.0
|
|
66
|
+
|
|
67
|
+
## 1.45.6
|
|
68
|
+
|
|
69
|
+
### Patch Changes
|
|
70
|
+
|
|
71
|
+
- a913074: feat: improve ai agents rules management"
|
|
72
|
+
- Updated dependencies [a913074]
|
|
73
|
+
- @contractspec/lib.workflow-composer@1.45.6
|
|
74
|
+
- @contractspec/lib.personalization@1.45.6
|
|
75
|
+
- @contractspec/lib.overlay-engine@1.45.6
|
|
76
|
+
- @contractspec/lib.contracts@1.45.6
|
|
77
|
+
- @contractspec/lib.logger@1.45.6
|
|
78
|
+
|
|
79
|
+
## 1.45.5
|
|
80
|
+
|
|
81
|
+
### Patch Changes
|
|
82
|
+
|
|
83
|
+
- 9ddd7fa: feat: improve versioning
|
|
84
|
+
- Updated dependencies [9ddd7fa]
|
|
85
|
+
- @contractspec/lib.workflow-composer@1.45.5
|
|
86
|
+
- @contractspec/lib.personalization@1.45.5
|
|
87
|
+
- @contractspec/lib.overlay-engine@1.45.5
|
|
88
|
+
- @contractspec/lib.contracts@1.45.5
|
|
89
|
+
- @contractspec/lib.logger@1.45.5
|
|
90
|
+
|
|
91
|
+
## 1.45.4
|
|
92
|
+
|
|
93
|
+
### Patch Changes
|
|
94
|
+
|
|
95
|
+
- fix: github action
|
|
96
|
+
- Updated dependencies
|
|
97
|
+
- @contractspec/lib.workflow-composer@1.45.4
|
|
98
|
+
- @contractspec/lib.personalization@1.45.4
|
|
99
|
+
- @contractspec/lib.overlay-engine@1.45.4
|
|
100
|
+
- @contractspec/lib.contracts@1.45.4
|
|
101
|
+
- @contractspec/lib.logger@1.45.4
|
|
102
|
+
|
|
103
|
+
## 1.45.3
|
|
104
|
+
|
|
105
|
+
### Patch Changes
|
|
106
|
+
|
|
107
|
+
- e74ea9e: feat: version management
|
|
108
|
+
- Updated dependencies [e74ea9e]
|
|
109
|
+
- @contractspec/lib.workflow-composer@1.45.3
|
|
110
|
+
- @contractspec/lib.personalization@1.45.3
|
|
111
|
+
- @contractspec/lib.overlay-engine@1.45.3
|
|
112
|
+
- @contractspec/lib.contracts@1.45.3
|
|
113
|
+
- @contractspec/lib.logger@1.45.3
|
|
114
|
+
|
|
115
|
+
## 1.45.2
|
|
116
|
+
|
|
117
|
+
### Patch Changes
|
|
118
|
+
|
|
119
|
+
- 39ca241: code cleaning
|
|
120
|
+
- Updated dependencies [39ca241]
|
|
121
|
+
- @contractspec/lib.workflow-composer@1.45.2
|
|
122
|
+
- @contractspec/lib.personalization@1.45.2
|
|
123
|
+
- @contractspec/lib.overlay-engine@1.45.2
|
|
124
|
+
- @contractspec/lib.contracts@1.45.2
|
|
125
|
+
- @contractspec/lib.logger@1.45.2
|
|
126
|
+
|
|
127
|
+
## 1.45.1
|
|
128
|
+
|
|
129
|
+
### Patch Changes
|
|
130
|
+
|
|
131
|
+
- feat: improve app config and examples contracts
|
|
132
|
+
- Updated dependencies
|
|
133
|
+
- @contractspec/lib.workflow-composer@1.45.1
|
|
134
|
+
- @contractspec/lib.personalization@1.45.1
|
|
135
|
+
- @contractspec/lib.overlay-engine@1.45.1
|
|
136
|
+
- @contractspec/lib.contracts@1.45.1
|
|
137
|
+
- @contractspec/lib.logger@1.45.1
|
|
138
|
+
- @contractspec/lib.schema@1.45.1
|
|
139
|
+
|
|
140
|
+
## 1.45.0
|
|
141
|
+
|
|
142
|
+
### Minor Changes
|
|
143
|
+
|
|
144
|
+
- e73ca1d: feat: improve app config and examples contracts
|
|
145
|
+
feat: Contract layers support (features, examples, app-configs)
|
|
146
|
+
|
|
147
|
+
### New CLI Commands
|
|
148
|
+
- `contractspec list layers` - List all contract layers with filtering
|
|
149
|
+
|
|
150
|
+
### Enhanced Commands
|
|
151
|
+
- `contractspec ci` - New `layers` check category validates features/examples/config
|
|
152
|
+
- `contractspec doctor` - New `layers` health checks
|
|
153
|
+
- `contractspec integrity` - Now shows layer statistics
|
|
154
|
+
|
|
155
|
+
### New APIs
|
|
156
|
+
- `discoverLayers()` - Scan workspace for all layer files
|
|
157
|
+
- `scanExampleSource()` - Parse ExampleSpec from source code
|
|
158
|
+
- `isExampleFile()` - Check if file is an example spec
|
|
159
|
+
|
|
160
|
+
### Patch Changes
|
|
161
|
+
|
|
162
|
+
- Updated dependencies [e73ca1d]
|
|
163
|
+
- @contractspec/lib.workflow-composer@1.45.0
|
|
164
|
+
- @contractspec/lib.personalization@1.45.0
|
|
165
|
+
- @contractspec/lib.overlay-engine@1.45.0
|
|
166
|
+
- @contractspec/lib.contracts@1.45.0
|
|
167
|
+
- @contractspec/lib.logger@1.45.0
|
|
168
|
+
- @contractspec/lib.schema@1.45.0
|
|
169
|
+
|
|
170
|
+
## 1.44.1
|
|
171
|
+
|
|
172
|
+
### Patch Changes
|
|
173
|
+
|
|
174
|
+
- 3c594fb: fix
|
|
175
|
+
- Updated dependencies [3c594fb]
|
|
176
|
+
- @contractspec/lib.workflow-composer@1.44.1
|
|
177
|
+
- @contractspec/lib.personalization@1.44.1
|
|
178
|
+
- @contractspec/lib.overlay-engine@1.44.1
|
|
179
|
+
- @contractspec/lib.contracts@1.44.1
|
|
180
|
+
- @contractspec/lib.logger@1.44.1
|
|
181
|
+
- @contractspec/lib.schema@1.44.1
|
|
182
|
+
|
|
183
|
+
## 1.44.0
|
|
184
|
+
|
|
185
|
+
### Minor Changes
|
|
186
|
+
|
|
187
|
+
- 5f3a868: chore: isolate branding to contractspec.io
|
|
188
|
+
|
|
189
|
+
### Patch Changes
|
|
190
|
+
|
|
191
|
+
- Updated dependencies [5f3a868]
|
|
192
|
+
- @contractspec/lib.workflow-composer@1.44.0
|
|
193
|
+
- @contractspec/lib.personalization@1.44.0
|
|
194
|
+
- @contractspec/lib.overlay-engine@1.44.0
|
|
195
|
+
- @contractspec/lib.contracts@1.44.0
|
|
196
|
+
- @contractspec/lib.logger@1.44.0
|
|
197
|
+
- @contractspec/lib.schema@1.44.0
|
|
198
|
+
|
|
199
|
+
## 1.43.4
|
|
200
|
+
|
|
201
|
+
### Patch Changes
|
|
202
|
+
|
|
203
|
+
- 9216062: fix: cross-platform compatibility
|
|
204
|
+
- Updated dependencies [9216062]
|
|
205
|
+
- @contractspec/lib.workflow-composer@1.43.4
|
|
206
|
+
- @contractspec/lib.personalization@1.43.4
|
|
207
|
+
- @contractspec/lib.overlay-engine@1.43.4
|
|
208
|
+
- @contractspec/lib.contracts@1.43.4
|
|
209
|
+
- @contractspec/lib.logger@1.43.3
|
|
210
|
+
- @contractspec/lib.schema@1.43.3
|
|
211
|
+
|
|
212
|
+
## 1.43.3
|
|
213
|
+
|
|
214
|
+
### Patch Changes
|
|
215
|
+
|
|
216
|
+
- 24d9759: improve documentation
|
|
217
|
+
- Updated dependencies [24d9759]
|
|
218
|
+
- @contractspec/lib.workflow-composer@1.43.3
|
|
219
|
+
- @contractspec/lib.personalization@1.43.3
|
|
220
|
+
- @contractspec/lib.overlay-engine@1.43.3
|
|
221
|
+
- @contractspec/lib.contracts@1.43.3
|
|
222
|
+
- @contractspec/lib.logger@1.43.2
|
|
223
|
+
- @contractspec/lib.schema@1.43.2
|
|
224
|
+
|
|
225
|
+
## 1.43.2
|
|
226
|
+
|
|
227
|
+
### Patch Changes
|
|
228
|
+
|
|
229
|
+
- e147271: fix: improve stability
|
|
230
|
+
- Updated dependencies [e147271]
|
|
231
|
+
- @contractspec/lib.workflow-composer@1.43.2
|
|
232
|
+
- @contractspec/lib.personalization@1.43.2
|
|
233
|
+
- @contractspec/lib.overlay-engine@1.43.2
|
|
234
|
+
- @contractspec/lib.contracts@1.43.2
|
|
235
|
+
- @contractspec/lib.logger@1.43.1
|
|
236
|
+
- @contractspec/lib.schema@1.43.1
|
|
237
|
+
|
|
238
|
+
## 1.43.1
|
|
239
|
+
|
|
240
|
+
### Patch Changes
|
|
241
|
+
|
|
242
|
+
- Updated dependencies [f28fdad]
|
|
243
|
+
- @contractspec/lib.contracts@1.43.1
|
|
244
|
+
- @contractspec/lib.overlay-engine@1.43.1
|
|
245
|
+
- @contractspec/lib.personalization@1.43.1
|
|
246
|
+
- @contractspec/lib.workflow-composer@1.43.1
|
|
247
|
+
|
|
248
|
+
## 1.43.0
|
|
249
|
+
|
|
250
|
+
### Minor Changes
|
|
251
|
+
|
|
252
|
+
- 042d072: feat: schema declaration using json schema, including zod
|
|
253
|
+
|
|
254
|
+
### Patch Changes
|
|
255
|
+
|
|
256
|
+
- Updated dependencies [042d072]
|
|
257
|
+
- @contractspec/lib.workflow-composer@1.43.0
|
|
258
|
+
- @contractspec/lib.personalization@1.43.0
|
|
259
|
+
- @contractspec/lib.overlay-engine@1.43.0
|
|
260
|
+
- @contractspec/lib.contracts@1.43.0
|
|
261
|
+
- @contractspec/lib.logger@1.43.0
|
|
262
|
+
- @contractspec/lib.schema@1.43.0
|
|
263
|
+
|
|
264
|
+
## 1.42.10
|
|
265
|
+
|
|
266
|
+
### Patch Changes
|
|
267
|
+
|
|
268
|
+
- 1e6a0f1: fix: mcp server
|
|
269
|
+
- Updated dependencies [1e6a0f1]
|
|
270
|
+
- @contractspec/lib.workflow-composer@1.42.10
|
|
271
|
+
- @contractspec/lib.personalization@1.42.10
|
|
272
|
+
- @contractspec/lib.overlay-engine@1.42.10
|
|
273
|
+
- @contractspec/lib.contracts@1.42.10
|
|
274
|
+
- @contractspec/lib.logger@1.42.10
|
|
275
|
+
- @contractspec/lib.schema@1.42.10
|
|
276
|
+
|
|
277
|
+
## 1.42.9
|
|
278
|
+
|
|
279
|
+
### Patch Changes
|
|
280
|
+
|
|
281
|
+
- 9281db7: fix ModelRegistry
|
|
282
|
+
- Updated dependencies [9281db7]
|
|
283
|
+
- @contractspec/lib.workflow-composer@1.42.9
|
|
284
|
+
- @contractspec/lib.personalization@1.42.9
|
|
285
|
+
- @contractspec/lib.overlay-engine@1.42.9
|
|
286
|
+
- @contractspec/lib.contracts@1.42.9
|
|
287
|
+
- @contractspec/lib.logger@1.42.9
|
|
288
|
+
- @contractspec/lib.schema@1.42.9
|
|
289
|
+
|
|
290
|
+
## 1.42.8
|
|
291
|
+
|
|
292
|
+
### Patch Changes
|
|
293
|
+
|
|
294
|
+
- e07b5ac: fix
|
|
295
|
+
- Updated dependencies [e07b5ac]
|
|
296
|
+
- @contractspec/lib.workflow-composer@1.42.8
|
|
297
|
+
- @contractspec/lib.personalization@1.42.8
|
|
298
|
+
- @contractspec/lib.overlay-engine@1.42.8
|
|
299
|
+
- @contractspec/lib.contracts@1.42.8
|
|
300
|
+
- @contractspec/lib.logger@1.42.8
|
|
301
|
+
- @contractspec/lib.schema@1.42.8
|
|
302
|
+
|
|
303
|
+
## 1.42.7
|
|
304
|
+
|
|
305
|
+
### Patch Changes
|
|
306
|
+
|
|
307
|
+
- e9b575d: fix release
|
|
308
|
+
- Updated dependencies [e9b575d]
|
|
309
|
+
- @contractspec/lib.workflow-composer@1.42.7
|
|
310
|
+
- @contractspec/lib.personalization@1.42.7
|
|
311
|
+
- @contractspec/lib.overlay-engine@1.42.7
|
|
312
|
+
- @contractspec/lib.contracts@1.42.7
|
|
313
|
+
- @contractspec/lib.logger@1.42.7
|
|
314
|
+
- @contractspec/lib.schema@1.42.7
|
|
315
|
+
|
|
316
|
+
## 1.42.6
|
|
317
|
+
|
|
318
|
+
### Patch Changes
|
|
319
|
+
|
|
320
|
+
- 1500242: fix tooling
|
|
321
|
+
- Updated dependencies [1500242]
|
|
322
|
+
- @contractspec/lib.workflow-composer@1.42.6
|
|
323
|
+
- @contractspec/lib.personalization@1.42.6
|
|
324
|
+
- @contractspec/lib.overlay-engine@1.42.6
|
|
325
|
+
- @contractspec/lib.contracts@1.42.6
|
|
326
|
+
- @contractspec/lib.logger@1.42.6
|
|
327
|
+
- @contractspec/lib.schema@1.42.6
|
|
328
|
+
|
|
329
|
+
## 1.42.5
|
|
330
|
+
|
|
331
|
+
### Patch Changes
|
|
332
|
+
|
|
333
|
+
- 1299719: fix vscode
|
|
334
|
+
- Updated dependencies [1299719]
|
|
335
|
+
- @contractspec/lib.workflow-composer@1.42.5
|
|
336
|
+
- @contractspec/lib.personalization@1.42.5
|
|
337
|
+
- @contractspec/lib.overlay-engine@1.42.5
|
|
338
|
+
- @contractspec/lib.contracts@1.42.5
|
|
339
|
+
- @contractspec/lib.logger@1.42.5
|
|
340
|
+
- @contractspec/lib.schema@1.42.5
|
|
341
|
+
|
|
342
|
+
## 1.42.4
|
|
343
|
+
|
|
344
|
+
### Patch Changes
|
|
345
|
+
|
|
346
|
+
- ac28b99: fix: generate from openapi
|
|
347
|
+
- Updated dependencies [ac28b99]
|
|
348
|
+
- @contractspec/lib.workflow-composer@1.42.4
|
|
349
|
+
- @contractspec/lib.personalization@1.42.4
|
|
350
|
+
- @contractspec/lib.overlay-engine@1.42.4
|
|
351
|
+
- @contractspec/lib.contracts@1.42.4
|
|
352
|
+
- @contractspec/lib.logger@1.42.4
|
|
353
|
+
- @contractspec/lib.schema@1.42.4
|
|
354
|
+
|
|
355
|
+
## 1.42.3
|
|
356
|
+
|
|
357
|
+
### Patch Changes
|
|
358
|
+
|
|
359
|
+
- 3f5d015: fix(tooling): cicd
|
|
360
|
+
- Updated dependencies [3f5d015]
|
|
361
|
+
- @contractspec/lib.contracts@1.42.3
|
|
362
|
+
- @contractspec/lib.logger@1.42.3
|
|
363
|
+
- @contractspec/lib.overlay-engine@1.42.3
|
|
364
|
+
- @contractspec/lib.personalization@1.42.3
|
|
365
|
+
- @contractspec/lib.schema@1.42.3
|
|
366
|
+
- @contractspec/lib.workflow-composer@1.42.3
|
|
367
|
+
|
|
368
|
+
## 1.42.2
|
|
369
|
+
|
|
370
|
+
### Patch Changes
|
|
371
|
+
|
|
372
|
+
- 1f9ac4c: fix
|
|
373
|
+
- Updated dependencies [1f9ac4c]
|
|
374
|
+
- @contractspec/lib.contracts@1.42.2
|
|
375
|
+
- @contractspec/lib.logger@1.42.2
|
|
376
|
+
- @contractspec/lib.overlay-engine@1.42.2
|
|
377
|
+
- @contractspec/lib.personalization@1.42.2
|
|
378
|
+
- @contractspec/lib.schema@1.42.2
|
|
379
|
+
- @contractspec/lib.workflow-composer@1.42.2
|
|
380
|
+
|
|
381
|
+
## 1.42.1
|
|
382
|
+
|
|
383
|
+
### Patch Changes
|
|
384
|
+
|
|
385
|
+
- f043995: Fix release
|
|
386
|
+
- Updated dependencies [f043995]
|
|
387
|
+
- @contractspec/lib.workflow-composer@1.42.1
|
|
388
|
+
- @contractspec/lib.personalization@1.42.1
|
|
389
|
+
- @contractspec/lib.overlay-engine@1.42.1
|
|
390
|
+
- @contractspec/lib.contracts@1.42.1
|
|
391
|
+
- @contractspec/lib.logger@1.42.1
|
|
392
|
+
- @contractspec/lib.schema@1.42.1
|
|
393
|
+
|
|
394
|
+
## 1.42.0
|
|
395
|
+
|
|
396
|
+
### Minor Changes
|
|
397
|
+
|
|
398
|
+
- 8eefd9c: initial release
|
|
399
|
+
|
|
400
|
+
### Patch Changes
|
|
401
|
+
|
|
402
|
+
- Updated dependencies [8eefd9c]
|
|
403
|
+
- @contractspec/lib.contracts@1.42.0
|
|
404
|
+
- @contractspec/lib.logger@1.42.0
|
|
405
|
+
- @contractspec/lib.overlay-engine@1.42.0
|
|
406
|
+
- @contractspec/lib.personalization@1.42.0
|
|
407
|
+
- @contractspec/lib.schema@1.42.0
|
|
408
|
+
- @contractspec/lib.workflow-composer@1.42.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Chaman Ventures, SASU
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"behavior-tracking.d.ts","names":[],"sources":["../src/behavior-tracking.ts"],"sourcesContent":[],"mappings":";iBAasB,0BAAA,CAAA,GAA8B"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { createBehaviorTracker } from "@contractspec/lib.personalization/tracker";
|
|
2
|
+
import { InMemoryBehaviorStore } from "@contractspec/lib.personalization/store";
|
|
3
|
+
import { BehaviorAnalyzer } from "@contractspec/lib.personalization/analyzer";
|
|
4
|
+
import { LogLevel, Logger } from "@contractspec/lib.logger";
|
|
5
|
+
|
|
6
|
+
//#region src/behavior-tracking.ts
|
|
7
|
+
const logger = new Logger({
|
|
8
|
+
level: process.env.NODE_ENV === "production" ? LogLevel.INFO : LogLevel.DEBUG,
|
|
9
|
+
environment: process.env.NODE_ENV || "development",
|
|
10
|
+
enableColors: process.env.NODE_ENV !== "production"
|
|
11
|
+
});
|
|
12
|
+
async function runBehaviorTrackingExample() {
|
|
13
|
+
const store = new InMemoryBehaviorStore();
|
|
14
|
+
const tracker = createBehaviorTracker({
|
|
15
|
+
store,
|
|
16
|
+
context: {
|
|
17
|
+
tenantId: "acme",
|
|
18
|
+
userId: "user-123"
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
tracker.trackFieldAccess({
|
|
22
|
+
operation: "billing.createOrder",
|
|
23
|
+
field: "internalNotes"
|
|
24
|
+
});
|
|
25
|
+
tracker.trackFieldAccess({
|
|
26
|
+
operation: "billing.createOrder",
|
|
27
|
+
field: "customerReference"
|
|
28
|
+
});
|
|
29
|
+
tracker.trackFeatureUsage({
|
|
30
|
+
feature: "workflow-editor",
|
|
31
|
+
action: "opened"
|
|
32
|
+
});
|
|
33
|
+
tracker.trackWorkflowStep({
|
|
34
|
+
workflow: "invoice-approval",
|
|
35
|
+
step: "review",
|
|
36
|
+
status: "entered"
|
|
37
|
+
});
|
|
38
|
+
await tracker.flush();
|
|
39
|
+
const insights = await new BehaviorAnalyzer(store).analyze({
|
|
40
|
+
tenantId: "acme",
|
|
41
|
+
userId: "user-123"
|
|
42
|
+
});
|
|
43
|
+
logger.info("Behavior insights computed", { insights });
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
export { runBehaviorTrackingExample };
|
|
48
|
+
//# sourceMappingURL=behavior-tracking.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"behavior-tracking.js","names":[],"sources":["../src/behavior-tracking.ts"],"sourcesContent":["import { createBehaviorTracker } from '@contractspec/lib.personalization/tracker';\nimport { InMemoryBehaviorStore } from '@contractspec/lib.personalization/store';\nimport { BehaviorAnalyzer } from '@contractspec/lib.personalization/analyzer';\nimport { Logger, LogLevel } from '@contractspec/lib.logger';\n\nconst logger = new Logger({\n level: process.env.NODE_ENV === 'production' ? LogLevel.INFO : LogLevel.DEBUG,\n environment:\n (process.env.NODE_ENV as 'production' | 'development' | 'test') ||\n 'development',\n enableColors: process.env.NODE_ENV !== 'production',\n});\n\nexport async function runBehaviorTrackingExample(): Promise<void> {\n const store = new InMemoryBehaviorStore();\n const tracker = createBehaviorTracker({\n store,\n context: {\n tenantId: 'acme',\n userId: 'user-123',\n },\n });\n\n tracker.trackFieldAccess({\n operation: 'billing.createOrder',\n field: 'internalNotes',\n });\n tracker.trackFieldAccess({\n operation: 'billing.createOrder',\n field: 'customerReference',\n });\n tracker.trackFeatureUsage({ feature: 'workflow-editor', action: 'opened' });\n tracker.trackWorkflowStep({\n workflow: 'invoice-approval',\n step: 'review',\n status: 'entered',\n });\n await tracker.flush();\n\n const analyzer = new BehaviorAnalyzer(store);\n const insights = await analyzer.analyze({\n tenantId: 'acme',\n userId: 'user-123',\n });\n\n logger.info('Behavior insights computed', { insights });\n}\n"],"mappings":";;;;;;AAKA,MAAM,SAAS,IAAI,OAAO;CACxB,OAAO,QAAQ,IAAI,aAAa,eAAe,SAAS,OAAO,SAAS;CACxE,aACG,QAAQ,IAAI,YACb;CACF,cAAc,QAAQ,IAAI,aAAa;CACxC,CAAC;AAEF,eAAsB,6BAA4C;CAChE,MAAM,QAAQ,IAAI,uBAAuB;CACzC,MAAM,UAAU,sBAAsB;EACpC;EACA,SAAS;GACP,UAAU;GACV,QAAQ;GACT;EACF,CAAC;AAEF,SAAQ,iBAAiB;EACvB,WAAW;EACX,OAAO;EACR,CAAC;AACF,SAAQ,iBAAiB;EACvB,WAAW;EACX,OAAO;EACR,CAAC;AACF,SAAQ,kBAAkB;EAAE,SAAS;EAAmB,QAAQ;EAAU,CAAC;AAC3E,SAAQ,kBAAkB;EACxB,UAAU;EACV,MAAM;EACN,QAAQ;EACT,CAAC;AACF,OAAM,QAAQ,OAAO;CAGrB,MAAM,WAAW,MADA,IAAI,iBAAiB,MAAM,CACZ,QAAQ;EACtC,UAAU;EACV,QAAQ;EACT,CAAC;AAEF,QAAO,KAAK,8BAA8B,EAAE,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./personalization.docblock.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
2
|
+
|
|
3
|
+
//#region src/docs/personalization.docblock.ts
|
|
4
|
+
registerDocBlocks([{
|
|
5
|
+
id: "docs.examples.personalization",
|
|
6
|
+
title: "Personalization Patterns (example)",
|
|
7
|
+
summary: "Behavior tracking, overlay-driven UI tweaks, and tenant workflow extension patterns.",
|
|
8
|
+
kind: "reference",
|
|
9
|
+
visibility: "public",
|
|
10
|
+
route: "/docs/examples/personalization",
|
|
11
|
+
tags: [
|
|
12
|
+
"personalization",
|
|
13
|
+
"overlays",
|
|
14
|
+
"workflows",
|
|
15
|
+
"example"
|
|
16
|
+
],
|
|
17
|
+
body: `## Includes\n- Behavior tracking + insight analysis.\n- Overlay customization (hide fields, rename labels).\n- Workflow extension (inject tenant-specific steps).\n\n## Guardrails\n- Keep tracking events structured and non-PII.\n- Keep overlays signed and scoped.\n- Keep workflow composition deterministic.`
|
|
18
|
+
}, {
|
|
19
|
+
id: "docs.examples.personalization.usage",
|
|
20
|
+
title: "Personalization — Usage",
|
|
21
|
+
summary: "How to run the small examples and swap adapters.",
|
|
22
|
+
kind: "usage",
|
|
23
|
+
visibility: "public",
|
|
24
|
+
route: "/docs/examples/personalization/usage",
|
|
25
|
+
tags: ["personalization", "usage"],
|
|
26
|
+
body: `## Usage\n- Call \`runBehaviorTrackingExample()\` for insights.\n- Call \`runOverlayCustomizationExample()\` to apply overlays.\n- Call \`composeTenantWorkflowExample()\` and \`logTenantWorkflowSteps()\` to inspect steps.\n\n## Notes\n- Replace in-memory stores with app-layer storage.\n- Keep PII out of logs and markdown outputs.`
|
|
27
|
+
}]);
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
//# sourceMappingURL=personalization.docblock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"personalization.docblock.js","names":[],"sources":["../../src/docs/personalization.docblock.ts"],"sourcesContent":["import type { DocBlock } from '@contractspec/lib.contracts/docs';\nimport { registerDocBlocks } from '@contractspec/lib.contracts/docs';\n\nconst blocks: DocBlock[] = [\n {\n id: 'docs.examples.personalization',\n title: 'Personalization Patterns (example)',\n summary:\n 'Behavior tracking, overlay-driven UI tweaks, and tenant workflow extension patterns.',\n kind: 'reference',\n visibility: 'public',\n route: '/docs/examples/personalization',\n tags: ['personalization', 'overlays', 'workflows', 'example'],\n body: `## Includes\\n- Behavior tracking + insight analysis.\\n- Overlay customization (hide fields, rename labels).\\n- Workflow extension (inject tenant-specific steps).\\n\\n## Guardrails\\n- Keep tracking events structured and non-PII.\\n- Keep overlays signed and scoped.\\n- Keep workflow composition deterministic.`,\n },\n {\n id: 'docs.examples.personalization.usage',\n title: 'Personalization — Usage',\n summary: 'How to run the small examples and swap adapters.',\n kind: 'usage',\n visibility: 'public',\n route: '/docs/examples/personalization/usage',\n tags: ['personalization', 'usage'],\n body: `## Usage\\n- Call \\`runBehaviorTrackingExample()\\` for insights.\\n- Call \\`runOverlayCustomizationExample()\\` to apply overlays.\\n- Call \\`composeTenantWorkflowExample()\\` and \\`logTenantWorkflowSteps()\\` to inspect steps.\\n\\n## Notes\\n- Replace in-memory stores with app-layer storage.\\n- Keep PII out of logs and markdown outputs.`,\n },\n];\n\nregisterDocBlocks(blocks);\n"],"mappings":";;;AA2BA,kBAxB2B,CACzB;CACE,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM;EAAC;EAAmB;EAAY;EAAa;EAAU;CAC7D,MAAM;CACP,EACD;CACE,IAAI;CACJ,OAAO;CACP,SAAS;CACT,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM,CAAC,mBAAmB,QAAQ;CAClC,MAAM;CACP,CACF,CAEwB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ExampleSpec } from "./libs/contracts/src/examples/types.js";
|
|
2
|
+
import "./libs/contracts/src/index.js";
|
|
3
|
+
|
|
4
|
+
//#region src/example.d.ts
|
|
5
|
+
declare const example: ExampleSpec;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { example as default };
|
|
8
|
+
//# sourceMappingURL=example.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;;cAEM,SA2BJ"}
|
package/dist/example.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineExample } from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/example.ts
|
|
4
|
+
const example = defineExample({
|
|
5
|
+
meta: {
|
|
6
|
+
key: "personalization",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
title: "Personalization Patterns",
|
|
9
|
+
description: "Small examples for behavior tracking, overlay-based UI customization, and tenant workflow extension.",
|
|
10
|
+
kind: "library",
|
|
11
|
+
visibility: "public",
|
|
12
|
+
stability: "experimental",
|
|
13
|
+
owners: ["@platform.core"],
|
|
14
|
+
tags: [
|
|
15
|
+
"personalization",
|
|
16
|
+
"overlays",
|
|
17
|
+
"behavior",
|
|
18
|
+
"workflows"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
docs: {
|
|
22
|
+
rootDocId: "docs.examples.personalization",
|
|
23
|
+
usageDocId: "docs.examples.personalization.usage"
|
|
24
|
+
},
|
|
25
|
+
entrypoints: {
|
|
26
|
+
packageName: "@contractspec/example.personalization",
|
|
27
|
+
docs: "./docs"
|
|
28
|
+
},
|
|
29
|
+
surfaces: {
|
|
30
|
+
templates: true,
|
|
31
|
+
sandbox: {
|
|
32
|
+
enabled: true,
|
|
33
|
+
modes: ["markdown", "specs"]
|
|
34
|
+
},
|
|
35
|
+
studio: {
|
|
36
|
+
enabled: true,
|
|
37
|
+
installable: true
|
|
38
|
+
},
|
|
39
|
+
mcp: { enabled: true }
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
var example_default = example;
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
export { example_default as default };
|
|
46
|
+
//# sourceMappingURL=example.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["import { defineExample } from '@contractspec/lib.contracts';\n\nconst example = defineExample({\n meta: {\n key: 'personalization',\n version: '1.0.0',\n title: 'Personalization Patterns',\n description:\n 'Small examples for behavior tracking, overlay-based UI customization, and tenant workflow extension.',\n kind: 'library',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['personalization', 'overlays', 'behavior', 'workflows'],\n },\n docs: {\n rootDocId: 'docs.examples.personalization',\n usageDocId: 'docs.examples.personalization.usage',\n },\n entrypoints: {\n packageName: '@contractspec/example.personalization',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['markdown', 'specs'] },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n});\n\nexport default example;\n"],"mappings":";;;AAEA,MAAM,UAAU,cAAc;CAC5B,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,YAAY;EACZ,WAAW;EACX,QAAQ,CAAC,iBAAiB;EAC1B,MAAM;GAAC;GAAmB;GAAY;GAAY;GAAY;EAC/D;CACD,MAAM;EACJ,WAAW;EACX,YAAY;EACb;CACD,aAAa;EACX,aAAa;EACb,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO,CAAC,YAAY,QAAQ;GAAE;EACxD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF,CAAC;AAEF,sBAAe"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { runBehaviorTrackingExample } from "./behavior-tracking.js";
|
|
2
|
+
import example from "./example.js";
|
|
3
|
+
import { runOverlayCustomizationExample } from "./overlay-customization.js";
|
|
4
|
+
import { composeTenantWorkflowExample, logTenantWorkflowSteps } from "./workflow-extension.js";
|
|
5
|
+
export { composeTenantWorkflowExample, example, logTenantWorkflowSteps, runBehaviorTrackingExample, runOverlayCustomizationExample };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { runBehaviorTrackingExample } from "./behavior-tracking.js";
|
|
2
|
+
import example_default from "./example.js";
|
|
3
|
+
import { runOverlayCustomizationExample } from "./overlay-customization.js";
|
|
4
|
+
import { composeTenantWorkflowExample, logTenantWorkflowSteps } from "./workflow-extension.js";
|
|
5
|
+
import "./docs/index.js";
|
|
6
|
+
|
|
7
|
+
export { composeTenantWorkflowExample, example_default as example, logTenantWorkflowSteps, runBehaviorTrackingExample, runOverlayCustomizationExample };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region ../../libs/contracts/src/app-config/branding.d.ts
|
|
2
|
+
interface BrandingAssetRef {
|
|
3
|
+
type: 'logo' | 'logo-dark' | 'favicon' | 'og-image';
|
|
4
|
+
url?: string;
|
|
5
|
+
dimensions?: {
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
interface BrandingDefaults {
|
|
11
|
+
appNameKey: string;
|
|
12
|
+
assets?: BrandingAssetRef[];
|
|
13
|
+
colorTokens?: {
|
|
14
|
+
primary?: string;
|
|
15
|
+
secondary?: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { BrandingDefaults };
|
|
20
|
+
//# sourceMappingURL=branding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branding.d.ts","names":[],"sources":["../../../../../../../libs/contracts/src/app-config/branding.ts"],"sourcesContent":[],"mappings":";UAAiB,gBAAA;EAAA,IAAA,EAAA,MAAA,GAAA,WAAgB,GAAA,SAAA,GAAA,UAAA;EAMhB,GAAA,CAAA,EAAA,MAAA;;;;;;UAAA,gBAAA;;WAEN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./spec.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../features/index.js";
|
|
2
|
+
import "../data-views/index.js";
|
|
3
|
+
import "../workflow/spec.js";
|
|
4
|
+
import "../policy/registry.js";
|
|
5
|
+
import "../themes.js";
|
|
6
|
+
import "../integrations/spec.js";
|
|
7
|
+
import "../integrations/connection.js";
|
|
8
|
+
import "../knowledge/spec.js";
|
|
9
|
+
import "./spec.js";
|