@contractspec/lib.support-bot 1.49.0 → 1.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,58 +2,161 @@ import { DocId } from "./docs/registry.js";
2
2
  import "./docs/index.js";
3
3
 
4
4
  //#region ../contracts/src/ownership.d.ts
5
+
6
+ /**
7
+ * Lifecycle stability stages for specs.
8
+ *
9
+ * Specs progress through these stages as they mature:
10
+ * - `idea`: Initial concept, not implemented
11
+ * - `in_creation`: Currently being built
12
+ * - `experimental`: Working but may change significantly
13
+ * - `beta`: Feature-complete, seeking feedback
14
+ * - `stable`: Production-ready, breaking changes require major version bump
15
+ * - `deprecated`: Scheduled for removal, use alternatives
16
+ */
5
17
  declare const StabilityEnum: {
18
+ /** Initial concept, not yet implemented. */
6
19
  readonly Idea: "idea";
20
+ /** Currently being built, not ready for use. */
7
21
  readonly InCreation: "in_creation";
22
+ /** Working but unstable, may change significantly. */
8
23
  readonly Experimental: "experimental";
24
+ /** Feature-complete, seeking feedback before stabilization. */
9
25
  readonly Beta: "beta";
26
+ /** Production-ready, follows semantic versioning. */
10
27
  readonly Stable: "stable";
28
+ /** Scheduled for removal, use alternatives. */
11
29
  readonly Deprecated: "deprecated";
12
30
  };
31
+ /** Stability level for a spec's lifecycle stage. */
13
32
  type Stability = (typeof StabilityEnum)[keyof typeof StabilityEnum];
33
+ /**
34
+ * Curated owner identifiers for business/product ownership.
35
+ *
36
+ * Used for CODEOWNERS, on-call routing, and approval workflows.
37
+ * Custom owner strings are also allowed for flexibility.
38
+ */
14
39
  declare const OwnersEnum: {
40
+ /** Core platform team. */
15
41
  readonly PlatformCore: "platform.core";
42
+ /** Sigil/auth team. */
16
43
  readonly PlatformSigil: "platform.sigil";
44
+ /** Marketplace team. */
17
45
  readonly PlatformMarketplace: "platform.marketplace";
46
+ /** Messaging/notifications team. */
18
47
  readonly PlatformMessaging: "platform.messaging";
48
+ /** Content/CMS team. */
19
49
  readonly PlatformContent: "platform.content";
50
+ /** Feature flags team. */
20
51
  readonly PlatformFeatureFlags: "platform.featureflags";
52
+ /** Finance/billing team. */
21
53
  readonly PlatformFinance: "platform.finance";
22
54
  };
55
+ /**
56
+ * Owner identifier for a spec.
57
+ * Can be a predefined OwnersEnum value or any custom string.
58
+ */
23
59
  type Owner = (typeof OwnersEnum)[keyof typeof OwnersEnum] | (string & {});
60
+ /**
61
+ * Common tags for categorizing specs.
62
+ *
63
+ * Used for search, grouping, and documentation navigation.
64
+ * Custom tag strings are also allowed for flexibility.
65
+ */
24
66
  declare const TagsEnum: {
67
+ /** Spots/locations domain. */
25
68
  readonly Spots: "spots";
69
+ /** Collectivity/community domain. */
26
70
  readonly Collectivity: "collectivity";
71
+ /** Marketplace domain. */
27
72
  readonly Marketplace: "marketplace";
73
+ /** Seller-related features. */
28
74
  readonly Sellers: "sellers";
75
+ /** Authentication features. */
29
76
  readonly Auth: "auth";
77
+ /** Login flows. */
30
78
  readonly Login: "login";
79
+ /** Signup flows. */
31
80
  readonly Signup: "signup";
81
+ /** Onboarding/guides. */
32
82
  readonly Guide: "guide";
83
+ /** Documentation. */
33
84
  readonly Docs: "docs";
85
+ /** Internationalization. */
34
86
  readonly I18n: "i18n";
87
+ /** Incident management. */
35
88
  readonly Incident: "incident";
89
+ /** Automation/workflows. */
36
90
  readonly Automation: "automation";
91
+ /** Code hygiene/maintenance. */
37
92
  readonly Hygiene: "hygiene";
38
93
  };
94
+ /**
95
+ * Tag for categorizing a spec.
96
+ * Can be a predefined TagsEnum value or any custom string.
97
+ */
39
98
  type Tag = (typeof TagsEnum)[keyof typeof TagsEnum] | (string & {});
99
+ /**
100
+ * Common metadata interface for all ContractSpec specifications.
101
+ *
102
+ * Every spec type (operations, events, presentations, etc.) extends this
103
+ * interface to provide consistent ownership, versioning, and discoverability.
104
+ *
105
+ * @example
106
+ * ```typescript
107
+ * const meta: OwnerShipMeta = {
108
+ * key: 'auth.login',
109
+ * version: '1.0.0',
110
+ * description: 'Authenticates a user with email and password',
111
+ * stability: StabilityEnum.Stable,
112
+ * owners: [OwnersEnum.PlatformSigil],
113
+ * tags: [TagsEnum.Auth, TagsEnum.Login],
114
+ * };
115
+ * ```
116
+ */
40
117
  interface OwnerShipMeta {
41
- /** Breaking changes => bump version */
118
+ /**
119
+ * Semantic version string (e.g., "1.0.0").
120
+ * Bump for breaking changes according to semver rules.
121
+ */
42
122
  version: string;
43
- /** Fully-qualified spec key (e.g., "sigil.beginSignup") */
123
+ /**
124
+ * Fully-qualified spec key (e.g., "sigil.beginSignup", "user.created").
125
+ * Must be unique within the spec type.
126
+ */
44
127
  key: string;
45
- /** Human-friendly spec title (e.g., "Signup begin") */
128
+ /**
129
+ * Human-friendly title (e.g., "Begin Signup").
130
+ * Used in documentation and UI.
131
+ */
46
132
  title?: string;
47
- /** Short human-friendly summary */
133
+ /**
134
+ * Short human-friendly summary of what this spec does.
135
+ * Should be concise (1-2 sentences).
136
+ */
48
137
  description: string;
138
+ /**
139
+ * Business domain this spec belongs to (e.g., "auth", "marketplace").
140
+ * Used for grouping and discovery.
141
+ */
49
142
  domain?: string;
50
- /** Lifecycle marker for comms & tooling */
143
+ /**
144
+ * Lifecycle stability marker.
145
+ * Indicates maturity level and change expectations.
146
+ */
51
147
  stability: Stability;
52
- /** Owners for CODEOWNERS / on-call / approvals */
148
+ /**
149
+ * Team/individual owners responsible for this spec.
150
+ * Used for CODEOWNERS, on-call routing, and approvals.
151
+ */
53
152
  owners: Owner[];
54
- /** Search tags, grouping, docs navigation */
153
+ /**
154
+ * Tags for search, grouping, and documentation navigation.
155
+ */
55
156
  tags: Tag[];
56
- /** Doc block(s) for this operation. */
157
+ /**
158
+ * Associated DocBlock identifiers for documentation linkage.
159
+ */
57
160
  docId?: DocId[];
58
161
  }
59
162
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"ownership.d.ts","names":[],"sources":["../../../../contracts/src/ownership.ts"],"sourcesContent":[],"mappings":";;;;cAIa;;;EAAA,SAAA,YAOH,EAAA,cAAA;EACE,SAAA,IAAS,EAAA,MAAA;EAGR,SAAA,MAQH,EAAA,QAAA;EACE,SAAK,UAAA,EACL,YAAyB;AAMrC,CAAA;AAeY,KAlCA,SAAA,GAkCc,CAAA,OAlCM,aAkCyB,CAAA,CAAA,MAAA,OAlCG,aAkCH,CAAA;AAIxC,cAnCJ,UAmCiB,EAAA;EAWjB,SAAA,YAAA,EAAA,eAAA;EAEH,SAAA,aAAA,EAAA,gBAAA;EAEF,SAAA,mBAAA,EAAA,sBAAA;EAGE,SAAA,iBAAA,EAAA,oBAAA;EAAK,SAAA,eAAA,EAAA,kBAAA;;;;KA5CH,KAAA,WACA,yBAAyB;cAMxB;;;;;;;;;;;;;;;KAeD,GAAA,WAAc,uBAAuB;UAIhC,aAAA;;;;;;;;;;;aAWJ;;UAEH;;QAEF;;UAGE"}
1
+ {"version":3,"file":"ownership.d.ts","names":[],"sources":["../../../../contracts/src/ownership.ts"],"sourcesContent":[],"mappings":";;;;;AA6HA;AA2BA;;;;;;;;;;cA9Ha;;;;;;;;;;;;;;;KAgBD,SAAA,WAAoB,4BAA4B;;;;;;;cAY/C;;;;;;;;;;;;;;;;;;;;KAqBD,KAAA,WACA,yBAAyB;;;;;;;cAgBxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiCD,GAAA,WAAc,uBAAuB;;;;;;;;;;;;;;;;;;;UA2BhC,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAmCJ;;;;;UAMH;;;;QAKF;;;;UAKE"}
@@ -1,11 +1,13 @@
1
1
  import "../ownership.js";
2
+ import { VersionedSpecRef } from "../versioning/refs.js";
2
3
 
3
4
  //#region ../contracts/src/policy/spec.d.ts
4
5
 
5
- interface PolicyRef {
6
- key: string;
7
- version: string;
8
- }
6
+ /**
7
+ * Reference to a policy spec.
8
+ * Uses key and version to identify a specific policy.
9
+ */
10
+ type PolicyRef = VersionedSpecRef;
9
11
  //#endregion
10
12
  export { PolicyRef };
11
13
  //# sourceMappingURL=spec.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"spec.d.ts","names":[],"sources":["../../../../../contracts/src/policy/spec.ts"],"sourcesContent":[],"mappings":";;;;UAmHiB,SAAA"}
1
+ {"version":3,"file":"spec.d.ts","names":[],"sources":["../../../../../contracts/src/policy/spec.ts"],"sourcesContent":[],"mappings":";;;;;;;;;KAyHY,SAAA,GAAY"}
@@ -0,0 +1,28 @@
1
+ //#region ../contracts/src/versioning/refs.d.ts
2
+ /**
3
+ * Base reference types for ContractSpec versioning.
4
+ *
5
+ * Provides canonical reference types for linking between specs.
6
+ * Domain-specific refs (OpRef, EventRef, etc.) should alias these
7
+ * base types for consistency and maintainability.
8
+ *
9
+ * @module versioning/refs
10
+ */
11
+ /**
12
+ * Base reference type for versioned specs.
13
+ * Used to reference any spec by its key and version.
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ * const opRef: VersionedSpecRef = { key: 'auth.login', version: '1.0.0' };
18
+ * ```
19
+ */
20
+ interface VersionedSpecRef {
21
+ /** Unique key identifying the spec (e.g., "auth.login", "user.created"). */
22
+ key: string;
23
+ /** Semantic version of the spec (e.g., "1.0.0", "2.1.0"). */
24
+ version: string;
25
+ }
26
+ //#endregion
27
+ export { VersionedSpecRef };
28
+ //# sourceMappingURL=refs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refs.d.ts","names":[],"sources":["../../../../../contracts/src/versioning/refs.ts"],"sourcesContent":[],"mappings":";;AAuBA;;;;;;;;;;;;;;;;;UAAiB,gBAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/lib.support-bot",
3
- "version": "1.49.0",
3
+ "version": "1.50.0",
4
4
  "description": "AI support bot framework with RAG and ticket management",
5
5
  "keywords": [
6
6
  "contractspec",
@@ -31,15 +31,15 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@ai-sdk/provider-utils": "^4.0.4",
34
- "@contractspec/lib.ai-agent": "1.49.0",
35
- "@contractspec/lib.contracts": "1.49.0",
36
- "@contractspec/lib.knowledge": "1.49.0",
37
- "@contractspec/lib.schema": "1.49.0",
34
+ "@contractspec/lib.ai-agent": "1.50.0",
35
+ "@contractspec/lib.contracts": "1.50.0",
36
+ "@contractspec/lib.knowledge": "1.50.0",
37
+ "@contractspec/lib.schema": "1.50.0",
38
38
  "zod": "^4.3.5"
39
39
  },
40
40
  "devDependencies": {
41
- "@contractspec/tool.tsdown": "1.49.0",
42
- "@contractspec/tool.typescript": "1.49.0",
41
+ "@contractspec/tool.tsdown": "1.50.0",
42
+ "@contractspec/tool.typescript": "1.50.0",
43
43
  "tsdown": "^0.19.0",
44
44
  "typescript": "^5.9.3"
45
45
  },