@codelia/shared-types 0.1.68 → 0.1.70

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/dist/index.cjs CHANGED
@@ -20,12 +20,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ MODEL_REASONING_LEVELS: () => MODEL_REASONING_LEVELS,
23
24
  SkillCatalogSchema: () => SkillCatalogSchema,
24
25
  SkillLoadErrorSchema: () => SkillLoadErrorSchema,
25
26
  SkillMetadataSchema: () => SkillMetadataSchema,
26
27
  SkillScopeSchema: () => SkillScopeSchema,
27
28
  SkillSearchReasonSchema: () => SkillSearchReasonSchema,
28
29
  SkillSearchResultSchema: () => SkillSearchResultSchema,
30
+ isModelReasoningLevel: () => isModelReasoningLevel,
29
31
  parseApprovalMode: () => parseApprovalMode
30
32
  });
31
33
  module.exports = __toCommonJS(index_exports);
@@ -38,6 +40,16 @@ var parseApprovalMode = (value) => {
38
40
  return void 0;
39
41
  };
40
42
 
43
+ // src/model.ts
44
+ var MODEL_REASONING_LEVELS = [
45
+ "low",
46
+ "medium",
47
+ "high",
48
+ "xhigh",
49
+ "max"
50
+ ];
51
+ var isModelReasoningLevel = (value) => MODEL_REASONING_LEVELS.some((level) => level === value);
52
+
41
53
  // src/skills/schema.ts
42
54
  var import_zod = require("zod");
43
55
  var SkillScopeSchema = import_zod.z.enum(["repo", "user"]);
@@ -72,11 +84,13 @@ var SkillSearchResultSchema = import_zod.z.object({
72
84
  }).strict();
73
85
  // Annotate the CommonJS export names for ESM import in node:
74
86
  0 && (module.exports = {
87
+ MODEL_REASONING_LEVELS,
75
88
  SkillCatalogSchema,
76
89
  SkillLoadErrorSchema,
77
90
  SkillMetadataSchema,
78
91
  SkillScopeSchema,
79
92
  SkillSearchReasonSchema,
80
93
  SkillSearchResultSchema,
94
+ isModelReasoningLevel,
81
95
  parseApprovalMode
82
96
  });
package/dist/index.d.cts CHANGED
@@ -75,6 +75,10 @@ type FinalResponseEvent = {
75
75
  };
76
76
  type AgentEvent = TextEvent | ReasoningEvent | StepStartEvent | ToolCallEvent | ToolResultEvent | PermissionPreviewEvent | PermissionReadyEvent | StepCompleteEvent | CompactionStartEvent | CompactionCompleteEvent | HiddenUserMessageEvent | FinalResponseEvent;
77
77
 
78
+ declare const MODEL_REASONING_LEVELS: readonly ["low", "medium", "high", "xhigh", "max"];
79
+ type ModelReasoningLevel = (typeof MODEL_REASONING_LEVELS)[number];
80
+ declare const isModelReasoningLevel: (value: string) => value is ModelReasoningLevel;
81
+
78
82
  type SessionStateSummary = {
79
83
  session_id: string;
80
84
  updated_at: string;
@@ -158,4 +162,4 @@ type SkillCatalog = z.infer<typeof SkillCatalogSchema>;
158
162
  type SkillSearchReason = z.infer<typeof SkillSearchReasonSchema>;
159
163
  type SkillSearchResult = z.infer<typeof SkillSearchResultSchema>;
160
164
 
161
- export { type AgentEvent, type ApprovalMode, type CompactionCompleteEvent, type CompactionStartEvent, type FinalResponseEvent, type HiddenUserMessageEvent, type PermissionPreviewEvent, type PermissionReadyEvent, type ReasoningEvent, type SessionStateSummary, type SkillCatalog, SkillCatalogSchema, type SkillLoadError, SkillLoadErrorSchema, type SkillMetadata, SkillMetadataSchema, type SkillScope, SkillScopeSchema, type SkillSearchReason, SkillSearchReasonSchema, type SkillSearchResult, SkillSearchResultSchema, type StepCompleteEvent, type StepStartEvent, type TextEvent, type ToolCallEvent, type ToolResultEvent, parseApprovalMode };
165
+ export { type AgentEvent, type ApprovalMode, type CompactionCompleteEvent, type CompactionStartEvent, type FinalResponseEvent, type HiddenUserMessageEvent, MODEL_REASONING_LEVELS, type ModelReasoningLevel, type PermissionPreviewEvent, type PermissionReadyEvent, type ReasoningEvent, type SessionStateSummary, type SkillCatalog, SkillCatalogSchema, type SkillLoadError, SkillLoadErrorSchema, type SkillMetadata, SkillMetadataSchema, type SkillScope, SkillScopeSchema, type SkillSearchReason, SkillSearchReasonSchema, type SkillSearchResult, SkillSearchResultSchema, type StepCompleteEvent, type StepStartEvent, type TextEvent, type ToolCallEvent, type ToolResultEvent, isModelReasoningLevel, parseApprovalMode };
package/dist/index.d.ts CHANGED
@@ -75,6 +75,10 @@ type FinalResponseEvent = {
75
75
  };
76
76
  type AgentEvent = TextEvent | ReasoningEvent | StepStartEvent | ToolCallEvent | ToolResultEvent | PermissionPreviewEvent | PermissionReadyEvent | StepCompleteEvent | CompactionStartEvent | CompactionCompleteEvent | HiddenUserMessageEvent | FinalResponseEvent;
77
77
 
78
+ declare const MODEL_REASONING_LEVELS: readonly ["low", "medium", "high", "xhigh", "max"];
79
+ type ModelReasoningLevel = (typeof MODEL_REASONING_LEVELS)[number];
80
+ declare const isModelReasoningLevel: (value: string) => value is ModelReasoningLevel;
81
+
78
82
  type SessionStateSummary = {
79
83
  session_id: string;
80
84
  updated_at: string;
@@ -158,4 +162,4 @@ type SkillCatalog = z.infer<typeof SkillCatalogSchema>;
158
162
  type SkillSearchReason = z.infer<typeof SkillSearchReasonSchema>;
159
163
  type SkillSearchResult = z.infer<typeof SkillSearchResultSchema>;
160
164
 
161
- export { type AgentEvent, type ApprovalMode, type CompactionCompleteEvent, type CompactionStartEvent, type FinalResponseEvent, type HiddenUserMessageEvent, type PermissionPreviewEvent, type PermissionReadyEvent, type ReasoningEvent, type SessionStateSummary, type SkillCatalog, SkillCatalogSchema, type SkillLoadError, SkillLoadErrorSchema, type SkillMetadata, SkillMetadataSchema, type SkillScope, SkillScopeSchema, type SkillSearchReason, SkillSearchReasonSchema, type SkillSearchResult, SkillSearchResultSchema, type StepCompleteEvent, type StepStartEvent, type TextEvent, type ToolCallEvent, type ToolResultEvent, parseApprovalMode };
165
+ export { type AgentEvent, type ApprovalMode, type CompactionCompleteEvent, type CompactionStartEvent, type FinalResponseEvent, type HiddenUserMessageEvent, MODEL_REASONING_LEVELS, type ModelReasoningLevel, type PermissionPreviewEvent, type PermissionReadyEvent, type ReasoningEvent, type SessionStateSummary, type SkillCatalog, SkillCatalogSchema, type SkillLoadError, SkillLoadErrorSchema, type SkillMetadata, SkillMetadataSchema, type SkillScope, SkillScopeSchema, type SkillSearchReason, SkillSearchReasonSchema, type SkillSearchResult, SkillSearchResultSchema, type StepCompleteEvent, type StepStartEvent, type TextEvent, type ToolCallEvent, type ToolResultEvent, isModelReasoningLevel, parseApprovalMode };
package/dist/index.js CHANGED
@@ -6,6 +6,16 @@ var parseApprovalMode = (value) => {
6
6
  return void 0;
7
7
  };
8
8
 
9
+ // src/model.ts
10
+ var MODEL_REASONING_LEVELS = [
11
+ "low",
12
+ "medium",
13
+ "high",
14
+ "xhigh",
15
+ "max"
16
+ ];
17
+ var isModelReasoningLevel = (value) => MODEL_REASONING_LEVELS.some((level) => level === value);
18
+
9
19
  // src/skills/schema.ts
10
20
  import { z } from "zod";
11
21
  var SkillScopeSchema = z.enum(["repo", "user"]);
@@ -39,11 +49,13 @@ var SkillSearchResultSchema = z.object({
39
49
  reason: SkillSearchReasonSchema
40
50
  }).strict();
41
51
  export {
52
+ MODEL_REASONING_LEVELS,
42
53
  SkillCatalogSchema,
43
54
  SkillLoadErrorSchema,
44
55
  SkillMetadataSchema,
45
56
  SkillScopeSchema,
46
57
  SkillSearchReasonSchema,
47
58
  SkillSearchResultSchema,
59
+ isModelReasoningLevel,
48
60
  parseApprovalMode
49
61
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codelia/shared-types",
3
- "version": "0.1.68",
3
+ "version": "0.1.70",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"