@linxin666/dsh-pet 0.1.2 → 0.1.3

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.
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Dock-band fallback seat for the pet.
3
+ *
4
+ * Current dsh web shells declare `conversation.input.dock` (the composer dock
5
+ * band, a list slot) instead of the legacy `conversation.input.selector.context`
6
+ * hole this plugin was written against. The dock band renders only for an
7
+ * active session, so on shells that carry it the pet follows the session seat
8
+ * — an acceptable degradation until the upstream shell restores the context
9
+ * hole. The underlying entry ignores owner props (it reads only injected
10
+ * actions and the locale), so this wrapper is a pure props re-cast.
11
+ */
12
+ import type { PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
13
+ import { type PetInjected } from './PetDockEntry.tsx';
14
+ import { NS } from './locales.ts';
15
+ /** Composed props of the dock-band fallback seat. */
16
+ export type DockPetDockEntryProps = PropsRuntime<'conversation.input.dock'> & PetInjected & PropsLocale<typeof NS>;
17
+ /**
18
+ * Render the pet dock from the composer dock band.
19
+ * @param props - composed slot props (dock band seat).
20
+ * @returns the dock entry element tree.
21
+ */
22
+ export declare function DockPetDockEntry(props: DockPetDockEntryProps): import("react").JSX.Element;
23
+ //# sourceMappingURL=DockPetDockEntry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DockPetDockEntry.d.ts","sourceRoot":"","sources":["../../../src/client/DockPetDockEntry.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAEjF,OAAO,EAAwC,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAC3F,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AAEjC,qDAAqD;AACrD,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,yBAAyB,CAAC,GAAG,WAAW,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC,CAAA;AAElH;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,+BAE5D"}
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { PetDockEntry } from "./PetDockEntry.js";
3
+ /**
4
+ * Render the pet dock from the composer dock band.
5
+ * @param props - composed slot props (dock band seat).
6
+ * @returns the dock entry element tree.
7
+ */
8
+ export function DockPetDockEntry(props) {
9
+ return _jsx(PetDockEntry, { ...props });
10
+ }
package/package.json CHANGED
@@ -1,18 +1,11 @@
1
1
  {
2
2
  "name": "@linxin666/dsh-pet",
3
3
  "description": "鲸鱼娘宠物插件 for the dsh web GUI: a soft healing whale-girl companion that reacts to model activity (idle/waiting/thinking/tool/done), with petting/feeding interactions and an affinity score",
4
- "version": "0.1.2",
4
+ "version": "0.1.3",
5
5
  "type": "module",
6
- "packageManager": "pnpm@11.7.0",
7
6
  "engines": {
8
7
  "node": "^22.19.0 || >=24.0.0"
9
8
  },
10
- "scripts": {
11
- "build": "tsc -b && tsdown",
12
- "test": "vitest run",
13
- "typecheck": "tsc -b --pretty false && tsc -p tsconfig.test.json --pretty false",
14
- "prepare": "tsdown --config tsdown.prepare.config.ts"
15
- },
16
9
  "main": "lib/index.js",
17
10
  "types": "lib/types/index.d.ts",
18
11
  "exports": {
@@ -50,7 +43,6 @@
50
43
  "@deepseek-ai/dsh-client-runtime",
51
44
  "@deepseek-ai/dsh-client-connection",
52
45
  "@deepseek-ai/dsh-client-ui-settings",
53
- "@deepseek-ai/dsh-client-ui-slots",
54
46
  "@deepseek-ai/dsh-client-ui-conversation"
55
47
  ],
56
48
  "platform": "web"
@@ -101,5 +93,10 @@
101
93
  "repository": {
102
94
  "type": "git",
103
95
  "url": "https://github.com/zhu1090093659/dsh-web-ui.git"
96
+ },
97
+ "scripts": {
98
+ "build": "tsc -b && tsdown",
99
+ "test": "vitest run",
100
+ "typecheck": "tsc -b --pretty false && tsc -p tsconfig.test.json --pretty false"
104
101
  }
105
- }
102
+ }