tickmarkr 1.33.1 → 1.33.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.
- package/dist/drivers/types.js +4 -2
- package/package.json +1 -1
package/dist/drivers/types.js
CHANGED
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
// exactly. parseOwnedName (or isForeignName) is the ONLY way reconcile.ts may decide a live pane name
|
|
7
7
|
// is drovr-owned — anything that doesn't parse is foreign and is never a candidate for closing.
|
|
8
8
|
export const OWNED_ROLES = ["worker", "judge", "review", "consult", "watch", "other"];
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
// read-old/write-new: new panes are named tickmarkr:*, but reconcile still recognizes (and may
|
|
10
|
+
// close/reuse) drovr:* panes left by pre-rename runs — resumed old runs keep working.
|
|
11
|
+
const OWNED_PREFIX = "tickmarkr";
|
|
12
|
+
const OWNED_RE = new RegExp(`^(?:${OWNED_PREFIX}|drovr):(${OWNED_ROLES.join("|")}):([^:]+):(\\d+):([^:]+)$`);
|
|
11
13
|
export function formatOwnedName(o) {
|
|
12
14
|
return `${OWNED_PREFIX}:${o.role}:${o.taskId}:${o.attempt}:${o.runId}`;
|
|
13
15
|
}
|