dsh-claude-project-ui 0.4.3 → 0.5.0
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/CHANGELOG.md +100 -0
- package/README.md +259 -61
- package/THIRD_PARTY_NOTICES.md +71 -0
- package/docs/about-drafts.md +27 -55
- package/docs/dsh-threads-baseline.md +119 -0
- package/docs/optional-threads-0.4.4.md +139 -0
- package/docs/store-copy-0.4.4.md +86 -0
- package/docs/two-installs-problem.md +256 -0
- package/docs/vendoring-feasibility.md +179 -0
- package/package.json +54 -5
- package/src/client.js +4689 -9
- package/src/config.js +3 -0
- package/src/index.js +276 -3
- package/src/threads-install.js +174 -0
- package/src/threads-probe.js +255 -0
- package/src/threads-vendor.js +123 -0
- package/vendor/dsh-threads/CHANGELOG.md +174 -0
- package/vendor/dsh-threads/LICENSE +21 -0
- package/vendor/dsh-threads/README.en.md +113 -0
- package/vendor/dsh-threads/README.md +113 -0
- package/vendor/dsh-threads/VENDORED.md +66 -0
- package/vendor/dsh-threads/cordis.patch.yml +6 -0
- package/vendor/dsh-threads/dist/client.js +4260 -0
- package/vendor/dsh-threads/dist/index.js +2773 -0
- package/vendor/dsh-threads/icon.svg +1 -0
- package/vendor/dsh-threads/locale/en.json +6 -0
- package/vendor/dsh-threads/locale/zh.json +6 -0
- package/vendor/dsh-threads/package.json +122 -0
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { readdirSync, readFileSync } from "node:fs";
|
|
2
|
+
import { homedir } from "node:os";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Is `@kyf-eng/dsh-threads` installed in THIS process?
|
|
7
|
+
*
|
|
8
|
+
* dsh-threads is optional: this plugin adds a Claude-style project board on top
|
|
9
|
+
* of it, but its knowledge base, context brief, `hub_note` and folder mounts
|
|
10
|
+
* work without it. The panel therefore has to know the difference between
|
|
11
|
+
* "dsh-threads is missing" and "dsh-threads is here and you have no projects
|
|
12
|
+
* yet", and it must never guess from the storage file alone.
|
|
13
|
+
*
|
|
14
|
+
* Two independent, read-only signals, both resolved lazily at request time
|
|
15
|
+
* (never at apply time, so installing or disabling dsh-threads later does not
|
|
16
|
+
* require reloading this plugin):
|
|
17
|
+
*
|
|
18
|
+
* 1. **Domain handle** — `storageDomain.get("dsh_threads")`. dsh-threads opens
|
|
19
|
+
* that domain inside its own `apply` and keeps the handle open. Presence
|
|
20
|
+
* means its apply actually ran and its store is live. This plugin never
|
|
21
|
+
* opens the domain itself (src/mainfolder.js only uses the handle
|
|
22
|
+
* dsh-threads already opened), so a handle is attributable to dsh-threads
|
|
23
|
+
* alone.
|
|
24
|
+
* 2. **Plugin registry** — `ctx.registry` (Cordis' plugin registry) keeps one
|
|
25
|
+
* runtime per plugin callback; the loader registers the bundle module as a
|
|
26
|
+
* plugin shape and Cordis copies that shape's `name` export, which is
|
|
27
|
+
* `"dsh-threads"` (verified against @kyf-eng/dsh-threads@0.2.0's
|
|
28
|
+
* `dist/index.js`). This covers the window where the entry exists but its
|
|
29
|
+
* apply is still waiting for a service, or failed — no domain handle yet.
|
|
30
|
+
*
|
|
31
|
+
* Cross-checking matters in both directions: the file alone proves nothing (a
|
|
32
|
+
* removed plugin leaves it behind, and an installed plugin with no projects has
|
|
33
|
+
* no file at all), while the domain alone would miss a plugin that is loaded but
|
|
34
|
+
* not yet applied. `installed` is the OR of the two; the raw signals are kept
|
|
35
|
+
* in the payload so the panel (and this repo's tests) can say which one fired.
|
|
36
|
+
*
|
|
37
|
+
* Neither signal writes anything and neither throws: a host without the
|
|
38
|
+
* services, a registry that refuses iteration, or a domain facility that throws
|
|
39
|
+
* all yield `false` instead of an exception.
|
|
40
|
+
*/
|
|
41
|
+
export const THREADS_DOMAIN = "dsh_threads";
|
|
42
|
+
|
|
43
|
+
/** The bundle's package name, as `dsh.profile.bundles` and the loader spell it. */
|
|
44
|
+
export const THREADS_BUNDLE = "@kyf-eng/dsh-threads";
|
|
45
|
+
|
|
46
|
+
/** The `name` export of @kyf-eng/dsh-threads, which is what Cordis copies. */
|
|
47
|
+
export const THREADS_RUNTIME_NAMES = Object.freeze(["dsh-threads", THREADS_BUNDLE]);
|
|
48
|
+
|
|
49
|
+
/** Signal 1: the domain handle dsh-threads opened (and only it opens). */
|
|
50
|
+
export function domainSignal(storageDomain) {
|
|
51
|
+
try {
|
|
52
|
+
if (storageDomain === null || typeof storageDomain !== "object") return false;
|
|
53
|
+
if (typeof storageDomain.get !== "function") return false;
|
|
54
|
+
const handle = storageDomain.get(THREADS_DOMAIN);
|
|
55
|
+
return handle !== undefined && handle !== null;
|
|
56
|
+
} catch {
|
|
57
|
+
// A foreign or half-torn-down facility must read as "not there", not throw.
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** Signal 2: the plugin callback is registered in Cordis' plugin registry. */
|
|
63
|
+
export function registrySignal(registry) {
|
|
64
|
+
try {
|
|
65
|
+
if (registry === null || typeof registry !== "object") return false;
|
|
66
|
+
if (typeof registry.values !== "function") return false;
|
|
67
|
+
for (const runtime of registry.values()) {
|
|
68
|
+
const name = runtime?.name;
|
|
69
|
+
if (typeof name === "string" && THREADS_RUNTIME_NAMES.includes(name)) return true;
|
|
70
|
+
}
|
|
71
|
+
return false;
|
|
72
|
+
} catch {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** Both signals, plus the combined verdict. */
|
|
78
|
+
export function probeThreads(sources = {}) {
|
|
79
|
+
const domain = domainSignal(sources === null || sources === undefined ? undefined : sources.storageDomain);
|
|
80
|
+
const runtime = registrySignal(sources === null || sources === undefined ? undefined : sources.registry);
|
|
81
|
+
return { domain, runtime, installed: domain || runtime };
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The payload the board route exposes to the panel.
|
|
86
|
+
*
|
|
87
|
+
* `storageFile` is corroboration only, never a signal: it says "dsh-threads has
|
|
88
|
+
* data on disk", which is also true when the plugin was uninstalled after use.
|
|
89
|
+
* `projects` is the count read from that file, so the notice can tell the user
|
|
90
|
+
* records are still there instead of pretending the projects never existed.
|
|
91
|
+
*/
|
|
92
|
+
export function threadsCapability(probe, options = {}) {
|
|
93
|
+
const installed = probe !== null && typeof probe === "object" && probe.installed === true;
|
|
94
|
+
const projects = Number.isFinite(options?.projects) ? Math.max(0, Math.trunc(options.projects)) : 0;
|
|
95
|
+
const storageFile = options?.storageFile === true;
|
|
96
|
+
const version = typeof options?.version === "string" && options.version.length > 0 ? options.version : null;
|
|
97
|
+
// Who provides the thread half: this package's own vendored copy, the user's
|
|
98
|
+
// installed @kyf-eng/dsh-threads, or nobody. Kept separate from `installed`
|
|
99
|
+
// because "our copy is running" and "their package is running" need different
|
|
100
|
+
// advice from the panel (see src/threads-vendor.js).
|
|
101
|
+
const owner = options?.owner === "vendored" || options?.owner === "upstream" ? options.owner : "unknown";
|
|
102
|
+
return {
|
|
103
|
+
installed: installed || owner === "vendored",
|
|
104
|
+
owner,
|
|
105
|
+
reason: typeof options?.reason === "string" && options.reason.length > 0 ? options.reason : null,
|
|
106
|
+
// Raw signals: the panel does not need them, the tests do.
|
|
107
|
+
signals: {
|
|
108
|
+
domain: probe !== null && typeof probe === "object" && probe.domain === true,
|
|
109
|
+
runtime: probe !== null && typeof probe === "object" && probe.runtime === true,
|
|
110
|
+
storageFile
|
|
111
|
+
},
|
|
112
|
+
projects,
|
|
113
|
+
// Which dsh-threads release this profile has, when it could be read; `null`
|
|
114
|
+
// means "could not tell", and the panel then shows no version remark.
|
|
115
|
+
version,
|
|
116
|
+
verified: version === null ? null : version === BASELINE_VERSION
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
// ---------- which version is installed (best effort) ----------
|
|
120
|
+
//
|
|
121
|
+
// We only verified this plugin against one dsh-threads release: the pinned fork
|
|
122
|
+
// tag `v0.2.0-baseline` = npm `0.2.0` (see docs/dsh-threads-baseline.md).
|
|
123
|
+
// Upstream may move on; this plugin does not chase it. The panel therefore says
|
|
124
|
+
// "not verified on this version" instead of failing, and says nothing at all when
|
|
125
|
+
// the version cannot be read (never guess, never block the user).
|
|
126
|
+
|
|
127
|
+
/** The one release this plugin was verified against. */
|
|
128
|
+
export const BASELINE_VERSION = "0.2.0";
|
|
129
|
+
|
|
130
|
+
/** This plugin's package name, used to recognise the profile that is running us. */
|
|
131
|
+
export const PLUGIN_BUNDLE = "dsh-claude-project-ui";
|
|
132
|
+
|
|
133
|
+
/** How long a version probe is reused; the profile cannot change under a running process. */
|
|
134
|
+
const VERSION_CACHE_MS = 30_000;
|
|
135
|
+
let versionCache = { root: "", at: 0, value: null };
|
|
136
|
+
|
|
137
|
+
function profilesRoot(options) {
|
|
138
|
+
const given = options !== null && typeof options === "object" ? options.profilesDir : undefined;
|
|
139
|
+
if (typeof given === "string" && given.length > 0) return given;
|
|
140
|
+
return join(homedir(), ".dsh", "profiles");
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function readJson(file) {
|
|
144
|
+
try {
|
|
145
|
+
return JSON.parse(readFileSync(file, "utf8"));
|
|
146
|
+
} catch {
|
|
147
|
+
return null;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Read the dsh-threads version installed for the profile running THIS plugin.
|
|
153
|
+
*
|
|
154
|
+
* Only profiles that both depend on this plugin and list it in
|
|
155
|
+
* `dsh.profile.bundles` can be the running one. When several such profiles
|
|
156
|
+
* disagree (e.g. a linked desktop profile and a CLI one at different versions),
|
|
157
|
+
* the answer is "unknown" rather than a warning about the wrong profile.
|
|
158
|
+
*
|
|
159
|
+
* @returns `{ version: string | null, profile: string | null }` — `version` is
|
|
160
|
+
* null when nothing could be read, which the panel must treat as "no opinion".
|
|
161
|
+
*/
|
|
162
|
+
export function readInstalledVersion(options = {}) {
|
|
163
|
+
const root = profilesRoot(options);
|
|
164
|
+
const now = Date.now();
|
|
165
|
+
if (versionCache.root === root && versionCache.value !== null && now - versionCache.at < VERSION_CACHE_MS) {
|
|
166
|
+
return versionCache.value;
|
|
167
|
+
}
|
|
168
|
+
const value = probeInstalledVersion(root);
|
|
169
|
+
versionCache = { root, at: now, value };
|
|
170
|
+
return value;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
function probeInstalledVersion(root) {
|
|
174
|
+
const unknown = { version: null, profile: null };
|
|
175
|
+
let entries = [];
|
|
176
|
+
try {
|
|
177
|
+
entries = readdirSync(root, { withFileTypes: true });
|
|
178
|
+
} catch {
|
|
179
|
+
return unknown;
|
|
180
|
+
}
|
|
181
|
+
const found = [];
|
|
182
|
+
for (const entry of entries) {
|
|
183
|
+
if (!entry.isDirectory() && !entry.isSymbolicLink()) continue;
|
|
184
|
+
const dir = join(root, entry.name);
|
|
185
|
+
const manifest = readJson(join(dir, "package.json"));
|
|
186
|
+
if (manifest === null || typeof manifest !== "object") continue;
|
|
187
|
+
const dependencies = manifest.dependencies;
|
|
188
|
+
if (dependencies === null || typeof dependencies !== "object") continue;
|
|
189
|
+
if (!Object.hasOwn(dependencies, PLUGIN_BUNDLE)) continue;
|
|
190
|
+
const bundles = manifest?.dsh?.profile?.bundles;
|
|
191
|
+
if (!Array.isArray(bundles) || !bundles.includes(PLUGIN_BUNDLE)) continue;
|
|
192
|
+
const installed = readJson(join(dir, "node_modules", ...THREADS_BUNDLE.split("/"), "package.json"));
|
|
193
|
+
const version = installed !== null && typeof installed.version === "string" && installed.version.length > 0 ? installed.version : null;
|
|
194
|
+
found.push({ profile: entry.name, version });
|
|
195
|
+
}
|
|
196
|
+
if (found.length === 0) return unknown;
|
|
197
|
+
const known = found.filter((item) => item.version !== null);
|
|
198
|
+
if (known.length === 0) return unknown;
|
|
199
|
+
const first = known[0].version;
|
|
200
|
+
// Profiles that disagree cannot be resolved from here: report unknown, not a
|
|
201
|
+
// warning about whichever profile happened to sort first.
|
|
202
|
+
if (known.some((item) => item.version !== first)) return unknown;
|
|
203
|
+
return { version: first, profile: known[0].profile };
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
// ---------- what the running profile's own manifest says (one-click install) ----------
|
|
207
|
+
//
|
|
208
|
+
// The panel's install button has to tell three states apart, and only the
|
|
209
|
+
// profile manifest can: the dependency exists (any spec, any source), and the
|
|
210
|
+
// name is selected in `dsh.profile.bundles`. The loaded-process probe above
|
|
211
|
+
// cannot answer either — a bundle can be installed but not selected, which is
|
|
212
|
+
// exactly the half-done state that makes users think "install twice" is needed.
|
|
213
|
+
//
|
|
214
|
+
// Read fresh on every snapshot (no cache): the panel asks right after an
|
|
215
|
+
// install, and a stale answer would show the button again.
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Read how the profile at `profileDir` relates to dsh-threads.
|
|
219
|
+
*
|
|
220
|
+
* Never throws and never guesses: an unreadable dir, a malformed manifest or a
|
|
221
|
+
* missing node_modules just yields the "nothing installed" shape.
|
|
222
|
+
*
|
|
223
|
+
* @param profileDir Absolute profile directory (pluginContext.dir on the host).
|
|
224
|
+
* @returns `{ dependency, bundled, version }` — `dependency` is the saved spec
|
|
225
|
+
* string or null, which is the "already installed, skip" test.
|
|
226
|
+
*/
|
|
227
|
+
export function profileInstallState(profileDir) {
|
|
228
|
+
const empty = { dependency: null, bundled: false, version: null };
|
|
229
|
+
if (typeof profileDir !== "string" || profileDir.length === 0) return empty;
|
|
230
|
+
const manifest = readJson(join(profileDir, "package.json"));
|
|
231
|
+
if (manifest === null || typeof manifest !== "object") return empty;
|
|
232
|
+
const dependencies = manifest.dependencies;
|
|
233
|
+
const saved =
|
|
234
|
+
dependencies !== null && typeof dependencies === "object" && typeof dependencies[THREADS_BUNDLE] === "string"
|
|
235
|
+
? dependencies[THREADS_BUNDLE]
|
|
236
|
+
: null;
|
|
237
|
+
const bundles = manifest?.dsh?.profile?.bundles;
|
|
238
|
+
const installed = readJson(join(profileDir, "node_modules", ...THREADS_BUNDLE.split("/"), "package.json"));
|
|
239
|
+
return {
|
|
240
|
+
dependency: saved !== null && saved.length > 0 ? saved : null,
|
|
241
|
+
bundled: Array.isArray(bundles) && bundles.includes(THREADS_BUNDLE),
|
|
242
|
+
version: installed !== null && typeof installed.version === "string" && installed.version.length > 0 ? installed.version : null
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/** Whether a read version is the one this plugin was verified against. */
|
|
247
|
+
export function isVerifiedVersion(version) {
|
|
248
|
+
return version === BASELINE_VERSION;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/** Test seam: drop the cached version probe. */
|
|
252
|
+
export function resetVersionCache() {
|
|
253
|
+
versionCache = { root: "", at: 0, value: null };
|
|
254
|
+
}
|
|
255
|
+
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The vendored @kyf-eng/dsh-threads (vendor/dsh-threads/), and the switch that
|
|
6
|
+
* hands control back to the real package when the user has it enabled.
|
|
7
|
+
*
|
|
8
|
+
* Why this file exists: DSH discovers a client bundle **per package**, only
|
|
9
|
+
* through `exports["./client"]`, so "one package, a complete experience" can
|
|
10
|
+
* only be reached by merging the upstream halves into ours
|
|
11
|
+
* (docs/vendoring-feasibility.md). The merged halves must not fight the genuine
|
|
12
|
+
* article: two owners of `dsh_threads` is a hard error
|
|
13
|
+
* (`DomainError('already-open')`), and two client bundles registering the same
|
|
14
|
+
* slots is at best a duplicate UI. So every mount is behind {@link vendorDecision}.
|
|
15
|
+
*
|
|
16
|
+
* The rule in one line: **yield unless we can prove the real package is not
|
|
17
|
+
* loaded**; an unreadable profile yields too, because a board without threads is
|
|
18
|
+
* a smaller failure than a crash on double registration.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/** Upstream release the vendored copy was cut from (vendor/dsh-threads/VENDORED.md). */
|
|
22
|
+
export const VENDORED_THREADS_VERSION = "0.2.0";
|
|
23
|
+
/** The fork commit tagged `v0.2.0-baseline`. */
|
|
24
|
+
export const VENDORED_THREADS_COMMIT = "469f32c3de8ccce61f88acdb527e5e0131c2ddd1";
|
|
25
|
+
/** The upstream package name, as `dsh.profile.bundles` spells it. */
|
|
26
|
+
export const VENDORED_THREADS_BUNDLE = "@kyf-eng/dsh-threads";
|
|
27
|
+
|
|
28
|
+
/** `vendor/dsh-threads/dist/index.js`, resolved next to this module. */
|
|
29
|
+
export const VENDORED_HOST_ENTRY = new URL("../vendor/dsh-threads/dist/index.js", import.meta.url);
|
|
30
|
+
|
|
31
|
+
/** Where the board says the discussion-thread half comes from. */
|
|
32
|
+
export const OWNER_VENDORED = "vendored";
|
|
33
|
+
export const OWNER_UPSTREAM = "upstream";
|
|
34
|
+
export const OWNER_UNKNOWN = "unknown";
|
|
35
|
+
|
|
36
|
+
/** The upstream plugin's own defaults: what its `cordis.patch.yml` passes. */
|
|
37
|
+
export const VENDORED_THREADS_CONFIG = Object.freeze({});
|
|
38
|
+
|
|
39
|
+
function readJson(file) {
|
|
40
|
+
try {
|
|
41
|
+
return JSON.parse(readFileSync(file, "utf8"));
|
|
42
|
+
} catch {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* What the profile's own manifest says about the real package.
|
|
49
|
+
*
|
|
50
|
+
* `bundled` is the `dsh.profile.bundles` selection, which is what makes the
|
|
51
|
+
* loader mount it at all — and it is exactly the flag a half-done install leaves
|
|
52
|
+
* false. `readable` is separate from "nothing installed": an unreadable manifest
|
|
53
|
+
* must yield, an empty one means we are the only provider.
|
|
54
|
+
*
|
|
55
|
+
* @param profileDir Absolute profile directory, or "" when it could not be named.
|
|
56
|
+
*/
|
|
57
|
+
export function profileDependencyState(profileDir) {
|
|
58
|
+
const unknown = { readable: false, dependency: null, bundled: false, version: null };
|
|
59
|
+
if (typeof profileDir !== "string" || profileDir.length === 0) return unknown;
|
|
60
|
+
const manifest = readJson(join(profileDir, "package.json"));
|
|
61
|
+
if (manifest === null || typeof manifest !== "object") return unknown;
|
|
62
|
+
const dependencies = manifest.dependencies;
|
|
63
|
+
const saved =
|
|
64
|
+
dependencies !== null && typeof dependencies === "object" && typeof dependencies[VENDORED_THREADS_BUNDLE] === "string"
|
|
65
|
+
? dependencies[VENDORED_THREADS_BUNDLE]
|
|
66
|
+
: null;
|
|
67
|
+
const bundles = manifest?.dsh?.profile?.bundles;
|
|
68
|
+
const installed = readJson(join(profileDir, "node_modules", ...VENDORED_THREADS_BUNDLE.split("/"), "package.json"));
|
|
69
|
+
return {
|
|
70
|
+
readable: true,
|
|
71
|
+
dependency: saved !== null && saved.length > 0 ? saved : null,
|
|
72
|
+
bundled: Array.isArray(bundles) && bundles.includes(VENDORED_THREADS_BUNDLE),
|
|
73
|
+
version: installed !== null && typeof installed.version === "string" && installed.version.length > 0 ? installed.version : null
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Mount, or hand over to the real package?
|
|
79
|
+
*
|
|
80
|
+
* Signals, strongest first:
|
|
81
|
+
*
|
|
82
|
+
* 1. **profile manifest** — the name is selected in `dsh.profile.bundles`, so
|
|
83
|
+
* the loader mounts it. Read before anything else has run, which is the only
|
|
84
|
+
* way to avoid a race: whichever applies first would otherwise win the
|
|
85
|
+
* storage domain and the other would fail.
|
|
86
|
+
* 2. **domain already open** — `storageDomain.get("dsh_threads")`. Catches a row
|
|
87
|
+
* that came from a hand-written config rather than the profile manifest.
|
|
88
|
+
* 3. **runtime already registered** — a `dsh-threads` plugin callback in
|
|
89
|
+
* Cordis' registry, for the window before the domain handle is up.
|
|
90
|
+
*
|
|
91
|
+
* Everything else mounts: the package is either absent, or saved in
|
|
92
|
+
* `dependencies` without being selected (installed but not enabled — exactly the
|
|
93
|
+
* half-done state the 0.4.x install button repaired).
|
|
94
|
+
*
|
|
95
|
+
* @param state
|
|
96
|
+
* @param state.profile — {@link profileDependencyState} result.
|
|
97
|
+
* @param state.domainOpen — whether the `dsh_threads` domain is already open.
|
|
98
|
+
* @param state.runtimeRegistered — whether a `dsh-threads` runtime is registered.
|
|
99
|
+
* @returns `{ mount, owner, reason }` — `reason` is the log line and test seam.
|
|
100
|
+
*/
|
|
101
|
+
export function vendorDecision(state = {}) {
|
|
102
|
+
const profile = state.profile !== null && typeof state.profile === "object" ? state.profile : null;
|
|
103
|
+
if (profile?.bundled === true) return { mount: false, owner: OWNER_UPSTREAM, reason: "profile-bundled" };
|
|
104
|
+
if (state.domainOpen === true) return { mount: false, owner: OWNER_UPSTREAM, reason: "domain-open" };
|
|
105
|
+
if (state.runtimeRegistered === true) return { mount: false, owner: OWNER_UPSTREAM, reason: "runtime-registered" };
|
|
106
|
+
if (profile?.readable !== true) return { mount: false, owner: OWNER_UNKNOWN, reason: "profile-unknown" };
|
|
107
|
+
const dependency = typeof profile.dependency === "string" && profile.dependency.length > 0;
|
|
108
|
+
return { mount: true, owner: OWNER_VENDORED, reason: dependency ? "saved-but-not-enabled" : "sole-provider" };
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Import the vendored host half.
|
|
113
|
+
*
|
|
114
|
+
* Lazy on purpose: a profile that runs the real package never reads these bytes,
|
|
115
|
+
* and a broken copy throws here so the caller can degrade to "no thread half"
|
|
116
|
+
* instead of taking the whole plugin down. Bare specifiers inside the vendored
|
|
117
|
+
* file (zod, @deepseek-ai/dsh-tools, …) resolve through DSH's profile resolution;
|
|
118
|
+
* this package lists them as optional peers so the linked-install case routes to
|
|
119
|
+
* the app installation as well.
|
|
120
|
+
*/
|
|
121
|
+
export function loadVendoredThreads() {
|
|
122
|
+
return import(VENDORED_HOST_ENTRY.href);
|
|
123
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.2.0 — 2026-11-10
|
|
4
|
+
|
|
5
|
+
Tested on DeepSeek Harness 0.2.2-rc.1, with a new option that opens threads without the confirmation card and two fixes for threads that DeepSeek Harness wakes on its own. The same `dsh plugin add` command upgrades from 0.1.x; projects and threads are kept.
|
|
6
|
+
|
|
7
|
+
- New: the `offerApproval` option (#51). With `offerApproval: open`, a thread for a task you named without asking for a thread opens right away, and the main conversation says which threads it opened. The default, `ask`, still shows the "Open a thread / Do it here / Not now" card first.
|
|
8
|
+
- DeepSeek Harness 0.2.2-rc.1: the upgrade checklist passes on Desktop and Web. 0.2.2 changed the sidebar's spacing, which left the "Projects" section a few pixels off the workspace list; the section now follows the host's spacing on both 0.2.1 and 0.2.2.
|
|
9
|
+
- Fix: a thread you stopped stays stopped. DeepSeek Harness keeps a stopped thread's background jobs running and wakes the thread when one finishes; the thread used to carry on and report "done". It now stays "stopped", on its cards and for the main conversation, until you write in it or the main conversation sends it more work, and a report made in between is refused.
|
|
10
|
+
- Fix: a report a thread sends after its round ended reaches the main conversation. A thread that ended its round with a background job still running, and reported again when the job finished, changed its card without the main conversation hearing of it. The later report is now delivered like any other and says that it replaces the earlier one; after a round you drove in the thread yourself it arrives quietly.
|
|
11
|
+
- Fix: Stop (the pane's button and `/thread stop`) also stops a turn DeepSeek Harness started in a thread on its own.
|
|
12
|
+
- The `@deepseek-ai/cordis` and `@deepseek-ai/schemastery` peer ranges cover 4.1.x and 3.19.x.
|
|
13
|
+
|
|
14
|
+
## 0.1.1 — 2026-11-10
|
|
15
|
+
|
|
16
|
+
Fixes for phones, touch screens and narrow windows, and for errors that went unseen. Most of it is the work of @aaaa0ggMC (#52). The same `dsh plugin add` command upgrades from 0.1.0; nothing stored changes.
|
|
17
|
+
|
|
18
|
+
- Fix, phones (DeepSeek Harness Web with the dsh-web-mobile layout): the new project dialog is a centred card again instead of a sideways row with its title and buttons gone; the Projects page title is clear of the floating back button; tapping a project in the drawer closes the drawer; the project menu lists the notification levels in place, where the submenu ran off the screen; the thread pane's header puts its buttons under the title instead of cutting the title short.
|
|
19
|
+
- Fix, touch screens: controls that only appeared on hover (a project's "⋯" menu, the sidebar row's actions, dismissing a proposal, collapsing the section) are always there, and targets are thumb-sized.
|
|
20
|
+
- Fix: project settings scroll. In a short window, on Desktop too, everything below "Model" was out of reach.
|
|
21
|
+
- Fix: below 768px wide the Projects page is one column, and dialogs and menus stay inside the window.
|
|
22
|
+
- Fix, new project on Web: where the host has no folder chooser, "Choose a folder…" switches to the path field with a hint instead of ending in an error. Enter creates the project under the folder's name while the name is empty, and no longer submits in the middle of IME input.
|
|
23
|
+
- Fix: the project list could show the list from before a create, delete, pin or archive (a deleted project back, a new one missing) until something else reloaded it.
|
|
24
|
+
- Fix: refusals that used to be silent are shown: archiving or deleting a project with a running thread from the sidebar, "Make project", starting or dismissing a proposal, reopening a resolved thread. The Projects page can retry after a failed load.
|
|
25
|
+
- Fix: closing project settings waits for the pending fields to be saved. A failed save keeps the dialog open with the error; closing again leaves without saving.
|
|
26
|
+
- Fix: archiving a project from the sidebar keeps you on the panel you were on. DeepSeek Harness used to drop to the welcome page when the archived project's main conversation was the current one.
|
|
27
|
+
- Fix: the project menu's single-key shortcuts (P, S, A, D) ignore text fields.
|
|
28
|
+
- Fix: `.env` files get the data icon; English notifications use an English colon.
|
|
29
|
+
|
|
30
|
+
## 0.1.0 — 2026-10-26
|
|
31
|
+
|
|
32
|
+
First stable release, for DeepSeek Harness 0.2.x (tested on 0.2.1-rc.2 and 0.2.1-rc.3). The code is the same as 0.1.0-rc.9. From 0.1.0-rc.7 or later, the same `dsh plugin add` command upgrades it; from 0.1.0-rc.6 or earlier, remove `@fky/dsh-threads` first (see 0.1.0-rc.7). Projects and threads are kept.
|
|
33
|
+
|
|
34
|
+
What 0.1.0 does, gathered from the release candidates below:
|
|
35
|
+
|
|
36
|
+
- Projects: a folder plus a standing main conversation, created from the sidebar's "Projects" section (with the system folder chooser) or with "Make project" on a conversation. A project has an icon, a goal for the coordinator, and instructions every thread also receives; its menu pins, archives, deletes, sets desktop notifications and opens settings (coordinator and thread models, token usage).
|
|
37
|
+
- Threads: the main conversation opens threads for self-contained work, sends them follow-ups, and suggests ones you did not ask for (in a card above the composer; they start only when you click). Each thread is a real session that opens in the right pane, where you can talk to it, stop it, mark it resolved or archive it. `/thread <task>` opens one directly.
|
|
38
|
+
- Reports: a thread reports what it did, which files changed and what it needs you to decide. The main conversation wakes once, after all its running threads have finished, with a guard against wake-up loops; a thread that forgets to report is reminded once.
|
|
39
|
+
- Parallel and isolated: up to 3 threads per main conversation run at once (`maxRunning`). A thread that changes files can work in its own git worktree and branch (`dsh-threads/<n>-<id>`); the main conversation merges only when you ask, and `/thread cleanup` removes finished worktrees.
|
|
40
|
+
- A coordinator that leads: it hands documents, multi-file changes and investigations to threads, does not commit, merge or switch branches unless asked, and does not get around git hooks or permission checks.
|
|
41
|
+
- Claude-style interface: thread cards and "↳ N replies" in the conversation, a raised hand when a thread waits for you, a breathing dot while threads run, file and branch chips, and a "Projects" section in the sidebar. Project conversations and threads stay out of DSH's workspace list.
|
|
42
|
+
- Threads keep the main conversation's permission mode; a thread is not opened when that mode cannot be read.
|
|
43
|
+
- Host-side text in Chinese and English, following DeepSeek Harness's language.
|
|
44
|
+
- Platforms: developed and fully tested on macOS Desktop, tested twice on Windows Desktop (x64), used on Web.
|
|
45
|
+
|
|
46
|
+
## 0.1.0-rc.9 — 2026-10-26
|
|
47
|
+
|
|
48
|
+
A fix for dsh-threads going down after DeepSeek Harness reloaded it without restarting. Coming from 0.1.0-rc.6 or earlier, remove `@fky/dsh-threads` first (see 0.1.0-rc.7).
|
|
49
|
+
|
|
50
|
+
- Fix: when DeepSeek Harness reloaded the plugin while running — after a plugin manager operation found dsh-threads' files changed on disk (such as an in-app update), after a change to dsh-threads' settings, or when a service it uses restarted — dsh-threads failed to start again ("domain 'dsh_threads' is already open"). Until DeepSeek Harness restarted, the projects page and the new project dialog showed "HTTP 404", and main conversations had no thread tools or `/thread`. The plugin now releases its storage when it unloads, and takes over storage an earlier version left open, so a reload from 0.1.0-rc.8 into this version recovers without a restart.
|
|
51
|
+
|
|
52
|
+
## 0.1.0-rc.8 — 2026-10-25
|
|
53
|
+
|
|
54
|
+
Fixes from the second test on Windows. Coming from 0.1.0-rc.6 or earlier, remove `@fky/dsh-threads` first (see 0.1.0-rc.7).
|
|
55
|
+
|
|
56
|
+
- A `/thread <task>` row now shows the thread it opened right under it: live state, branch, changed files and an open button. Fix: in a new project, a first `/thread` left DeepSeek Harness on its welcome page, so it looked as if nothing had happened although the thread was running.
|
|
57
|
+
- Fix: when a worktree could not be checked out (on Windows, paths over 260 characters), the branch git had already created stayed behind and the pane showed git's raw command line. A failed checkout now takes back what it created; "Filename too long" explains the limit and the options (long paths for that repository only, a shorter path, or no worktree); other failures quote git's own error.
|
|
58
|
+
- The coordinator, like threads, skips a git hook or another check only when you ask for exactly that in your own words, and only for that one case. Before, it refused even then.
|
|
59
|
+
|
|
60
|
+
## 0.1.0-rc.7 — 2026-10-24
|
|
61
|
+
|
|
62
|
+
Fixes from the first test on Windows, and a new package name: **`@kyf-eng/dsh-threads`** (it was `@fky/dsh-threads`). The new name does not replace the old one: quit DeepSeek Harness completely, run `dsh plugin --profile desktop remove @fky/dsh-threads`, then install this version. Projects and threads are kept.
|
|
63
|
+
|
|
64
|
+
- The package is now `@kyf-eng/dsh-threads`, under the maintainer's own npm name (the same as on GitHub); `fky` on npm belongs to someone else. Projects and threads live in DeepSeek Harness's own storage, so removing the old package does not lose them.
|
|
65
|
+
- Fix: where DeepSeek Harness cannot find git (Windows without Git for Windows), a worktree thread was refused with "the project folder is not a git repository". It now says git was not found and how to fix it; other git errors (such as Windows' "dubious ownership") are quoted as git wrote them.
|
|
66
|
+
- Threads and the coordinator no longer get around checks: no skipping git hooks with `--no-verify`, no editing hooks or deleting what they wrote, no changing file permissions, execution policies, the sandbox or global git settings to make a command work. A thread stopped by a hook or a permission reports "blocked" with the error; the coordinator tells you what failed instead of repairing the system itself. On Windows, a thread had committed past a failing hook and the coordinator had loosened PowerShell's execution policy.
|
|
67
|
+
- The README is in Chinese by default; the English one is `README.en.md`.
|
|
68
|
+
|
|
69
|
+
## 0.1.0-rc.6 — 2026-10-24
|
|
70
|
+
|
|
71
|
+
Release candidate after the release review: fixes found in it, stopping and archiving threads, both languages on the host side, a threads panel after Claude's, a coordinator that leads instead of doing the work itself, and testing on DeepSeek Harness 0.2.1-rc.3.
|
|
72
|
+
|
|
73
|
+
- The threads panel follows Claude's: a "Threads" title with search, then sections with counts — waiting for you, running, idle, resolved, archived — each foldable, with dashed placeholders when empty, and compact rows (state, title, time, what it waits on, changed files, branch).
|
|
74
|
+
- A thread (or the main conversation) holding an approval, a question or a plan to review now shows the raised hand everywhere — the panel ("waiting for your approval"), the cards, the header, and the project's sidebar row — and raises a notification while DeepSeek Harness is in the background. Before, threads hidden from DSH's session list showed only "running" while they waited.
|
|
75
|
+
- Tested on DeepSeek Harness 0.2.1-rc.3, including that threads keep the main conversation's approval mode on a stock install: the known limitation is gone.
|
|
76
|
+
- The coordinator acts as the project's lead: documents, multi-file changes, investigations and long or visual checks go to threads (not subagents); it does not commit, merge or switch branches unless asked; a short reminder of these rules follows every new message, so long conversations keep them.
|
|
77
|
+
- Fix: after a project is deleted, its threads are ordinary conversations again, as the delete dialog says: they show in DSH's session list, lose the thread tools, and no longer report to the old main conversation. Deleting a project, like archiving it, waits until no thread is running.
|
|
78
|
+
- Fix: a thread could start under DSH's default permission mode when its main conversation was not loaded (for example a queued suggestion starting after a restart). The main conversation is now loaded first, and when its mode cannot be read — or it uses custom settings that match no mode — the thread is not opened.
|
|
79
|
+
- Stop and archive single threads. The thread pane's header has **Stop** while the thread runs (also `/thread stop <n>`) and **Archive** when it does not; archived threads leave the list (they wait under "Archived · N" and can be unarchived) and the counts, and the main conversation cannot send them follow-ups. A stopped round, whether stopped there or with DeepSeek Harness's own stop button, is no longer reminded back to work: it reaches the main conversation quietly as "stopped", and the coordinator does not restart it on its own.
|
|
80
|
+
- Fix: the threads list scrolls; with many threads the last ones were cut off.
|
|
81
|
+
- The host half speaks the page's language: the "open a thread?" question, `/thread` replies, errors in the panes, the task cards in a thread, tool results and reports are in English or Chinese, following DeepSeek Harness's language (English until the page has loaded). The "write the full path" hint uses this system's own path form.
|
|
82
|
+
- Fix: when a project's folder is a subfolder of a git repository (a monorepo package), a worktree thread now works in that subfolder of its checkout instead of the repository root. A subfolder that is not committed yet is refused before anything is created.
|
|
83
|
+
|
|
84
|
+
## 0.1.0-rc.5 — 2026-10-24
|
|
85
|
+
|
|
86
|
+
Fixes from a full run of the test prompts: the main conversation knows when a change was the user's own request, and choices go to threads.
|
|
87
|
+
|
|
88
|
+
- A report from a round the user drove in the thread says so and quotes the user's words, so the main conversation treats the change as the user's decision instead of something the thread did on its own. Words the user adds during a dispatched round are quoted too.
|
|
89
|
+
- The coordinator hands choices to the thread: when a task starts with options for the user to pick, the thread presents them and waits (raised hand) instead of the main conversation drafting and asking first. When a thread waits on the user, the main conversation says so in a line instead of asking again with a question box.
|
|
90
|
+
- The coordinator keeps its own turns short (merge what was asked, run the project's tests, report) and gives longer checks and new writing to threads, so the user can always reach it.
|
|
91
|
+
|
|
92
|
+
## 0.1.0-rc.4 — 2026-10-24
|
|
93
|
+
|
|
94
|
+
Projects get their own section in the sidebar, after Claude's, and the running mark breathes in place.
|
|
95
|
+
|
|
96
|
+
- The running mark breathes in place, dim to bright, instead of a spreading blue ring.
|
|
97
|
+
- The sidebar has its own "Projects" section, after Claude's: one row per project (a raised hand, a breathing dot or the project icon; ↳N; the "⋮" menu on hover), pinned first, then by latest activity. A row opens the project's main conversation. "+" creates a project.
|
|
98
|
+
- Project main conversations no longer appear in DSH's workspace list, and a workspace drops out when nothing but project sessions would show in it.
|
|
99
|
+
- Fix: a thread that finished while another was still running kept showing "running" in the reply card and the header (they reloaded just before the host recorded the finish); thread views now reload once more shortly after a session stops.
|
|
100
|
+
|
|
101
|
+
## 0.1.0-rc.3 — 2026-10-24
|
|
102
|
+
|
|
103
|
+
The projects page, the card menu and project settings, reworked after Claude's.
|
|
104
|
+
|
|
105
|
+
- Projects page and dialogs after Claude's:
|
|
106
|
+
- "New project" picks the folder with the system folder chooser (a typed path only where no chooser exists), fills the name from the folder, and offers recent folders.
|
|
107
|
+
- Project cards: icon, blue pin, a "⋮" menu with Pin (P), Notifications (four levels), Settings (S), Archive (A) and Delete (D).
|
|
108
|
+
- Archive / unarchive a project together with its main conversation and threads.
|
|
109
|
+
- Project settings: name and icon (24 icons), goal (main conversation only), folder, and project instructions ("Memory").
|
|
110
|
+
- The main conversation's sidebar row shows the project icon.
|
|
111
|
+
- Project settings → Models: coordinator model and thinking (applied to the main conversation at once) and thread model and thinking (applied to new threads), from DSH's own model catalog; DSH's default for new sessions is left unchanged.
|
|
112
|
+
- Project settings → Usage: input and output tokens of the main conversation and every thread.
|
|
113
|
+
- Notifications: while DeepSeek Harness is in the background, a project raises desktop notifications at its level (all new messages; the main conversation and threads waiting for you; only threads waiting for you; none). Clicking one opens the conversation or thread.
|
|
114
|
+
|
|
115
|
+
## 0.1.0-rc.2 — 2026-10-24
|
|
116
|
+
|
|
117
|
+
Fixes found after rc.1, in an end-to-end run and a pass over every surface in dark and light mode.
|
|
118
|
+
|
|
119
|
+
- Fix: colors derived from DSH's theme (borders, hover and button fills, focus ring) were computed on `:root`, where DSH's theme variables are not defined, so they were empty; in light mode project cards had no border at all.
|
|
120
|
+
- "↳ N replies" cards size to their content; thread pane buttons have icons; project cards have a resting shadow.
|
|
121
|
+
- Fix: a user message in the main conversation now always resets the wake-up streak, even while a report is being delivered (found in an end-to-end run).
|
|
122
|
+
- `maxAutoWakes: 0` is documented as "never wake automatically".
|
|
123
|
+
|
|
124
|
+
## 0.1.0-rc.1 — 2026-10-24
|
|
125
|
+
|
|
126
|
+
First pre-release, for DeepSeek Harness 0.2.1-rc.2.
|
|
127
|
+
|
|
128
|
+
- Report reminder: when a task round ends without `thread_report`, the thread is asked once to report (`reportReminder`, on by default); if it still does not, its reply from before the reminder is used.
|
|
129
|
+
|
|
130
|
+
- M3c Claude-style UI:
|
|
131
|
+
- Threads no longer appear in the left session list; a project's main conversation row shows ↳N, plus a raised hand when a thread waits for you and a breathing dot while threads run.
|
|
132
|
+
- One design kit for every surface: state marks (breathing dot, raised hand, hollow ring, check), thread items with an amber "waiting for you" box, green/blue/amber file chips, purple branch chips, pill buttons.
|
|
133
|
+
- Report cards show each thread's live state and list waiting threads first; "↳ N replies" is compact; the proposals card starts one or all suggestions.
|
|
134
|
+
- Thread pane header with branch chip; Claude's "This thread is resolved" composer bar.
|
|
135
|
+
- New project from any folder path (added as a workspace when needed).
|
|
136
|
+
|
|
137
|
+
- M3b worktrees:
|
|
138
|
+
- `thread_open` / `thread_propose` take `worktree: true` (and `/thread -w <task>`): the thread gets its own git worktree under `.agents/worktrees` and its own branch `dsh-threads/<n>-<id>`, commits there and never touches the project folder.
|
|
139
|
+
- Reports name the branch; the main conversation merges only when the user asks.
|
|
140
|
+
- `/thread cleanup` lists finished worktrees, `/thread cleanup confirm` removes them; checkouts with changes are skipped and unmerged branches are kept.
|
|
141
|
+
|
|
142
|
+
- M3a parallel threads:
|
|
143
|
+
- Up to 3 threads per main conversation run at once (`maxRunning` default 3).
|
|
144
|
+
- Opening threads is serialized per main conversation, so parallel `thread_open` calls and queued proposals cannot overshoot the limit or share a number.
|
|
145
|
+
- Reports still wait until no thread is running and arrive as one message, including when two threads finish at the same moment.
|
|
146
|
+
- Prompts: the dispatcher runs only independent work in parallel; threads leave other threads' changes alone and do not commit, switch branches or reset unless asked.
|
|
147
|
+
|
|
148
|
+
- M2c thread cards:
|
|
149
|
+
- Reports, briefs and follow-ups show as thread cards in the conversation instead of a plain notice row; a batch of reports arrives as one card.
|
|
150
|
+
- "N replies" at the end of a turn that opened threads, with live status.
|
|
151
|
+
- `thread_propose`: the model's own suggestions wait in a checklist card above the composer ("Start N threads" / "Dismiss all"). At most 3 per turn, expiring after 7 days; ones over the running limit queue and start when a slot frees up.
|
|
152
|
+
- Thread and project icons on session rows in the left sidebar.
|
|
153
|
+
|
|
154
|
+
- M2b thread pane:
|
|
155
|
+
- Threads open in the right sidebar with their live conversation and their own composer.
|
|
156
|
+
- A "Threads" list tab.
|
|
157
|
+
- "Threads · N" in a project main conversation's header, "Back to main conversation" in a thread's.
|
|
158
|
+
- "Mark resolved / Reopen": a resolved thread's composer is locked until it is reopened.
|
|
159
|
+
|
|
160
|
+
- M2a projects:
|
|
161
|
+
- A project is one folder plus one standing main conversation. Only a project's main conversation can open threads, and its instructions reach the main conversation and every thread.
|
|
162
|
+
- A "Projects" entry in the left sidebar opens a projects page (create, search, sort, pin, remove).
|
|
163
|
+
- "Make project" in a conversation's menu.
|
|
164
|
+
- `thread_reply` sends more instructions to an existing thread.
|
|
165
|
+
- Threads that were running when DSH stopped are settled on the next start.
|
|
166
|
+
|
|
167
|
+
- M1 single-thread loop:
|
|
168
|
+
- `thread_open` (`user_asked`, or `offer` with a confirmation question), `thread_status`, and `thread_report` for thread sessions.
|
|
169
|
+
- `/thread <task>`.
|
|
170
|
+
- Reports go back to the main conversation with Claude-style wake rules and a wake-up loop guard; when a thread did not report, its last reply is used instead.
|
|
171
|
+
- Threads inherit the main conversation's permission preset.
|
|
172
|
+
- State persists in DSH storage (`dsh_threads`).
|
|
173
|
+
|
|
174
|
+
- M0 skeleton: bundle manifest, `thread_status` probe tool (with `spawn` probe session), empty right-sidebar "Threads" tab, `POST /api/dsh-threads` ping route, dev-install script.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 fky
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|