tokensafe-ui 0.1.3 → 0.1.5
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/README.md +215 -0
- package/bin/cli.js +1 -1
- package/dist/{chunk-DC5DUO6P.js → chunk-QNP65TV7.js} +1 -7
- package/dist/{chunk-R6O2VMCZ.js → chunk-UESQTIJY.js} +0 -7
- package/dist/{chunk-KAQKTPPN.js → chunk-WZVWZB6L.js} +0 -7
- package/dist/{chunk-CXJYXG22.js → chunk-ZRW74NHE.js} +3 -9
- package/dist/index.cjs +0 -6
- package/dist/index.js +1 -7
- package/dist/mcp.cjs +0 -6
- package/dist/mcp.js +4 -10
- package/dist/observer.cjs +0 -6
- package/dist/observer.js +2 -8
- package/dist/oumv.cjs +0 -6
- package/dist/oumv.js +4 -10
- package/dist/patcher.cjs +0 -6
- package/dist/patcher.js +1 -7
- package/dist/testing.cjs +0 -6
- package/dist/testing.js +1 -7
- package/dist/vite.cjs +0 -6
- package/dist/vite.js +1 -7
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
# tokensafe-ui
|
|
2
|
+
|
|
3
|
+
[](LICENSE)
|
|
4
|
+
[](https://www.npmjs.com/package/@tokensafe/ui)
|
|
5
|
+
[](https://github.com/tokensafe-dev/oumv)
|
|
6
|
+
|
|
7
|
+
> **The native reactive micro-framework and runtime for AI coding agents implementing OUMV: The Universal Agent-UI Protocol (Observe · Understand · Mutate · Verify).**
|
|
8
|
+
|
|
9
|
+
Part of the **[TokenSafe](https://github.com/tokensafe-dev)** autonomous agent developer ecosystem.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## The Philosophy
|
|
14
|
+
|
|
15
|
+
> *"Do not try to build a framework that is merely easier for AI agents to write.
|
|
16
|
+
> Build a framework where an AI agent can Observe, Understand, Mutate, and Verify the interface through a standardized protocol."*
|
|
17
|
+
|
|
18
|
+
Traditional frontend frameworks (React, Vue, Angular) were designed for human developers working inside desktop IDEs. When AI agents interact with them, they hit severe friction:
|
|
19
|
+
- **Reactivity Traps**: Stale closures (`useEffect`, dependency arrays) cause hallucinations and infinite render loops.
|
|
20
|
+
- **Context Bloat**: Feeding raw HTML or DOM trees to an LLM costs tens of thousands of tokens per inspection.
|
|
21
|
+
- **Invisible Causality**: The agent cannot see *why* an element is in a given state or what will break if a state changes.
|
|
22
|
+
- **Fragile Verification Loops**: Verifying a minor UI mutation requires launching heavy, slow browser automation suites.
|
|
23
|
+
|
|
24
|
+
**`tokensafe-ui`** establishes an isomorphic reactive runtime and natively implements **[OUMV: The Universal Agent-UI Protocol](https://github.com/tokensafe-dev/oumv)** (Observe · Understand · Mutate · Verify) to close the autonomous feedback loop between AI agents and user interfaces.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## OUMV: The Universal Agent-UI Protocol Architecture
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
┌────────────────────────────────────────────────────────────────────────┐
|
|
32
|
+
│ TOKENSAFE-UI RUNTIME ENGINE │
|
|
33
|
+
├───────────────────────────────┬────────────────────────────────────────┤
|
|
34
|
+
│ 1. OBSERVE │ 2. UNDERSTAND │
|
|
35
|
+
│ • Multi-Level Snapshot L0–L4 │ • Dynamic Reactive Signals Graph │
|
|
36
|
+
│ • A11y & Interactive Surface │ • Causality Engine (Why this state?) │
|
|
37
|
+
│ • Active State Values │ • Invariant & Schema Contracts │
|
|
38
|
+
├───────────────────────────────┼────────────────────────────────────────┤
|
|
39
|
+
│ 3. MUTATE │ 4. VERIFY │
|
|
40
|
+
│ • Symbol-Level Edits with OCC│ • Low-ms Sync Action Testing │
|
|
41
|
+
│ • Transactions & Rollbacks │ • Structured State & A11y Diffs │
|
|
42
|
+
│ • Ephemeral Sandbox State │ • Type Guard & Diagnostics Intercept │
|
|
43
|
+
└───────────────────────────────┴────────────────────────────────────────┘
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### 1. OBSERVE: Multi-Level Context (L0–L4)
|
|
47
|
+
Progressive context disclosure guarantees the agent never wastes tokens:
|
|
48
|
+
- **L0 (Pulse)**: Current route, mounted root components, error count (~20 tokens).
|
|
49
|
+
- **L1 (Interactive Surface)**: Actionable controls, ARIA roles, current values, and triggers (~100–250 tokens).
|
|
50
|
+
- **L2 (Component Contract)**: Targeted state schema, props, and actions (~80 tokens).
|
|
51
|
+
- **L3 (Isolated Source)**: Symbol-level component source code with AST line numbers.
|
|
52
|
+
- **L4 (Runtime Traces)**: Event stream, signal mutations, and active subscriptions.
|
|
53
|
+
|
|
54
|
+
### 2. UNDERSTAND: Dynamic Dependency Graph & Causality Telemetry
|
|
55
|
+
- **Dynamic Reactive Signals Graph**: Tracks runtime dependencies (`signal -> computed -> effect -> DOM binding`) without relying solely on static AST imports.
|
|
56
|
+
- **Runtime Causality Inspector (`why_state`)**: Identifies root causes of UI states (e.g., *"Why is the Submit button disabled?"* $\rightarrow$ validation invariant failure in `email` field).
|
|
57
|
+
|
|
58
|
+
### 3. MUTATE: Symbol-Level Edits with Optimistic Concurrency Control (OCC)
|
|
59
|
+
- **Symbol-Level Source Editing**: Agents modify clean, isolated TypeScript components with automated post-edit type checking (`tsc --noEmit`) and auto-formatting before triggering HMR.
|
|
60
|
+
- **Optimistic Concurrency Control (OCC)**: Every component inspection returns a content version hash; mutations require `expectedVersion` to prevent overwriting concurrent edits.
|
|
61
|
+
- **Ephemeral Sandbox**: Test state transitions and dispatch actions in memory without touching disk files.
|
|
62
|
+
|
|
63
|
+
### 4. VERIFY: Local Low-Millisecond Multi-Metric Verification
|
|
64
|
+
- **Action Testing API**: Directly execute actions against components and receive structured state diffs and A11y surface diffs in single-digit milliseconds—without launching headless browsers.
|
|
65
|
+
- **Multi-Metric Latency Telemetry**: Telemetry breaks down timing across action reducer execution, schema validation, signal propagation, and DOM binding updates.
|
|
66
|
+
- **Contract Invariant Assertions**: Real-time schema validation via Zod contracts.
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Documentation
|
|
71
|
+
|
|
72
|
+
- [OUMV Protocol Manifesto](docs/plans/2026-11-22-agent-ui-protocol-manifesto.md)
|
|
73
|
+
- [Architecture & Design Specification](docs/plans/2026-11-22-agent-dom-framework-design.md)
|
|
74
|
+
- [MVP Implementation Plan](docs/plans/2026-11-22-agent-dom-implementation-plan.md)
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Installation
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
# Using pnpm
|
|
82
|
+
pnpm add tokensafe-ui zod
|
|
83
|
+
|
|
84
|
+
# Using npm
|
|
85
|
+
npm install tokensafe-ui zod
|
|
86
|
+
|
|
87
|
+
# Or using the scoped package
|
|
88
|
+
pnpm add @tokensafe/ui zod
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Quickstart Scaffolding
|
|
92
|
+
|
|
93
|
+
Create a new TokenSafe UI project with pre-configured Vite, TypeScript, and AI Agent MCP integration:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
pnpm create tokensafe-ui my-app
|
|
97
|
+
# or
|
|
98
|
+
npm create tokensafe-ui my-app
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Quick Example
|
|
104
|
+
|
|
105
|
+
### Defining an Agent-Friendly Component
|
|
106
|
+
|
|
107
|
+
```typescript
|
|
108
|
+
import { defineComponent, z, bind } from 'tokensafe-ui';
|
|
109
|
+
|
|
110
|
+
export const TaskItem = defineComponent({
|
|
111
|
+
id: 'task-item',
|
|
112
|
+
|
|
113
|
+
// 1. Explicit State Contract (AI inspects schema in <30 tokens)
|
|
114
|
+
state: {
|
|
115
|
+
id: z.string(),
|
|
116
|
+
title: z.string(),
|
|
117
|
+
completed: z.boolean().default(false),
|
|
118
|
+
status: z.enum(['idle', 'saving', 'saved', 'error']).default('idle'),
|
|
119
|
+
},
|
|
120
|
+
|
|
121
|
+
// 2. Pure Synchronous Actions (Deterministic reducers)
|
|
122
|
+
actions: {
|
|
123
|
+
toggle: (s) => ({ ...s, completed: !s.completed }),
|
|
124
|
+
rename: (s, newTitle: string) => ({ ...s, title: newTitle }),
|
|
125
|
+
setStatus: (s, status) => ({ ...s, status }),
|
|
126
|
+
},
|
|
127
|
+
|
|
128
|
+
// 3. Managed Effects (Decoupled async with concurrency policy)
|
|
129
|
+
effects: {
|
|
130
|
+
save: {
|
|
131
|
+
concurrency: 'latest-wins',
|
|
132
|
+
handler: async ({ dispatch, signal, state }) => {
|
|
133
|
+
dispatch('setStatus', 'saving');
|
|
134
|
+
try {
|
|
135
|
+
await api.saveTask(state.id, { completed: state.completed }, { signal });
|
|
136
|
+
if (!signal.aborted) dispatch('setStatus', 'saved');
|
|
137
|
+
} catch (err: any) {
|
|
138
|
+
if (!signal.aborted) dispatch('setStatus', 'error');
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
|
|
144
|
+
// 4. Pure Projection with Two-Way Binding
|
|
145
|
+
render: ({ state, emit }) => (
|
|
146
|
+
<div class="task-card" data-agent-id="root">
|
|
147
|
+
<input
|
|
148
|
+
type="checkbox"
|
|
149
|
+
data-agent-id="checkbox"
|
|
150
|
+
{...bind(emit.toggle, state.completed)}
|
|
151
|
+
/>
|
|
152
|
+
<span data-agent-id="title" class={state.completed ? 'done' : ''}>
|
|
153
|
+
{state.title}
|
|
154
|
+
</span>
|
|
155
|
+
<button data-agent-id="btn-save" onClick={emit.save} disabled={state.status === 'saving'}>
|
|
156
|
+
{state.status === 'saving' ? 'Saving...' : 'Save'}
|
|
157
|
+
</button>
|
|
158
|
+
</div>
|
|
159
|
+
),
|
|
160
|
+
});
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Inspecting the Semantic Snapshot (Agent Vision)
|
|
164
|
+
|
|
165
|
+
```typescript
|
|
166
|
+
import { getSemanticSnapshot } from 'tokensafe-ui/observer';
|
|
167
|
+
|
|
168
|
+
const snapshot = getSemanticSnapshot(document.getElementById('app'));
|
|
169
|
+
console.log(snapshot);
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
**Output (<60 tokens for the LLM context):**
|
|
173
|
+
```yaml
|
|
174
|
+
view: task-item#root
|
|
175
|
+
state: { id: "t-1", title: "Ship agent-dom", completed: false, status: "idle" }
|
|
176
|
+
elements:
|
|
177
|
+
- input#checkbox [role: checkbox, checked: false, action: toggle]
|
|
178
|
+
- span#title: "Ship agent-dom"
|
|
179
|
+
- button#btn-save: "Save" [action: save]
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Roadmap
|
|
185
|
+
|
|
186
|
+
- [x] **P0: Core Reactive Substrate & Observer Foundation**
|
|
187
|
+
- [x] Micro-signals implementation (dependency-free, zero-closure traps).
|
|
188
|
+
- [x] Virtual DOM / Direct Reactive DOM mounting.
|
|
189
|
+
- [x] Control-flow reactive primitives (`Show`, `For`, `Portal`, `ErrorBoundary`).
|
|
190
|
+
- [x] Component contract specification (`defineComponent`, schema validation).
|
|
191
|
+
- [x] Multi-Level Observer L0–L2 (`getSemanticSnapshot`, `getPulse`, `getComponentContract`).
|
|
192
|
+
- [x] Vite plugin & DevServer JSON-RPC bridge.
|
|
193
|
+
- [x] **P1: Causality Engine & Local Verification**
|
|
194
|
+
- [x] Actions vs Effects separation with concurrency policies (`latest-wins`, `take-leading`, `queue`, `parallel`).
|
|
195
|
+
- [x] Dynamic Reactive Signals Graph (`signal -> computed -> effect -> DOM binding`).
|
|
196
|
+
- [x] Causality Engine query tool (`why_state`).
|
|
197
|
+
- [x] Local low-millisecond Action Testing API with structured state & A11y diffs.
|
|
198
|
+
- [x] Model Context Protocol (MCP) server tools for OUMV.
|
|
199
|
+
- [x] **P2: Resilient Mutations & Optimistic Concurrency Control**
|
|
200
|
+
- [x] Symbol-level mutation manager with OCC versioning (`version`, `expectedVersion`, atomic rollback).
|
|
201
|
+
- [x] Automated post-edit type-checking and formatting guard.
|
|
202
|
+
- [x] Native OUMV Protocol Adapter (`@agent-dom/oumv`).
|
|
203
|
+
- [x] Observer L3 (Isolated Source) & L4 (Runtime Traces).
|
|
204
|
+
- [ ] **P3: Ecosystem & Benchmarking**
|
|
205
|
+
- [ ] AUI-Bench autonomous agent benchmark suite.
|
|
206
|
+
- [ ] React / Vue adapters for the OUMV protocol.
|
|
207
|
+
- [x] Isomorphic SSR hydration runtime (`renderToString` + `hydrate`).
|
|
208
|
+
- [x] Two-way form binding helpers (`bind`).
|
|
209
|
+
- [x] Scaffolding CLI (`create-tokensafe-ui`).
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## License
|
|
214
|
+
|
|
215
|
+
[MIT](LICENSE) © 2026 TokenSafe & Contributors
|
package/bin/cli.js
CHANGED
|
@@ -4,5 +4,5 @@ const arg = process.argv[2];
|
|
|
4
4
|
if (arg === 'mcp' || !arg) {
|
|
5
5
|
import('./mcp.js');
|
|
6
6
|
} else {
|
|
7
|
-
console.log(`TokenSafe UI CLI
|
|
7
|
+
console.log(`TokenSafe UI CLI\nUsage:\n tokensafe-ui mcp Start MCP server over stdio\n`);
|
|
8
8
|
}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirnameFunc } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirnameFunc(__filename);
|
|
7
1
|
import {
|
|
8
2
|
activeInstances
|
|
9
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WZVWZB6L.js";
|
|
10
4
|
|
|
11
5
|
// ../observer/dist/index.js
|
|
12
6
|
import fs from "fs";
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirnameFunc } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirnameFunc(__filename);
|
|
7
|
-
|
|
8
1
|
// ../patcher/dist/index.js
|
|
9
2
|
import * as parser from "@babel/parser";
|
|
10
3
|
import _traverse from "@babel/traverse";
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirnameFunc } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirnameFunc(__filename);
|
|
7
|
-
|
|
8
1
|
// ../core/dist/index.js
|
|
9
2
|
import { z as z2 } from "zod";
|
|
10
3
|
import { z } from "zod";
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirnameFunc } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirnameFunc(__filename);
|
|
7
1
|
import {
|
|
8
2
|
buildDependencyGraph
|
|
9
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QNP65TV7.js";
|
|
10
4
|
import {
|
|
11
5
|
testAction
|
|
12
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WZVWZB6L.js";
|
|
13
7
|
import {
|
|
14
8
|
applyPatch
|
|
15
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UESQTIJY.js";
|
|
16
10
|
|
|
17
11
|
// ../mcp/dist/index.js
|
|
18
12
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirnameFunc } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirnameFunc(__filename);
|
|
7
1
|
"use strict";
|
|
8
2
|
var __defProp = Object.defineProperty;
|
|
9
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirnameFunc } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirnameFunc(__filename);
|
|
7
1
|
import {
|
|
8
2
|
ErrorBoundary,
|
|
9
3
|
For,
|
|
@@ -23,7 +17,7 @@ import {
|
|
|
23
17
|
testAction,
|
|
24
18
|
unmount,
|
|
25
19
|
z2
|
|
26
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WZVWZB6L.js";
|
|
27
21
|
export {
|
|
28
22
|
ErrorBoundary,
|
|
29
23
|
For,
|
package/dist/mcp.cjs
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirnameFunc } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirnameFunc(__filename);
|
|
7
1
|
"use strict";
|
|
8
2
|
var __create = Object.create;
|
|
9
3
|
var __defProp = Object.defineProperty;
|
package/dist/mcp.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirnameFunc } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirnameFunc(__filename);
|
|
7
1
|
import {
|
|
8
2
|
MCP_SERVER_VERSION,
|
|
9
3
|
atomicApplySourceEdit,
|
|
@@ -12,10 +6,10 @@ import {
|
|
|
12
6
|
inspectComponentContract,
|
|
13
7
|
validateSourceSyntaxAndTypes,
|
|
14
8
|
validateWorkspacePath
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-ZRW74NHE.js";
|
|
10
|
+
import "./chunk-QNP65TV7.js";
|
|
11
|
+
import "./chunk-WZVWZB6L.js";
|
|
12
|
+
import "./chunk-UESQTIJY.js";
|
|
19
13
|
|
|
20
14
|
// src/mcp.ts
|
|
21
15
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
package/dist/observer.cjs
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirnameFunc } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirnameFunc(__filename);
|
|
7
1
|
"use strict";
|
|
8
2
|
var __create = Object.create;
|
|
9
3
|
var __defProp = Object.defineProperty;
|
package/dist/observer.js
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirnameFunc } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirnameFunc(__filename);
|
|
7
1
|
import {
|
|
8
2
|
OBSERVER_VERSION,
|
|
9
3
|
buildDependencyGraph,
|
|
10
4
|
getSemanticSnapshot,
|
|
11
5
|
observe
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-QNP65TV7.js";
|
|
7
|
+
import "./chunk-WZVWZB6L.js";
|
|
14
8
|
export {
|
|
15
9
|
OBSERVER_VERSION,
|
|
16
10
|
buildDependencyGraph,
|
package/dist/oumv.cjs
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirnameFunc } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirnameFunc(__filename);
|
|
7
1
|
"use strict";
|
|
8
2
|
var __create = Object.create;
|
|
9
3
|
var __defProp = Object.defineProperty;
|
package/dist/oumv.js
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirnameFunc } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirnameFunc(__filename);
|
|
7
1
|
import {
|
|
8
2
|
atomicApplySourceEdit,
|
|
9
3
|
validateWorkspacePath
|
|
10
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZRW74NHE.js";
|
|
11
5
|
import {
|
|
12
6
|
buildDependencyGraph,
|
|
13
7
|
observe
|
|
14
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QNP65TV7.js";
|
|
15
9
|
import {
|
|
16
10
|
testAction
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-WZVWZB6L.js";
|
|
12
|
+
import "./chunk-UESQTIJY.js";
|
|
19
13
|
|
|
20
14
|
// ../oumv/dist/index.js
|
|
21
15
|
import fs from "fs";
|
package/dist/patcher.cjs
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirnameFunc } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirnameFunc(__filename);
|
|
7
1
|
"use strict";
|
|
8
2
|
var __create = Object.create;
|
|
9
3
|
var __defProp = Object.defineProperty;
|
package/dist/patcher.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirnameFunc } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirnameFunc(__filename);
|
|
7
1
|
import {
|
|
8
2
|
PATCHER_VERSION,
|
|
9
3
|
applyPatch
|
|
10
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UESQTIJY.js";
|
|
11
5
|
export {
|
|
12
6
|
PATCHER_VERSION,
|
|
13
7
|
applyPatch
|
package/dist/testing.cjs
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirnameFunc } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirnameFunc(__filename);
|
|
7
1
|
"use strict";
|
|
8
2
|
var __defProp = Object.defineProperty;
|
|
9
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
package/dist/testing.js
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirnameFunc } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirnameFunc(__filename);
|
|
7
1
|
import {
|
|
8
2
|
testAction
|
|
9
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WZVWZB6L.js";
|
|
10
4
|
export {
|
|
11
5
|
testAction
|
|
12
6
|
};
|
package/dist/vite.cjs
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirnameFunc } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirnameFunc(__filename);
|
|
7
1
|
"use strict";
|
|
8
2
|
var __create = Object.create;
|
|
9
3
|
var __defProp = Object.defineProperty;
|
package/dist/vite.js
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirnameFunc } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirnameFunc(__filename);
|
|
7
1
|
import {
|
|
8
2
|
applyPatch
|
|
9
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UESQTIJY.js";
|
|
10
4
|
|
|
11
5
|
// ../vite/dist/index.js
|
|
12
6
|
import * as parser from "@babel/parser";
|