@contextosai/shared 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ContextOS Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,14 @@
1
+ export declare const CONTEXTOS_DIR = ".contextos";
2
+ export declare const CONTEXTOS_DB = "contextos.db";
3
+ export declare const CONTEXTOS_LANCE = "vectors.lance";
4
+ export declare const PROJECT_MEMORY_FILE = "project.md";
5
+ export declare const CONFIG_FILE = "config.json";
6
+ export declare const IGNORED_DIRS: Set<string>;
7
+ export declare const IGNORED_FILE_PATTERNS: RegExp[];
8
+ export declare const SUPPORTED_EXTENSIONS: Set<string>;
9
+ export declare const DEFAULT_EMBEDDING_MODEL = "nomic-embed-text";
10
+ export declare const DEFAULT_OLLAMA_URL = "http://localhost:11434";
11
+ export declare const DASHBOARD_PORT = 3000;
12
+ export declare const FRAMEWORK_DEPS: Record<string, string[]>;
13
+ export declare const FRAMEWORK_PATTERNS: Record<string, RegExp[]>;
14
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,eAAe,CAAC;AAC1C,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,eAAe,kBAAkB,CAAC;AAC/C,eAAO,MAAM,mBAAmB,eAAe,CAAC;AAChD,eAAO,MAAM,WAAW,gBAAgB,CAAC;AAEzC,eAAO,MAAM,YAAY,aASvB,CAAC;AAEH,eAAO,MAAM,qBAAqB,UAAwB,CAAC;AAE3D,eAAO,MAAM,oBAAoB,aAU/B,CAAC;AAEH,eAAO,MAAM,uBAAuB,qBAAqB,CAAC;AAC1D,eAAO,MAAM,kBAAkB,2BAA2B,CAAC;AAC3D,eAAO,MAAM,cAAc,OAAO,CAAC;AAEnC,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAYnD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAYvD,CAAC"}
@@ -0,0 +1,57 @@
1
+ export const CONTEXTOS_DIR = '.contextos';
2
+ export const CONTEXTOS_DB = 'contextos.db';
3
+ export const CONTEXTOS_LANCE = 'vectors.lance';
4
+ export const PROJECT_MEMORY_FILE = 'project.md';
5
+ export const CONFIG_FILE = 'config.json';
6
+ export const IGNORED_DIRS = new Set([
7
+ 'node_modules',
8
+ '.git',
9
+ 'dist',
10
+ 'build',
11
+ '.next',
12
+ 'coverage',
13
+ '.contextos',
14
+ '.turbo',
15
+ ]);
16
+ export const IGNORED_FILE_PATTERNS = [/^\.env/, /\.env\./];
17
+ export const SUPPORTED_EXTENSIONS = new Set([
18
+ '.ts',
19
+ '.tsx',
20
+ '.js',
21
+ '.jsx',
22
+ '.py',
23
+ '.go',
24
+ '.java',
25
+ '.md',
26
+ '.mdx',
27
+ ]);
28
+ export const DEFAULT_EMBEDDING_MODEL = 'nomic-embed-text';
29
+ export const DEFAULT_OLLAMA_URL = 'http://localhost:11434';
30
+ export const DASHBOARD_PORT = 3000;
31
+ export const FRAMEWORK_DEPS = {
32
+ 'Next.js': ['next'],
33
+ React: ['react', 'react-dom'],
34
+ FastAPI: ['fastapi'],
35
+ PostgreSQL: ['pg', 'postgres', '@vercel/postgres'],
36
+ Prisma: ['@prisma/client', 'prisma'],
37
+ 'shadcn/ui': ['class-variance-authority', 'clsx', 'tailwind-merge'],
38
+ Zustand: ['zustand'],
39
+ Vitest: ['vitest'],
40
+ Express: ['express'],
41
+ TailwindCSS: ['tailwindcss'],
42
+ 'Framer Motion': ['framer-motion'],
43
+ };
44
+ export const FRAMEWORK_PATTERNS = {
45
+ 'Next.js': [/from ['"]next\//, /import.*from ['"]next['"]/, /"next":/],
46
+ FastAPI: [/from fastapi import/, /FastAPI\(/],
47
+ PostgreSQL: [/postgres(ql)?:\/\//, /from ['"]pg['"]/, /Prisma.*provider.*postgresql/],
48
+ Prisma: [/@prisma\/client/, /prisma schema/],
49
+ 'shadcn/ui': [/@\/components\/ui\//, /class-variance-authority/],
50
+ Zustand: [/from ['"]zustand['"]/, /create\(/],
51
+ Vitest: [/from ['"]vitest['"]/, /describe\(/],
52
+ React: [/from ['"]react['"]/, /import React/],
53
+ Express: [/from ['"]express['"]/, /require\(['"]express['"]\)/],
54
+ TailwindCSS: [/tailwindcss/, /@tailwind/],
55
+ 'Framer Motion': [/from ['"]framer-motion['"]/],
56
+ };
57
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC;AAC1C,MAAM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a,CAAC;IAC5B,eAAe,EAAE,CAAC,eAAe,CAAC;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAA6B;IAC1D,SAAS,EAAE,CAAC,iBAAiB,EAAE,2BAA2B,EAAE,SAAS,CAAC;IACtE,OAAO,EAAE,CAAC,qBAAqB,EAAE,WAAW,CAAC;IAC7C,UAAU,EAAE,CAAC,oBAAoB,EAAE,iBAAiB,EAAE,8BAA8B,CAAC;IACrF,MAAM,EAAE,CAAC,iBAAiB,EAAE,eAAe,CAAC;IAC5C,WAAW,EAAE,CAAC,qBAAqB,EAAE,0BAA0B,CAAC;IAChE,OAAO,EAAE,CAAC,sBAAsB,EAAE,UAAU,CAAC;IAC7C,MAAM,EAAE,CAAC,qBAAqB,EAAE,YAAY,CAAC;IAC7C,KAAK,EAAE,CAAC,oBAAoB,EAAE,cAAc,CAAC;IAC7C,OAAO,EAAE,CAAC,sBAAsB,EAAE,4BAA4B,CAAC;IAC/D,WAAW,EAAE,CAAC,aAAa,EAAE,WAAW,CAAC;IACzC,eAAe,EAAE,CAAC,4BAA4B,CAAC;CAChD,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './constants.js';
2
+ export * from './schemas.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from './constants.js';
2
+ export * from './schemas.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
@@ -0,0 +1,169 @@
1
+ import { z } from 'zod';
2
+ export declare const ContextOSConfigSchema: z.ZodObject<{
3
+ version: z.ZodDefault<z.ZodString>;
4
+ embeddingProvider: z.ZodDefault<z.ZodEnum<["ollama", "transformers"]>>;
5
+ actualEmbeddingProvider: z.ZodOptional<z.ZodEnum<["ollama", "transformers"]>>;
6
+ ollamaUrl: z.ZodDefault<z.ZodString>;
7
+ embeddingModel: z.ZodDefault<z.ZodString>;
8
+ vectorDimensions: z.ZodOptional<z.ZodNumber>;
9
+ agentExportEnabled: z.ZodDefault<z.ZodBoolean>;
10
+ lastIndexedAt: z.ZodOptional<z.ZodString>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ version: string;
13
+ embeddingProvider: "ollama" | "transformers";
14
+ ollamaUrl: string;
15
+ embeddingModel: string;
16
+ agentExportEnabled: boolean;
17
+ actualEmbeddingProvider?: "ollama" | "transformers" | undefined;
18
+ vectorDimensions?: number | undefined;
19
+ lastIndexedAt?: string | undefined;
20
+ }, {
21
+ version?: string | undefined;
22
+ embeddingProvider?: "ollama" | "transformers" | undefined;
23
+ actualEmbeddingProvider?: "ollama" | "transformers" | undefined;
24
+ ollamaUrl?: string | undefined;
25
+ embeddingModel?: string | undefined;
26
+ vectorDimensions?: number | undefined;
27
+ agentExportEnabled?: boolean | undefined;
28
+ lastIndexedAt?: string | undefined;
29
+ }>;
30
+ export type ContextOSConfig = z.infer<typeof ContextOSConfigSchema>;
31
+ export declare const FileMetadataSchema: z.ZodObject<{
32
+ id: z.ZodString;
33
+ path: z.ZodString;
34
+ extension: z.ZodString;
35
+ size: z.ZodNumber;
36
+ hash: z.ZodString;
37
+ imports: z.ZodArray<z.ZodString, "many">;
38
+ exports: z.ZodArray<z.ZodString, "many">;
39
+ classes: z.ZodArray<z.ZodString, "many">;
40
+ functions: z.ZodArray<z.ZodString, "many">;
41
+ comments: z.ZodArray<z.ZodString, "many">;
42
+ summary: z.ZodOptional<z.ZodString>;
43
+ indexedAt: z.ZodString;
44
+ }, "strip", z.ZodTypeAny, {
45
+ path: string;
46
+ id: string;
47
+ extension: string;
48
+ size: number;
49
+ hash: string;
50
+ imports: string[];
51
+ exports: string[];
52
+ classes: string[];
53
+ functions: string[];
54
+ comments: string[];
55
+ indexedAt: string;
56
+ summary?: string | undefined;
57
+ }, {
58
+ path: string;
59
+ id: string;
60
+ extension: string;
61
+ size: number;
62
+ hash: string;
63
+ imports: string[];
64
+ exports: string[];
65
+ classes: string[];
66
+ functions: string[];
67
+ comments: string[];
68
+ indexedAt: string;
69
+ summary?: string | undefined;
70
+ }>;
71
+ export type FileMetadata = z.infer<typeof FileMetadataSchema>;
72
+ export declare const DecisionRecordSchema: z.ZodObject<{
73
+ id: z.ZodString;
74
+ title: z.ZodString;
75
+ decision: z.ZodString;
76
+ source: z.ZodEnum<["git commit", "file pattern", "inferred"]>;
77
+ confidence: z.ZodNumber;
78
+ commitHash: z.ZodOptional<z.ZodString>;
79
+ createdAt: z.ZodString;
80
+ }, "strip", z.ZodTypeAny, {
81
+ id: string;
82
+ title: string;
83
+ decision: string;
84
+ source: "git commit" | "file pattern" | "inferred";
85
+ confidence: number;
86
+ createdAt: string;
87
+ commitHash?: string | undefined;
88
+ }, {
89
+ id: string;
90
+ title: string;
91
+ decision: string;
92
+ source: "git commit" | "file pattern" | "inferred";
93
+ confidence: number;
94
+ createdAt: string;
95
+ commitHash?: string | undefined;
96
+ }>;
97
+ export type DecisionRecord = z.infer<typeof DecisionRecordSchema>;
98
+ export declare const ArchitectureRuleSchema: z.ZodObject<{
99
+ id: z.ZodString;
100
+ category: z.ZodEnum<["framework", "convention", "module", "dependency"]>;
101
+ name: z.ZodString;
102
+ description: z.ZodString;
103
+ confidence: z.ZodNumber;
104
+ }, "strip", z.ZodTypeAny, {
105
+ id: string;
106
+ confidence: number;
107
+ category: "framework" | "convention" | "module" | "dependency";
108
+ name: string;
109
+ description: string;
110
+ }, {
111
+ id: string;
112
+ confidence: number;
113
+ category: "framework" | "convention" | "module" | "dependency";
114
+ name: string;
115
+ description: string;
116
+ }>;
117
+ export type ArchitectureRule = z.infer<typeof ArchitectureRuleSchema>;
118
+ export declare const SearchResultSchema: z.ZodObject<{
119
+ path: z.ZodString;
120
+ score: z.ZodNumber;
121
+ summary: z.ZodString;
122
+ snippet: z.ZodOptional<z.ZodString>;
123
+ }, "strip", z.ZodTypeAny, {
124
+ path: string;
125
+ summary: string;
126
+ score: number;
127
+ snippet?: string | undefined;
128
+ }, {
129
+ path: string;
130
+ summary: string;
131
+ score: number;
132
+ snippet?: string | undefined;
133
+ }>;
134
+ export type SearchResult = z.infer<typeof SearchResultSchema>;
135
+ export declare const IndexStatsSchema: z.ZodObject<{
136
+ filesIndexed: z.ZodNumber;
137
+ decisionsLearned: z.ZodNumber;
138
+ rulesExtracted: z.ZodNumber;
139
+ lastIndexedAt: z.ZodNullable<z.ZodString>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ lastIndexedAt: string | null;
142
+ filesIndexed: number;
143
+ decisionsLearned: number;
144
+ rulesExtracted: number;
145
+ }, {
146
+ lastIndexedAt: string | null;
147
+ filesIndexed: number;
148
+ decisionsLearned: number;
149
+ rulesExtracted: number;
150
+ }>;
151
+ export type IndexStats = z.infer<typeof IndexStatsSchema>;
152
+ export declare const ActivityRecordSchema: z.ZodObject<{
153
+ id: z.ZodString;
154
+ path: z.ZodString;
155
+ action: z.ZodEnum<["created", "modified", "deleted"]>;
156
+ timestamp: z.ZodString;
157
+ }, "strip", z.ZodTypeAny, {
158
+ path: string;
159
+ id: string;
160
+ action: "created" | "modified" | "deleted";
161
+ timestamp: string;
162
+ }, {
163
+ path: string;
164
+ id: string;
165
+ action: "created" | "modified" | "deleted";
166
+ timestamp: string;
167
+ }>;
168
+ export type ActivityRecord = z.infer<typeof ActivityRecordSchema>;
169
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAShC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;EAQ/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;EAMjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAK7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAK3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAK/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,60 @@
1
+ import { z } from 'zod';
2
+ export const ContextOSConfigSchema = z.object({
3
+ version: z.string().default('1'),
4
+ embeddingProvider: z.enum(['ollama', 'transformers']).default('ollama'),
5
+ actualEmbeddingProvider: z.enum(['ollama', 'transformers']).optional(),
6
+ ollamaUrl: z.string().url().default('http://localhost:11434'),
7
+ embeddingModel: z.string().default('nomic-embed-text'),
8
+ vectorDimensions: z.number().int().positive().optional(),
9
+ agentExportEnabled: z.boolean().default(true),
10
+ lastIndexedAt: z.string().datetime().optional(),
11
+ });
12
+ export const FileMetadataSchema = z.object({
13
+ id: z.string(),
14
+ path: z.string(),
15
+ extension: z.string(),
16
+ size: z.number(),
17
+ hash: z.string(),
18
+ imports: z.array(z.string()),
19
+ exports: z.array(z.string()),
20
+ classes: z.array(z.string()),
21
+ functions: z.array(z.string()),
22
+ comments: z.array(z.string()),
23
+ summary: z.string().optional(),
24
+ indexedAt: z.string().datetime(),
25
+ });
26
+ export const DecisionRecordSchema = z.object({
27
+ id: z.string(),
28
+ title: z.string(),
29
+ decision: z.string(),
30
+ source: z.enum(['git commit', 'file pattern', 'inferred']),
31
+ confidence: z.number().min(0).max(1),
32
+ commitHash: z.string().optional(),
33
+ createdAt: z.string().datetime(),
34
+ });
35
+ export const ArchitectureRuleSchema = z.object({
36
+ id: z.string(),
37
+ category: z.enum(['framework', 'convention', 'module', 'dependency']),
38
+ name: z.string(),
39
+ description: z.string(),
40
+ confidence: z.number().min(0).max(1),
41
+ });
42
+ export const SearchResultSchema = z.object({
43
+ path: z.string(),
44
+ score: z.number(),
45
+ summary: z.string(),
46
+ snippet: z.string().optional(),
47
+ });
48
+ export const IndexStatsSchema = z.object({
49
+ filesIndexed: z.number(),
50
+ decisionsLearned: z.number(),
51
+ rulesExtracted: z.number(),
52
+ lastIndexedAt: z.string().datetime().nullable(),
53
+ });
54
+ export const ActivityRecordSchema = z.object({
55
+ id: z.string(),
56
+ path: z.string(),
57
+ action: z.enum(['created', 'modified', 'deleted']),
58
+ timestamp: z.string().datetime(),
59
+ });
60
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CA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AC;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;IAClD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@contextosai/shared",
3
+ "version": "0.1.0",
4
+ "description": "Shared types and schemas for ContextOS",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "dependencies": {
20
+ "zod": "^3.24.1"
21
+ },
22
+ "devDependencies": {
23
+ "typescript": "^5.7.2",
24
+ "vitest": "^2.1.8"
25
+ },
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "https://github.com/vihaannarkhede29/contextos.git"
32
+ },
33
+ "engines": {
34
+ "node": ">=20"
35
+ },
36
+ "scripts": {
37
+ "build": "tsc",
38
+ "dev": "tsc --watch",
39
+ "lint": "tsc --noEmit",
40
+ "test": "vitest run"
41
+ }
42
+ }