@songtonyli/dsh-cli 0.1.78 → 0.1.79

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 CHANGED
@@ -26,7 +26,7 @@ workspace and no build step. Native packages that ship one build per platform
26
26
  ripgrep, the PTY backend's addons, sharp, koffi, and the Landlock launcher — are
27
27
  ordinary optional dependencies, so npm resolves the right one for your machine.
28
28
 
29
- Requires Node `^22.19.0 || >=24.0.0`. Version 0.1.78; `dsh --version`
29
+ Requires Node `^22.19.0 || >=24.0.0`. Version 0.1.79; `dsh --version`
30
30
  also reports the harness build the package was assembled from.
31
31
 
32
32
  ## License
package/bin/dsh.mjs CHANGED
@@ -18,7 +18,7 @@ const argv = process.argv.slice(2)
18
18
  // version this package publishes. Reporting only one of the two would make an
19
19
  // ordinary `npm install @songtonyli/dsh-cli@x` look like it installed something else.
20
20
  if (argv.length === 1 && (argv[0] === '--version' || argv[0] === '-V')) {
21
- console.log('@songtonyli/dsh-cli 0.1.78 (deepseek-harness 0.2.1-rc.2)')
21
+ console.log('@songtonyli/dsh-cli 0.1.79 (deepseek-harness 0.2.1-rc.2)')
22
22
  process.exit(0)
23
23
  }
24
24
 
@@ -537,7 +537,7 @@ var ClientModuleRegistry = class extends Service {
537
537
  constructor(ctx) {
538
538
  super(ctx, "clientModules");
539
539
  const { version } = createRequire(import.meta.url)("../package.json");
540
- const commit = "511caad";
540
+ const commit = "385384e";
541
541
  this.release = {
542
542
  version,
543
543
  commit
@@ -167,7 +167,7 @@ window.__ModuleLoader__.load({
167
167
  const SCROLLBAR_LINGER_MS = 2e3;
168
168
  /** Format complete-build metadata for the local brand badge. */
169
169
  function localBuildVersion() {
170
- return `0.2.1-rc.2-511caad` + ({}.DSH_CLIENT_GIT_DIRTY === "true" ? "-dirty" : "");
170
+ return `0.2.1-rc.2-385384e` + ({}.DSH_CLIENT_GIT_DIRTY === "true" ? "-dirty" : "");
171
171
  }
172
172
  /** Each panel row subscribes only to its own selection state. */
173
173
  function PanelRow({ id, label, wide, usePanelInfo, selectPanel, renderSlot }) {
@@ -264,59 +264,101 @@ function toPiAssistant(message, onDegrade) {
264
264
  * @module dsh-llm-pi-ai/catalog-supplement
265
265
  */
266
266
  /** One provider route's supplemental models, keyed by model id. */
267
- const SUPPLEMENT = { anthropic: { "claude-haiku-5-5": {
268
- id: "claude-haiku-5-5",
269
- name: "Claude Haiku 5.5",
270
- api: "anthropic-messages",
271
- provider: "anthropic",
272
- baseUrl: "https://api.anthropic.com",
273
- reasoning: true,
274
- input: ["text", "image"],
275
- cost: {
276
- input: .1,
277
- output: .5,
278
- cacheRead: .01,
279
- cacheWrite: .125,
280
- tiers: [{
281
- inputTokensAbove: 1e5,
282
- input: .5,
283
- output: 2.5,
284
- cacheRead: .05,
285
- cacheWrite: .625
286
- }]
287
- },
288
- contextWindow: 1e6,
289
- maxTokens: 128e3,
290
- compat: {
291
- supportsMidConvoEffort: true,
292
- supportsMidConvoSystemMessages: true,
293
- supportsMidConvoToolChanges: true,
294
- forceAdaptiveThinking: true,
295
- supportsStrictTools: true
296
- },
297
- thinkingLevelMap: {
298
- off: null,
299
- xhigh: "xhigh",
300
- max: "max"
301
- },
302
- promptCache: {
303
- short: 300,
304
- long: 3600
305
- },
306
- inputLimits: {
307
- maxRequestBytes: 33554432,
308
- images: {
309
- maxPerRequest: 600,
310
- resize: {
311
- maxWidth: 2e3,
312
- maxHeight: 2e3,
313
- maxBytes: 4718592,
314
- jpegQuality: 80
267
+ const SUPPLEMENT = {
268
+ anthropic: { "claude-haiku-5-5": {
269
+ id: "claude-haiku-5-5",
270
+ name: "Claude Haiku 5.5",
271
+ api: "anthropic-messages",
272
+ provider: "anthropic",
273
+ baseUrl: "https://api.anthropic.com",
274
+ reasoning: true,
275
+ input: ["text", "image"],
276
+ cost: {
277
+ input: .1,
278
+ output: .5,
279
+ cacheRead: .01,
280
+ cacheWrite: .125,
281
+ tiers: [{
282
+ inputTokensAbove: 1e5,
283
+ input: .5,
284
+ output: 2.5,
285
+ cacheRead: .05,
286
+ cacheWrite: .625
287
+ }]
288
+ },
289
+ contextWindow: 1e6,
290
+ maxTokens: 128e3,
291
+ compat: {
292
+ supportsMidConvoEffort: true,
293
+ supportsMidConvoSystemMessages: true,
294
+ supportsMidConvoToolChanges: true,
295
+ forceAdaptiveThinking: true,
296
+ supportsStrictTools: true
297
+ },
298
+ thinkingLevelMap: {
299
+ off: null,
300
+ xhigh: "xhigh",
301
+ max: "max"
302
+ },
303
+ promptCache: {
304
+ short: 300,
305
+ long: 3600
306
+ },
307
+ inputLimits: {
308
+ maxRequestBytes: 33554432,
309
+ images: {
310
+ maxPerRequest: 600,
311
+ resize: {
312
+ maxWidth: 2e3,
313
+ maxHeight: 2e3,
314
+ maxBytes: 4718592,
315
+ jpegQuality: 80
316
+ }
315
317
  }
316
- }
317
- },
318
- type: "chat"
319
- } } };
318
+ },
319
+ type: "chat"
320
+ } },
321
+ openrouter: { "deepseek/deepseek-v4.1-flash-1017": {
322
+ id: "deepseek/deepseek-v4.1-flash-1017",
323
+ name: "DeepSeek: DeepSeek V4.1 Flash (1017)",
324
+ api: "openai-completions",
325
+ provider: "openrouter",
326
+ baseUrl: "https://openrouter.ai/api/v1",
327
+ reasoning: true,
328
+ input: ["text", "image"],
329
+ cost: {
330
+ input: .05,
331
+ output: .6,
332
+ cacheRead: .006,
333
+ cacheWrite: 0
334
+ },
335
+ contextWindow: 1e6,
336
+ maxTokens: 943718,
337
+ compat: {
338
+ supportsDeveloperRole: false,
339
+ thinkingFormat: "openrouter",
340
+ supportsStrictMode: true,
341
+ sendSessionAffinityHeaders: true,
342
+ requiresReasoningContentOnAssistantMessages: true
343
+ },
344
+ thinkingLevelMap: {
345
+ off: "none",
346
+ minimal: null,
347
+ low: "low",
348
+ medium: null,
349
+ high: "high",
350
+ xhigh: null,
351
+ max: "max"
352
+ },
353
+ inputLimits: { images: { resize: {
354
+ maxWidth: 2e3,
355
+ maxHeight: 2e3,
356
+ maxBytes: 4718592,
357
+ jpegQuality: 80
358
+ } } },
359
+ type: "chat"
360
+ } }
361
+ };
320
362
  /**
321
363
  * Supplemental catalog models for one pi-ai provider route.
322
364
  * @param provider - provider route key.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@songtonyli/dsh-cli",
3
- "version": "0.1.78",
3
+ "version": "0.1.79",
4
4
  "description": "The dsh terminal agent: an interactive TUI over the DeepSeek Harness, with its whole Node runtime bundled in one install.",
5
5
  "license": "MIT",
6
6
  "type": "module",