@lace-cloud/proto 0.0.1-bootstrap.0 → 0.6.3-next.25704378412
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/LICENSE +19 -0
- package/README.md +41 -8
- package/dist/index.cjs +7199 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.mts +867 -0
- package/dist/index.d.ts +867 -0
- package/dist/index.mjs +7152 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +32 -8
- package/index.js +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Proprietary — Lace Cloud Inc.
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Lace Cloud Inc. All rights reserved.
|
|
4
|
+
|
|
5
|
+
This source code and its compiled artifacts are proprietary to Lace
|
|
6
|
+
Cloud Inc. Use is permitted only as part of authorized Lace Cloud
|
|
7
|
+
products and services, under separate terms.
|
|
8
|
+
|
|
9
|
+
The following are NOT permitted without prior written permission
|
|
10
|
+
from Lace Cloud Inc.:
|
|
11
|
+
|
|
12
|
+
- Redistribution of source code or binaries
|
|
13
|
+
- Modification or derivative works
|
|
14
|
+
- Reverse-engineering beyond the legal minimum
|
|
15
|
+
- Hosting, embedding, or resale as a service
|
|
16
|
+
|
|
17
|
+
No warranties are made; use is at your own risk.
|
|
18
|
+
|
|
19
|
+
Subject to legal review.
|
package/README.md
CHANGED
|
@@ -1,11 +1,44 @@
|
|
|
1
|
-
# @lace-cloud/proto
|
|
1
|
+
# @lace-cloud/proto
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
configured for subsequent releases.
|
|
3
|
+
Generated proto messages, render-model POJOs, and proto→render
|
|
4
|
+
converters shared across Lace Cloud's TypeScript consumers.
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
(
|
|
9
|
-
|
|
6
|
+
Single source of truth for the wire types between the Go CLI
|
|
7
|
+
(`lace-cli`) and any TypeScript client. Two consumers in this monorepo
|
|
8
|
+
ship their own ts-proto-generated service stubs, but the message
|
|
9
|
+
shapes + converters live here once.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install @lace-cloud/proto
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import {
|
|
21
|
+
type CanvasView,
|
|
22
|
+
type RenderNode,
|
|
23
|
+
type RenderEdge,
|
|
24
|
+
type Diagnostic,
|
|
25
|
+
convertCanvasView,
|
|
26
|
+
} from '@lace-cloud/proto';
|
|
27
|
+
|
|
28
|
+
// CanvasView is the view-model shape. RenderNode/RenderEdge/Diagnostic
|
|
29
|
+
// are its sub-shapes. convertCanvasView normalises a proto-shaped
|
|
30
|
+
// payload (host or canvas variant) into a CanvasView.
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Notes
|
|
34
|
+
|
|
35
|
+
- ts-proto outputs use `snakeToCamel=false`, `forceLong=number`. Do
|
|
36
|
+
not edit `src/generated/` files by hand — they're regenerated by
|
|
37
|
+
`pnpm proto:gen` in lace.
|
|
38
|
+
- Converters accept structural input aliases (`./proto-shapes`) so
|
|
39
|
+
host-generated and canvas-generated proto messages are both
|
|
40
|
+
assignable via TypeScript's structural + numeric-enum-widening rules.
|
|
41
|
+
|
|
42
|
+
## License
|
|
43
|
+
|
|
44
|
+
Proprietary — see [LICENSE](https://github.com/lace-cloud/lace/blob/main/LICENSE).
|