@lssm/example.integration-stripe 0.0.0-canary-20251217063201 → 0.0.0-canary-20251217073102

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 (42) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +40 -40
  2. package/CHANGELOG.md +3 -2
  3. package/dist/blueprint.js +65 -1
  4. package/dist/connection.sample.js +21 -1
  5. package/dist/docs/index.js +1 -1
  6. package/dist/docs/integration-stripe.docblock.js +28 -13
  7. package/dist/example.js +39 -1
  8. package/dist/index.js +8 -1
  9. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +16 -76
  10. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +16 -350
  11. package/dist/libs/contracts/dist/docs/index.js +29 -1
  12. package/dist/libs/contracts/dist/docs/presentations.js +71 -1
  13. package/dist/libs/contracts/dist/docs/registry.js +44 -1
  14. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +16 -383
  15. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +16 -68
  16. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +16 -140
  17. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +16 -86
  18. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +16 -1
  19. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +24 -2
  20. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +21 -2
  21. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +16 -213
  22. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +73 -5
  23. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +37 -1
  24. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +16 -1
  25. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +20 -262
  26. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +48 -1
  27. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +24 -2
  28. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +23 -2
  29. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +25 -16
  30. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +67 -1
  31. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +22 -2
  32. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +40 -36
  33. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +47 -1
  34. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +23 -2
  35. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +36 -3
  36. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +20 -1
  37. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +36 -3
  38. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +20 -1
  39. package/dist/libs/contracts/dist/ownership.js +38 -1
  40. package/dist/tenant.js +52 -1
  41. package/dist/workflow.js +58 -1
  42. package/package.json +5 -4
@@ -7,45 +7,45 @@
7
7
  ℹ tsconfig: tsconfig.json
8
8
  ℹ Build start
9
9
  ℹ Cleaning 60 files
10
- ℹ dist/docs/integration-stripe.docblock.js  1.41 kB │ gzip: 0.67 kB
11
- ℹ dist/blueprint.js  1.31 kB │ gzip: 0.62 kB
12
- ℹ dist/tenant.js  0.97 kB │ gzip: 0.52 kB
13
- ℹ dist/workflow.js  0.93 kB │ gzip: 0.46 kB
14
- ℹ dist/example.js  0.62 kB │ gzip: 0.37 kB
15
- ℹ dist/connection.sample.js  0.43 kB │ gzip: 0.28 kB
16
- ℹ dist/index.js  0.41 kB │ gzip: 0.20 kB
10
+ ℹ dist/blueprint.js  1.65 kB │ gzip: 0.71 kB
11
+ ℹ dist/docs/integration-stripe.docblock.js  1.59 kB │ gzip: 0.73 kB
12
+ ℹ dist/workflow.js  1.29 kB │ gzip: 0.55 kB
13
+ ℹ dist/tenant.js  1.25 kB │ gzip: 0.61 kB
14
+ ℹ dist/example.js  0.84 kB │ gzip: 0.45 kB
15
+ ℹ dist/connection.sample.js  0.56 kB │ gzip: 0.33 kB
16
+ ℹ dist/index.js  0.44 kB │ gzip: 0.20 kB
17
17
  ℹ dist/docs/index.js  0.04 kB │ gzip: 0.06 kB
18
- ℹ dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js 16.51 kB │ gzip: 7.15 kB
19
- ℹ dist/libs/contracts/dist/docs/tech/schema/README.docblock.js 10.97 kB │ gzip: 4.28 kB
20
- ℹ dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js  9.65 kB │ gzip: 3.77 kB
21
- ℹ dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js  9.10 kB │ gzip: 3.41 kB
22
- ℹ dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js  8.74 kB │ gzip: 2.67 kB
23
- ℹ dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js  5.91 kB │ gzip: 2.61 kB
24
- ℹ dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js  5.62 kB │ gzip: 2.58 kB
25
- ℹ dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js  5.42 kB │ gzip: 2.25 kB
26
- ℹ dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js  4.35 kB │ gzip: 2.05 kB
27
- ℹ dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js  3.89 kB │ gzip: 1.69 kB
28
- ℹ dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js  3.58 kB │ gzip: 1.38 kB
29
- ℹ dist/libs/contracts/dist/docs/PUBLISHING.docblock.js  3.42 kB │ gzip: 1.58 kB
30
- ℹ dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js  3.34 kB │ gzip: 1.45 kB
31
- ℹ dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js  3.07 kB │ gzip: 1.38 kB
32
- ℹ dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js  3.03 kB │ gzip: 1.32 kB
33
- ℹ dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js  2.98 kB │ gzip: 1.52 kB
34
- ℹ dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js  2.81 kB │ gzip: 1.41 kB
35
- ℹ dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js  2.73 kB │ gzip: 1.30 kB
36
- ℹ dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js  2.49 kB │ gzip: 1.11 kB
37
- ℹ dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js  2.13 kB │ gzip: 1.03 kB
38
- ℹ dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js  1.89 kB │ gzip: 0.93 kB
39
- ℹ dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js  1.78 kB │ gzip: 0.87 kB
40
- ℹ dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js  1.70 kB │ gzip: 0.89 kB
41
- ℹ dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js  1.57 kB │ gzip: 0.77 kB
42
- ℹ dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js  1.47 kB │ gzip: 0.73 kB
43
- ℹ dist/libs/contracts/dist/docs/index.js  1.42 kB │ gzip: 0.47 kB
44
- ℹ dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js  1.23 kB │ gzip: 0.68 kB
45
- ℹ dist/libs/contracts/dist/docs/presentations.js  1.14 kB │ gzip: 0.56 kB
46
- ℹ dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js  0.89 kB │ gzip: 0.55 kB
47
- ℹ dist/libs/contracts/dist/ownership.js  0.69 kB │ gzip: 0.38 kB
48
- ℹ dist/libs/contracts/dist/docs/registry.js  0.63 kB │ gzip: 0.39 kB
18
+ ℹ dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js 16.91 kB │ gzip: 7.23 kB
19
+ ℹ dist/libs/contracts/dist/docs/tech/schema/README.docblock.js 11.21 kB │ gzip: 4.33 kB
20
+ ℹ dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js  9.96 kB │ gzip: 3.83 kB
21
+ ℹ dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js  9.53 kB │ gzip: 3.50 kB
22
+ ℹ dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js  9.22 kB │ gzip: 2.77 kB
23
+ ℹ dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js  6.16 kB │ gzip: 2.65 kB
24
+ ℹ dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js  5.85 kB │ gzip: 2.66 kB
25
+ ℹ dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js  5.66 kB │ gzip: 2.34 kB
26
+ ℹ dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js  4.62 kB │ gzip: 2.13 kB
27
+ ℹ dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js  4.16 kB │ gzip: 1.78 kB
28
+ ℹ dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js  3.85 kB │ gzip: 1.47 kB
29
+ ℹ dist/libs/contracts/dist/docs/PUBLISHING.docblock.js  3.62 kB │ gzip: 1.65 kB
30
+ ℹ dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js  3.60 kB │ gzip: 1.53 kB
31
+ ℹ dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js  3.33 kB │ gzip: 1.47 kB
32
+ ℹ dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js  3.30 kB │ gzip: 1.42 kB
33
+ ℹ dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js  3.25 kB │ gzip: 1.59 kB
34
+ ℹ dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js  3.13 kB │ gzip: 1.47 kB
35
+ ℹ dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js  2.97 kB │ gzip: 1.38 kB
36
+ ℹ dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js  2.75 kB │ gzip: 1.22 kB
37
+ ℹ dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js  2.40 kB │ gzip: 1.13 kB
38
+ ℹ dist/libs/contracts/dist/docs/presentations.js  2.18 kB │ gzip: 0.77 kB
39
+ ℹ dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js  2.13 kB │ gzip: 1.02 kB
40
+ ℹ dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js  2.04 kB │ gzip: 0.97 kB
41
+ ℹ dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js  1.96 kB │ gzip: 0.97 kB
42
+ ℹ dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js  1.85 kB │ gzip: 0.87 kB
43
+ ℹ dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js  1.73 kB │ gzip: 0.82 kB
44
+ ℹ dist/libs/contracts/dist/docs/index.js  1.58 kB │ gzip: 0.51 kB
45
+ ℹ dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js  1.46 kB │ gzip: 0.77 kB
46
+ ℹ dist/libs/contracts/dist/docs/registry.js  1.25 kB │ gzip: 0.56 kB
47
+ ℹ dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js  1.14 kB │ gzip: 0.65 kB
48
+ ℹ dist/libs/contracts/dist/ownership.js  0.91 kB │ gzip: 0.46 kB
49
49
  ℹ dist/example.d.ts  1.08 kB │ gzip: 0.45 kB
50
50
  ℹ dist/index.d.ts  0.39 kB │ gzip: 0.17 kB
51
51
  ℹ dist/connection.sample.d.ts  0.23 kB │ gzip: 0.15 kB
@@ -54,5 +54,5 @@
54
54
  ℹ dist/workflow.d.ts  0.19 kB │ gzip: 0.14 kB
55
55
  ℹ dist/docs/index.d.ts  0.01 kB │ gzip: 0.03 kB
56
56
  ℹ dist/docs/integration-stripe.docblock.d.ts  0.01 kB │ gzip: 0.03 kB
57
- ℹ 47 files, total: 132.59 kB
58
- ✔ Build complete in 6163ms
57
+ ℹ 47 files, total: 143.68 kB
58
+ ✔ Build complete in 1177ms
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lssm/example.integration-stripe
2
2
 
3
- ## 0.0.0-canary-20251217063201
3
+ ## 0.0.0-canary-20251217073102
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -9,4 +9,5 @@
9
9
  ### Patch Changes
10
10
 
11
11
  - Updated dependencies [66a5dfd]
12
- - @lssm/lib.contracts@0.0.0-canary-20251217063201
12
+ - @lssm/lib.contracts@0.0.0-canary-20251217073102
13
+ - @lssm/lib.schema@0.0.0-canary-20251217073102
package/dist/blueprint.js CHANGED
@@ -1 +1,65 @@
1
- import{e,r as t,t as n}from"./libs/contracts/dist/ownership.js";const r={meta:{name:`artisan.payments.stripe`,version:1,appId:`artisan`,title:`ArtisanOS Stripe Payments`,description:`Blueprint enabling card payments for ArtisanOS merchants via the Stripe integration.`,domain:`payments`,owners:[n.ProductArtisanos],tags:[t.Marketplace,`stripe`,`payments`],stability:e.Experimental},capabilities:{enabled:[{key:`payments.psp`,version:1}]},integrationSlots:[{slotId:`primary-payments`,requiredCategory:`payments`,allowedModes:[`managed`,`byok`],requiredCapabilities:[{key:`payments.psp`,version:1}],required:!0,description:`Primary card processor slot. Bind the tenant Stripe connection here.`}],branding:{appNameKey:`artisan.payments.appName`,assets:[{type:`logo`,url:`https://cdn.artisanos.dev/branding/logo.png`},{type:`favicon`,url:`https://cdn.artisanos.dev/branding/favicon.ico`}],colorTokens:{primary:`colors.brand.primary`,secondary:`colors.brand.secondary`}},translationCatalog:{name:`artisan.payments.catalog`,version:1},workflows:{collectPayment:{name:`artisan.payments.collectPayment`,version:1}},policies:[{name:`artisan.payments.default`,version:1}],notes:`Install this blueprint and pair it with the Stripe integration connection to enable card collection.`};export{r as artisanStripeBlueprint};
1
+ import { OwnersEnum, StabilityEnum, TagsEnum } from "./libs/contracts/dist/ownership.js";
2
+
3
+ //#region src/blueprint.ts
4
+ const artisanStripeBlueprint = {
5
+ meta: {
6
+ name: "artisan.payments.stripe",
7
+ version: 1,
8
+ appId: "artisan",
9
+ title: "ArtisanOS Stripe Payments",
10
+ description: "Blueprint enabling card payments for ArtisanOS merchants via the Stripe integration.",
11
+ domain: "payments",
12
+ owners: [OwnersEnum.ProductArtisanos],
13
+ tags: [
14
+ TagsEnum.Marketplace,
15
+ "stripe",
16
+ "payments"
17
+ ],
18
+ stability: StabilityEnum.Experimental
19
+ },
20
+ capabilities: { enabled: [{
21
+ key: "payments.psp",
22
+ version: 1
23
+ }] },
24
+ integrationSlots: [{
25
+ slotId: "primary-payments",
26
+ requiredCategory: "payments",
27
+ allowedModes: ["managed", "byok"],
28
+ requiredCapabilities: [{
29
+ key: "payments.psp",
30
+ version: 1
31
+ }],
32
+ required: true,
33
+ description: "Primary card processor slot. Bind the tenant Stripe connection here."
34
+ }],
35
+ branding: {
36
+ appNameKey: "artisan.payments.appName",
37
+ assets: [{
38
+ type: "logo",
39
+ url: "https://cdn.artisanos.dev/branding/logo.png"
40
+ }, {
41
+ type: "favicon",
42
+ url: "https://cdn.artisanos.dev/branding/favicon.ico"
43
+ }],
44
+ colorTokens: {
45
+ primary: "colors.brand.primary",
46
+ secondary: "colors.brand.secondary"
47
+ }
48
+ },
49
+ translationCatalog: {
50
+ name: "artisan.payments.catalog",
51
+ version: 1
52
+ },
53
+ workflows: { collectPayment: {
54
+ name: "artisan.payments.collectPayment",
55
+ version: 1
56
+ } },
57
+ policies: [{
58
+ name: "artisan.payments.default",
59
+ version: 1
60
+ }],
61
+ notes: "Install this blueprint and pair it with the Stripe integration connection to enable card collection."
62
+ };
63
+
64
+ //#endregion
65
+ export { artisanStripeBlueprint };
@@ -1 +1,21 @@
1
- const e={meta:{id:`conn-stripe-live`,tenantId:`artisan-co`,integrationKey:`payments.stripe`,integrationVersion:1,label:`Stripe Production`,environment:`production`,createdAt:`2026-01-01T00:00:00.000Z`,updatedAt:`2026-01-01T00:00:00.000Z`},ownershipMode:`managed`,config:{accountId:`acct_xxx`},secretProvider:`vault`,secretRef:`vault://integrations/artisan-co/conn-stripe-live`,status:`connected`};export{e as stripeLiveConnection};
1
+ //#region src/connection.sample.ts
2
+ const stripeLiveConnection = {
3
+ meta: {
4
+ id: "conn-stripe-live",
5
+ tenantId: "artisan-co",
6
+ integrationKey: "payments.stripe",
7
+ integrationVersion: 1,
8
+ label: "Stripe Production",
9
+ environment: "production",
10
+ createdAt: "2026-01-01T00:00:00.000Z",
11
+ updatedAt: "2026-01-01T00:00:00.000Z"
12
+ },
13
+ ownershipMode: "managed",
14
+ config: { accountId: "acct_xxx" },
15
+ secretProvider: "vault",
16
+ secretRef: "vault://integrations/artisan-co/conn-stripe-live",
17
+ status: "connected"
18
+ };
19
+
20
+ //#endregion
21
+ export { stripeLiveConnection };
@@ -1 +1 @@
1
- import"./integration-stripe.docblock.js";
1
+ import "./integration-stripe.docblock.js";
@@ -1,15 +1,30 @@
1
- import{a as e}from"../libs/contracts/dist/docs/registry.js";import"../libs/contracts/dist/docs/index.js";e([{id:`docs.examples.integration-stripe`,title:`Integration Example — Stripe Payments`,summary:`How to wire IntegrationSpec/TenantAppConfig + blueprint + workflow to enable Stripe-backed payments.`,kind:`reference`,visibility:`public`,route:`/docs/examples/integration-stripe`,tags:[`stripe`,`payments`,`integrations`,`example`],body:`## Included
2
- - App blueprint enabling \`payments.psp\` capability.
3
- - Workflow invoking Stripe operations (prepare → charge → confirm).
4
- - Tenant app config binding workflow to an IntegrationConnection.
1
+ import { registerDocBlocks } from "../libs/contracts/dist/docs/registry.js";
2
+ import "../libs/contracts/dist/docs/index.js";
5
3
 
6
- ## Notes
7
- - Secrets live in secret providers; connection config is non-secret.
8
- - Use \`ctx.resolvedAppConfig\` in operation executors to access integrations, branding, and translations.`},{id:`docs.examples.integration-stripe.usage`,title:`Stripe Integration Example — Usage`,summary:`How to use the blueprint, workflow, and tenant config together.`,kind:`usage`,visibility:`public`,route:`/docs/examples/integration-stripe/usage`,tags:[`stripe`,`usage`],body:`## Usage
9
- 1) Register the blueprint + workflow + catalog in your registry.
10
- 2) Persist an IntegrationConnection (see connection sample).
11
- 3) Bind the tenant app config to the connection.
4
+ //#region src/docs/integration-stripe.docblock.ts
5
+ registerDocBlocks([{
6
+ id: "docs.examples.integration-stripe",
7
+ title: "Integration Example Stripe Payments",
8
+ summary: "How to wire IntegrationSpec/TenantAppConfig + blueprint + workflow to enable Stripe-backed payments.",
9
+ kind: "reference",
10
+ visibility: "public",
11
+ route: "/docs/examples/integration-stripe",
12
+ tags: [
13
+ "stripe",
14
+ "payments",
15
+ "integrations",
16
+ "example"
17
+ ],
18
+ body: `## Included\n- App blueprint enabling \`payments.psp\` capability.\n- Workflow invoking Stripe operations (prepare → charge → confirm).\n- Tenant app config binding workflow to an IntegrationConnection.\n\n## Notes\n- Secrets live in secret providers; connection config is non-secret.\n- Use \`ctx.resolvedAppConfig\` in operation executors to access integrations, branding, and translations.`
19
+ }, {
20
+ id: "docs.examples.integration-stripe.usage",
21
+ title: "Stripe Integration Example — Usage",
22
+ summary: "How to use the blueprint, workflow, and tenant config together.",
23
+ kind: "usage",
24
+ visibility: "public",
25
+ route: "/docs/examples/integration-stripe/usage",
26
+ tags: ["stripe", "usage"],
27
+ body: `## Usage\n1) Register the blueprint + workflow + catalog in your registry.\n2) Persist an IntegrationConnection (see connection sample).\n3) Bind the tenant app config to the connection.\n\n## Guardrails\n- Never log secrets.\n- Keep payment semantics spec-defined; gate breaking changes behind flags.`
28
+ }]);
12
29
 
13
- ## Guardrails
14
- - Never log secrets.
15
- - Keep payment semantics spec-defined; gate breaking changes behind flags.`}]);
30
+ //#endregion
package/dist/example.js CHANGED
@@ -1 +1,39 @@
1
- var e={id:`integration-stripe`,title:`Integration — Stripe Payments`,summary:`Wire AppBlueprint + Workflow + TenantAppConfig to enable Stripe-backed payments (spec-first integration pattern).`,tags:[`stripe`,`payments`,`integration`,`blueprint`,`workflow`],kind:`integration`,visibility:`public`,docs:{rootDocId:`docs.examples.integration-stripe`,usageDocId:`docs.examples.integration-stripe.usage`},entrypoints:{packageName:`@lssm/example.integration-stripe`,docs:`./docs`},surfaces:{templates:!0,sandbox:{enabled:!0,modes:[`markdown`,`specs`]},studio:{enabled:!0,installable:!0},mcp:{enabled:!0}}};export{e as default};
1
+ //#region src/example.ts
2
+ const example = {
3
+ id: "integration-stripe",
4
+ title: "Integration — Stripe Payments",
5
+ summary: "Wire AppBlueprint + Workflow + TenantAppConfig to enable Stripe-backed payments (spec-first integration pattern).",
6
+ tags: [
7
+ "stripe",
8
+ "payments",
9
+ "integration",
10
+ "blueprint",
11
+ "workflow"
12
+ ],
13
+ kind: "integration",
14
+ visibility: "public",
15
+ docs: {
16
+ rootDocId: "docs.examples.integration-stripe",
17
+ usageDocId: "docs.examples.integration-stripe.usage"
18
+ },
19
+ entrypoints: {
20
+ packageName: "@lssm/example.integration-stripe",
21
+ docs: "./docs"
22
+ },
23
+ surfaces: {
24
+ templates: true,
25
+ sandbox: {
26
+ enabled: true,
27
+ modes: ["markdown", "specs"]
28
+ },
29
+ studio: {
30
+ enabled: true,
31
+ installable: true
32
+ },
33
+ mcp: { enabled: true }
34
+ }
35
+ };
36
+ var example_default = example;
37
+
38
+ //#endregion
39
+ export { example_default as default };
package/dist/index.js CHANGED
@@ -1 +1,8 @@
1
- import{artisanStripeBlueprint as e}from"./blueprint.js";import{stripeLiveConnection as t}from"./connection.sample.js";import n from"./example.js";import{collectPaymentWorkflow as r}from"./workflow.js";import{artisanStripeTenantConfig as i}from"./tenant.js";import"./docs/index.js";export{e as artisanStripeBlueprint,i as artisanStripeTenantConfig,r as collectPaymentWorkflow,n as example,t as stripeLiveConnection};
1
+ import { artisanStripeBlueprint } from "./blueprint.js";
2
+ import { stripeLiveConnection } from "./connection.sample.js";
3
+ import example_default from "./example.js";
4
+ import { collectPaymentWorkflow } from "./workflow.js";
5
+ import { artisanStripeTenantConfig } from "./tenant.js";
6
+ import "./docs/index.js";
7
+
8
+ export { artisanStripeBlueprint, artisanStripeTenantConfig, collectPaymentWorkflow, example_default as example, stripeLiveConnection };
@@ -1,76 +1,16 @@
1
- import{a as e}from"./registry.js";e([{id:`docs.PUBLISHING`,title:`Publishing ContractSpec Libraries`,summary:`This guide describes how we release the ContractSpec libraries to npm. We use a dual-track release system: **Stable** (manual) and **Canary** (automatic).`,kind:`reference`,visibility:`public`,route:`/docs/PUBLISHING`,tags:[`PUBLISHING`],body:`# Publishing ContractSpec Libraries
2
-
3
- This guide describes how we release the ContractSpec libraries to npm. We use a dual-track release system: **Stable** (manual) and **Canary** (automatic).
4
-
5
- ## Release Tracks
6
-
7
- | Track | Branch | npm Tag | Frequency | Versioning | Use Case |
8
- |-------|--------|---------|-----------|------------|----------|
9
- | **Stable** | \`release\` | \`latest\` | Manual | SemVer (e.g., \`1.7.4\`) | Production, external users |
10
- | **Canary** | \`main\` | \`canary\` | Every Push | Snapshot (e.g., \`1.7.4-canary...\`) | Dev, internal testing |
11
-
12
- ## Prerequisites
13
-
14
- - ✅ \`NPM_TOKEN\` secret is configured in GitHub (owner or automation token with _publish_ scope).
15
- - ✅ \`GITHUB_TOKEN\` (built-in) has permissions to create PRs (enabled by default in new repos).
16
- - ✅ For stable releases: \`release\` branch exists and is protected.
17
-
18
- ## Canary Workflow (Automatic)
19
-
20
- Every commit pushed to \`main\` triggers the \`.github/workflows/publish-canary.yml\` workflow.
21
-
22
- 1. **Trigger**: Push to \`main\`.
23
- 2. **Versioning**: Runs \`changeset version --snapshot canary\` to generate a temporary snapshot version.
24
- 3. **Publish**: Packages are published to npm with the \`canary\` tag using \`changeset publish --tag canary\`.
25
-
26
- ### Consuming Canary Builds
27
-
28
- To install the latest bleeding-edge version:
29
-
30
- \`\`\`bash
31
- npm install @lssm/lib.contracts@canary
32
- # or
33
- bun add @lssm/lib.contracts@canary
34
- \`\`\`
35
-
36
- ## Stable Release Workflow (Manual)
37
-
38
- Stable releases are managed via the \`release\` branch using the standard [Changesets Action](https://github.com/changesets/action).
39
-
40
- 1. **Develop on \`main\`**: Create features and fixes.
41
- 2. **Add Changesets**: Run \`bun changeset\` to document changes and impact (major/minor/patch).
42
- 3. **Merge to \`release\`**: When ready to ship, open a PR from \`main\` to \`release\` or merge manually.
43
- 4. **"Version Packages" PR**:
44
- - The GitHub Action detects new changesets and automatically creates a Pull Request titled **"Version Packages"**.
45
- - This PR contains the version bumps and updated \`CHANGELOG.md\` files.
46
- 5. **Merge & Publish**:
47
- - Review and merge the "Version Packages" PR.
48
- - The Action runs again, detects the versions have been bumped, builds the libraries, and publishes them to npm with the \`latest\` tag.
49
-
50
- ### Publishing Steps
51
-
52
- 1. Ensure all changesets are present on \`main\`.
53
- 2. Merge \`main\` into \`release\`:
54
- \`\`\`bash
55
- git checkout release
56
- git pull origin release
57
- git merge main
58
- git push origin release
59
- \`\`\`
60
- 3. Go to GitHub Pull Requests. You will see a **"Version Packages"** PR created by the bot.
61
- 4. Merge that PR.
62
- 5. The release is now live on npm!
63
-
64
- ## Manual Verification (Optional)
65
-
66
- Before publishing a new version you can run:
67
-
68
- \`\`\`bash
69
- bun run build:not-apps
70
- npx npm-packlist --json packages/libs/contracts
71
- \`\`\`
72
-
73
- ## Rollback
74
-
75
- If a publish fails mid-way, re-run the workflow once the issue is fixed. Already published packages are skipped automatically. Use \`npm deprecate <package>@<version>\` if we need to warn consumers about a broken release.
76
- `}]);
1
+ import { registerDocBlocks } from "./registry.js";
2
+
3
+ //#region ../../libs/contracts/dist/docs/PUBLISHING.docblock.js
4
+ const PUBLISHING_DocBlocks = [{
5
+ id: "docs.PUBLISHING",
6
+ title: "Publishing ContractSpec Libraries",
7
+ summary: "This guide describes how we release the ContractSpec libraries to npm. We use a dual-track release system: **Stable** (manual) and **Canary** (automatic).",
8
+ kind: "reference",
9
+ visibility: "public",
10
+ route: "/docs/PUBLISHING",
11
+ tags: ["PUBLISHING"],
12
+ body: "# Publishing ContractSpec Libraries\n\nThis guide describes how we release the ContractSpec libraries to npm. We use a dual-track release system: **Stable** (manual) and **Canary** (automatic).\n\n## Release Tracks\n\n| Track | Branch | npm Tag | Frequency | Versioning | Use Case |\n|-------|--------|---------|-----------|------------|----------|\n| **Stable** | `release` | `latest` | Manual | SemVer (e.g., `1.7.4`) | Production, external users |\n| **Canary** | `main` | `canary` | Every Push | Snapshot (e.g., `1.7.4-canary...`) | Dev, internal testing |\n\n## Prerequisites\n\n- ✅ `NPM_TOKEN` secret is configured in GitHub (owner or automation token with _publish_ scope).\n- ✅ `GITHUB_TOKEN` (built-in) has permissions to create PRs (enabled by default in new repos).\n- ✅ For stable releases: `release` branch exists and is protected.\n\n## Canary Workflow (Automatic)\n\nEvery commit pushed to `main` triggers the `.github/workflows/publish-canary.yml` workflow.\n\n1. **Trigger**: Push to `main`.\n2. **Versioning**: Runs `changeset version --snapshot canary` to generate a temporary snapshot version.\n3. **Publish**: Packages are published to npm with the `canary` tag using `changeset publish --tag canary`.\n\n### Consuming Canary Builds\n\nTo install the latest bleeding-edge version:\n\n```bash\nnpm install @lssm/lib.contracts@canary\n# or\nbun add @lssm/lib.contracts@canary\n```\n\n## Stable Release Workflow (Manual)\n\nStable releases are managed via the `release` branch using the standard [Changesets Action](https://github.com/changesets/action).\n\n1. **Develop on `main`**: Create features and fixes.\n2. **Add Changesets**: Run `bun changeset` to document changes and impact (major/minor/patch).\n3. **Merge to `release`**: When ready to ship, open a PR from `main` to `release` or merge manually.\n4. **\"Version Packages\" PR**:\n - The GitHub Action detects new changesets and automatically creates a Pull Request titled **\"Version Packages\"**.\n - This PR contains the version bumps and updated `CHANGELOG.md` files.\n5. **Merge & Publish**:\n - Review and merge the \"Version Packages\" PR.\n - The Action runs again, detects the versions have been bumped, builds the libraries, and publishes them to npm with the `latest` tag.\n\n### Publishing Steps\n\n1. Ensure all changesets are present on `main`.\n2. Merge `main` into `release`:\n ```bash\n git checkout release\n git pull origin release\n git merge main\n git push origin release\n ```\n3. Go to GitHub Pull Requests. You will see a **\"Version Packages\"** PR created by the bot.\n4. Merge that PR.\n5. The release is now live on npm!\n\n## Manual Verification (Optional)\n\nBefore publishing a new version you can run:\n\n```bash\nbun run build:not-apps\nnpx npm-packlist --json packages/libs/contracts\n```\n\n## Rollback\n\nIf a publish fails mid-way, re-run the workflow once the issue is fixed. Already published packages are skipped automatically. Use `npm deprecate <package>@<version>` if we need to warn consumers about a broken release.\n"
13
+ }];
14
+ registerDocBlocks(PUBLISHING_DocBlocks);
15
+
16
+ //#endregion