@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 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 (bootstrap placeholder)
1
+ # @lace-cloud/proto
2
2
 
3
- This `0.0.1-bootstrap.0` version is a one-time placeholder used to claim
4
- the `@lace-cloud/proto` name on npmjs.org so that OIDC trusted publishing can be
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
- **Do not install this version.** Real releases are tagged `@next`
8
- (prerelease, from the develop branch) or `@latest` (stable, from tagged
9
- releases on main).
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
- Source: https://github.com/lace-cloud/lace/tree/main/packages/proto
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).