@lincyaw/kernel 1.0.0-rc.110 → 1.0.0-rc.112
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/package.json +1 -1
- package/src/contracts/projects.ts +11 -1
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DocumentOperation, OperationAnswer } from './workspace.ts'
|
|
1
|
+
import type { DocumentOperation, OperationAnswer, Revision } from './workspace.ts'
|
|
2
2
|
import type { CanonicalSource } from '../ir.ts'
|
|
3
3
|
import type { Member } from './server.ts'
|
|
4
4
|
|
|
@@ -6,6 +6,16 @@ export const PROJECT_MAX_REQUEST_CHARS = 4096
|
|
|
6
6
|
export const PROJECT_MAX_RESPONSE_CHARS = 7168
|
|
7
7
|
export const PROJECT_MAX_PLANS = 64
|
|
8
8
|
export const PROJECT_PLAN_TTL_MS = 300_000
|
|
9
|
+
export const DOCUMENT_IMPORT_MAX_FILES = 1000
|
|
10
|
+
export const DOCUMENT_IMPORT_MAX_BYTES = 32 << 20
|
|
11
|
+
export interface DocumentImportAnswer {
|
|
12
|
+
directory: string
|
|
13
|
+
documents: { dir: string, title: string }[]
|
|
14
|
+
files: number
|
|
15
|
+
unresolved: number
|
|
16
|
+
warnings: number
|
|
17
|
+
revision?: Revision
|
|
18
|
+
}
|
|
9
19
|
export type ProjectOperation = DocumentOperation | { op: 'retitle', dir: string, title: string }
|
|
10
20
|
export interface ProjectCaller { member: Member, origin: 'editor' | 'agent', boundDocument?: string }
|
|
11
21
|
export interface ProjectObservation { snapshot?: string, configuration: string }
|