@sjawhar/pi-envoy 10.10.0 → 10.12.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/dist/dispatch.js +6 -5
- package/dist/envoy.js +5 -4
- package/package.json +1 -1
package/dist/dispatch.js
CHANGED
|
@@ -15584,7 +15584,7 @@ function parseDispatchRef(ref) {
|
|
|
15584
15584
|
artifact: artifact2
|
|
15585
15585
|
};
|
|
15586
15586
|
}
|
|
15587
|
-
const issueReference = ref.match(/^dispatch:\/\/([A-Z][A-Z0-9]{1,9}-[1-9][0-9]*)(?:\/(spec)|\/(log)|\/(children)|\/artifact\/([^/@]+)(?:@v(\d+))?|\/ask\/([^/]+)|\/comment\/([^/]+)|\/message\/([^/]+))?$/);
|
|
15587
|
+
const issueReference = ref.match(/^dispatch:\/\/([A-Z][A-Z0-9]{1,9}-[1-9][0-9]*)(?:\/(spec)|\/(log|activity)|\/(children)|\/artifact\/([^/@]+)(?:@v(\d+))?|\/ask\/([^/]+)|\/comment\/([^/]+)|\/message\/([^/]+))?$/);
|
|
15588
15588
|
if (!issueReference)
|
|
15589
15589
|
return null;
|
|
15590
15590
|
const [, issue2, spec, log, children, artifact, version2, ask, comment, message] = issueReference;
|
|
@@ -16527,7 +16527,7 @@ function dispatchRefFromUrl(value, serverUrl) {
|
|
|
16527
16527
|
const value2 = url2.searchParams.get(name);
|
|
16528
16528
|
return value2 !== null && /^[1-9][0-9]*$/.test(value2) ? `@v${value2}` : "";
|
|
16529
16529
|
};
|
|
16530
|
-
const issuePage = url2.pathname.match(/^\/issues\/([A-Z][A-Z0-9]{1,9}-[1-9][0-9]*)(?:\/(spec|log|conversation|children)|\/artifacts\/([^/]+)|\/asks\/([^/]+)|\/comments\/([^/]+)|\/messages\/([^/]+))?\/?$/);
|
|
16530
|
+
const issuePage = url2.pathname.match(/^\/issues\/([A-Z][A-Z0-9]{1,9}-[1-9][0-9]*)(?:\/(spec|log|conversation|activity|children)|\/artifacts\/([^/]+)|\/asks\/([^/]+)|\/comments\/([^/]+)|\/messages\/([^/]+))?\/?$/);
|
|
16531
16531
|
if (issuePage) {
|
|
16532
16532
|
const [, key, page, artifact, ask, comment, message] = issuePage;
|
|
16533
16533
|
const version2 = versionOf("v");
|
|
@@ -18368,9 +18368,10 @@ var PICTURE_EXTENSIONS = {
|
|
|
18368
18368
|
"image/webp": "webp"
|
|
18369
18369
|
};
|
|
18370
18370
|
function sessionStateRoot(env) {
|
|
18371
|
-
|
|
18372
|
-
|
|
18373
|
-
|
|
18371
|
+
const stateDir = env["DISPATCH_STATE_DIR"];
|
|
18372
|
+
if (stateDir)
|
|
18373
|
+
return stateDir;
|
|
18374
|
+
return join(env["XDG_STATE_HOME"] || join(homedir(), ".local", "state"), "dispatch");
|
|
18374
18375
|
}
|
|
18375
18376
|
function sessionDirectory(env, sessionId) {
|
|
18376
18377
|
if (!SESSION_ID.test(sessionId) || sessionId === "." || sessionId === "..") {
|
package/dist/envoy.js
CHANGED
|
@@ -31334,7 +31334,7 @@ function parseDispatchRef(ref) {
|
|
|
31334
31334
|
artifact: artifact2
|
|
31335
31335
|
};
|
|
31336
31336
|
}
|
|
31337
|
-
const issueReference = ref.match(/^dispatch:\/\/([A-Z][A-Z0-9]{1,9}-[1-9][0-9]*)(?:\/(spec)|\/(log)|\/(children)|\/artifact\/([^/@]+)(?:@v(\d+))?|\/ask\/([^/]+)|\/comment\/([^/]+)|\/message\/([^/]+))?$/);
|
|
31337
|
+
const issueReference = ref.match(/^dispatch:\/\/([A-Z][A-Z0-9]{1,9}-[1-9][0-9]*)(?:\/(spec)|\/(log|activity)|\/(children)|\/artifact\/([^/@]+)(?:@v(\d+))?|\/ask\/([^/]+)|\/comment\/([^/]+)|\/message\/([^/]+))?$/);
|
|
31338
31338
|
if (!issueReference)
|
|
31339
31339
|
return null;
|
|
31340
31340
|
const [, issue2, spec, log, children, artifact, version2, ask, comment, message] = issueReference;
|
|
@@ -33427,9 +33427,10 @@ var PRIVATE_DIR = 448;
|
|
|
33427
33427
|
var PRIVATE_FILE = 384;
|
|
33428
33428
|
var IDLE_SESSION_MS = 14 * 86400000;
|
|
33429
33429
|
function sessionStateRoot(env) {
|
|
33430
|
-
|
|
33431
|
-
|
|
33432
|
-
|
|
33430
|
+
const stateDir = env["DISPATCH_STATE_DIR"];
|
|
33431
|
+
if (stateDir)
|
|
33432
|
+
return stateDir;
|
|
33433
|
+
return join3(env["XDG_STATE_HOME"] || join3(homedir2(), ".local", "state"), "dispatch");
|
|
33433
33434
|
}
|
|
33434
33435
|
function sessionDirectory(env, sessionId) {
|
|
33435
33436
|
if (!SESSION_ID.test(sessionId) || sessionId === "." || sessionId === "..") {
|