mirror of
https://github.com/modelstudioai/cli.git
synced 2026-09-14 19:49:23 +08:00
9e9911aa86
Expose Bailian capabilities to dsh through its service seams as one package with six subpath plugin entries and a `dsh.bundle` patch: - TokenPlan as an LLM provider - bailian_vision_describe / bailian_image_generate tools over `bl` - knowledge-base retrieval as a WebSearchProvider (`bailian-kb`) - cross-session memory: tools, pre-step recall, turn-close persist - managed-agent as a SubagentProvider TokenPlan configures the base bundle's existing pi-ai row rather than mounting a second `dsh-llm-pi-ai` instance. A second instance cannot work: pi-ai re-declares its entire built-in provider catalog to `registerConfigurableProviders`, and that directory is global, so boot fails with a duplicate on `amazon-bedrock`. Routes and vision support were probed against the live gateway. qwen3.8-max, qwen3.7-plus, qwen3.6-flash and glm-5.2 read images; qwen3.7-max rejects them with HTTP 400; the DeepSeek routes accept image content without erroring yet stay blind. The DeepSeek entries therefore do not declare image input — claiming it would turn a clean refusal into a silently wrong answer — and `bailian_vision_describe` serves them by returning text instead. Also fix `bl memory` against the v2 API, each verified live: - `profile get` used /profiles, which returns HTTP 500. The documented and working endpoint is /user_profile. - `add` read `response.memory_ids`, which the service never returns. It returns `memory_nodes`, so text output always printed "IDs: none". - `MemoryNode.created_at`/`updated_at` are unix seconds, not strings, and `UserProfileResponse.profile` did not match the wire shape. - Add the missing request parameters: --meta-data, --project-id, --project-ids, --min-score, --enable-rerank, --plan-version, --enable-judge, --enable-rewrite, --timestamp. - Add `memory profile list|detail|update|delete`, covering the four v2 profile-schema operations the CLI was missing. `plan_version: lite` is ignored by the service and still bills pro; `enable_rerank: false` is what actually selects lite, which is ~50x cheaper per search. The CLI flag and the memory plugin both send the parameter that works. Disable pnpm's autoInstallPeers: the @deepseek-ai/dsh-* rc line peers on three packages that were never published to npm, which 404s the whole workspace install. Verified the existing packages still build. Co-Authored-By: Claude <noreply@anthropic.com>
38 lines
826 B
YAML
38 lines
826 B
YAML
packages:
|
|
- packages/*
|
|
- tools/*
|
|
|
|
catalog:
|
|
"@types/node": ^24
|
|
"@types/tar-stream": ^3.1.4
|
|
"@types/yauzl": ^3.4.0
|
|
ajv: ^8.20.0
|
|
boxen: ^8.0.1
|
|
chalk: ^5.6.2
|
|
tar-stream: ^3.2.0
|
|
smol-toml: ^1.4.2
|
|
tsx: ^4.23.0
|
|
typescript: ^5
|
|
undici: ^6.27.0
|
|
vite: npm:@voidzero-dev/vite-plus-core@latest
|
|
vite-plus: latest
|
|
vitest: npm:@voidzero-dev/vite-plus-test@latest
|
|
yaml: ^2.8.3
|
|
yauzl: ^3.4.0
|
|
|
|
catalogMode: prefer
|
|
overrides:
|
|
vite: "catalog:"
|
|
vitest: "catalog:"
|
|
# The @deepseek-ai/dsh-* rc line (used only by bailian-cli-dsh) peers on
|
|
# packages that were never published: dsh-type-meta, dsh-environment,
|
|
# dsh-tasks. Auto-installing peers therefore 404s the whole workspace.
|
|
autoInstallPeers: false
|
|
peerDependencyRules:
|
|
allowAny:
|
|
- vite
|
|
- vitest
|
|
allowedVersions:
|
|
vite: "*"
|
|
vitest: "*"
|