@auraone/aura-ide-kit 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.
@@ -0,0 +1,94 @@
1
+ import {
2
+ AuraIdeAppFrame,
3
+ AuraInspector,
4
+ AuraIntakePacketPreview,
5
+ AuraMonaco,
6
+ AuraProblemsPanel,
7
+ AuraProjectTree,
8
+ AuraStatusBar,
9
+ AuraTabbedShell,
10
+ AuraTelemetryEventLog,
11
+ createDefaultIdeCommands,
12
+ } from "../src";
13
+ import "../src/styles.css";
14
+
15
+ const registry = createDefaultIdeCommands(
16
+ () => console.info("open-folder"),
17
+ () => console.info("settings"),
18
+ );
19
+
20
+ const tabs = [
21
+ {
22
+ id: "rubric",
23
+ title: "rubric.toml",
24
+ path: "/project/rubric.toml",
25
+ dirty: true,
26
+ content: <AuraMonaco value={'name = "Example"\nversion = "0.1.0"\n'} language="toml" />,
27
+ },
28
+ ];
29
+
30
+ export function AuraIdeExample() {
31
+ return (
32
+ <AuraIdeAppFrame
33
+ productName="Rubric Studio Open"
34
+ projectName="example-rubric"
35
+ commands={registry}
36
+ sidebar={
37
+ <AuraProjectTree
38
+ nodes={[
39
+ {
40
+ id: "root",
41
+ name: "example-rubric",
42
+ kind: "folder",
43
+ path: "/project",
44
+ expanded: true,
45
+ children: [
46
+ { id: "rubric", name: "rubric.toml", kind: "file", path: "/project/rubric.toml", dirty: true },
47
+ { id: "criteria", name: "criteria", kind: "folder", path: "/project/criteria", badge: "4" },
48
+ ],
49
+ },
50
+ ]}
51
+ selectedId="rubric"
52
+ />
53
+ }
54
+ main={<AuraTabbedShell tabs={tabs} activeTabId="rubric" onActiveTabChange={() => undefined} />}
55
+ inspector={<AuraInspector title="Selection">Rubric metadata and project health render here.</AuraInspector>}
56
+ bottomPanel={<AuraProblemsPanel problems={[]} />}
57
+ statusBar={<AuraStatusBar items={[{ id: "branch", label: "main" }, { id: "privacy", label: "Telemetry", value: "off", tone: "success" }]} />}
58
+ />
59
+ );
60
+ }
61
+
62
+ export function AuraIdePacketExample() {
63
+ return (
64
+ <AuraIntakePacketPreview
65
+ packet={{
66
+ packetId: "pkt_example",
67
+ flagship: "rubric-studio",
68
+ schemaVersion: "1.0.0",
69
+ payloadRoles: ["manifest", "criteria", "samples"],
70
+ includedFiles: [{ path: "criteria/helpfulness.toml", role: "criteria", bytes: 1200 }],
71
+ excludedPatterns: ["**/.env", "**/secrets/**"],
72
+ warnings: [],
73
+ }}
74
+ />
75
+ );
76
+ }
77
+
78
+ export function AuraIdeTelemetryExample() {
79
+ return (
80
+ <AuraTelemetryEventLog
81
+ events={[
82
+ {
83
+ id: "evt_1",
84
+ name: "project.opened",
85
+ timestamp: new Date(0).toISOString(),
86
+ optedIn: false,
87
+ destination: "local",
88
+ deliveryStatus: "would_send",
89
+ payloadPreview: { flagship: "rubric-studio" },
90
+ },
91
+ ]}
92
+ />
93
+ );
94
+ }
package/package.json ADDED
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "@auraone/aura-ide-kit",
3
+ "version": "0.2.0",
4
+ "description": "Accessible IDE components and SSR posture contracts for AuraOne Open Studio apps.",
5
+ "keywords": [
6
+ "auraone",
7
+ "open-studio",
8
+ "ide",
9
+ "react",
10
+ "monaco-editor",
11
+ "accessibility",
12
+ "proofline",
13
+ "desktop-app"
14
+ ],
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/auraoneai/open-studio-platform.git",
18
+ "directory": "packages/aura-ide-kit"
19
+ },
20
+ "homepage": "https://github.com/auraoneai/open-studio-platform/tree/main/packages/aura-ide-kit#readme",
21
+ "bugs": {
22
+ "url": "https://github.com/auraoneai/open-studio-platform/issues"
23
+ },
24
+ "license": "MIT",
25
+ "type": "module",
26
+ "sideEffects": [
27
+ "./dist/styles.css",
28
+ "./src/styles.css"
29
+ ],
30
+ "main": "./dist/index.cjs",
31
+ "module": "./dist/index.js",
32
+ "types": "./dist/index.d.ts",
33
+ "exports": {
34
+ ".": {
35
+ "types": "./dist/index.d.ts",
36
+ "import": "./dist/index.js",
37
+ "require": "./dist/index.cjs"
38
+ },
39
+ "./styles.css": "./dist/styles.css"
40
+ },
41
+ "files": [
42
+ "dist",
43
+ "README.md",
44
+ "examples"
45
+ ],
46
+ "scripts": {
47
+ "build": "tsup src/index.ts --format esm,cjs --dts --sourcemap --clean && cp src/styles.css dist/styles.css",
48
+ "typecheck": "tsc --noEmit",
49
+ "test": "vitest run --environment jsdom",
50
+ "test:watch": "vitest --environment jsdom"
51
+ },
52
+ "peerDependencies": {
53
+ "react": "18.3.1",
54
+ "react-dom": "18.3.1"
55
+ },
56
+ "dependencies": {
57
+ "@auraone/proofline-oss": "workspace:*",
58
+ "@monaco-editor/react": "4.7.0",
59
+ "lucide-react": "0.554.0"
60
+ },
61
+ "devDependencies": {
62
+ "@testing-library/jest-dom": "6.9.1",
63
+ "@testing-library/react": "16.3.0",
64
+ "@types/react": "18.3.12",
65
+ "@types/react-dom": "18.3.1",
66
+ "@vitejs/plugin-react": "4.7.0",
67
+ "axe-core": "4.11.0",
68
+ "jsdom": "25.0.1",
69
+ "react": "18.3.1",
70
+ "react-dom": "18.3.1",
71
+ "tsup": "8.5.1",
72
+ "typescript": "5.9.3",
73
+ "vite": "5.4.21",
74
+ "vitest": "2.1.9"
75
+ },
76
+ "engines": {
77
+ "node": ">=20.19.5"
78
+ },
79
+ "packageManager": "pnpm@10.18.0"
80
+ }