@guinetik/primitives-ts 0.2.8 → 0.2.9

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/README.md CHANGED
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Chat types for Claude AI integration in Guinetik Admin Panel
3
+ * Based on feature spec from TL agent grooming
4
+ */
5
+ /**
6
+ * Available Claude models for chat
7
+ */
8
+ export declare enum ClaudeModel {
9
+ HAIKU_3_5 = "claude-3-5-haiku-20241022",
10
+ SONNET_3_7 = "claude-3-7-sonnet-20250219",
11
+ SONNET_4 = "claude-sonnet-4-20250514",
12
+ OPUS_4 = "claude-opus-4-20250514"
13
+ }
14
+ /**
15
+ * Chat session document stored in Firestore
16
+ */
17
+ export interface ChatSession {
18
+ id: string;
19
+ userId: string;
20
+ createdAt: Date;
21
+ updatedAt: Date;
22
+ title?: string;
23
+ model: string;
24
+ }
25
+ /**
26
+ * Chat message document stored in Firestore
27
+ */
28
+ export interface ChatMessage {
29
+ id: string;
30
+ sessionId: string;
31
+ role: 'user' | 'assistant';
32
+ content: string;
33
+ timestamp: Date;
34
+ model: string;
35
+ }
36
+ /**
37
+ * Request payload for sending a chat message
38
+ */
39
+ export interface SendChatMessageRequest {
40
+ sessionId?: string;
41
+ message: string;
42
+ model: string;
43
+ }
44
+ /**
45
+ * Response from sending a chat message
46
+ */
47
+ export interface SendChatMessageResponse {
48
+ sessionId: string;
49
+ response: string;
50
+ messageId: string;
51
+ }
52
+ /**
53
+ * Request payload for creating a new chat session
54
+ */
55
+ export interface CreateChatSessionRequest {
56
+ model: string;
57
+ }
58
+ /**
59
+ * Response from creating a new chat session
60
+ */
61
+ export interface CreateChatSessionResponse {
62
+ sessionId: string;
63
+ }
64
+ /**
65
+ * Response for listing chat sessions
66
+ */
67
+ export interface ListChatSessionsResponse {
68
+ sessions: ChatSession[];
69
+ }
70
+ /**
71
+ * Response for listing messages in a session
72
+ */
73
+ export interface ListChatMessagesResponse {
74
+ messages: ChatMessage[];
75
+ }
76
+ /**
77
+ * Model information for the models endpoint
78
+ */
79
+ export interface ChatModel {
80
+ id: string;
81
+ name: string;
82
+ description: string;
83
+ }
84
+ /**
85
+ * Response for listing available models
86
+ */
87
+ export interface ListChatModelsResponse {
88
+ models: ChatModel[];
89
+ }
90
+ /**
91
+ * Chat service configuration
92
+ */
93
+ export interface ChatConfig {
94
+ maxTokens: number;
95
+ systemPrompt: string;
96
+ rateLimitRpm: number;
97
+ maxMessageLength: number;
98
+ }
99
+ //# sourceMappingURL=chat.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat.types.d.ts","sourceRoot":"","sources":["../src/chat.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,oBAAY,WAAW;IACrB,SAAS,8BAA8B;IACvC,UAAU,+BAA+B;IACzC,QAAQ,6BAA6B;IACrC,MAAM,2BAA2B;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,WAAW,EAAE,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,WAAW,EAAE,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ /**
3
+ * Chat types for Claude AI integration in Guinetik Admin Panel
4
+ * Based on feature spec from TL agent grooming
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.ClaudeModel = void 0;
8
+ /**
9
+ * Available Claude models for chat
10
+ */
11
+ var ClaudeModel;
12
+ (function (ClaudeModel) {
13
+ ClaudeModel["HAIKU_3_5"] = "claude-3-5-haiku-20241022";
14
+ ClaudeModel["SONNET_3_7"] = "claude-3-7-sonnet-20250219";
15
+ ClaudeModel["SONNET_4"] = "claude-sonnet-4-20250514";
16
+ ClaudeModel["OPUS_4"] = "claude-opus-4-20250514";
17
+ })(ClaudeModel || (exports.ClaudeModel = ClaudeModel = {}));
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/dist/index.d.ts CHANGED
@@ -15,6 +15,7 @@ export * from './website-firestore.types';
15
15
  export * from './totp.types';
16
16
  export * from './deployment-history.types';
17
17
  export * from './github.types';
18
+ export * from './chat.types';
18
19
  export type { Security, SecurityChallengeOptions, SecurityChallengeResult } from './security.interface';
19
20
  export { SecurityLevel } from './security.interface';
20
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,cAAc,cAAc,CAAC;AAG7B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,mBAAmB,CAAC;AAGlC,cAAc,2BAA2B,CAAC;AAG1C,cAAc,cAAc,CAAC;AAG7B,cAAc,4BAA4B,CAAC;AAG3C,cAAc,gBAAgB,CAAC;AAG/B,YAAY,EAAE,QAAQ,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACxG,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,cAAc,cAAc,CAAC;AAG7B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,mBAAmB,CAAC;AAGlC,cAAc,2BAA2B,CAAC;AAG1C,cAAc,cAAc,CAAC;AAG7B,cAAc,4BAA4B,CAAC;AAG3C,cAAc,gBAAgB,CAAC;AAG/B,cAAc,cAAc,CAAC;AAG7B,YAAY,EAAE,QAAQ,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACxG,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
package/dist/index.js CHANGED
@@ -40,5 +40,7 @@ __exportStar(require("./totp.types"), exports);
40
40
  __exportStar(require("./deployment-history.types"), exports);
41
41
  // GitHub API types
42
42
  __exportStar(require("./github.types"), exports);
43
+ // Chat types for Claude AI integration
44
+ __exportStar(require("./chat.types"), exports);
43
45
  var security_interface_1 = require("./security.interface");
44
46
  Object.defineProperty(exports, "SecurityLevel", { enumerable: true, get: function () { return security_interface_1.SecurityLevel; } });
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guinetik/primitives-ts",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "Shared TypeScript primitives for Guinetik projects",
5
5
  "author": "Guinetik",
6
6
  "license": "MIT",
@@ -20,7 +20,7 @@
20
20
  "guinetik"
21
21
  ],
22
22
  "devDependencies": {
23
- "typescript": "^5.1.3"
23
+ "typescript": "^5.9.3"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",