@skitterbyte/skitterspec-linear 18.3.0 → 18.3.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/cli.js +29 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skitterbyte/skitterspec-linear",
|
|
3
|
-
"version": "18.3.
|
|
3
|
+
"version": "18.3.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/cli.js
CHANGED
|
@@ -4269,7 +4269,7 @@ async function specEnvReview(dir, config, specArg, flags, invokedFrom = dir) {
|
|
|
4269
4269
|
// The runners-up sit UNDER the network tier, because that is what they are
|
|
4270
4270
|
// alternatives to — and virtual adapters are gone from them entirely.
|
|
4271
4271
|
(served && !served.loopback && (served.alternates || []).length
|
|
4272
|
-
? served.alternates.map((u) => ` also: ${u}\n`).join('')
|
|
4272
|
+
? served.alternates.map((u) => ` also: ${u}${tailnetLabel(u)}\n`).join('')
|
|
4273
4273
|
: '') +
|
|
4274
4274
|
// WHICH TIERS THE WAIT COVERS, once, next to the stack. `local` and
|
|
4275
4275
|
// `network` are two doors into one room — the page POSTs to
|
|
@@ -4572,11 +4572,37 @@ function lanAddresses(nets = require('node:os').networkInterfaces()) {
|
|
|
4572
4572
|
* where the opposite hides the only address that works.
|
|
4573
4573
|
*/
|
|
4574
4574
|
function offerableLanAddresses(nets = require('node:os').networkInterfaces()) {
|
|
4575
|
-
|
|
4575
|
+
const ranked = rankLanAddresses(nets)
|
|
4576
|
+
// A tailnet address IS reachable from a phone off the LAN, but macOS puts it
|
|
4577
|
+
// on `utunN`, which the virtual filter drops. It is appended after every
|
|
4578
|
+
// other offerable address so the wifi one stays the best guess at home.
|
|
4579
|
+
const tailnet = ranked.filter((e) => VIRTUAL_IFACE.test(e.iface) && isTailnetAddress(e.address))
|
|
4580
|
+
return ranked
|
|
4576
4581
|
.filter((e) => !VIRTUAL_IFACE.test(e.iface))
|
|
4582
|
+
.concat(tailnet)
|
|
4577
4583
|
.map((e) => e.address)
|
|
4578
4584
|
}
|
|
4579
4585
|
|
|
4586
|
+
// 100.64.0.0/10 — the CGNAT range Tailscale assigns from.
|
|
4587
|
+
//
|
|
4588
|
+
// WHAT WOULD FOOL THIS: a carrier-grade NAT or another overlay network using
|
|
4589
|
+
// the same range on a utun adapter is offered too. That costs one dud `also:`
|
|
4590
|
+
// line, where filtering it hides the only link a reader off the wifi can open.
|
|
4591
|
+
function isTailnetAddress(address) {
|
|
4592
|
+
const m = /^100\.(\d+)\./.exec(address)
|
|
4593
|
+
return !!m && Number(m[1]) >= 64 && Number(m[1]) <= 127
|
|
4594
|
+
}
|
|
4595
|
+
|
|
4596
|
+
// The suffix on an `also:` line whose host is a tailnet address, so it reads
|
|
4597
|
+
// apart from the LAN one — a reader off the wifi needs to know which to tap.
|
|
4598
|
+
function tailnetLabel(url) {
|
|
4599
|
+
let host = ''
|
|
4600
|
+
try {
|
|
4601
|
+
host = new URL(url).hostname
|
|
4602
|
+
} catch {}
|
|
4603
|
+
return isTailnetAddress(host) ? ' (tailnet)' : ''
|
|
4604
|
+
}
|
|
4605
|
+
|
|
4580
4606
|
/**
|
|
4581
4607
|
* Bring the review server up, or adopt the one already running.
|
|
4582
4608
|
*
|
|
@@ -5950,6 +5976,7 @@ module.exports = {
|
|
|
5950
5976
|
unknownCommand,
|
|
5951
5977
|
rankLanAddresses,
|
|
5952
5978
|
offerableLanAddresses,
|
|
5979
|
+
tailnetLabel,
|
|
5953
5980
|
reviewTierStack,
|
|
5954
5981
|
serveProcFor,
|
|
5955
5982
|
serverScriptOk,
|