modality-kit 0.1.17 → 0.2.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.
package/dist/index.js CHANGED
@@ -252,9 +252,11 @@ function withErrorHandling(fn, operation) {
252
252
  }
253
253
  };
254
254
  }
255
- // src/symbol_type.ts
256
- var exports_symbol_type = {};
257
- __export(exports_symbol_type, {
255
+ // src/schemas/schemas_symbol.ts
256
+ var exports_schemas_symbol = {};
257
+ __export(exports_schemas_symbol, {
258
+ symbolKinds: () => symbolKinds,
259
+ symbolKindSchema: () => symbolKindSchema,
258
260
  rangeSchema: () => rangeSchema
259
261
  });
260
262
 
@@ -4231,11 +4233,40 @@ var coerce = {
4231
4233
  date: (arg) => ZodDate.create({ ...arg, coerce: true })
4232
4234
  };
4233
4235
  var NEVER = INVALID;
4234
- // src/symbol_type.ts
4236
+ // src/schemas/schemas_symbol.ts
4235
4237
  var positionSchema = exports_external.object({
4236
4238
  line: exports_external.number().min(1),
4237
4239
  col: exports_external.number().min(1)
4238
4240
  });
4241
+ var symbolKinds = [
4242
+ "File",
4243
+ "Module",
4244
+ "Namespace",
4245
+ "Package",
4246
+ "Class",
4247
+ "Method",
4248
+ "Property",
4249
+ "Field",
4250
+ "Constructor",
4251
+ "Enum",
4252
+ "Interface",
4253
+ "Function",
4254
+ "Variable",
4255
+ "Constant",
4256
+ "String",
4257
+ "Number",
4258
+ "Boolean",
4259
+ "Array",
4260
+ "Object",
4261
+ "Key",
4262
+ "Null",
4263
+ "EnumMember",
4264
+ "Struct",
4265
+ "Event",
4266
+ "Operator",
4267
+ "TypeParameter"
4268
+ ];
4269
+ var symbolKindSchema = exports_external.enum(symbolKinds).describe("Symbol kinds enumeration");
4239
4270
  var rangeSchema = exports_external.object({
4240
4271
  start: positionSchema,
4241
4272
  end: positionSchema
@@ -4251,6 +4282,6 @@ export {
4251
4282
  getLoggerInstance,
4252
4283
  formatSuccessResponse,
4253
4284
  formatErrorResponse,
4254
- exports_symbol_type as SymbolType,
4285
+ exports_schemas_symbol as SymbolType,
4255
4286
  ErrorCode
4256
4287
  };
@@ -3,4 +3,4 @@ export type { AITools, AITool } from "./schemas/schemas_tool_config";
3
3
  export { formatErrorResponse, formatSuccessResponse } from "./util_response";
4
4
  export { getLoggerInstance, type ModalityLogger } from "./util_logger";
5
5
  export { withErrorHandling, ErrorCode } from "./util_error";
6
- export * as SymbolType from "./symbol_type";
6
+ export * as SymbolType from "./schemas/schemas_symbol";
@@ -9,6 +9,9 @@ declare const positionSchema: z.ZodObject<{
9
9
  line: number;
10
10
  col: number;
11
11
  }>;
12
+ export declare const symbolKinds: readonly ["File", "Module", "Namespace", "Package", "Class", "Method", "Property", "Field", "Constructor", "Enum", "Interface", "Function", "Variable", "Constant", "String", "Number", "Boolean", "Array", "Object", "Key", "Null", "EnumMember", "Struct", "Event", "Operator", "TypeParameter"];
13
+ export declare const symbolKindSchema: z.ZodEnum<["File", "Module", "Namespace", "Package", "Class", "Method", "Property", "Field", "Constructor", "Enum", "Interface", "Function", "Variable", "Constant", "String", "Number", "Boolean", "Array", "Object", "Key", "Null", "EnumMember", "Struct", "Event", "Operator", "TypeParameter"]>;
14
+ export type SymbolKindType = z.infer<typeof symbolKindSchema>;
12
15
  export declare const rangeSchema: z.ZodObject<{
13
16
  start: z.ZodObject<{
14
17
  line: z.ZodNumber;
@@ -53,7 +56,7 @@ export type Position = z.infer<typeof positionSchema>;
53
56
  export type Range = z.infer<typeof rangeSchema>;
54
57
  interface SymbolBase {
55
58
  name?: string;
56
- kind?: string;
59
+ kind?: SymbolKindType;
57
60
  id?: string;
58
61
  uri?: string;
59
62
  detail?: string;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.17",
2
+ "version": "0.2.0",
3
3
  "name": "modality-kit",
4
4
  "repository": {
5
5
  "type": "git",