@opendatalabs/connect 0.8.1-canary.59211c8 → 0.8.1-canary.609ff8b
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 -75
- 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 +2437 -151
- 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 +490 -1
- package/dist/core/cli-types.d.ts.map +1 -1
- package/dist/core/cli-types.js +228 -1
- package/dist/core/cli-types.js.map +1 -1
- package/dist/core/index.d.ts +2 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/state-store.d.ts +12 -0
- package/dist/core/state-store.d.ts.map +1 -1
- package/dist/core/state-store.js +81 -3
- package/dist/core/state-store.js.map +1 -1
- package/dist/personal-server/index.d.ts +8 -0
- package/dist/personal-server/index.d.ts.map +1 -1
- package/dist/personal-server/index.js +40 -10
- package/dist/personal-server/index.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
|
+
<img src="https://github.com/vana-com/vana-connect/releases/download/canary-feat-connect-cli-v1/status.gif" width="800" alt="vana status" />
|
|
48
|
+
|
|
49
|
+
<img src="https://github.com/vana-com/vana-connect/releases/download/canary-feat-connect-cli-v1/connect-github-success.gif" width="800" alt="vana connect github" />
|
|
50
|
+
|
|
51
|
+
<img src="https://github.com/vana-com/vana-connect/releases/download/canary-feat-connect-cli-v1/data-show-github.gif" width="600" alt="vana data show github" />
|
|
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,83 +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 and Linux:
|
|
84
|
-
|
|
85
|
-
```bash
|
|
86
|
-
curl -fsSL https://raw.githubusercontent.com/vana-com/vana-connect/main/install/install.sh | sh
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
Windows PowerShell:
|
|
90
|
-
|
|
91
|
-
```powershell
|
|
92
|
-
iwr https://raw.githubusercontent.com/vana-com/vana-connect/main/install/install.ps1 -useb | iex
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
Both installers fetch the latest GitHub release asset for your platform, verify its checksum, and install `vana` without requiring Node or npm.
|
|
96
|
-
|
|
97
|
-
### Canary / prerelease testing
|
|
98
|
-
|
|
99
|
-
If you are testing an unreleased branch build, install from the branch installer and pass the prerelease tag explicitly.
|
|
100
|
-
|
|
101
|
-
macOS and Linux:
|
|
102
|
-
|
|
103
|
-
```bash
|
|
104
|
-
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
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
Windows PowerShell:
|
|
127
|
+
If you only care about the CLI, start with [docs/CLI-README.md](./docs/CLI-README.md).
|
|
108
128
|
|
|
109
|
-
|
|
110
|
-
& ([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
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
The current hosted prerelease is:
|
|
114
|
-
|
|
115
|
-
`canary-feat-connect-cli-v1`
|
|
116
|
-
|
|
117
|
-
Release page:
|
|
118
|
-
|
|
119
|
-
`https://github.com/vana-com/vana-connect/releases/tag/canary-feat-connect-cli-v1`
|
|
120
|
-
|
|
121
|
-
If you want the npm package path as a fallback:
|
|
122
|
-
|
|
123
|
-
```bash
|
|
124
|
-
npx -y @opendatalabs/connect status
|
|
125
|
-
```
|
|
129
|
+
For the full CLI review surface, use:
|
|
126
130
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
vana sources
|
|
131
|
-
vana connect github
|
|
132
|
-
vana status
|
|
133
|
-
vana setup
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
### Local development
|
|
137
|
-
|
|
138
|
-
From this repo:
|
|
139
|
-
|
|
140
|
-
```bash
|
|
141
|
-
pnpm install
|
|
142
|
-
pnpm build
|
|
143
|
-
node dist/cli/bin.js status
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
The CLI installs its local browser runtime under `~/.dataconnect/`.
|
|
147
|
-
That runtime is bundled from `vana-connect` itself, so `vana setup` does not require a separate `data-connect` checkout.
|
|
148
|
-
|
|
149
|
-
To build a standalone launcher plus app payload locally:
|
|
150
|
-
|
|
151
|
-
```bash
|
|
152
|
-
pnpm build
|
|
153
|
-
pnpm build:sea
|
|
154
|
-
./artifacts/sea/vana-linux-x64/vana status --json
|
|
155
|
-
```
|
|
131
|
+
- [CLI review surface](./docs/CLI-REVIEW-SURFACE.md)
|
|
132
|
+
- [CLI transcripts](./docs/transcripts/README.md)
|
|
133
|
+
- [CLI demos](./docs/vhs/README.md)
|
|
156
134
|
|
|
157
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/`.
|
|
158
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":"AAoGA,wBAAsB,MAAM,CAAC,IAAI,WAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CA+RjE"}
|