@cesarandreslopez/occ 0.6.1 → 0.6.3

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.
@@ -0,0 +1,307 @@
1
+ import { z } from 'zod';
2
+ export declare const WorkspaceScopeSchema: z.ZodEnum<{
3
+ code: "code";
4
+ structure: "structure";
5
+ document: "document";
6
+ reference: "reference";
7
+ }>;
8
+ export type WorkspaceScope = z.infer<typeof WorkspaceScopeSchema>;
9
+ export declare const WorkspaceErrorSchema: z.ZodObject<{
10
+ scope: z.ZodEnum<{
11
+ code: "code";
12
+ structure: "structure";
13
+ document: "document";
14
+ reference: "reference";
15
+ }>;
16
+ path: z.ZodOptional<z.ZodString>;
17
+ message: z.ZodString;
18
+ }, z.core.$strip>;
19
+ export type WorkspaceError = z.infer<typeof WorkspaceErrorSchema>;
20
+ export declare const WorkspaceDocumentAggregateEntrySchema: z.ZodObject<{
21
+ type: z.ZodString;
22
+ count: z.ZodNumber;
23
+ words: z.ZodNumber;
24
+ pages: z.ZodNumber;
25
+ paragraphs: z.ZodNumber;
26
+ sheets: z.ZodNumber;
27
+ rows: z.ZodNumber;
28
+ cells: z.ZodNumber;
29
+ slides: z.ZodNumber;
30
+ size: z.ZodNumber;
31
+ }, z.core.$strip>;
32
+ export type WorkspaceDocumentAggregateEntry = z.infer<typeof WorkspaceDocumentAggregateEntrySchema>;
33
+ export declare const WorkspaceDocumentTotalsSchema: z.ZodObject<{
34
+ files: z.ZodNumber;
35
+ words: z.ZodNumber;
36
+ pages: z.ZodNumber;
37
+ paragraphs: z.ZodNumber;
38
+ sheets: z.ZodNumber;
39
+ rows: z.ZodNumber;
40
+ cells: z.ZodNumber;
41
+ slides: z.ZodNumber;
42
+ size: z.ZodNumber;
43
+ }, z.core.$strip>;
44
+ export type WorkspaceDocumentTotals = z.infer<typeof WorkspaceDocumentTotalsSchema>;
45
+ export declare const WorkspaceDocumentAggregatesSchema: z.ZodObject<{
46
+ files: z.ZodArray<z.ZodObject<{
47
+ type: z.ZodString;
48
+ count: z.ZodNumber;
49
+ words: z.ZodNumber;
50
+ pages: z.ZodNumber;
51
+ paragraphs: z.ZodNumber;
52
+ sheets: z.ZodNumber;
53
+ rows: z.ZodNumber;
54
+ cells: z.ZodNumber;
55
+ slides: z.ZodNumber;
56
+ size: z.ZodNumber;
57
+ }, z.core.$strip>>;
58
+ totals: z.ZodObject<{
59
+ files: z.ZodNumber;
60
+ words: z.ZodNumber;
61
+ pages: z.ZodNumber;
62
+ paragraphs: z.ZodNumber;
63
+ sheets: z.ZodNumber;
64
+ rows: z.ZodNumber;
65
+ cells: z.ZodNumber;
66
+ slides: z.ZodNumber;
67
+ size: z.ZodNumber;
68
+ }, z.core.$strip>;
69
+ }, z.core.$strip>;
70
+ export type WorkspaceDocumentAggregates = z.infer<typeof WorkspaceDocumentAggregatesSchema>;
71
+ export declare const WorkspaceCodeTotalsSchema: z.ZodObject<{
72
+ totalFiles: z.ZodNumber;
73
+ totalLines: z.ZodNumber;
74
+ totalCode: z.ZodNumber;
75
+ totalComment: z.ZodNumber;
76
+ totalBlank: z.ZodNumber;
77
+ }, z.core.$strip>;
78
+ export type WorkspaceCodeTotals = z.infer<typeof WorkspaceCodeTotalsSchema>;
79
+ export declare const WorkspaceCodeAnalysisSchema: z.ZodObject<{
80
+ languages: z.ZodArray<z.ZodObject<{
81
+ Name: z.ZodString;
82
+ Count: z.ZodNumber;
83
+ Lines: z.ZodNumber;
84
+ Blank: z.ZodNumber;
85
+ Comment: z.ZodNumber;
86
+ Code: z.ZodNumber;
87
+ Files: z.ZodOptional<z.ZodArray<z.ZodObject<{
88
+ Filename: z.ZodOptional<z.ZodString>;
89
+ Location: z.ZodOptional<z.ZodString>;
90
+ Lines: z.ZodNumber;
91
+ Blank: z.ZodNumber;
92
+ Comment: z.ZodNumber;
93
+ Code: z.ZodNumber;
94
+ }, z.core.$loose>>>;
95
+ }, z.core.$loose>>;
96
+ totals: z.ZodObject<{
97
+ totalFiles: z.ZodNumber;
98
+ totalLines: z.ZodNumber;
99
+ totalCode: z.ZodNumber;
100
+ totalComment: z.ZodNumber;
101
+ totalBlank: z.ZodNumber;
102
+ }, z.core.$strip>;
103
+ }, z.core.$strip>;
104
+ export type WorkspaceCodeAnalysis = z.infer<typeof WorkspaceCodeAnalysisSchema>;
105
+ export declare const WorkspaceStructureEntrySchema: z.ZodObject<{
106
+ file: z.ZodString;
107
+ totalNodes: z.ZodNumber;
108
+ maxDepth: z.ZodNumber;
109
+ nodes: z.ZodArray<z.ZodType<import("../structure/types.js").StructureNode, unknown, z.core.$ZodTypeInternals<import("../structure/types.js").StructureNode, unknown>>>;
110
+ }, z.core.$strip>;
111
+ export type WorkspaceStructureEntry = z.infer<typeof WorkspaceStructureEntrySchema>;
112
+ export declare const WorkspaceAnalysisSummarySchema: z.ZodObject<{
113
+ elapsedMs: z.ZodNumber;
114
+ code: z.ZodNullable<z.ZodObject<{
115
+ totalFiles: z.ZodNumber;
116
+ totalLines: z.ZodNumber;
117
+ totalCode: z.ZodNumber;
118
+ totalComment: z.ZodNumber;
119
+ totalBlank: z.ZodNumber;
120
+ }, z.core.$strip>>;
121
+ documents: z.ZodNullable<z.ZodObject<{
122
+ files: z.ZodNumber;
123
+ words: z.ZodNumber;
124
+ pages: z.ZodNumber;
125
+ paragraphs: z.ZodNumber;
126
+ sheets: z.ZodNumber;
127
+ rows: z.ZodNumber;
128
+ cells: z.ZodNumber;
129
+ slides: z.ZodNumber;
130
+ size: z.ZodNumber;
131
+ }, z.core.$strip>>;
132
+ structures: z.ZodNumber;
133
+ }, z.core.$strip>;
134
+ export type WorkspaceAnalysisSummary = z.infer<typeof WorkspaceAnalysisSummarySchema>;
135
+ export declare const WorkspaceAnalysisSchema: z.ZodObject<{
136
+ schemaVersion: z.ZodLiteral<1>;
137
+ rootDir: z.ZodString;
138
+ summary: z.ZodObject<{
139
+ elapsedMs: z.ZodNumber;
140
+ code: z.ZodNullable<z.ZodObject<{
141
+ totalFiles: z.ZodNumber;
142
+ totalLines: z.ZodNumber;
143
+ totalCode: z.ZodNumber;
144
+ totalComment: z.ZodNumber;
145
+ totalBlank: z.ZodNumber;
146
+ }, z.core.$strip>>;
147
+ documents: z.ZodNullable<z.ZodObject<{
148
+ files: z.ZodNumber;
149
+ words: z.ZodNumber;
150
+ pages: z.ZodNumber;
151
+ paragraphs: z.ZodNumber;
152
+ sheets: z.ZodNumber;
153
+ rows: z.ZodNumber;
154
+ cells: z.ZodNumber;
155
+ slides: z.ZodNumber;
156
+ size: z.ZodNumber;
157
+ }, z.core.$strip>>;
158
+ structures: z.ZodNumber;
159
+ }, z.core.$strip>;
160
+ code: z.ZodNullable<z.ZodObject<{
161
+ languages: z.ZodArray<z.ZodObject<{
162
+ Name: z.ZodString;
163
+ Count: z.ZodNumber;
164
+ Lines: z.ZodNumber;
165
+ Blank: z.ZodNumber;
166
+ Comment: z.ZodNumber;
167
+ Code: z.ZodNumber;
168
+ Files: z.ZodOptional<z.ZodArray<z.ZodObject<{
169
+ Filename: z.ZodOptional<z.ZodString>;
170
+ Location: z.ZodOptional<z.ZodString>;
171
+ Lines: z.ZodNumber;
172
+ Blank: z.ZodNumber;
173
+ Comment: z.ZodNumber;
174
+ Code: z.ZodNumber;
175
+ }, z.core.$loose>>>;
176
+ }, z.core.$loose>>;
177
+ totals: z.ZodObject<{
178
+ totalFiles: z.ZodNumber;
179
+ totalLines: z.ZodNumber;
180
+ totalCode: z.ZodNumber;
181
+ totalComment: z.ZodNumber;
182
+ totalBlank: z.ZodNumber;
183
+ }, z.core.$strip>;
184
+ }, z.core.$strip>>;
185
+ documents: z.ZodNullable<z.ZodObject<{
186
+ aggregates: z.ZodObject<{
187
+ files: z.ZodArray<z.ZodObject<{
188
+ type: z.ZodString;
189
+ count: z.ZodNumber;
190
+ words: z.ZodNumber;
191
+ pages: z.ZodNumber;
192
+ paragraphs: z.ZodNumber;
193
+ sheets: z.ZodNumber;
194
+ rows: z.ZodNumber;
195
+ cells: z.ZodNumber;
196
+ slides: z.ZodNumber;
197
+ size: z.ZodNumber;
198
+ }, z.core.$strip>>;
199
+ totals: z.ZodObject<{
200
+ files: z.ZodNumber;
201
+ words: z.ZodNumber;
202
+ pages: z.ZodNumber;
203
+ paragraphs: z.ZodNumber;
204
+ sheets: z.ZodNumber;
205
+ rows: z.ZodNumber;
206
+ cells: z.ZodNumber;
207
+ slides: z.ZodNumber;
208
+ size: z.ZodNumber;
209
+ }, z.core.$strip>;
210
+ }, z.core.$strip>;
211
+ }, z.core.$strip>>;
212
+ structures: z.ZodArray<z.ZodObject<{
213
+ file: z.ZodString;
214
+ totalNodes: z.ZodNumber;
215
+ maxDepth: z.ZodNumber;
216
+ nodes: z.ZodArray<z.ZodType<import("../structure/types.js").StructureNode, unknown, z.core.$ZodTypeInternals<import("../structure/types.js").StructureNode, unknown>>>;
217
+ }, z.core.$strip>>;
218
+ skipped: z.ZodArray<z.ZodObject<{
219
+ path: z.ZodString;
220
+ reason: z.ZodString;
221
+ size: z.ZodNumber;
222
+ }, z.core.$strip>>;
223
+ errors: z.ZodArray<z.ZodObject<{
224
+ scope: z.ZodEnum<{
225
+ code: "code";
226
+ structure: "structure";
227
+ document: "document";
228
+ reference: "reference";
229
+ }>;
230
+ path: z.ZodOptional<z.ZodString>;
231
+ message: z.ZodString;
232
+ }, z.core.$strip>>;
233
+ }, z.core.$strip>;
234
+ export type WorkspaceAnalysis = z.infer<typeof WorkspaceAnalysisSchema>;
235
+ export declare const WorkspaceDocumentSummarySchema: z.ZodObject<{
236
+ filePath: z.ZodString;
237
+ relativePath: z.ZodString;
238
+ format: z.ZodString;
239
+ title: z.ZodOptional<z.ZodString>;
240
+ words: z.ZodNumber;
241
+ pages: z.ZodNumber;
242
+ tokenEstimate: z.ZodNumber;
243
+ headingCount: z.ZodNumber;
244
+ topLevelSections: z.ZodArray<z.ZodString>;
245
+ markdownContent: z.ZodOptional<z.ZodString>;
246
+ }, z.core.$strip>;
247
+ export type WorkspaceDocumentSummary = z.infer<typeof WorkspaceDocumentSummarySchema>;
248
+ export declare const WorkspaceCrossReferenceSchema: z.ZodObject<{
249
+ sourceFile: z.ZodString;
250
+ targetFile: z.ZodString;
251
+ referenceType: z.ZodEnum<{
252
+ "filename-mention": "filename-mention";
253
+ hyperlink: "hyperlink";
254
+ citation: "citation";
255
+ }>;
256
+ context: z.ZodString;
257
+ line: z.ZodOptional<z.ZodNumber>;
258
+ }, z.core.$strip>;
259
+ export type WorkspaceCrossReference = z.infer<typeof WorkspaceCrossReferenceSchema>;
260
+ export declare const WorkspaceUnresolvedMentionSchema: z.ZodObject<{
261
+ sourceFile: z.ZodString;
262
+ mention: z.ZodString;
263
+ context: z.ZodString;
264
+ }, z.core.$strip>;
265
+ export type WorkspaceUnresolvedMention = z.infer<typeof WorkspaceUnresolvedMentionSchema>;
266
+ export declare const WorkspaceDocumentSetSchema: z.ZodObject<{
267
+ schemaVersion: z.ZodLiteral<1>;
268
+ rootDir: z.ZodString;
269
+ documents: z.ZodArray<z.ZodObject<{
270
+ filePath: z.ZodString;
271
+ relativePath: z.ZodString;
272
+ format: z.ZodString;
273
+ title: z.ZodOptional<z.ZodString>;
274
+ words: z.ZodNumber;
275
+ pages: z.ZodNumber;
276
+ tokenEstimate: z.ZodNumber;
277
+ headingCount: z.ZodNumber;
278
+ topLevelSections: z.ZodArray<z.ZodString>;
279
+ markdownContent: z.ZodOptional<z.ZodString>;
280
+ }, z.core.$strip>>;
281
+ crossReferences: z.ZodArray<z.ZodObject<{
282
+ sourceFile: z.ZodString;
283
+ targetFile: z.ZodString;
284
+ referenceType: z.ZodEnum<{
285
+ "filename-mention": "filename-mention";
286
+ hyperlink: "hyperlink";
287
+ citation: "citation";
288
+ }>;
289
+ context: z.ZodString;
290
+ line: z.ZodOptional<z.ZodNumber>;
291
+ }, z.core.$strip>>;
292
+ unresolvedMentions: z.ZodArray<z.ZodObject<{
293
+ sourceFile: z.ZodString;
294
+ mention: z.ZodString;
295
+ context: z.ZodString;
296
+ }, z.core.$strip>>;
297
+ skipped: z.ZodArray<z.ZodObject<{
298
+ path: z.ZodString;
299
+ reason: z.ZodString;
300
+ size: z.ZodNumber;
301
+ }, z.core.$strip>>;
302
+ errors: z.ZodArray<z.ZodObject<{
303
+ path: z.ZodOptional<z.ZodString>;
304
+ message: z.ZodString;
305
+ }, z.core.$strip>>;
306
+ }, z.core.$strip>;
307
+ export type WorkspaceDocumentSet = z.infer<typeof WorkspaceDocumentSetSchema>;
@@ -0,0 +1,109 @@
1
+ import { z } from 'zod';
2
+ import { SccLanguageSchema } from '../scc.js';
3
+ import { SkippedEntrySchema } from '../types.js';
4
+ import { StructureNodeSchema } from '../structure/types.js';
5
+ export const WorkspaceScopeSchema = z.enum(['code', 'document', 'structure', 'reference']);
6
+ export const WorkspaceErrorSchema = z.object({
7
+ scope: WorkspaceScopeSchema,
8
+ path: z.string().optional(),
9
+ message: z.string(),
10
+ });
11
+ export const WorkspaceDocumentAggregateEntrySchema = z.object({
12
+ type: z.string(),
13
+ count: z.number(),
14
+ words: z.number(),
15
+ pages: z.number(),
16
+ paragraphs: z.number(),
17
+ sheets: z.number(),
18
+ rows: z.number(),
19
+ cells: z.number(),
20
+ slides: z.number(),
21
+ size: z.number(),
22
+ });
23
+ export const WorkspaceDocumentTotalsSchema = z.object({
24
+ files: z.number(),
25
+ words: z.number(),
26
+ pages: z.number(),
27
+ paragraphs: z.number(),
28
+ sheets: z.number(),
29
+ rows: z.number(),
30
+ cells: z.number(),
31
+ slides: z.number(),
32
+ size: z.number(),
33
+ });
34
+ export const WorkspaceDocumentAggregatesSchema = z.object({
35
+ files: z.array(WorkspaceDocumentAggregateEntrySchema),
36
+ totals: WorkspaceDocumentTotalsSchema,
37
+ });
38
+ export const WorkspaceCodeTotalsSchema = z.object({
39
+ totalFiles: z.number(),
40
+ totalLines: z.number(),
41
+ totalCode: z.number(),
42
+ totalComment: z.number(),
43
+ totalBlank: z.number(),
44
+ });
45
+ export const WorkspaceCodeAnalysisSchema = z.object({
46
+ languages: z.array(SccLanguageSchema),
47
+ totals: WorkspaceCodeTotalsSchema,
48
+ });
49
+ export const WorkspaceStructureEntrySchema = z.object({
50
+ file: z.string(),
51
+ totalNodes: z.number(),
52
+ maxDepth: z.number(),
53
+ nodes: z.array(StructureNodeSchema),
54
+ });
55
+ export const WorkspaceAnalysisSummarySchema = z.object({
56
+ elapsedMs: z.number(),
57
+ code: WorkspaceCodeTotalsSchema.nullable(),
58
+ documents: WorkspaceDocumentTotalsSchema.nullable(),
59
+ structures: z.number(),
60
+ });
61
+ export const WorkspaceAnalysisSchema = z.object({
62
+ schemaVersion: z.literal(1),
63
+ rootDir: z.string(),
64
+ summary: WorkspaceAnalysisSummarySchema,
65
+ code: WorkspaceCodeAnalysisSchema.nullable(),
66
+ documents: z.object({
67
+ aggregates: WorkspaceDocumentAggregatesSchema,
68
+ }).nullable(),
69
+ structures: z.array(WorkspaceStructureEntrySchema),
70
+ skipped: z.array(SkippedEntrySchema),
71
+ errors: z.array(WorkspaceErrorSchema),
72
+ });
73
+ export const WorkspaceDocumentSummarySchema = z.object({
74
+ filePath: z.string(),
75
+ relativePath: z.string(),
76
+ format: z.string(),
77
+ title: z.string().optional(),
78
+ words: z.number(),
79
+ pages: z.number(),
80
+ tokenEstimate: z.number(),
81
+ headingCount: z.number(),
82
+ topLevelSections: z.array(z.string()),
83
+ markdownContent: z.string().optional(),
84
+ });
85
+ export const WorkspaceCrossReferenceSchema = z.object({
86
+ sourceFile: z.string(),
87
+ targetFile: z.string(),
88
+ referenceType: z.enum(['filename-mention', 'hyperlink', 'citation']),
89
+ context: z.string(),
90
+ line: z.number().optional(),
91
+ });
92
+ export const WorkspaceUnresolvedMentionSchema = z.object({
93
+ sourceFile: z.string(),
94
+ mention: z.string(),
95
+ context: z.string(),
96
+ });
97
+ export const WorkspaceDocumentSetSchema = z.object({
98
+ schemaVersion: z.literal(1),
99
+ rootDir: z.string(),
100
+ documents: z.array(WorkspaceDocumentSummarySchema),
101
+ crossReferences: z.array(WorkspaceCrossReferenceSchema),
102
+ unresolvedMentions: z.array(WorkspaceUnresolvedMentionSchema),
103
+ skipped: z.array(SkippedEntrySchema),
104
+ errors: z.array(z.object({
105
+ path: z.string().optional(),
106
+ message: z.string(),
107
+ })),
108
+ });
109
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/workspace/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;AAG3F,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,KAAK,EAAE,oBAAoB;IAC3B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAA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D,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC;IACpC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CAAC;CACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "name": "@cesarandreslopez/occ",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "Office Cloc and Count — scc-style summary tables for office documents",
5
5
  "type": "module",
6
+ "main": "./dist/bin/occ.js",
7
+ "types": "./dist/bin/occ.d.ts",
6
8
  "bin": {
7
9
  "occ": "./dist/bin/occ.js"
8
10
  },
@@ -58,6 +60,10 @@
58
60
  "types": "./dist/src/code/chunk.d.ts",
59
61
  "default": "./dist/src/code/chunk.js"
60
62
  },
63
+ "./code/session": {
64
+ "types": "./dist/src/code/session.d.ts",
65
+ "default": "./dist/src/code/session.js"
66
+ },
61
67
  "./code/cache": {
62
68
  "types": "./dist/src/code/cache.d.ts",
63
69
  "default": "./dist/src/code/cache.js"
@@ -78,6 +84,18 @@
78
84
  "types": "./dist/src/doc/batch.d.ts",
79
85
  "default": "./dist/src/doc/batch.js"
80
86
  },
87
+ "./workspace/analyze": {
88
+ "types": "./dist/src/workspace/analyze.d.ts",
89
+ "default": "./dist/src/workspace/analyze.js"
90
+ },
91
+ "./workspace/documents": {
92
+ "types": "./dist/src/workspace/documents.d.ts",
93
+ "default": "./dist/src/workspace/documents.js"
94
+ },
95
+ "./workspace/types": {
96
+ "types": "./dist/src/workspace/types.d.ts",
97
+ "default": "./dist/src/workspace/types.js"
98
+ },
81
99
  "./markdown/convert": {
82
100
  "types": "./dist/src/markdown/convert.d.ts",
83
101
  "default": "./dist/src/markdown/convert.js"
@@ -131,6 +149,91 @@
131
149
  "default": "./dist/src/stats.js"
132
150
  }
133
151
  },
152
+ "typesVersions": {
153
+ "*": {
154
+ "code/build": [
155
+ "dist/src/code/build.d.ts"
156
+ ],
157
+ "code/types": [
158
+ "dist/src/code/types.d.ts"
159
+ ],
160
+ "code/query": [
161
+ "dist/src/code/query.d.ts"
162
+ ],
163
+ "code/discover": [
164
+ "dist/src/code/discover.d.ts"
165
+ ],
166
+ "code/chunk": [
167
+ "dist/src/code/chunk.d.ts"
168
+ ],
169
+ "code/session": [
170
+ "dist/src/code/session.d.ts"
171
+ ],
172
+ "code/cache": [
173
+ "dist/src/code/cache.d.ts"
174
+ ],
175
+ "doc/inspect": [
176
+ "dist/src/doc/inspect.d.ts"
177
+ ],
178
+ "doc/types": [
179
+ "dist/src/doc/types.d.ts"
180
+ ],
181
+ "doc/discover": [
182
+ "dist/src/doc/discover.d.ts"
183
+ ],
184
+ "doc/batch": [
185
+ "dist/src/doc/batch.d.ts"
186
+ ],
187
+ "doc/entities": [
188
+ "dist/src/doc/entities.d.ts"
189
+ ],
190
+ "doc/references": [
191
+ "dist/src/doc/references.d.ts"
192
+ ],
193
+ "workspace/analyze": [
194
+ "dist/src/workspace/analyze.d.ts"
195
+ ],
196
+ "workspace/documents": [
197
+ "dist/src/workspace/documents.d.ts"
198
+ ],
199
+ "workspace/types": [
200
+ "dist/src/workspace/types.d.ts"
201
+ ],
202
+ "markdown/convert": [
203
+ "dist/src/markdown/convert.d.ts"
204
+ ],
205
+ "structure/extract": [
206
+ "dist/src/structure/extract.d.ts"
207
+ ],
208
+ "structure/types": [
209
+ "dist/src/structure/types.d.ts"
210
+ ],
211
+ "sheet/inspect": [
212
+ "dist/src/sheet/inspect.d.ts"
213
+ ],
214
+ "sheet/types": [
215
+ "dist/src/sheet/types.d.ts"
216
+ ],
217
+ "slide/inspect": [
218
+ "dist/src/slide/inspect.d.ts"
219
+ ],
220
+ "table/inspect": [
221
+ "dist/src/table/inspect.d.ts"
222
+ ],
223
+ "tokens": [
224
+ "dist/src/tokens.d.ts"
225
+ ],
226
+ "progress-event": [
227
+ "dist/src/progress-event.d.ts"
228
+ ],
229
+ "types": [
230
+ "dist/src/types.d.ts"
231
+ ],
232
+ "stats": [
233
+ "dist/src/stats.d.ts"
234
+ ]
235
+ }
236
+ },
134
237
  "files": [
135
238
  "dist/",
136
239
  "scripts/postinstall.js"
@@ -155,23 +258,15 @@
155
258
  "mammoth": "^1.8.0",
156
259
  "officeparser": "^6.0.1",
157
260
  "pdf-parse": "^1.1.1",
261
+ "typescript": "^5.9.3",
158
262
  "turndown": "^7.2.2",
159
263
  "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
160
264
  "zod": "^4.3.6"
161
265
  },
162
- "peerDependencies": {
163
- "typescript": ">=5.0.0"
164
- },
165
- "peerDependenciesMeta": {
166
- "typescript": {
167
- "optional": true
168
- }
169
- },
170
266
  "devDependencies": {
171
267
  "@types/node": "^25.3.5",
172
268
  "@types/turndown": "^5.0.6",
173
269
  "docx": "^9.6.0",
174
- "tsx": "^4.21.0",
175
- "typescript": "^5.9.3"
270
+ "tsx": "^4.21.0"
176
271
  }
177
272
  }