@wenathlan/devthink 2.0.40 → 2.0.60
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/CHANGELOG.md +221 -0
- package/README.md +64 -0
- package/bridge.d.ts +1 -1
- package/bridge.js +2 -2
- package/bun.js +2 -2
- package/caps/background.json +1 -1
- package/caps/cli.json +1 -1
- package/caps/library.json +1 -1
- package/caps/mcp.json +1 -1
- package/caps/pagebridge.json +1 -1
- package/caps/popup.json +1 -1
- package/caps/sidepanel.json +1 -1
- package/checksums.txt +37 -37
- package/cli.js +3 -3
- package/companion.js +2 -2
- package/crossbrowser.js +1 -1
- package/dashdone.js +1 -1
- package/deno.js +2 -2
- package/devthink.umd.js +2 -2
- package/hardening.js +1 -1
- package/headless.js +2 -2
- package/http.js +2 -2
- package/index.cjs +2 -2
- package/index.js +2 -2
- package/index.neutral.js +2 -2
- package/manifest.json +1 -1
- package/mcp.js +2 -2
- package/memory.js +1 -1
- package/nativehost.template.json +1 -1
- package/node.cjs +2 -2
- package/pack.js +1 -1
- package/package.json +5 -5
- package/policy.js +2 -2
- package/progress.js +2 -2
- package/protocol.js +2 -2
- package/server.d.ts.map +1 -1
- package/server.js +25 -28
- package/umd-example.html +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,226 @@
|
|
|
1
1
|
# DevThink release notes
|
|
2
2
|
|
|
3
|
+
## 2.0.60 — getry answers the house template and the evidence heals
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
| Area | Change |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| The getry template | getry left the born-Next shape and answers the house tree 100% personalized: the Sol theme with sol.css inside, the pages the gateway identity carries (versions, thinking, sessions), the loose root logics and the deploy manifests of the family, the pnpm lockfile — no src, no next, no out; the Next conversions keep riding the release as the zips the converter produces. |
|
|
10
|
+
| The pages site | The site root answers the navigation landing the family doctrine asks for: one page, every application under its own subpath, devthink the supreme OS first. |
|
|
11
|
+
| The security evidence | The audit materializes the manifest overrides into the lane (the uuid pin), the container and the library modes run the accessibility sweep between the build and the suite, the static workbench generates the prisma client before the typecheck, and the saddle overrides heal the osv findings the lockfile carried. |
|
|
12
|
+
| The workflow house | The workflow configs group inside the workflows folder (the labeler config, the actionlint policy), the lint lives in its one lane, and the VHE lane answers the dispatch alone until its per-application pass. |
|
|
13
|
+
|
|
14
|
+
## 2.0.59 — the family lanes, the shared dependency baseline and the workflow house
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
| Area | Change |
|
|
19
|
+
| --- | --- |
|
|
20
|
+
| The workflow house | Every workflow the saddle carried inside its application folder moved into the repository workflow folder (the monorepo only executes the root folder): the universal mobile lane answers android and ios for the nine capacitor applications with the package manager per application, the universal desktop lane answers the seven platform targets per dispatch input, the workflow lint gate rides actionlint, and the three saddle-motor lanes renamed under the saddle namespace keep reading the saddle application folder. The lanes the root already carried (the pages matrix, the ci, the release validation, the security battery, the container and the registry publications) never duplicated — the saddle copies left with the folder. |
|
|
21
|
+
| The mobile identity | The identity (appId, appName) reads from the capacitor.config.ts each application tracks, the version stamps from the application manifest itself, and the runner aims the tracked config at the staged build/web surface — the tracked file never carries a runner path. |
|
|
22
|
+
| The dependency baseline | The family applications share the dependency baseline the devthink manifest carries (the merge is additive: nothing left any application, stale ranges rose to the baseline, and the saddle keeps its own set), and wouter rides every application. |
|
|
23
|
+
| The pnpm build policy | The pnpm workspaces allow the locked dependency tree's build scripts (dangerouslyAllowAllBuilds beside the explicit allowlist): the frozen install of a supply-chain verified lockfile runs the scripts exactly like npm ci, so the ignored-builds error the family legs hit never fires again. |
|
|
24
|
+
| The export command | The deploy scaffold export reads the schema at the application root (the Sol folder stays a legacy candidate), so the export answers both the config and the schema again. |
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
| Area | Change |
|
|
29
|
+
| --- | --- |
|
|
30
|
+
| The structure gate | The identical per-application web manifests collapsed into the one webmanifest each application links, and the workspace policies carry their application line — the no-duplicate contract holds across the family. |
|
|
31
|
+
| The readiness evidence | Every lane that builds the tree reruns the accessibility sweep before the deterministic suite, so the recorded wcag artifact reflects the built surfaces and the go decision the walk stamps carries fresh evidence. |
|
|
32
|
+
|
|
33
|
+
## 2.0.58 — the settings move home and the persistence path heals
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
| Area | Change |
|
|
38
|
+
| --- | --- |
|
|
39
|
+
| The pnpm settings | The build-script allowlist moved into the pnpm-workspace.yaml of every pnpm application (pnpm 12 no longer reads the package.json pnpm field — the frozen installs died on the ignored-builds error), and the dead package.json pnpm blocks left every manifest. |
|
|
40
|
+
| The generated client | The prisma generator drops the explicit output override: the client lands in the node_modules/.prisma folder of the nearest package root where the @prisma/client the application imports resolves it (the relative output beside the schema's parent left every query throwing inside the silent catches), and the prisma config candidate list carries the prisma folder the consumer scaffold uses. |
|
|
41
|
+
| The workflows | Every devthink install runs the pinned bun directly (the one package.json of the merged application needs no pnpm delegation — pnpm 12 refuses the bun pin outright), the redundant second install steps left the lanes, and the gate ladder and the static workbench lane run the build scripts through the pinned toolchain. |
|
|
42
|
+
| The export command | The export command without a scope exports the deploy scaffold: the config.mjs and the schema.prisma of the project copy into the --dir folder the deployment bundles beside the application. |
|
|
43
|
+
|
|
44
|
+
### Fixed
|
|
45
|
+
|
|
46
|
+
| Area | Change |
|
|
47
|
+
| --- | --- |
|
|
48
|
+
| The dashboard imports | The saddle dashboard surfaces resolve their engine imports one folder up instead of two (the restructure left them pointing above the application root), so the vite build of the saddle leg passes again. |
|
|
49
|
+
| The readiness verdict | The go assertion only runs on a lane that built the candidate (the dist presence joins the artifact checks), so the bun matrix lane verifies the structure without stamping a go the evidence cannot carry. |
|
|
50
|
+
|
|
51
|
+
## 2.0.57 — the root build: one stylesheet inside the theme, no dist anywhere
|
|
52
|
+
|
|
53
|
+
### Changed
|
|
54
|
+
|
|
55
|
+
| Area | Change |
|
|
56
|
+
| --- | --- |
|
|
57
|
+
| The theme stylesheet | The one stylesheet of every theme moved inside the theme folder and answers sol.css (devthink/Sol/sol.css beside the component folders, the same move across the family applications), with the imports, the html link, the scaffold template and the house tree rewritten to the new location. |
|
|
58
|
+
| The root build | Every vite build answers straight at the application root: the hashed bundles emit flat beside the entry html (assetsDir empty, emptyOutDir off) and no dist, no public and no assets folder exists anywhere — netlify publishes ".", vercel outputs ".", the capacitor and tauri shells aim the runner-side build/web staging, and the pages lane stages the delivered surface from the root by type. |
|
|
59
|
+
| The universal web templates | robots.txt, keywords.txt, sitemap.xml and manifest.webmanifest ride every application root as domain-free deployable templates (the relative sitemap reference resolves against whichever origin serves them; the canonical domain binds at the platform), and the devthink entry html carries the icon and manifest links. |
|
|
60
|
+
| The translation core | The google gtx translation rides the Sol shell as three correlated ts files (the gtx transport with its cache and chunking, the reveal effect, the dom walk with the observer and the language switch), armed from the root entry after the devtools shield. |
|
|
61
|
+
| The family lanes | The pages matrix carries the package manager per application (bun, pnpm, npm), installs from the committed lockfile of each, and the mobile and desktop lanes stage the built web surface under build/web with the wrapper paths aimed at the application root; the orphan Sol paths of the android and ios collect steps read the real generated folders. |
|
|
62
|
+
|
|
63
|
+
### Fixed
|
|
64
|
+
|
|
65
|
+
| Area | Change |
|
|
66
|
+
| --- | --- |
|
|
67
|
+
| The moved pages | The four extension surfaces that moved to the application root (popup, sidepanel, dashboardpage, optionspage) resolve their engine imports against the root they now live in, so the esbuild bundling of the library modes, the webpack core bundle, the deno cli contract and the container build pass again. |
|
|
68
|
+
| The family installs | The pnpm envelopes declare the build scripts they trust (prisma, better-sqlite3, ssh2 and the companions) so the frozen install no longer dies on the ignored-builds error the forge leg hit. |
|
|
69
|
+
|
|
70
|
+
## 2.0.56 — the sol merge: one package.json per application
|
|
71
|
+
|
|
72
|
+
### Changed
|
|
73
|
+
|
|
74
|
+
| Area | Change |
|
|
75
|
+
| --- | --- |
|
|
76
|
+
| The application tree | Every theme-root file (App.tsx, index.html, index.css, the deploy manifests, the schema and the extension surfaces) moved from the Sol folder up to the application root, and the Sol package manifest merged into the application manifest — one package.json, one tsconfig and one README per application, so the pages build reads the index at the root and the npm envelope publishes the same tree it builds. Sol now carries only the component folders. |
|
|
77
|
+
| The family applications | argan, cadria, debonair, forge, foundry, saddle, stealhead and vault follow the same merge: the envelope keeps its identity fields, the theme scripts ride the root scripts (dev, build, start, preview, check) and the vite alias resolves the Sol folders beside the root logics. |
|
|
78
|
+
| The gateway scaffold | The init command scaffolds config.mjs, schema.prisma and the prisma config at the project root (the Sol/config.mjs location stays an honored legacy candidate), the default database url rides devthink.db, and the wasm lane resolves the family engine cores across the sibling applications. |
|
|
79
|
+
| The dependency baseline | The web dependency set (react, wouter, the radix family, tailwind 4, vite 8) rides the single manifest with the lockfile re-resolved, the capacitor toolchain rides 8.5.2, and the audit lane resolves the same manifest from a neutral folder because the application pins bun as its package manager. |
|
|
80
|
+
|
|
81
|
+
## 2.0.55 — the lint gate never scans the build outputs
|
|
82
|
+
|
|
83
|
+
### Fixed
|
|
84
|
+
|
|
85
|
+
| Area | Change |
|
|
86
|
+
| --- | --- |
|
|
87
|
+
| The lint gate | The biome file excludes carry the directory-descendant forms (dist, distpackage and node_modules with their children), so the freshly built bundles the gate ladder produces never enter the lint scan regardless of the ignore-file context the working tree carries. |
|
|
88
|
+
|
|
89
|
+
## 2.0.54 — the lint gate runs one biome everywhere
|
|
90
|
+
|
|
91
|
+
### Fixed
|
|
92
|
+
|
|
93
|
+
| Area | Change |
|
|
94
|
+
| --- | --- |
|
|
95
|
+
| The lint gate | The biome toolchain pins at 2.5.15 exactly in the application package and the sol package (the sol lockfile had kept the 2.5.13 resolution whose ruleset predates the warn overrides, so the container lint answered errors the local tree never sees), and the configuration schema migrates to 2.5.15. |
|
|
96
|
+
|
|
97
|
+
## 2.0.53 — the dependency update gate answers current
|
|
98
|
+
|
|
99
|
+
### Fixed
|
|
100
|
+
|
|
101
|
+
| Area | Change |
|
|
102
|
+
| --- | --- |
|
|
103
|
+
| The dependency update gate | The vite range rides 8.3.2 (the non-breaking update the gate demanded) and the lockfile re-resolves under it. |
|
|
104
|
+
|
|
105
|
+
## 2.0.52 — the lint gate answers the current biome ruleset
|
|
106
|
+
|
|
107
|
+
### Fixed
|
|
108
|
+
|
|
109
|
+
| Area | Change |
|
|
110
|
+
| --- | --- |
|
|
111
|
+
| The lint gate | The useless String.raw templates of the terminal ui and the home entry drop to plain templates and the dashboardpage drops the useless empty export, so the current biome ruleset answers the lint gate green (the remaining diagnostics are the warn-severity rows the config carries on purpose). |
|
|
112
|
+
|
|
113
|
+
## 2.0.51 — the verification container compiles the native driver
|
|
114
|
+
|
|
115
|
+
### Fixed
|
|
116
|
+
|
|
117
|
+
| Area | Change |
|
|
118
|
+
| --- | --- |
|
|
119
|
+
| The verification container | The deps and builder stages carry python3, make and g++ beside zip, unzip and openssl, so the declared better-sqlite3 compiles its native binding when the prebuilt download does not answer for the node 26 abi (the source fallback the install script runs no longer dies on a missing toolchain). |
|
|
120
|
+
|
|
121
|
+
## 2.0.50 — the verification container installs the declared sqlite driver
|
|
122
|
+
|
|
123
|
+
### Fixed
|
|
124
|
+
|
|
125
|
+
| Area | Change |
|
|
126
|
+
| --- | --- |
|
|
127
|
+
| The verification container | The container typecheck installs the declared better-sqlite3 with its type declarations (the tag of the previous bump carried the undeclared import the phantom optional peer left behind). |
|
|
128
|
+
|
|
129
|
+
## 2.0.49 — the release rides the tag the family never shadows
|
|
130
|
+
|
|
131
|
+
### Fixed
|
|
132
|
+
|
|
133
|
+
| Area | Change |
|
|
134
|
+
| --- | --- |
|
|
135
|
+
| The permission baseline | The versioned permission baseline rides the 2.0.49 lockstep (the 2.0.48 sync landed after the tag cut; zero rows changed, the stamp alone re-recorded). |
|
|
136
|
+
|
|
137
|
+
## 2.0.48 — the immutable release, the family distribution and the flat trees
|
|
138
|
+
|
|
139
|
+
### Added
|
|
140
|
+
|
|
141
|
+
| Area | Change |
|
|
142
|
+
| --- | --- |
|
|
143
|
+
| The immutable release | The github release lane locks the published release through the releases api (immutable true) once the verified set answers live: the assets, the notes and the tag freeze, and the SHA256SUMS umbrella becomes the immutable form of the distribution. The source zip twin rides the assemble lane beside the maximum-compression tar.xz archive. |
|
|
144
|
+
| The family distribution packages | The new release family job packs every family envelope (argan, cadria, debonair, forge, foundry, saddle, stealhead, vault) as an npm tarball beside the application package, swept into the SHA256SUMS umbrella; the npmjs and github npm registry lanes of the publish workflow carry forge, foundry and vault beside the four envelopes, and the metadata lockstep stamps the three new envelopes. |
|
|
145
|
+
| The wasm compression | The wasm distribution packs through the maximum-compression flow the release ordered: tar first, then xz at the highest preset (-9e, multithreaded) — the decoder is tar -xJf, one command, everywhere. |
|
|
146
|
+
|
|
147
|
+
### Fixed
|
|
148
|
+
|
|
149
|
+
| Area | Change |
|
|
150
|
+
| --- | --- |
|
|
151
|
+
| The pages smoke | The devthink theme prepares the delivered 404.html fallback beside the entry before the boot smoke, and the getry static export generates the prisma client and builds through next directly. |
|
|
152
|
+
| The saddle notfound | The 404 page answers the family shell grammar instead of the removed button and card imports. |
|
|
153
|
+
| The flat trees | The identical tracked files across the family carry their unit name (the dockerignore, the gitattributes, the sol lockfiles, the typescript baselines, the shared sol modules), the seven application roots answer the biome and typescript baselines, and every loose tsx beyond App.tsx moved into its own component folder with the imports rewired. |
|
|
154
|
+
| The release contract | The release workflow answers the zip control and the job ladder the checked test scripts assert, and the publish workflow drops the banned gha cache controls. |
|
|
155
|
+
|
|
156
|
+
## 2.0.47 — the family answers the sol template and releases per application
|
|
157
|
+
|
|
158
|
+
### Changed
|
|
159
|
+
|
|
160
|
+
| Area | Change |
|
|
161
|
+
| --- | --- |
|
|
162
|
+
| The sol template | The site folder of every family application became the sol theme: one index.html and one index.css at the theme root, pages as lowercase folders with their tsx component and auxiliaries, no 404.html (the notfound page is a tsx component and the build resolves the fallback), no assets folder, no index.html inside page folders. The static surface pages of devthink (docs, explore, history) ported into the workbench grammar with the routes wired. |
|
|
163
|
+
| The universal interface | The theme serves web, os, tv, mobile, desktop and the extension; only ratio, dpi and responsiveness differ and the conversion workflows do the rest. The family pages lane builds the ten themes into one GitHub Pages site under /app/ subpaths. |
|
|
164
|
+
| The db doctrine | The interface never touches the visitor machine (no browser storage writes, no local hardware) and reads from the self-hosted db of the site over https; the engines ride the root as importable libraries with nothing hardcoded. |
|
|
165
|
+
| The source archives | The release source archives are tar.xz at maximum compression (-9e) on every lane; the platform-mandated zip containers stay (vsix, xpi, chromium zip, safari, maven declarations). |
|
|
166
|
+
| The per-application release | The new family release lane cuts one tag per application (app-v<version>) with its source archive and the four next shapes; saddle continues its 2.0.x→2.1.6 line from this repository. |
|
|
167
|
+
|
|
168
|
+
### Fixed
|
|
169
|
+
|
|
170
|
+
| Area | Change |
|
|
171
|
+
| --- | --- |
|
|
172
|
+
| The layer a11y | The cadria layer rows select through a real button instead of a tabindexed non-interactive div. |
|
|
173
|
+
| The os naming | The os components renamed to the dotted convention (clean.url.ts, use.stored.state.ts, app.header.tsx and siblings) with every import rewired. |
|
|
174
|
+
| The version metadata | The release metadata sync answers the 2.0.47 lockstep. |
|
|
175
|
+
|
|
176
|
+
## 2.0.46 — the four next shapes ride the assets and the gate artifacts self-heal
|
|
177
|
+
|
|
178
|
+
### Added
|
|
179
|
+
|
|
180
|
+
| Area | Change |
|
|
181
|
+
| --- | --- |
|
|
182
|
+
| The four next shapes | Every site ships four next archives beside the complete site: the next normal (the plain standard template with no folder blocking), the next zai (the standard template the Z.AI platform accepts riding the gateway skill, the prisma schema and the deploy map), the next fifty (the same shape with the forbidden folders blocked and the deploy reading the root) and the next personalized (the house tree one hundred percent personalized). Every shape carries the platform file set at its root (.npmrc, .nvmrc, biome, tsconfig, vercel, netlify, wrangler, the dev vars example, the manifest) and the icons follow the blocking rule. |
|
|
183
|
+
| The deploy order | The gateway skill teaches the order: the personalized first, then the zai, then the fifty, then the normal, with the four-step flow unchanged. |
|
|
184
|
+
|
|
185
|
+
### Fixed
|
|
186
|
+
|
|
187
|
+
| Area | Change |
|
|
188
|
+
| --- | --- |
|
|
189
|
+
| The gateway surface | The getry lockfile moves next to 16.3.8, past the next/og ImageResponse remote code execution advisory. |
|
|
190
|
+
| The engine graph | The saddle lockfile overrides @grpc/grpc-js to 1.14.5, closing the status-message leak and the getAuthContext certificate advisories at their transitive source. |
|
|
191
|
+
| The dependency graph | Every lockfile answers the osv, trivy and pnpm audit gates at once: devthink moves fast-uri to 3.1.8, getry overrides mysql2 to 3.23.1, js-yaml to 4.3.2, baseline-browser-mapping to 2.11.0 and @humanfs/node to 0.16.8 with browserslist riding 4.29.3, saddle moves brace-expansion to 5.0.12, and the workbench workspaces file adds the fast-uri and brace-expansion floors while axios rides 1.20.0. |
|
|
192
|
+
| The conversion lane | The nextzips job drops the node setup action: the runner's own node runs the converter, so no cache-capable step precedes the conversion code and the cache-poisoning surface disappears from the lane. |
|
|
193
|
+
| The family contracts | The contracts follow the doctrine: the publishing-pipeline test declares the nextzips job, the flat-structure gate grants the single src exception the gateway born Next carries, the static-type ceiling reads the platform template files the deploys consume (the caddy file, the mime types, the headers, the redirects, the wrangler dev secrets example) and the container-pack test asserts the base images by their registry tags — no hash string hardcoded anywhere, the digests ride the build records. |
|
|
194
|
+
|
|
195
|
+
## 2.0.42 — the release assets trade zip for the maximum compression and every site gains the personalized shape
|
|
196
|
+
|
|
197
|
+
### Changed
|
|
198
|
+
|
|
199
|
+
| Area | Change |
|
|
200
|
+
| --- | --- |
|
|
201
|
+
| The asset compression | The converter packs every asset as tar.xz at the maximum xz level (level 9 plus --extreme) with the Brotli overlay (quality 11, the maximum) riding on top of each archive — no zip remains in the family assets. |
|
|
202
|
+
| The personalized shape | Every site gains the third asset: the Next personalized (no src, the app/ directory at the root beside the house tree), beside the complete site and the Next standard; the application born Next emits the standard archive with the lockfile plus its personalized variant. |
|
|
203
|
+
| The platform language | The whole code and platform stay in English, and the interface translation rides the Google GTX endpoint (translate_a/single with client=gtx) with batched chunks, a versioned local cache and the original texts preserved in a weak map. |
|
|
204
|
+
| The devthink theme | The Sol theme receives the missing platform files (the Cloudflare configuration with the .dev.vars example, the MIME types, the Caddy file, the headers and the redirects). |
|
|
205
|
+
|
|
206
|
+
## 2.0.41 — the next conversion rides the release and the family gains the deployable clones
|
|
207
|
+
|
|
208
|
+
### Added
|
|
209
|
+
|
|
210
|
+
| Area | Change |
|
|
211
|
+
| --- | --- |
|
|
212
|
+
| The next conversion | The release lane gains the nextzips job: no application duplicates a folder to gain a Next version, the converter emits the complete site zip in the house shape (no src, no public, no dist, build at the root) plus the converted Next zip for every no-src site, and the single next zip for the application that is born Next — the bypass flavor of the gateway rides the conversion, not a second folder. |
|
|
213
|
+
| The deployable clones | The family tree gains the three deployable clone sites with their own names — vault (storage only), forge (execution only) and foundry (the complete runner) — plus the next.personalizado template, all generated on the official tree shape (one folder per application, no src, the theme folder with the single CSS, one page folder with the file quadruple) with the gateway skill riding the getry application and the converter scripts living in devthink/tests/scripts. |
|
|
214
|
+
| The workflow supply chain | The workflow actions answer by their version tags and the container bases ride the registry tags: no hash string is hardcoded anywhere, the digests generate at build and travel in the release assets (the sums umbrella and the digest records). |
|
|
215
|
+
| The engines | The repository envelope declares the runtime engines of the package 10 catalog (bare, bun, chrome, cnpm, corepack, deno, ecmascript, firefox, iojs, node, npm, pnpm, teleport, typescript, vscode, yarn). |
|
|
216
|
+
| The saddle source | The complete saddle repository content lives inside the family monorepo subfolder (the modules, the multi-language envelopes, the container configs, the docs and the test lanes). |
|
|
217
|
+
|
|
218
|
+
### Fixed
|
|
219
|
+
|
|
220
|
+
| Area | Change |
|
|
221
|
+
| --- | --- |
|
|
222
|
+
| The code scanning | The 124 open alerts close: the gateway routes draw identifiers and jitter from the CSPRNG, the /v3/keys handlers answer a generic error body with the details kept server-side, the bun.lock moves past the vulnerable lodash, minimatch, brace-expansion, picomatch, flatted, js-cookie, diff, @babel/core and mysql2 entries, the runtime stage refreshes the debian trixie-slim digest, the bun install pins by version, the release lane disables the setup cache and the GPL license rides the repository root. |
|
|
223
|
+
|
|
3
224
|
## 2.0.40 — the envelope family stamps the rung together
|
|
4
225
|
|
|
5
226
|
### Fixed
|
package/README.md
CHANGED
|
@@ -168,3 +168,67 @@ The release workflow builds Bun binaries for Linux x64, macOS arm64 and Windows
|
|
|
168
168
|
[4] [Z.AI API documentation](https://docs.z.ai/api-reference/introduction)
|
|
169
169
|
|
|
170
170
|
[5] [Xiaomi MiMo quick start](https://mimo.mi.com/docs/quick-start/first-api-call)
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
# The Sol theme
|
|
175
|
+
|
|
176
|
+
**DevThink Web** é o workbench browser-like da plataforma DevThink. É uma interface estática deliberadamente separada da persistência de providers: credenciais e endpoints pertencem ao `~/.config/devthink/devthink.json` e ao gateway local embutido, nunca ao bundle do navegador.
|
|
177
|
+
|
|
178
|
+
## Topologia
|
|
179
|
+
|
|
180
|
+
The theme root is the application root and the Sol/ folder carries the component folders (the theme stylesheet lives inside the theme as `Sol/sol.css`); no `src/` and no `client/src/` exists.
|
|
181
|
+
|
|
182
|
+
```text
|
|
183
|
+
the app root carries the theme roots and Sol/ carries the component folders
|
|
184
|
+
├── App.tsx
|
|
185
|
+
├── capacitor.config.ts
|
|
186
|
+
├── control.shell.tsx
|
|
187
|
+
├── gateway.ts
|
|
188
|
+
├── index.html
|
|
189
|
+
├── schema.prisma
|
|
190
|
+
├── Sol/
|
|
191
|
+
│ ├── sol.css
|
|
192
|
+
│ ├── console/
|
|
193
|
+
│ ├── gatewayview/
|
|
194
|
+
│ ├── home/
|
|
195
|
+
│ ├── notfound/
|
|
196
|
+
│ ├── os/
|
|
197
|
+
│ ├── providers/
|
|
198
|
+
│ ├── projects/
|
|
199
|
+
│ ├── routes/
|
|
200
|
+
│ ├── settings/
|
|
201
|
+
│ ├── shell/
|
|
202
|
+
│ └── usage/
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
## OS view (dissolved devthink/os)
|
|
206
|
+
|
|
207
|
+
The former Next.js DevThink OS (`devthink/os`, single route "/") is absorbed as the page folder `os/` and served at the `/os` route of this workbench. The folder owns its components (dotted names: `Os.tsx` anchor, `gateway.home`, `command.menu`, `app.header`, `aura.chat`, one `<app>.view` per family app) and its folder logics (`clean.url.ts`, `use.stored.state.ts`, `os.events.ts`, `os.types.ts`, `apps.ts`, `os.gateway.ts`, `reveal.ts`). The Next.js `page.tsx`/`layout.tsx` pair is not carried over: this is a Vite+wouter SPA, so the anchor is routed from `App.tsx`, the metadata lives in `index.html` and the engine stylesheet was merged into the "OS view" section of `index.css` with the `--sol-*` tokens remapped onto the `--dt-*` workbench tokens (the Sol design prevails).
|
|
208
|
+
|
|
209
|
+
Still-true rules of the os surface:
|
|
210
|
+
|
|
211
|
+
- Zero iframe: native React components only, one client-side shell, single view state `{ app, page }` persisted via `useStoredState` (localStorage + type-guard; storage is optional).
|
|
212
|
+
- Clean URLs (owner rule): internal navigation is React state + `history.replaceState(null, "", "/")`. The bar never shows `/settings`, `/projects`, `#hash`, `?utm_*`, `index.html` or `//` — cleaned live on `hashchange`/`popstate`. Live demo in Settings → "Clean URLs".
|
|
213
|
+
- Aura chat: the gateway answers `POST /v1/chat/completions` (`{model:"devthink", messages:[…]}`, OpenAI-compatible); `reasoning_content` feeds the collapsible Internal Cognition. One persona per app.
|
|
214
|
+
- Family domains: gateway/OS devthink.pro, argan argan.devthink.pro, debonair debonair.devthink.pro, cadria cadria.devthink.pro, stealthhead stealthhead.devthink.pro.
|
|
215
|
+
|
|
216
|
+
## Executar localmente
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
pnpm install
|
|
220
|
+
pnpm check
|
|
221
|
+
pnpm dev
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
Cada domínio de página contém sua âncora de rota, componentes visuais e lógica TypeScript local. `App.tsx` é a única entrada, responsável pela montagem React e pelo roteador universal. O workbench inclui tabs de navegador, seleção de provider, sessões, command palette, pareamento local, Settings e layouts responsivos. Mensagens ficam locais até que o navegador esteja pareado ao gateway DevThink.
|
|
225
|
+
|
|
226
|
+
## Fronteira do gateway
|
|
227
|
+
|
|
228
|
+
O cliente web usa o gateway loopback de `devthink serve` para `/health`, `/identity`, `/settings`, `/providers`, `/models`, `/sessions`, `/workspaces`, `/usage`, `/preferences`, `/pairings/consume`, `/pairings/revoke`, `/chat` e eventos SSE. Settings é equivalente a `devthink config settings`, `devthink config set` e `devthink identity --id`: ele lê e altera a mesma identidade pública e as mesmas preferências pertencentes ao banco local da CLI.
|
|
229
|
+
|
|
230
|
+
O banco `devthink.db` continua pertencendo à CLI e a um único ID público local. A interface pareada é apenas um cliente temporário dessa mesma base através do gateway autenticado; não há cópia estática do banco, senha de banco no navegador, chave de API, refresh token, cookie de navegador, dado de CAPTCHA ou segredo de provider no bundle.
|
|
231
|
+
|
|
232
|
+
## Design system
|
|
233
|
+
|
|
234
|
+
A direção visual está em [`../docs/ideas.md`](../docs/ideas.md), a implantação em [`../docs/deployment.ts.md`](../docs/deployment.ts.md) e a paridade entre CLI, Ink, gateway e web em [`../docs/v1.1.15.capability.matrix.md`](../docs/v1.1.15.capability.matrix.md). O workbench une a linguagem de tabs de um browser a superfícies de carvão, laranja de assinatura e azul de conexão. A marca é a composição ANSI canônica de [`../docs/logo.md`](../docs/logo.md), renderizada em forma compacta pela interface.
|
package/bridge.d.ts
CHANGED
|
@@ -428,7 +428,7 @@ import type { jsonrpcframe } from "./types.js";
|
|
|
428
428
|
/** The native bridge protocol major version this build speaks: the handshake reports it, the upgrade path keeps compatibility for exactly one major version, and a host that speaks another major version degrades instead of breaking the run. */
|
|
429
429
|
export declare const nativebridgeprotocolmajor = 1;
|
|
430
430
|
/** The installer version the installer stamps into the install state; the upgrade path compares it so a manifest written by an older installer reports before it overwrites. */
|
|
431
|
-
export declare const nativehostinstallerversion: "2.0.
|
|
431
|
+
export declare const nativehostinstallerversion: "2.0.60";
|
|
432
432
|
/** The generated extension id placeholder the host manifest template carries: the installer replaces the token with the extension id of the installed build, so the template never pins an identity the user did not generate. */
|
|
433
433
|
export declare const nativehostidplaceholder = "__generated_extension_id__";
|
|
434
434
|
/** The native messaging directory name of the chromium user profile: the installer writes the host manifest beside it, never into a system directory without the explicit flag. */
|
package/bridge.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
|
|
3
3
|
// version.ts
|
|
4
|
-
var packageversion = "2.0.
|
|
4
|
+
var packageversion = "2.0.60";
|
|
5
5
|
var protocolmajor = 2;
|
|
6
6
|
|
|
7
7
|
// types.ts
|
package/bun.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
|
|
3
3
|
// version.ts
|
|
4
|
-
var packageversion = "2.0.
|
|
4
|
+
var packageversion = "2.0.60";
|
|
5
5
|
var protocolmajor = 2;
|
|
6
6
|
var protocolfloormajor = 2;
|
|
7
7
|
|
package/caps/background.json
CHANGED
package/caps/cli.json
CHANGED
package/caps/library.json
CHANGED
package/caps/mcp.json
CHANGED
package/caps/pagebridge.json
CHANGED
package/caps/popup.json
CHANGED
package/caps/sidepanel.json
CHANGED
package/checksums.txt
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
468887d84bf0a94151c55e8c2f72fbe46c55750dd1b34fe11ec88510629d1852 CHANGELOG.md
|
|
2
2
|
3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986 LICENSE
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
5cd53341fba07b9b817af048af8a8bc0075af5f4faacbbeb3cd79a7713891966 README.md
|
|
4
|
+
ff032f26265d669bc8d25baa425c02988b9245b3e238ea0e9f649a7c430857be bridge.d.ts
|
|
5
5
|
a6d353d03e0e2d2cb116a057fcab7a2a6e3594290bcf66bc0ff5ea2656757c94 bridge.d.ts.map
|
|
6
|
-
|
|
6
|
+
353a39cede3a1d6e5b28468caf794525384303884942501f4f8ce3c960d67cd8 bridge.js
|
|
7
7
|
9557339c2c57fb58212c3b90e8e5934ddba56066a2537d645e4cb34439fdc2ff bun.d.ts
|
|
8
8
|
601a75f547bb845b8a81fa59a21d560691561eb17d598acb3fd1f4ac8421e424 bun.d.ts.map
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
a6693e14c9f55a5c7fa4d6f49e300832f2b487bd667943e931becba9e6af894b bun.js
|
|
10
|
+
5aa8900c92e36a335289fee3c68d6926c31bbf39b4bd40e7dd89279919c13aa9 caps/background.json
|
|
11
|
+
7fcade0ddccd82a477722e05087c58a5a4171b21581ff8678743f185df79cd4d caps/cli.json
|
|
12
|
+
41021a33dc841c4351211c7b63e94f49d0d4a1684ec9ff46421808125d1db2d2 caps/library.json
|
|
13
|
+
fb2fbae61c7bb252b55afb863246ece82b86067978ae40c6db77a2347a43811d caps/mcp.json
|
|
14
|
+
5e3d1f4f3eff9359ddf2ecb56fb6d6eef2a0429a0ee083a05fe5cfa6a878555b caps/pagebridge.json
|
|
15
|
+
4068cc7afd3842813c8e518d38dd3204faff838799f94bf11c2a78008a5f3a5d caps/popup.json
|
|
16
|
+
a41dddabd154cd695d6300171b76a12cc1f616e816297728cae0a7165167f837 caps/sidepanel.json
|
|
17
17
|
d35d001526d77c8f37371a39146587ea6ad86179167d82862284557adcd70f17 cli.d.ts
|
|
18
18
|
f7bb3e1903702366effe6c081837b1060c26479740a808f11e0a08ea85e849c9 cli.d.ts.map
|
|
19
|
-
|
|
19
|
+
4d2ced98c964e7738de16dafdef4e0646099a12735273cc6085d33b1fb130b82 cli.js
|
|
20
20
|
6d47383663f5efa626bfbc31977bc3df7cfb383725b243ce08057c059234e42f companion.d.ts
|
|
21
21
|
df25256c8176fc547298c2fb5666bcbf0f01bec284a0dc94f66350f6c29a38be companion.d.ts.map
|
|
22
|
-
|
|
22
|
+
6b255f75ad69d6d718f4ae11b7bff0fb0c6a378914e7af88c87b0755b8f1b7b8 companion.js
|
|
23
23
|
85824f4b1603769f1c117b524925f05a42d37f2bcb41e9d4d377e5408615721f crossbrowser.d.ts
|
|
24
24
|
a7c4cd26ce8402a9ec1d11bd8dab4222d3c73a0e6f84915402c2fd60f8282d95 crossbrowser.d.ts.map
|
|
25
|
-
|
|
25
|
+
6f721fd33a45a067cf434a05fd3882a3c6622c68c607dc3a2534affd723e835d crossbrowser.js
|
|
26
26
|
bc8f0d95430875b0fd8aff5c0744580d3dd07c5a0927aad4f2c54d34b83be016 dashdone.d.ts
|
|
27
27
|
4d7e32ac75985463dd38a5c408e154276c902c1a1a9ba032d610bffc2b89eee5 dashdone.d.ts.map
|
|
28
|
-
|
|
28
|
+
9eb477141d3898caf3ced1829bc98d09938bb26bdb4509f5df3e3dd9dd6e5c16 dashdone.js
|
|
29
29
|
fea8d906a8c3b0608a9ae4b622c0b88c78d535ed151aa9db29922d817c387495 deno.d.ts
|
|
30
30
|
3b07bf585688565ff818934d7d38f26c0188fcaf44ddbc8727ad3c76999b826c deno.d.ts.map
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
8bf668d9bf5207df470cce1cb1d863b9d068049057ad8000cf17fed8e97894b8 deno.js
|
|
32
|
+
167fbbf91902ff42905a5651e37bb6e6d6b5aa38f18bbffccbc18a549ccb5cf4 devthink.umd.js
|
|
33
33
|
d8b6d1f6446da72d359dae978c5495244257dc70660415f8aaad96dd5075e241 fixtures/bun.ts
|
|
34
34
|
702c21459e5d6d8d0b914a86bb6c3646a0be40e132b2d40cc04f2994cfbd1cf3 fixtures/cjs.js
|
|
35
35
|
6bd268717a28a23405e5200264d47bb68aaf9c0d6d911674eaa22477bf19d003 fixtures/deno.ts
|
|
@@ -87,42 +87,42 @@ c93c417dbf3a43736845e653598624ee48e79f69bf93d36e3b19655e0a23b792 fixtures/recip
|
|
|
87
87
|
6b757866f79c4a16098879f7cfffdb85557b7fb6ca4ec7b1c0cd1d1169c3e3c0 gallery.json
|
|
88
88
|
16f6a0cdd78820a257d0fbb501784ed031dcffcdc4b9841d5279c8273e3776f4 hardening.d.ts
|
|
89
89
|
eb153f3fa619ca8f59dd8abb598f33213a98026392854a32a7c305a73688bc95 hardening.d.ts.map
|
|
90
|
-
|
|
90
|
+
1a63d091c5b339ff99eaeb87401ce1a8117d2422a0df469f581f70a8828cbbc1 hardening.js
|
|
91
91
|
2e560159a8c3b121c91d83545e0dcfa03b79399ed052bc23a425b2d355839362 headless.d.ts
|
|
92
92
|
f6a7bced8d6b26f05ca971e70aaa177b8be9fb5a7e25a17ab5f2235a8f9ed590 headless.d.ts.map
|
|
93
|
-
|
|
93
|
+
093cda4d479cd7a4a7d33263ade372bcfe4f2ab23a1cebb88c1cf028a9bba9fc headless.js
|
|
94
94
|
7aed8c110caffd11caf27d63b993ad71328851905f4faeea2a8e1442eba8e257 http.d.ts
|
|
95
95
|
b1ab1184756d92fb301a71d5a696ed4cd70bb4953f292002f01930c9e4893024 http.d.ts.map
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
d7ff2525d82bc62340141950c11926324a2dcf9908bc2a377b6f6b6eb8ecebd3 http.js
|
|
97
|
+
f5038ad413cf9ff4fea2cbee446ed3bbd02251d58b07b93a0750e0ea7fe6d26a index.cjs
|
|
98
98
|
31b2f3e15bb0b8cbef623b438f01bb8424909686424a98dd88366412d063d7ed index.d.ts
|
|
99
99
|
9398106d8b2277fb1c40892eff062a8cc8e605837d01f191fb783517367860fc index.d.ts.map
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
dc7da5340d975ee0f3b7f7caf51079a34f9ce6f311e052f6581599d9e9e4addb index.js
|
|
101
|
+
46e53a471bd9c826667db45addfbe99b70b2bbfdd8a863d87a87ffa1cc79a332 index.neutral.js
|
|
102
|
+
ee10c0b24fca48a248bd81e143fef2316f39a194acc3955bb53abc26bf6805c1 manifest.json
|
|
103
103
|
4a4a38d5c2f25f6e33d7fea853a074d4c82dfe5c721506ca4636b1d65c130f10 mcp.d.ts
|
|
104
104
|
dd22f998da99d77485e863c4e7f1f906bb46dc03ee500efe99a5c09a935f4539 mcp.d.ts.map
|
|
105
|
-
|
|
105
|
+
da7addb45dcd728ce6d347b77e397a4dfbc274e9d4cdd68d65fcfd3bd5f99c31 mcp.js
|
|
106
106
|
ce98408283eccac2d435ac0e0ceb6bb5456e1eb70edb03a03e347a9f82f99c69 memory.d.ts
|
|
107
107
|
9f4c19494bb1b2260a4d15c4c2dce4d2b3f5da96f07b8fbe9037f9b5fe31c8e1 memory.d.ts.map
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
4c27e0c2d49fbe979273010dbc6b1c85030df6bc89bffc177ce7b50a31c97451 memory.js
|
|
109
|
+
f7c803e52d184f83142c98bd9c8ffa681a908fc9f028972156a01bef3e71b4d7 nativehost.template.json
|
|
110
|
+
58ae2b329b77a69d5e92f21077296685898cd320e1d460a3e96b9867170b262a node.cjs
|
|
111
111
|
705d895c58fe6816958f0fed4bef0a6f79e5fc521ab49d9cf83e0fbcd9d71afe node.d.ts
|
|
112
112
|
45f4394eca20fc889fe1128059ce20130d26a5ae0d89008a7ca93f0e4d52841b node.d.ts.map
|
|
113
113
|
5ec83bc409bed888ae13ab55d1f329ac630a3cf2f0db0e2414c28324329c055b pack.d.ts
|
|
114
114
|
619d43a5239d770c3382af3dd57e2588dd067ded81ca8c106d404e6709324a63 pack.d.ts.map
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
5637caec74dcd770f58101d1b5a9f911cf4f5fe1dfc64a9ca954ddc794ed3685 pack.js
|
|
116
|
+
d323d86dbc221821c890638cb43d623ad24b2d1aaf1433a033cb13f2e8fdd0d2 package.json
|
|
117
117
|
e3a2ed944a0bc1ef4943ee250a57e428ce49d781d30de6072571e0bc5d8c0259 policy.d.ts
|
|
118
118
|
8f4fabc57c883e12ac7c7ab280749dc7c2d402c4fce401bef235c5e451b6975a policy.d.ts.map
|
|
119
|
-
|
|
119
|
+
654f6b4e805ee0d4ac8485f55143fc7fe596c30c4e4cab09be4fefc223e75d5a policy.js
|
|
120
120
|
ea621ab35e610fbe8acb8e91f21ed2c74a6b20bba537c5982f31458d6878b90b progress.d.ts
|
|
121
121
|
33383e690d77faf6f5959846839603079e7f90e1e3dd17cbcc9a4e3fcf1c5641 progress.d.ts.map
|
|
122
|
-
|
|
122
|
+
75b1a3b47962bcac6bac5f2473bed3922719bbf3863a52a3546ae86f1c0d008a progress.js
|
|
123
123
|
d2e54016f0cad51928752882d780066ccf2267d383deb2407ea7b2f97dfd26e7 protocol.d.ts
|
|
124
124
|
487f8fc63061cb26cbda7f122409d9952810ba3a76b19d147c98d151d4f45d64 protocol.d.ts.map
|
|
125
|
-
|
|
125
|
+
2a122290466c8a72d9909aa83703ef3fabda17c37c1beaec1ef969c3d7fbebc9 protocol.js
|
|
126
126
|
456c4a26fd65c728f2dcb9e615ec6e4d446d7e4228bfa3f70ce2b17ee3d6a2c2 schemas/audit.schema.json
|
|
127
127
|
ea272aa6bf4df585ae1ca8ca63e36d7ec713c46187f37ed86ff3620a0e8509b2 schemas/capability.schema.json
|
|
128
128
|
6e9d2291dc54f7d01463e5f70c8f0793d952a63f4096d61ee4dbc4bfd6f6b0a0 schemas/envelope.schema.json
|
|
@@ -134,9 +134,9 @@ a02073c153d1248638fa3cbb5f0749534382cf262d09671018cdfc538ae74430 schemas/progre
|
|
|
134
134
|
d0e0365a7641c0127338c14a5318c4591dc598b7d2a36b7b2944219921d1ce4e schemas/session.schema.json
|
|
135
135
|
5bb7d16534b52ca3a7171178065fb7b283947accd1b616ce89e330eb7a91b82e schemas/tool.schema.json
|
|
136
136
|
76f61b03cb67ab85b1bfd0f14014ff87ef5689975ab37e7b598ad6cdf837bafd server.d.ts
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
6d552a1dab4691bbf673148a5b5915017eed900ef10dc7573c0c1d7125fa4328 server.d.ts.map
|
|
138
|
+
2249d5ef345db7f5bd14fd14b43c38ac0dbfc98f42a93c6f9510940241763777 server.js
|
|
139
|
+
6afdce130164ce65f108fcdbd3da128504345248c3d17ac957f34b5709f3bad9 umd-example.html
|
|
140
140
|
16f66af22e038e4f9328420a0ed0ee34145ca79c938940e8c2e6d232e25a7c09 umd.d.ts
|
|
141
141
|
ac25f7481155ac9321c5a657e7c4a53570bee8b3f63fe3527045260523a494c8 umd.d.ts.map
|
|
142
142
|
58e21373cec5ade3e6698da5b36ecc2bf7e7e2f755c6fb5e3a6605b535b93985 manifest.json key
|
package/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
/*! devthink 2.0.
|
|
2
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
3
3
|
|
|
4
4
|
// cli.ts
|
|
5
5
|
import { createInterface } from "node:readline/promises";
|
|
@@ -569,7 +569,7 @@ function endcall(input) {
|
|
|
569
569
|
}
|
|
570
570
|
|
|
571
571
|
// version.ts
|
|
572
|
-
var packageversion = "2.0.
|
|
572
|
+
var packageversion = "2.0.60";
|
|
573
573
|
var protocolmajor = 2;
|
|
574
574
|
var protocolfloormajor = 2;
|
|
575
575
|
|
|
@@ -16471,7 +16471,7 @@ async function main() {
|
|
|
16471
16471
|
const command = process.argv[2] ?? "help";
|
|
16472
16472
|
const args = process.argv.slice(3);
|
|
16473
16473
|
if (command === "manifest") {
|
|
16474
|
-
const manifesttext = await readFile(resolve("
|
|
16474
|
+
const manifesttext = await readFile(resolve("manifest.json"), "utf8");
|
|
16475
16475
|
const manifest = JSON.parse(manifesttext);
|
|
16476
16476
|
const packagejson = JSON.parse(await readFile(resolve("package.json"), "utf8"));
|
|
16477
16477
|
const permissions = manifest.permissions ?? [];
|
package/companion.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 companion — the optional native host of the native bridge — GPL-3.0-only — built with plain node, no native compiler */
|
|
2
2
|
|
|
3
3
|
// companion.ts
|
|
4
4
|
import { createHash, randomBytes } from "node:crypto";
|
|
@@ -16,7 +16,7 @@ var nativehosttemplatejson = `{
|
|
|
16
16
|
"devthinkBanner": "devthink __devthink_version__ native host manifest template \u2014 GPL-3.0-only \u2014 the chromium host manifest of the optional companion process"
|
|
17
17
|
}
|
|
18
18
|
`;
|
|
19
|
-
var companionbuild = "2.0.
|
|
19
|
+
var companionbuild = "2.0.60";
|
|
20
20
|
var companionprotocol = 1;
|
|
21
21
|
var companionsurfaces = ["osdialog", "notification"];
|
|
22
22
|
var maxnativemessage = 1024 * 1024;
|
package/crossbrowser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
|
|
3
3
|
// crossbrowser.ts
|
|
4
4
|
var browserpolyfillflags = [
|
package/dashdone.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
|
|
3
3
|
// dashdone.ts
|
|
4
4
|
function dashboardviewerof(input) {
|
package/deno.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
|
|
3
3
|
// version.ts
|
|
4
|
-
var packageversion = "2.0.
|
|
4
|
+
var packageversion = "2.0.60";
|
|
5
5
|
var protocolmajor = 2;
|
|
6
6
|
var protocolfloormajor = 2;
|
|
7
7
|
|
package/devthink.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
(function (root, factory) {
|
|
3
3
|
if (typeof define === "function" && define.amd) { define([], factory); }
|
|
4
4
|
else if (typeof module === "object" && module.exports) { module.exports = factory(); }
|
|
@@ -2365,7 +2365,7 @@ __export(umd_exports, {
|
|
|
2365
2365
|
module.exports = __toCommonJS(umd_exports);
|
|
2366
2366
|
|
|
2367
2367
|
// version.ts
|
|
2368
|
-
var packageversion = "2.0.
|
|
2368
|
+
var packageversion = "2.0.60";
|
|
2369
2369
|
var protocolmajor = 2;
|
|
2370
2370
|
var protocolfloormajor = 2;
|
|
2371
2371
|
|
package/hardening.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
|
|
3
3
|
// security.ts
|
|
4
4
|
var maskmarker = "[redacted]";
|
package/headless.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
|
|
3
3
|
// version.ts
|
|
4
|
-
var packageversion = "2.0.
|
|
4
|
+
var packageversion = "2.0.60";
|
|
5
5
|
var protocolmajor = 2;
|
|
6
6
|
|
|
7
7
|
// runtime.ts
|
package/http.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
|
|
3
3
|
// version.ts
|
|
4
|
-
var packageversion = "2.0.
|
|
4
|
+
var packageversion = "2.0.60";
|
|
5
5
|
var protocolmajor = 2;
|
|
6
6
|
|
|
7
7
|
// types.ts
|
package/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
"use strict";
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -2356,7 +2356,7 @@ __export(cjs_exports, {
|
|
|
2356
2356
|
module.exports = __toCommonJS(cjs_exports);
|
|
2357
2357
|
|
|
2358
2358
|
// version.ts
|
|
2359
|
-
var packageversion = "2.0.
|
|
2359
|
+
var packageversion = "2.0.60";
|
|
2360
2360
|
var protocolmajor = 2;
|
|
2361
2361
|
var protocolfloormajor = 2;
|
|
2362
2362
|
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
|
|
3
3
|
// version.ts
|
|
4
|
-
var packageversion = "2.0.
|
|
4
|
+
var packageversion = "2.0.60";
|
|
5
5
|
var protocolmajor = 2;
|
|
6
6
|
var protocolfloormajor = 2;
|
|
7
7
|
|
package/index.neutral.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
|
|
3
3
|
// debug.ts
|
|
4
4
|
var cdpkinds = [
|
|
@@ -2010,7 +2010,7 @@ function sessionbundleof(input) {
|
|
|
2010
2010
|
}
|
|
2011
2011
|
|
|
2012
2012
|
// version.ts
|
|
2013
|
-
var packageversion = "2.0.
|
|
2013
|
+
var packageversion = "2.0.60";
|
|
2014
2014
|
var protocolmajor = 2;
|
|
2015
2015
|
var protocolfloormajor = 2;
|
|
2016
2016
|
|
package/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"manifest_version": 3,
|
|
3
3
|
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnOEjO8Z0PDgQyfvawGcaO2j+o0GLCFTLNj7TkYC/Avo9l2NenMRq7gp90Nfd7E9MViv/OMcCKSYZ5unv12QPRtv31C+a5UQWDFAOP/cH5mwMd6hsayElrSoW8ta+FwFqmr9dIFkn7cQEU3YhZr4Gcbs+ycUHOxVgDA4NBKB0rQ6e9VW5LvTw0isRYUrqM+M72vKxHk9zUIYYn/LGPvottKBYi2GLr0PHSeC2UE+Shmq7vcFIXj6hDjvD4kLJ5sKoUllEcZ1TPuBcnHUQ9ndKA5iktXDQOIJCUJmi7a0YJ2PGg7fvpYfT9k0ai/qZ+pIoRfoOEwE01bPoDn7NjeYnNQIDAQAB",
|
|
4
4
|
"name": "Devthink",
|
|
5
|
-
"version": "2.0.
|
|
5
|
+
"version": "2.0.60",
|
|
6
6
|
"description": "A consent-first bridge for reviewed browser-agent tasks.",
|
|
7
7
|
"icons": {
|
|
8
8
|
"16": "icons/16.png",
|
package/mcp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
|
|
3
3
|
// version.ts
|
|
4
|
-
var packageversion = "2.0.
|
|
4
|
+
var packageversion = "2.0.60";
|
|
5
5
|
var protocolmajor = 2;
|
|
6
6
|
var protocolfloormajor = 2;
|
|
7
7
|
|
package/memory.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
|
|
3
3
|
// debug.ts
|
|
4
4
|
function expireprofilerecords(input) {
|
package/nativehost.template.json
CHANGED
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
"allowed_origins": [
|
|
7
7
|
"chrome-extension://__generated_extension_id__/"
|
|
8
8
|
],
|
|
9
|
-
"devthinkBanner": "devthink 2.0.
|
|
9
|
+
"devthinkBanner": "devthink 2.0.60 native host manifest template — GPL-3.0-only — the chromium host manifest of the optional companion process"
|
|
10
10
|
}
|
package/node.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
"use strict";
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -2357,7 +2357,7 @@ __export(node_exports, {
|
|
|
2357
2357
|
module.exports = __toCommonJS(node_exports);
|
|
2358
2358
|
|
|
2359
2359
|
// version.ts
|
|
2360
|
-
var packageversion = "2.0.
|
|
2360
|
+
var packageversion = "2.0.60";
|
|
2361
2361
|
var protocolmajor = 2;
|
|
2362
2362
|
var protocolfloormajor = 2;
|
|
2363
2363
|
|
package/pack.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
|
|
3
3
|
// pack.ts
|
|
4
4
|
function artifactchannels() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wenathlan/devthink",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.60",
|
|
4
4
|
"description": "DevThink is the merged AI development workbench: the provider-owned gateway engine, the DevThink browser extension (the agent surface), the Antigravity engine and the workbench CLI — one product, one binary, one metadata.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "GPL-3.0-only",
|
|
@@ -24,20 +24,20 @@
|
|
|
24
24
|
"web-workbench"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@hono/node-server": "^2.1.
|
|
27
|
+
"@hono/node-server": "^2.1.3",
|
|
28
28
|
"@libsql/client": "^0.18.0",
|
|
29
29
|
"@prisma/adapter-libsql": "^7.10.0",
|
|
30
30
|
"@prisma/client": "^7.10.0",
|
|
31
|
-
"hono": "^4.13.
|
|
31
|
+
"hono": "^4.13.12",
|
|
32
32
|
"ink": "^7.1.1",
|
|
33
33
|
"react": "^19.3.0",
|
|
34
|
-
"react-devtools-core": "^
|
|
34
|
+
"react-devtools-core": "^8.0.0",
|
|
35
35
|
"z-ai-web-dev-sdk": "^0.0.18"
|
|
36
36
|
},
|
|
37
37
|
"engines": {
|
|
38
38
|
"bun": ">=1.4.2 <2",
|
|
39
39
|
"node": ">=26.10.0 <27",
|
|
40
|
-
"npm": ">=12.
|
|
40
|
+
"npm": ">=12.2.0 <13",
|
|
41
41
|
"deno": ">=2.0.0 <3"
|
|
42
42
|
},
|
|
43
43
|
"sideEffects": false,
|
package/policy.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
|
|
3
3
|
// debug.ts
|
|
4
4
|
var cdpdomains = ["Runtime", "Log", "Debugger", "DOM", "Network", "Page"];
|
|
@@ -350,7 +350,7 @@ function sessionrecordvalid(value) {
|
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
// version.ts
|
|
353
|
-
var packageversion = "2.0.
|
|
353
|
+
var packageversion = "2.0.60";
|
|
354
354
|
var protocolmajor = 2;
|
|
355
355
|
var protocolfloormajor = 2;
|
|
356
356
|
|
package/progress.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
|
|
3
3
|
// version.ts
|
|
4
|
-
var packageversion = "2.0.
|
|
4
|
+
var packageversion = "2.0.60";
|
|
5
5
|
var protocolmajor = 2;
|
|
6
6
|
|
|
7
7
|
// progress.ts
|
package/protocol.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
|
|
3
3
|
// debug.ts
|
|
4
4
|
var cdpdomains = ["Runtime", "Log", "Debugger", "DOM", "Network", "Page"];
|
|
@@ -1255,7 +1255,7 @@ function cronvalue(value, min, max, names) {
|
|
|
1255
1255
|
}
|
|
1256
1256
|
|
|
1257
1257
|
// version.ts
|
|
1258
|
-
var packageversion = "2.0.
|
|
1258
|
+
var packageversion = "2.0.60";
|
|
1259
1259
|
var protocolmajor = 2;
|
|
1260
1260
|
|
|
1261
1261
|
// types.ts
|
package/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,EAAyC,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAqB7G,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3B,CAAC;AAoZF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,EAAG,UAAmB,CAAC;AAG7C,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE1E;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB;aAC5B,QAAQ;aACR,YAAY;aACZ,SAAS;aACT,cAAc;aACd,cAAc;aACd,eAAe;aACf,SAAS;iBACP,cAAc;iBACd,eAAe;iBACf,qBAAqB;;IAEvB,6EAA6E;aAC7E,WAAW,EAAE,2CAA2C;CAChD,CAAC;AAEX;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB;aACjC,QAAQ;aACR,YAAY;aACZ,SAAS;aACT,cAAc;aACd,mBAAmB;aACnB,MAAM;aACN,QAAQ;aACR,QAAQ,EAAE,oBAAoB;CACtB,CAAC;AA8BX;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAErH;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,QAAa,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAE7D,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAa,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAElE,CAAC"}
|
package/server.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! devthink 2.0.
|
|
1
|
+
/*! devthink 2.0.60 — consent-first browser agent library — GPL-3.0-only — https://github.com/wenathlan/devthink */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
@@ -39,7 +39,7 @@ function resolvedburl() {
|
|
|
39
39
|
if (isremote(host)) {
|
|
40
40
|
return { url: host, isremote: true };
|
|
41
41
|
}
|
|
42
|
-
return { url: "file:./
|
|
42
|
+
return { url: "file:./devthink.db", isremote: false };
|
|
43
43
|
}
|
|
44
44
|
async function ensuredb() {
|
|
45
45
|
if (globalforprisma.prisma) return globalforprisma.prisma;
|
|
@@ -7640,6 +7640,9 @@ function searchbases() {
|
|
|
7640
7640
|
async function loadconfig() {
|
|
7641
7641
|
if (loaded) return loaded;
|
|
7642
7642
|
const names = [
|
|
7643
|
+
"config.mjs",
|
|
7644
|
+
"config.ts",
|
|
7645
|
+
"config.js",
|
|
7643
7646
|
"Sol/config.mjs",
|
|
7644
7647
|
"Sol/config.ts",
|
|
7645
7648
|
"Sol/config.js",
|
|
@@ -25015,6 +25018,9 @@ async function askyesno(question, defaultanswer = false) {
|
|
|
25015
25018
|
return answer.toLowerCase().startsWith("y");
|
|
25016
25019
|
}
|
|
25017
25020
|
var confignames = [
|
|
25021
|
+
"config.mjs",
|
|
25022
|
+
"config.ts",
|
|
25023
|
+
"config.js",
|
|
25018
25024
|
"Sol/config.mjs",
|
|
25019
25025
|
"Sol/config.ts",
|
|
25020
25026
|
"Sol/config.js",
|
|
@@ -25023,7 +25029,7 @@ var confignames = [
|
|
|
25023
25029
|
"gateway.config.js"
|
|
25024
25030
|
];
|
|
25025
25031
|
function configpath() {
|
|
25026
|
-
return resolve8(process.cwd(), "
|
|
25032
|
+
return resolve8(process.cwd(), "config.mjs");
|
|
25027
25033
|
}
|
|
25028
25034
|
async function findconfig() {
|
|
25029
25035
|
for (const name of confignames) {
|
|
@@ -25161,21 +25167,21 @@ model NvidiaKey {
|
|
|
25161
25167
|
}
|
|
25162
25168
|
`;
|
|
25163
25169
|
var prismaconfigtemplate = `/** prisma config \u2014 the datasource url lives here (prisma 7 moved it
|
|
25164
|
-
* out of the schema file). the schema is
|
|
25165
|
-
* from DEVTHINK_DATABASE_URL or DATABASE_URL,
|
|
25166
|
-
* sqlite at
|
|
25167
|
-
* runtime uses, so the pushed database and the serving
|
|
25168
|
-
* one file with zero configuration */
|
|
25170
|
+
* out of the schema file). the schema is schema.prisma at the project
|
|
25171
|
+
* root; the url comes from DEVTHINK_DATABASE_URL or DATABASE_URL,
|
|
25172
|
+
* defaulting to the local sqlite at devthink.db \u2014 the same default the
|
|
25173
|
+
* gateway library runtime uses, so the pushed database and the serving
|
|
25174
|
+
* process agree on one file with zero configuration */
|
|
25169
25175
|
|
|
25170
25176
|
import { existsSync } from "node:fs";
|
|
25171
25177
|
import path from "node:path";
|
|
25172
25178
|
import { defineConfig } from "prisma/config";
|
|
25173
25179
|
|
|
25174
|
-
/** resolve schema path \u2014
|
|
25180
|
+
/** resolve schema path \u2014 schema.prisma at the root is the standard location */
|
|
25175
25181
|
function resolveschemapath(): string {
|
|
25176
25182
|
const candidates = [
|
|
25177
|
-
path.resolve(process.cwd(), "Sol", "schema.prisma"),
|
|
25178
25183
|
path.resolve(process.cwd(), "schema.prisma"),
|
|
25184
|
+
path.resolve(process.cwd(), "Sol", "schema.prisma"),
|
|
25179
25185
|
path.resolve(process.cwd(), "prisma", "schema.prisma"),
|
|
25180
25186
|
];
|
|
25181
25187
|
for (const candidate of candidates) {
|
|
@@ -25190,7 +25196,7 @@ export default defineConfig({
|
|
|
25190
25196
|
url:
|
|
25191
25197
|
process.env.DEVTHINK_DATABASE_URL ||
|
|
25192
25198
|
process.env.DATABASE_URL ||
|
|
25193
|
-
"file:./
|
|
25199
|
+
"file:./devthink.db",
|
|
25194
25200
|
},
|
|
25195
25201
|
});
|
|
25196
25202
|
`;
|
|
@@ -25199,16 +25205,6 @@ async function cmdinit() {
|
|
|
25199
25205
|
${colors.cyan}${colors.bold}@wenathlan/devthink gateway${colors.reset} v${version()} \u2014 init
|
|
25200
25206
|
`);
|
|
25201
25207
|
const targetdir = process.cwd();
|
|
25202
|
-
const webdir = join11(targetdir, "Sol");
|
|
25203
|
-
if (!existsSync11(webdir)) {
|
|
25204
|
-
mkdirSync10(webdir, { recursive: true });
|
|
25205
|
-
console.log(`${colors.green}created${colors.reset} Sol/`);
|
|
25206
|
-
}
|
|
25207
|
-
const prismadir = join11(webdir, "prisma");
|
|
25208
|
-
if (!existsSync11(prismadir)) {
|
|
25209
|
-
mkdirSync10(prismadir, { recursive: true });
|
|
25210
|
-
console.log(`${colors.green}created${colors.reset} Sol/prisma/`);
|
|
25211
|
-
}
|
|
25212
25208
|
const existing = await findconfig();
|
|
25213
25209
|
if (existing || existsSync11(configpath())) {
|
|
25214
25210
|
const overwrite = await askyesno(
|
|
@@ -25240,17 +25236,17 @@ ${colors.bold}--- version ${i + 1} of ${versioncount} ---${colors.reset}`);
|
|
|
25240
25236
|
};
|
|
25241
25237
|
writeFileSync11(configpath(), generateconfigcontent(definition));
|
|
25242
25238
|
console.log(`
|
|
25243
|
-
${colors.green}created${colors.reset}
|
|
25244
|
-
const schemapath = join11(
|
|
25239
|
+
${colors.green}created${colors.reset} config.mjs`);
|
|
25240
|
+
const schemapath = join11(targetdir, "schema.prisma");
|
|
25245
25241
|
writeFileSync11(schemapath, schematemplate);
|
|
25246
|
-
console.log(`${colors.green}created${colors.reset}
|
|
25242
|
+
console.log(`${colors.green}created${colors.reset} schema.prisma`);
|
|
25247
25243
|
writeFileSync11(join11(targetdir, "prisma.config.ts"), prismaconfigtemplate);
|
|
25248
25244
|
console.log(`${colors.green}created${colors.reset} prisma.config.ts`);
|
|
25249
25245
|
const envpath = join11(targetdir, ".env.example");
|
|
25250
25246
|
const envlines = [
|
|
25251
25247
|
"# gateway environment",
|
|
25252
25248
|
"# database url \u2014 libsql http postgres or file",
|
|
25253
|
-
"# DEVTHINK_DATABASE_URL=file:./
|
|
25249
|
+
"# DEVTHINK_DATABASE_URL=file:./devthink.db",
|
|
25254
25250
|
""
|
|
25255
25251
|
];
|
|
25256
25252
|
for (const [id, v] of Object.entries(versions)) {
|
|
@@ -25265,7 +25261,7 @@ ${colors.green}created${colors.reset} Sol/config.mjs`);
|
|
|
25265
25261
|
console.log(`${colors.green}created${colors.reset} .env.example`);
|
|
25266
25262
|
console.log(`
|
|
25267
25263
|
${colors.green}${colors.bold}done${colors.reset} \u2014 next steps:`);
|
|
25268
|
-
console.log(" 1. edit
|
|
25264
|
+
console.log(" 1. edit config.mjs to tune your configuration");
|
|
25269
25265
|
console.log(" 2. register keys: npx @wenathlan/devthink gateway keys <version>");
|
|
25270
25266
|
console.log(" 3. install prisma: npm i -D prisma");
|
|
25271
25267
|
console.log(" 4. push + generate: npx prisma db push && npx prisma generate");
|
|
@@ -25547,7 +25543,8 @@ async function cmdexport(dirarg) {
|
|
|
25547
25543
|
writeFileSync11(join11(target, name), readFileSync10(found.path, "utf8"));
|
|
25548
25544
|
console.log(`${colors.green}exported${colors.reset} ${name}`);
|
|
25549
25545
|
}
|
|
25550
|
-
const
|
|
25546
|
+
const schemaroot = resolve8(process.cwd(), "schema.prisma");
|
|
25547
|
+
const schemapath = existsSync11(schemaroot) ? schemaroot : resolve8(process.cwd(), "Sol", "schema.prisma");
|
|
25551
25548
|
if (existsSync11(schemapath)) {
|
|
25552
25549
|
writeFileSync11(join11(target, "schema.prisma"), readFileSync10(schemapath, "utf8"));
|
|
25553
25550
|
console.log(`${colors.green}exported${colors.reset} schema.prisma`);
|
|
@@ -25565,7 +25562,7 @@ function printhelp() {
|
|
|
25565
25562
|
"Usage: devthink gateway <command> [options]",
|
|
25566
25563
|
"",
|
|
25567
25564
|
"Commands:",
|
|
25568
|
-
" init scaffold
|
|
25565
|
+
" init scaffold config.mjs schema and env interactively",
|
|
25569
25566
|
" add add a new version to the config",
|
|
25570
25567
|
" list list configured versions",
|
|
25571
25568
|
" show <version> show one version config",
|
package/umd-example.html
CHANGED