@opendatalabs/connect 0.8.1-canary.22ef4ab → 0.8.1-canary.24db4ef
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 +53 -91
- package/dist/cli/bin.js +8 -0
- package/dist/cli/bin.js.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +2272 -143
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +8 -0
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/render/capabilities.d.ts +9 -0
- package/dist/cli/render/capabilities.d.ts.map +1 -0
- package/dist/cli/render/capabilities.js +24 -0
- package/dist/cli/render/capabilities.js.map +1 -0
- package/dist/cli/render/format.d.ts +22 -0
- package/dist/cli/render/format.d.ts.map +1 -0
- package/dist/cli/render/format.js +77 -0
- package/dist/cli/render/format.js.map +1 -0
- package/dist/cli/render/index.d.ts +6 -0
- package/dist/cli/render/index.d.ts.map +1 -0
- package/dist/cli/render/index.js +6 -0
- package/dist/cli/render/index.js.map +1 -0
- package/dist/cli/render/progress.d.ts +11 -0
- package/dist/cli/render/progress.d.ts.map +1 -0
- package/dist/cli/render/progress.js +56 -0
- package/dist/cli/render/progress.js.map +1 -0
- package/dist/cli/render/symbols.d.ts +11 -0
- package/dist/cli/render/symbols.d.ts.map +1 -0
- package/dist/cli/render/symbols.js +21 -0
- package/dist/cli/render/symbols.js.map +1 -0
- package/dist/cli/render/theme.d.ts +15 -0
- package/dist/cli/render/theme.d.ts.map +1 -0
- package/dist/cli/render/theme.js +41 -0
- package/dist/cli/render/theme.js.map +1 -0
- package/dist/core/cli-types.d.ts +475 -1
- package/dist/core/cli-types.d.ts.map +1 -1
- package/dist/core/cli-types.js +222 -1
- package/dist/core/cli-types.js.map +1 -1
- package/dist/core/state-store.d.ts +6 -0
- package/dist/core/state-store.d.ts.map +1 -1
- package/dist/core/state-store.js +68 -4
- package/dist/core/state-store.js.map +1 -1
- package/dist/runtime/core/contracts.d.ts +15 -1
- package/dist/runtime/core/contracts.d.ts.map +1 -1
- package/dist/runtime/managed-playwright.d.ts +5 -0
- package/dist/runtime/managed-playwright.d.ts.map +1 -1
- package/dist/runtime/managed-playwright.js +69 -10
- package/dist/runtime/managed-playwright.js.map +1 -1
- package/dist/runtime/playwright/browser.d.ts +1 -0
- package/dist/runtime/playwright/browser.d.ts.map +1 -1
- package/dist/runtime/playwright/browser.js +14 -4
- package/dist/runtime/playwright/browser.js.map +1 -1
- package/dist/runtime/playwright/in-process-run.d.ts.map +1 -1
- package/dist/runtime/playwright/in-process-run.js +68 -11
- package/dist/runtime/playwright/in-process-run.js.map +1 -1
- package/package.json +12 -1
package/README.md
CHANGED
|
@@ -2,6 +2,54 @@
|
|
|
2
2
|
|
|
3
3
|
Let your users bring their own data to your app.
|
|
4
4
|
|
|
5
|
+
## CLI preview
|
|
6
|
+
|
|
7
|
+
This branch also carries the new `vana` collection CLI preview.
|
|
8
|
+
|
|
9
|
+
Start with the dedicated CLI README:
|
|
10
|
+
|
|
11
|
+
- [CLI README](./docs/CLI-README.md)
|
|
12
|
+
- [CLI review surface](./docs/CLI-REVIEW-SURFACE.md)
|
|
13
|
+
|
|
14
|
+
Install the current canary on macOS with Homebrew:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
brew tap vana-com/vana
|
|
18
|
+
brew install vana
|
|
19
|
+
vana status
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Or use the hosted prerelease installer on macOS/Linux:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
curl -fsSL https://raw.githubusercontent.com/vana-com/vana-connect/feat/connect-cli-v1/install/install.sh | sh -s -- --version canary-feat-connect-cli-v1
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Branch prerelease:
|
|
29
|
+
|
|
30
|
+
- `https://github.com/vana-com/vana-connect/releases/tag/canary-feat-connect-cli-v1`
|
|
31
|
+
|
|
32
|
+
Once installed, the best way to evaluate the CLI quickly is:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
vana --version
|
|
36
|
+
vana doctor
|
|
37
|
+
vana status
|
|
38
|
+
vana sources
|
|
39
|
+
vana connect github
|
|
40
|
+
vana data list
|
|
41
|
+
vana data show github
|
|
42
|
+
vana logs github
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Key demo media:
|
|
46
|
+
|
|
47
|
+

|
|
48
|
+
|
|
49
|
+

|
|
50
|
+
|
|
51
|
+

|
|
52
|
+
|
|
5
53
|
## What problem this solves
|
|
6
54
|
|
|
7
55
|
Your users already have rich personal data — ChatGPT conversations, Instagram activity, Gmail, purchase history — but it's locked inside the platforms that collected it. As a builder, you can't easily use that data to personalize onboarding, tailor recommendations, or skip lengthy signup forms.
|
|
@@ -76,99 +124,13 @@ If you prefer to integrate the SDK into an existing project, follow the steps be
|
|
|
76
124
|
|
|
77
125
|
`vana-connect` now also ships a local collection CLI for connector setup and data export flows.
|
|
78
126
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
If you are evaluating this branch before it lands on `main`, use the prerelease path in the next section. The stable install commands below are the intended post-merge install path.
|
|
82
|
-
|
|
83
|
-
macOS with Homebrew:
|
|
84
|
-
|
|
85
|
-
```bash
|
|
86
|
-
brew tap vana-com/vana
|
|
87
|
-
brew install vana
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
macOS and Linux:
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
curl -fsSL https://raw.githubusercontent.com/vana-com/vana-connect/main/install/install.sh | sh
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
Windows PowerShell:
|
|
97
|
-
|
|
98
|
-
```powershell
|
|
99
|
-
iwr https://raw.githubusercontent.com/vana-com/vana-connect/main/install/install.ps1 -useb | iex
|
|
100
|
-
```
|
|
127
|
+
If you only care about the CLI, start with [docs/CLI-README.md](./docs/CLI-README.md).
|
|
101
128
|
|
|
102
|
-
|
|
129
|
+
For the full CLI review surface, use:
|
|
103
130
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
macOS with Homebrew:
|
|
109
|
-
|
|
110
|
-
```bash
|
|
111
|
-
brew tap vana-com/vana
|
|
112
|
-
brew install vana
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
The current Homebrew tap is following the latest `vana-connect` canary while this CLI is still rolling out.
|
|
116
|
-
|
|
117
|
-
macOS and Linux:
|
|
118
|
-
|
|
119
|
-
```bash
|
|
120
|
-
curl -fsSL https://raw.githubusercontent.com/vana-com/vana-connect/feat/connect-cli-v1/install/install.sh | sh -s -- --version canary-feat-connect-cli-v1
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
Windows PowerShell:
|
|
124
|
-
|
|
125
|
-
```powershell
|
|
126
|
-
& ([scriptblock]::Create((iwr https://raw.githubusercontent.com/vana-com/vana-connect/feat/connect-cli-v1/install/install.ps1 -useb).Content)) --version canary-feat-connect-cli-v1
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
The current hosted prerelease is:
|
|
130
|
-
|
|
131
|
-
`canary-feat-connect-cli-v1`
|
|
132
|
-
|
|
133
|
-
Release page:
|
|
134
|
-
|
|
135
|
-
`https://github.com/vana-com/vana-connect/releases/tag/canary-feat-connect-cli-v1`
|
|
136
|
-
|
|
137
|
-
If you want the npm package path as a fallback:
|
|
138
|
-
|
|
139
|
-
```bash
|
|
140
|
-
npx -y @opendatalabs/connect status
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
### Commands
|
|
144
|
-
|
|
145
|
-
```bash
|
|
146
|
-
vana sources
|
|
147
|
-
vana connect github
|
|
148
|
-
vana status
|
|
149
|
-
vana setup
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
### Local development
|
|
153
|
-
|
|
154
|
-
From this repo:
|
|
155
|
-
|
|
156
|
-
```bash
|
|
157
|
-
pnpm install
|
|
158
|
-
pnpm build
|
|
159
|
-
node dist/cli/bin.js status
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
The CLI installs its local browser runtime under `~/.dataconnect/`.
|
|
163
|
-
That runtime is bundled from `vana-connect` itself, so `vana setup` does not require a separate `data-connect` checkout.
|
|
164
|
-
|
|
165
|
-
To build a standalone launcher plus app payload locally:
|
|
166
|
-
|
|
167
|
-
```bash
|
|
168
|
-
pnpm build
|
|
169
|
-
pnpm build:sea
|
|
170
|
-
./artifacts/sea/vana-linux-x64/vana status --json
|
|
171
|
-
```
|
|
131
|
+
- [CLI review surface](./docs/CLI-REVIEW-SURFACE.md)
|
|
132
|
+
- [CLI transcripts](./docs/transcripts/README.md)
|
|
133
|
+
- [CLI demos](./docs/vhs/README.md)
|
|
172
134
|
|
|
173
135
|
`pnpm build:sea` uses Node 25's `--build-sea` flow to create a small `vana` launcher and packages the real app payload next to it under `app/`.
|
|
174
136
|
It produces a platform-specific release directory plus a release archive and matching checksum file under `artifacts/sea/`.
|
package/dist/cli/bin.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { runCli } from "./index.js";
|
|
3
|
+
for (const stream of [process.stdout, process.stderr]) {
|
|
4
|
+
stream.on("error", (error) => {
|
|
5
|
+
if (error.code === "EPIPE") {
|
|
6
|
+
process.exit(0);
|
|
7
|
+
}
|
|
8
|
+
throw error;
|
|
9
|
+
});
|
|
10
|
+
}
|
|
3
11
|
const exitCode = await runCli(process.argv);
|
|
4
12
|
if (typeof exitCode === "number") {
|
|
5
13
|
process.exitCode = exitCode;
|
package/dist/cli/bin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../../src/cli/bin.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEpC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAC5C,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;IACjC,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC9B,CAAC"}
|
|
1
|
+
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../../src/cli/bin.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEpC,KAAK,MAAM,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;IACtD,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAA4B,EAAE,EAAE;QAClD,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;YAC3B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAC5C,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;IACjC,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC9B,CAAC"}
|
package/dist/cli/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAkGA,wBAAsB,MAAM,CAAC,IAAI,WAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAiPjE"}
|