feat(launcher): install the server from a prebuilt archive (P1.3c)

The launcher is now a self-contained installer with install, run, update,
doctor and uninstall. Install downloads waggle-server-<version>-<target>
.tar.gz, checks its SHA-256, unpacks it into a per-user program directory
and writes a waggle-server command that runs the tool on the archive's own
Node. Nothing is built on the user's machine and the data directory stays
WAGGLE_DATA_DIR or ~/.waggle.

scripts/build-server-archive.mjs packs the staged desktop sidecar payload
with the built web UI and a manifest. The download location waits for the
repository decision; until then install takes --from or
WAGGLE_RELEASE_BASE_URL (ADR-0009).

Removes install.sh, scripts/waggle-server.sh and their CI job, which the
installer replaces, and the bin name clash with @waggle/cli.
This commit is contained in:
shumeiko.it
2026-11-01 01:35:54 +01:00
parent eb2412b687
commit 3a426a5423
22 changed files with 1455 additions and 2206 deletions

249
package-lock.json generated
View File

@@ -19228,34 +19228,10 @@
"name": "@waggle-ai/waggle",
"version": "1.0.0",
"license": "MIT",
"dependencies": {
"@fastify/cors": "^10.0.0",
"@fastify/static": "^10.1.2",
"@fastify/websocket": "^11.0.0",
"@huggingface/transformers": "3.8.1",
"@puppeteer/browsers": "2.13.0",
"adm-zip": "^0.6.0",
"archiver": "^7.0.1",
"better-sqlite3": "^12.6.2",
"cron-parser": "^4.9.0",
"docx": "^9.6.1",
"exceljs": "^4.4.0",
"fastify": "^5.3.0",
"fastify-plugin": "^5.0.0",
"glob": "^13.0.6",
"mammoth": "^1.11.0",
"mem0ai": "3.3.1",
"pdf-parse": "^2.4.5",
"undici": "^6.27.0",
"whatsapp-web.js": "1.34.7",
"ws": "^8.21.0",
"zod": "^3.24.0"
},
"bin": {
"waggle": "dist/cli.js"
"waggle-server": "dist/cli.js"
},
"devDependencies": {
"@waggle/server": "*",
"tsup": "^8.5.1",
"tsx": "^4.21.0"
},
@@ -19263,229 +19239,6 @@
"node": ">=20"
}
},
"packages/launcher/node_modules/@anthropic-ai/sdk": {
"version": "0.40.1",
"resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.40.1.tgz",
"integrity": "sha512-DJMWm8lTEM9Lk/MSFL+V+ugF7jKOn0M2Ujvb5fN8r2nY14aHbGPZ1k6sgjL+tpJ3VuOGJNG+4R83jEpOuYPv8w==",
"license": "MIT",
"optional": true,
"peer": true,
"dependencies": {
"@types/node": "^18.11.18",
"@types/node-fetch": "^2.6.4",
"abort-controller": "^3.0.0",
"agentkeepalive": "^4.2.1",
"form-data-encoder": "1.7.2",
"formdata-node": "^4.3.2",
"node-fetch": "^2.6.7"
}
},
"packages/launcher/node_modules/@types/node": {
"version": "18.19.130",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.130.tgz",
"integrity": "sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==",
"license": "MIT",
"optional": true,
"peer": true,
"dependencies": {
"undici-types": "~5.26.4"
}
},
"packages/launcher/node_modules/mem0ai": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/mem0ai/-/mem0ai-3.3.1.tgz",
"integrity": "sha512-R+T0rB8WNU4Eh8ClfZnD2BKjk7Q4MDx3XdLZMoUZ+S7dItpkpg3xkcGrKqk0COV0dyRrul/EYzkDWTr2D6YTag==",
"license": "Apache-2.0",
"dependencies": {
"axios": "^1.18.0",
"openai": "^4.93.0",
"uuid": "^11.1.1",
"zod": "^3.24.1"
},
"engines": {
"node": ">=18"
},
"peerDependencies": {
"@anthropic-ai/sdk": "^0.40.1",
"@aws-sdk/client-bedrock-runtime": ">=3.0.0 <3.968.0",
"@aws-sdk/client-neptune-graph": ">=3.0.0 <3.968.0",
"@aws-sdk/client-s3vectors": "3.967.0",
"@azure/identity": "^4.0.0",
"@azure/search-documents": "^12.0.0",
"@cloudflare/workers-types": "^4.20250504.0",
"@databricks/sql": "^1.16.0",
"@elastic/elasticsearch": "^9.0.0",
"@google-cloud/aiplatform": "^6.8.0",
"@google/genai": "^1.40.0",
"@huggingface/transformers": "^3.0.0 || ^4.0.0",
"@langchain/core": "^1.1.47",
"@mistralai/mistralai": "^1.5.2",
"@mochow/mochow-sdk-node": "^2.1.5",
"@opensearch-project/opensearch": "^3.5.1",
"@pinecone-database/pinecone": "^8.0.0",
"@qdrant/js-client-rest": "^1.18.0",
"@supabase/supabase-js": "^2.49.1",
"@turbopuffer/turbopuffer": "^2.0.0",
"@types/pg": "^8.11.0",
"@upstash/vector": "^1.2.3",
"@zilliz/milvus2-sdk-node": "^2.4.0 || ^3.0.0",
"better-sqlite3": "^12.6.2",
"cassandra-driver": "4.8.0",
"chromadb": "^3.5.0",
"cloudflare": "^4.2.0",
"cohere-ai": "^7.17.0 || ^8.0.0",
"compromise": "^14.0.0",
"fastembed": "^2.1.0",
"groq-sdk": "0.3.0",
"iovalkey": "^0.3.3",
"mongodb": "^7.0.0",
"mysql2": "^3.0.0",
"natural": "^8.0.1",
"ollama": "^0.5.14",
"oracledb": "^6.5.0 || ^7.0.0",
"pg": "^8.11.3",
"redis": "^4.6.13",
"weaviate-client": "^3.0.0",
"zeroentropy": "^0.1.0-alpha.10"
},
"peerDependenciesMeta": {
"@anthropic-ai/sdk": {
"optional": true
},
"@aws-sdk/client-bedrock-runtime": {
"optional": true
},
"@aws-sdk/client-neptune-graph": {
"optional": true
},
"@aws-sdk/client-s3vectors": {
"optional": true
},
"@azure/identity": {
"optional": true
},
"@azure/search-documents": {
"optional": true
},
"@databricks/sql": {
"optional": true
},
"@elastic/elasticsearch": {
"optional": true
},
"@google-cloud/aiplatform": {
"optional": true
},
"@google/genai": {
"optional": true
},
"@huggingface/transformers": {
"optional": true
},
"@langchain/core": {
"optional": true
},
"@mistralai/mistralai": {
"optional": true
},
"@mochow/mochow-sdk-node": {
"optional": true
},
"@opensearch-project/opensearch": {
"optional": true
},
"@pinecone-database/pinecone": {
"optional": true
},
"@qdrant/js-client-rest": {
"optional": true
},
"@supabase/supabase-js": {
"optional": true
},
"@turbopuffer/turbopuffer": {
"optional": true
},
"@types/pg": {
"optional": true
},
"@upstash/vector": {
"optional": true
},
"@zilliz/milvus2-sdk-node": {
"optional": true
},
"cassandra-driver": {
"optional": true
},
"chromadb": {
"optional": true
},
"cloudflare": {
"optional": true
},
"cohere-ai": {
"optional": true
},
"fastembed": {
"optional": true
},
"groq-sdk": {
"optional": true
},
"iovalkey": {
"optional": true
},
"mongodb": {
"optional": true
},
"mysql2": {
"optional": true
},
"natural": {
"optional": true
},
"ollama": {
"optional": true
},
"oracledb": {
"optional": true
},
"pg": {
"optional": true
},
"redis": {
"optional": true
},
"weaviate-client": {
"optional": true
},
"zeroentropy": {
"optional": true
}
}
},
"packages/launcher/node_modules/undici-types": {
"version": "5.26.5",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
"integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
"license": "MIT",
"optional": true,
"peer": true
},
"packages/launcher/node_modules/uuid": {
"version": "11.1.1",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.1.tgz",
"integrity": "sha512-vIYxrBCC/N/K+Js3qSN88go7kIfNPssr/hHCesKCQNAjmgvYS2oqr69kIufEG+O4+PfezOH4EbIeHCfFov8ZgQ==",
"funding": [
"https://github.com/sponsors/broofa",
"https://github.com/sponsors/ctavan"
],
"license": "MIT",
"bin": {
"uuid": "dist/esm/bin/uuid"
}
},
"packages/marketplace": {
"name": "@waggle/marketplace",
"version": "0.1.0",