@codelia/shared-types 0.1.82 → 0.1.83

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
@@ -29,6 +29,7 @@ __export(index_exports, {
29
29
  SkillSearchReasonSchema: () => SkillSearchReasonSchema,
30
30
  SkillSearchResultSchema: () => SkillSearchResultSchema,
31
31
  isImageModelView: () => isImageModelView,
32
+ isModelFastMode: () => isModelFastMode,
32
33
  isModelReasoningLevel: () => isModelReasoningLevel,
33
34
  parseApprovalMode: () => parseApprovalMode
34
35
  });
@@ -51,6 +52,7 @@ var parseApprovalMode = (value) => {
51
52
  };
52
53
 
53
54
  // src/model.ts
55
+ var isModelFastMode = (value) => typeof value === "boolean" || value === "ultrafast";
54
56
  var MODEL_REASONING_LEVELS = [
55
57
  "low",
56
58
  "medium",
@@ -103,6 +105,7 @@ var SkillSearchResultSchema = import_zod.z.object({
103
105
  SkillSearchReasonSchema,
104
106
  SkillSearchResultSchema,
105
107
  isImageModelView,
108
+ isModelFastMode,
106
109
  isModelReasoningLevel,
107
110
  parseApprovalMode
108
111
  });
package/dist/index.d.cts CHANGED
@@ -154,6 +154,9 @@ type LlmCallTiming = {
154
154
  generation_start_source?: "reasoning_item";
155
155
  };
156
156
 
157
+ /** Explicit speed selection; booleans preserve the original fast-mode contract. */
158
+ type ModelFastMode = boolean | "ultrafast";
159
+ declare const isModelFastMode: (value: unknown) => value is ModelFastMode;
157
160
  declare const MODEL_REASONING_LEVELS: readonly ["low", "medium", "high", "xhigh", "max"];
158
161
  type ModelReasoningLevel = (typeof MODEL_REASONING_LEVELS)[number];
159
162
  declare const isModelReasoningLevel: (value: string) => value is ModelReasoningLevel;
@@ -271,4 +274,4 @@ type AgentMessage = {
271
274
  content: string;
272
275
  };
273
276
 
274
- export { type AgentEvent, type AgentMessage, type ApprovalMode, type AttachedImageMetadata, type BuiltinProviderName, type CompactionCompleteEvent, type CompactionStartEvent, type FinalResponseEvent, type GeneratedImageMetadata, type HiddenUserMessageEvent, IMAGE_REFERENCE_MAX_COUNT, type ImageArtifactMetadata, type ImageArtifactRef, type ImageMediaType, type ImageModelView, type LlmCallTiming, type LlmRetryEvent, type LlmStatusEvent, MODEL_REASONING_LEVELS, type ModelReasoningLevel, type PermissionPreviewEvent, type PermissionReadyEvent, type ProviderName, 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 SubagentLineage, type TaskTerminationReason, type TaskUsage, type TextEvent, type ToolCallEvent, type ToolResultEvent, isImageModelView, isModelReasoningLevel, parseApprovalMode };
277
+ export { type AgentEvent, type AgentMessage, type ApprovalMode, type AttachedImageMetadata, type BuiltinProviderName, type CompactionCompleteEvent, type CompactionStartEvent, type FinalResponseEvent, type GeneratedImageMetadata, type HiddenUserMessageEvent, IMAGE_REFERENCE_MAX_COUNT, type ImageArtifactMetadata, type ImageArtifactRef, type ImageMediaType, type ImageModelView, type LlmCallTiming, type LlmRetryEvent, type LlmStatusEvent, MODEL_REASONING_LEVELS, type ModelFastMode, type ModelReasoningLevel, type PermissionPreviewEvent, type PermissionReadyEvent, type ProviderName, 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 SubagentLineage, type TaskTerminationReason, type TaskUsage, type TextEvent, type ToolCallEvent, type ToolResultEvent, isImageModelView, isModelFastMode, isModelReasoningLevel, parseApprovalMode };
package/dist/index.d.ts CHANGED
@@ -154,6 +154,9 @@ type LlmCallTiming = {
154
154
  generation_start_source?: "reasoning_item";
155
155
  };
156
156
 
157
+ /** Explicit speed selection; booleans preserve the original fast-mode contract. */
158
+ type ModelFastMode = boolean | "ultrafast";
159
+ declare const isModelFastMode: (value: unknown) => value is ModelFastMode;
157
160
  declare const MODEL_REASONING_LEVELS: readonly ["low", "medium", "high", "xhigh", "max"];
158
161
  type ModelReasoningLevel = (typeof MODEL_REASONING_LEVELS)[number];
159
162
  declare const isModelReasoningLevel: (value: string) => value is ModelReasoningLevel;
@@ -271,4 +274,4 @@ type AgentMessage = {
271
274
  content: string;
272
275
  };
273
276
 
274
- export { type AgentEvent, type AgentMessage, type ApprovalMode, type AttachedImageMetadata, type BuiltinProviderName, type CompactionCompleteEvent, type CompactionStartEvent, type FinalResponseEvent, type GeneratedImageMetadata, type HiddenUserMessageEvent, IMAGE_REFERENCE_MAX_COUNT, type ImageArtifactMetadata, type ImageArtifactRef, type ImageMediaType, type ImageModelView, type LlmCallTiming, type LlmRetryEvent, type LlmStatusEvent, MODEL_REASONING_LEVELS, type ModelReasoningLevel, type PermissionPreviewEvent, type PermissionReadyEvent, type ProviderName, 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 SubagentLineage, type TaskTerminationReason, type TaskUsage, type TextEvent, type ToolCallEvent, type ToolResultEvent, isImageModelView, isModelReasoningLevel, parseApprovalMode };
277
+ export { type AgentEvent, type AgentMessage, type ApprovalMode, type AttachedImageMetadata, type BuiltinProviderName, type CompactionCompleteEvent, type CompactionStartEvent, type FinalResponseEvent, type GeneratedImageMetadata, type HiddenUserMessageEvent, IMAGE_REFERENCE_MAX_COUNT, type ImageArtifactMetadata, type ImageArtifactRef, type ImageMediaType, type ImageModelView, type LlmCallTiming, type LlmRetryEvent, type LlmStatusEvent, MODEL_REASONING_LEVELS, type ModelFastMode, type ModelReasoningLevel, type PermissionPreviewEvent, type PermissionReadyEvent, type ProviderName, 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 SubagentLineage, type TaskTerminationReason, type TaskUsage, type TextEvent, type ToolCallEvent, type ToolResultEvent, isImageModelView, isModelFastMode, isModelReasoningLevel, parseApprovalMode };
package/dist/index.js CHANGED
@@ -15,6 +15,7 @@ var parseApprovalMode = (value) => {
15
15
  };
16
16
 
17
17
  // src/model.ts
18
+ var isModelFastMode = (value) => typeof value === "boolean" || value === "ultrafast";
18
19
  var MODEL_REASONING_LEVELS = [
19
20
  "low",
20
21
  "medium",
@@ -66,6 +67,7 @@ export {
66
67
  SkillSearchReasonSchema,
67
68
  SkillSearchResultSchema,
68
69
  isImageModelView,
70
+ isModelFastMode,
69
71
  isModelReasoningLevel,
70
72
  parseApprovalMode
71
73
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codelia/shared-types",
3
- "version": "0.1.82",
3
+ "version": "0.1.83",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [