@perrylink/dsh-github 0.7.0 → 0.7.2

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.
@@ -3,11 +3,81 @@
3
3
  * card contributed to the "Plugins" settings section.
4
4
  * @module @perrylink/dsh-github/client
5
5
  */
6
- import type { ClientContext } from '@deepseek-ai/dsh-client-runtime/client';
6
+
7
+ /** Source and writability facts for one credential reference (never the value). */
8
+ interface CredentialView {
9
+ /** Whether resolving the reference would currently return a value. */
10
+ configured: boolean
11
+ /** Source layer currently supplying the value; absent while unconfigured. */
12
+ source?: string
13
+ /** Whether the active provider can write this reference. */
14
+ writable: boolean
15
+ }
16
+
17
+ /**
18
+ * The credentials-domain wire face the card uses: the host `credentials` Remote
19
+ * namespace (`remote.credentials`). The token literal crosses the wire on
20
+ * `set` only — no read path returns it.
21
+ */
22
+ interface CredentialsApi {
23
+ /**
24
+ * Ask the credentials domain about references; one view per requested name,
25
+ * keyed by that name.
26
+ */
27
+ describe(refs: string[]): Promise<
28
+ | { readonly ok: true; readonly value: Record<string, CredentialView> }
29
+ | { readonly ok: false; readonly error: { readonly code: string; readonly message: string } }
30
+ >
31
+ /**
32
+ * Store one non-empty value under a reference.
33
+ */
34
+ set(ref: string, value: string): Promise<unknown>
35
+ }
36
+
37
+ /** Locale copy the card renders. */
38
+ interface GithubCardLocale {
39
+ githubTitle: string
40
+ githubDescription: string
41
+ tokenLabel: string
42
+ tokenHint: string
43
+ tokenSet: string
44
+ tokenUnset: string
45
+ unsaved: string
46
+ readOnly: string
47
+ save: string
48
+ saving: string
49
+ discard: string
50
+ saveFailed: string
51
+ }
52
+
53
+ /** Browser context face the card consumes, as declared by src/client.ts. */
54
+ interface ClientContextLike {
55
+ get(service: string): unknown
56
+ effect(disposer: () => void, label: string): void
57
+ locale: {
58
+ bind(namespace: string): (key: keyof GithubCardLocale) => string
59
+ register(namespace: string, dictionaries: Record<string, GithubCardLocale>): void
60
+ }
61
+ remote: {
62
+ $on(event: string, listener: (ref: string) => void): unknown
63
+ credentials: CredentialsApi
64
+ }
65
+ settingsScope: {
66
+ bind<T>(spec: { namespace: string }): {
67
+ getSnapshot(): { status: string; writable: boolean; value: T | undefined }
68
+ subscribe(listener: () => void): () => void
69
+ }
70
+ }
71
+ slots: {
72
+ inject(slot: string, factory: () => unknown): unknown
73
+ register(options: Record<string, unknown>, component: unknown): unknown
74
+ }
75
+ }
76
+
7
77
  /** Required services (cordis fiber inject). */
8
- export declare const inject: string[];
78
+ export declare const inject: string[]
9
79
  /**
10
80
  * Mount the GitHub configuration card into the plugins settings section.
11
81
  * @param ctx - the browser plugin context.
12
82
  */
13
- export declare function apply(ctx: ClientContext): void;
83
+ export declare function apply(ctx: ClientContextLike): void
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perrylink/dsh-github",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "Official-grade GitHub CI for DeepSeek Harness: composite action (review PRs / fix CI / report), polling PR review bot with idempotent inline comments, a status-check gate, and approval-gated PR/issue/repo/file tools",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -71,7 +71,7 @@
71
71
  "inject": [
72
72
  "@deepseek-ai/dsh-client-connection",
73
73
  "@deepseek-ai/dsh-client-locale",
74
- "@deepseek-ai/dsh-client-runtime",
74
+ "@deepseek-ai/dsh-client-ui-settings",
75
75
  "@deepseek-ai/dsh-client-ui-slots"
76
76
  ],
77
77
  "platform": "web"
@@ -100,7 +100,7 @@
100
100
  ],
101
101
  "compatibility": {
102
102
  "dshVersions": [
103
- "0.1.1-rc.2"
103
+ "0.1.2-alpha.3"
104
104
  ]
105
105
  },
106
106
  "capability": {
@@ -117,29 +117,48 @@
117
117
  }
118
118
  },
119
119
  "dependencies": {
120
- "@deepseek-ai/schemastery": "^3.18.1"
120
+ "@deepseek-ai/schemastery": "^3.18.2"
121
121
  },
122
122
  "peerDependencies": {
123
- "@deepseek-ai/cordis": "^4.0.1",
123
+ "@deepseek-ai/cordis": "^4.0.2",
124
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.1.1-rc.2",
125
+ "@deepseek-ai/dsh-client-ui-settings": ">=0.1.1-rc.2 <0.2.0",
124
126
  "@deepseek-ai/dsh-credentials": ">=0.1.0-rc.8 <0.2.0",
125
127
  "@deepseek-ai/dsh-llm": ">=0.1.0-rc.8 <0.2.0",
126
128
  "@deepseek-ai/dsh-session": ">=0.1.0-rc.8 <0.2.0",
127
129
  "@deepseek-ai/dsh-settings": ">=0.1.0-rc.8 <0.2.0",
128
- "@deepseek-ai/dsh-tools": ">=0.1.0-rc.8 <0.2.0"
130
+ "@deepseek-ai/dsh-tool-jobs": "^0.1.1-rc.2",
131
+ "@deepseek-ai/dsh-tools": ">=0.1.0-rc.8 <0.2.0",
132
+ "react": "^18.0.0 || ^19.0.0"
129
133
  },
130
- "devDependencies": {
131
- "@deepseek-ai/cordis": "4.0.1",
134
+ "peerDependenciesMeta": {
135
+ "@deepseek-ai/dsh-client-ui-primitives": {
136
+ "optional": true
137
+ },
138
+ "@deepseek-ai/dsh-client-ui-settings": {
139
+ "optional": true
140
+ },
141
+ "react": {
142
+ "optional": true
143
+ }
144
+ },
145
+ "devDependencies": {"@deepseek-ai/dsh-util-values": "0.1.2-alpha.3", "@deepseek-ai/dsh-attachment": "0.1.2-alpha.3",
146
+ "@deepseek-ai/cordis": "^4.0.2",
132
147
  "@deepseek-ai/cordis-plugin-loader": "1.0.2",
133
- "@deepseek-ai/dsh-credentials": "0.1.1-rc.2",
134
- "@deepseek-ai/dsh-llm": "0.1.1-rc.2",
135
- "@deepseek-ai/dsh-session": "0.1.1-rc.2",
136
- "@deepseek-ai/dsh-settings": "0.1.1-rc.2",
137
- "@deepseek-ai/dsh-tools": "0.1.1-rc.2",
138
- "@deepseek-ai/schemastery": "3.18.1",
148
+ "@deepseek-ai/dsh-credentials": "0.1.2-alpha.3",
149
+ "@deepseek-ai/dsh-llm": "0.1.2-alpha.3",
150
+ "@deepseek-ai/dsh-session": "0.1.2-alpha.3",
151
+ "@deepseek-ai/dsh-settings": "0.1.2-alpha.3",
152
+ "@deepseek-ai/dsh-tools": "0.1.2-alpha.3",
153
+ "@deepseek-ai/schemastery": "^3.18.2",
139
154
  "@types/node": "^22.0.0",
140
155
  "@vitest/coverage-v8": "3.2.0",
141
156
  "oxlint": "0.18.1",
142
157
  "typescript": "^5.7.0",
143
158
  "vitest": "^3.2.0"
159
+ },
160
+ "funding": {
161
+ "type": "individual",
162
+ "url": "https://github.com/sponsors/PerryLink"
144
163
  }
145
164
  }