@loomcycle/explorer 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/dist/DocumentViewer.d.ts +20 -0
- package/dist/PathExplorer.d.ts +14 -0
- package/dist/components/ChunkEditorModal.d.ts +9 -0
- package/dist/components/DocumentChunkTree.d.ts +13 -0
- package/dist/components/DocumentViewerBody.d.ts +11 -0
- package/dist/components/ExplorerRoot.d.ts +18 -0
- package/dist/components/Markdown.d.ts +3 -0
- package/dist/components/PathTree.d.ts +18 -0
- package/dist/components/Splitter.d.ts +10 -0
- package/dist/index.cjs +9 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +1023 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/createClient.d.ts +15 -0
- package/dist/lib/dataLayer.d.ts +42 -0
- package/dist/styles.css +767 -0
- package/dist/types.d.ts +35 -0
- package/package.json +69 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type PathScope = "agent" | "user" | "tenant";
|
|
2
|
+
export type DocScope = "agent" | "user";
|
|
3
|
+
export interface BrowseScope {
|
|
4
|
+
scopeId?: string;
|
|
5
|
+
tenant?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PathEntry {
|
|
8
|
+
name: string;
|
|
9
|
+
kind: string;
|
|
10
|
+
full_path: string;
|
|
11
|
+
resource_ref?: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface ChunkRow {
|
|
14
|
+
id: string;
|
|
15
|
+
document_id: string;
|
|
16
|
+
parent_id?: string;
|
|
17
|
+
position: number;
|
|
18
|
+
title: string;
|
|
19
|
+
type?: string;
|
|
20
|
+
status?: string;
|
|
21
|
+
revision: number;
|
|
22
|
+
}
|
|
23
|
+
export interface ChunkDetail extends ChunkRow {
|
|
24
|
+
body: string;
|
|
25
|
+
fields?: unknown;
|
|
26
|
+
}
|
|
27
|
+
export interface Principal {
|
|
28
|
+
subject: string;
|
|
29
|
+
}
|
|
30
|
+
export interface AssistantContext {
|
|
31
|
+
documentId: string;
|
|
32
|
+
scope: string;
|
|
33
|
+
subject?: string;
|
|
34
|
+
onChanged?: () => void;
|
|
35
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@loomcycle/explorer",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Embeddable React Path VFS + chunked-graph Document browser for the loomcycle agentic runtime (RFC AL / AK) — a themeable, standalone package: a dirent tree with folder/document CRUD and a chunk-tree Document viewer/editor.",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"author": "Dennis Gubsky",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/denn-gubsky/loomcycle.git",
|
|
11
|
+
"directory": "packages/explorer"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"loomcycle",
|
|
15
|
+
"explorer",
|
|
16
|
+
"path",
|
|
17
|
+
"document",
|
|
18
|
+
"vfs",
|
|
19
|
+
"react",
|
|
20
|
+
"agent",
|
|
21
|
+
"ai",
|
|
22
|
+
"component"
|
|
23
|
+
],
|
|
24
|
+
"sideEffects": [
|
|
25
|
+
"**/*.css"
|
|
26
|
+
],
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"import": "./dist/index.js",
|
|
31
|
+
"require": "./dist/index.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./styles.css": "./dist/styles.css"
|
|
34
|
+
},
|
|
35
|
+
"main": "./dist/index.cjs",
|
|
36
|
+
"module": "./dist/index.js",
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
38
|
+
"files": [
|
|
39
|
+
"dist"
|
|
40
|
+
],
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "npm run build:lib",
|
|
46
|
+
"build:lib": "vite build --config vite.config.lib.ts && tsc -p tsconfig.lib.json && cp src/styles.css dist/styles.css",
|
|
47
|
+
"prepack": "npm run build:lib",
|
|
48
|
+
"typecheck": "tsc --noEmit",
|
|
49
|
+
"test": "vitest run --passWithNoTests",
|
|
50
|
+
"test:watch": "vitest"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"@loomcycle/client": "^1.12.1",
|
|
54
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
55
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@loomcycle/client": "^1.12.1",
|
|
59
|
+
"@types/node": "^22.0.0",
|
|
60
|
+
"@types/react": "^19.0.0",
|
|
61
|
+
"@types/react-dom": "^19.0.0",
|
|
62
|
+
"@vitejs/plugin-react": "^5.0.0",
|
|
63
|
+
"react": "^19.0.0",
|
|
64
|
+
"react-dom": "^19.0.0",
|
|
65
|
+
"typescript": "^5.6.0",
|
|
66
|
+
"vite": "^7.0.0",
|
|
67
|
+
"vitest": "^3.0.0"
|
|
68
|
+
}
|
|
69
|
+
}
|