@skitterbyte/skitterspec-linear 19.9.0 → 19.9.1
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/package.json +1 -1
- package/src/tada/digest.js +3 -1
- package/src/tada/transcripts.js +7 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skitterbyte/skitterspec-linear",
|
|
3
|
-
"version": "19.9.
|
|
3
|
+
"version": "19.9.1",
|
|
4
4
|
"description": "Spec-driven development for Claude Code, with one-way Linear sync — a superset of @skitterbyte/skitterspec: the base filesystem workflow plus /spec-status · /spec-push and the spec-sync CLI. The repo is canonical; Linear is a generated mirror. Install this OR the base, not both.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude",
|
package/src/tada/digest.js
CHANGED
|
@@ -126,7 +126,9 @@ async function buildDigest({ root, window, here = null, repoOf = gitRepoOf, fact
|
|
|
126
126
|
|
|
127
127
|
let list = [...projects.values()]
|
|
128
128
|
if (here) {
|
|
129
|
-
|
|
129
|
+
// An absolute cwd is taken as written, like every session's own: resolving
|
|
130
|
+
// `/repo` on Windows prefixes the drive, and it then matches nothing.
|
|
131
|
+
const at = path.isAbsolute(here) ? here : path.resolve(here)
|
|
130
132
|
const key = resolve(at).repo || at
|
|
131
133
|
list = list.filter((p) => p.key === key)
|
|
132
134
|
}
|
package/src/tada/transcripts.js
CHANGED
|
@@ -165,7 +165,11 @@ async function readSession(file, { since, until }) {
|
|
|
165
165
|
* into the wrong repo with nothing to show for it.
|
|
166
166
|
*/
|
|
167
167
|
function launchDir(name, existsOnDisk = fs.existsSync) {
|
|
168
|
+
// A leading `-` is a POSIX root, so it decodes with POSIX separators on any
|
|
169
|
+
// platform — `path.join` on Windows would turn `/Users/me` into `\\Users\\me`.
|
|
170
|
+
// A Windows folder (`C--Users-me`) starts with its drive and is cannot-tell.
|
|
168
171
|
if (!name.startsWith('-')) return null
|
|
172
|
+
const { join } = path.posix
|
|
169
173
|
const parts = name.slice(1).split('-')
|
|
170
174
|
// Each `-` has three readings, so the search is exponential in their count;
|
|
171
175
|
// past this many it is cannot-tell rather than a stall.
|
|
@@ -179,13 +183,13 @@ function launchDir(name, existsOnDisk = fs.existsSync) {
|
|
|
179
183
|
const walk = (i, at, seg) => {
|
|
180
184
|
if (found.length > 1) return
|
|
181
185
|
if (i === parts.length) {
|
|
182
|
-
const full =
|
|
186
|
+
const full = join(at, seg)
|
|
183
187
|
if (exists(full)) found.push(full)
|
|
184
188
|
return
|
|
185
189
|
}
|
|
186
190
|
const next = parts[i]
|
|
187
191
|
// Close the segment here, if what it names exists so far.
|
|
188
|
-
if (seg && exists(
|
|
192
|
+
if (seg && exists(join(at, seg))) walk(i + 1, join(at, seg), next)
|
|
189
193
|
// Or keep it open, through a literal `-` or a `.` (a dotfile, `app.web`).
|
|
190
194
|
if (seg !== '') {
|
|
191
195
|
walk(i + 1, at, `${seg}-${next}`)
|
|
@@ -194,7 +198,7 @@ function launchDir(name, existsOnDisk = fs.existsSync) {
|
|
|
194
198
|
walk(i + 1, at, `.${next}`)
|
|
195
199
|
}
|
|
196
200
|
}
|
|
197
|
-
walk(1,
|
|
201
|
+
walk(1, '/', parts[0])
|
|
198
202
|
return found.length === 1 ? found[0] : null
|
|
199
203
|
}
|
|
200
204
|
|