@productbrain/cli 0.1.0-beta.13398 → 0.1.0-beta.13401
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/lib/priority.d.ts
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* The priority a work package or a task carries, in Linear's five levels (DEC-2416). The catalog
|
|
3
3
|
* stores only the token (dev-system-collections.json, the `priority` select on work-packages and
|
|
4
4
|
* tasks); every surface reads the word, the order, the Linear integer and the icon key from here,
|
|
5
|
-
* so one change updates web, CLI, MCP and kernel alike.
|
|
5
|
+
* so one change updates web, CLI, MCP and kernel alike. Each level's `line` is its meaning under the word in the picker
|
|
6
|
+
* and its `question` asks the why of a change to it (DEC-2460, signed by Voice in QUE-211). No priority has no token: a field never set is
|
|
6
7
|
* absent, and a clear stores "" (the CLI's empty -f value) or null (MCP data), so undefined, null, "" and
|
|
7
8
|
* any other non-token value all read as No priority through priorityOf.
|
|
8
9
|
*
|
|
@@ -15,24 +16,32 @@ export declare const PRIORITY_LEVELS: {
|
|
|
15
16
|
readonly order: 1;
|
|
16
17
|
readonly linearInt: 1;
|
|
17
18
|
readonly icon: "alert";
|
|
19
|
+
readonly line: "Fix now: hurts customers, money or security";
|
|
20
|
+
readonly question: "Who is hurt, or which promise slips?";
|
|
18
21
|
};
|
|
19
22
|
readonly high: {
|
|
20
23
|
readonly word: "High";
|
|
21
24
|
readonly order: 2;
|
|
22
25
|
readonly linearInt: 2;
|
|
23
26
|
readonly icon: "bars-3";
|
|
27
|
+
readonly line: "A goal we set is stuck without this";
|
|
28
|
+
readonly question: "Which goal is stuck without this?";
|
|
24
29
|
};
|
|
25
30
|
readonly medium: {
|
|
26
31
|
readonly word: "Medium";
|
|
27
32
|
readonly order: 3;
|
|
28
33
|
readonly linearInt: 3;
|
|
29
34
|
readonly icon: "bars-2";
|
|
35
|
+
readonly line: "Helps a goal we set, but can wait";
|
|
36
|
+
readonly question: "Which goal does this help?";
|
|
30
37
|
};
|
|
31
38
|
readonly low: {
|
|
32
39
|
readonly word: "Low";
|
|
33
40
|
readonly order: 4;
|
|
34
41
|
readonly linearInt: 4;
|
|
35
42
|
readonly icon: "bars-1";
|
|
43
|
+
readonly line: "Nice to have, or keeping things tidy";
|
|
44
|
+
readonly question: "Why can this wait?";
|
|
36
45
|
};
|
|
37
46
|
};
|
|
38
47
|
export type PriorityToken = keyof typeof PRIORITY_LEVELS;
|
|
@@ -44,7 +53,12 @@ export declare const NO_PRIORITY: {
|
|
|
44
53
|
readonly order: 5;
|
|
45
54
|
readonly linearInt: 0;
|
|
46
55
|
readonly icon: "dashes";
|
|
56
|
+
readonly line: "Not judged yet";
|
|
57
|
+
readonly question: "Why clear the priority?";
|
|
47
58
|
};
|
|
59
|
+
/** A level's word, line, question and icon, No priority included: what a picker row and the why step read. */
|
|
60
|
+
export type PriorityLevel = (typeof PRIORITY_LEVELS)[PriorityToken] | typeof NO_PRIORITY;
|
|
61
|
+
export declare const priorityLevel: (token: PriorityToken | null) => PriorityLevel;
|
|
48
62
|
/** The stored token, or null for No priority: the one read every surface uses, so none re-derives it. */
|
|
49
63
|
export declare function priorityOf(value: unknown): PriorityToken | null;
|
|
50
64
|
//# sourceMappingURL=priority.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priority.d.ts","sourceRoot":"","sources":["../../src/lib/priority.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"priority.d.ts","sourceRoot":"","sources":["../../src/lib/priority.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKlB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,eAAe,CAAC;AAEzD,kFAAkF;AAClF,eAAO,MAAM,eAAe,EAAmC,SAAS,aAAa,EAAE,CAAC;AAExF,yFAAyF;AACzF,eAAO,MAAM,WAAW;;;;;;;CAAwI,CAAC;AAEjK,8GAA8G;AAC9G,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,aAAa,CAAC,GAAG,OAAO,WAAW,CAAC;AACzF,eAAO,MAAM,aAAa,GAAI,OAAO,aAAa,GAAG,IAAI,KAAG,aAA+D,CAAC;AAE5H,yGAAyG;AACzG,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,GAAG,IAAI,CAE/D"}
|
package/dist/lib/priority.js
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* The priority a work package or a task carries, in Linear's five levels (DEC-2416). The catalog
|
|
6
6
|
* stores only the token (dev-system-collections.json, the `priority` select on work-packages and
|
|
7
7
|
* tasks); every surface reads the word, the order, the Linear integer and the icon key from here,
|
|
8
|
-
* so one change updates web, CLI, MCP and kernel alike.
|
|
8
|
+
* so one change updates web, CLI, MCP and kernel alike. Each level's `line` is its meaning under the word in the picker
|
|
9
|
+
* and its `question` asks the why of a change to it (DEC-2460, signed by Voice in QUE-211). No priority has no token: a field never set is
|
|
9
10
|
* absent, and a clear stores "" (the CLI's empty -f value) or null (MCP data), so undefined, null, "" and
|
|
10
11
|
* any other non-token value all read as No priority through priorityOf.
|
|
11
12
|
*
|
|
@@ -13,15 +14,16 @@
|
|
|
13
14
|
* scripts/generate-mcp-embedded-copies.mjs, since neither connector can import the kernel at runtime.
|
|
14
15
|
*/
|
|
15
16
|
export const PRIORITY_LEVELS = {
|
|
16
|
-
urgent: { word: 'Urgent', order: 1, linearInt: 1, icon: 'alert' },
|
|
17
|
-
high: { word: 'High', order: 2, linearInt: 2, icon: 'bars-3' },
|
|
18
|
-
medium: { word: 'Medium', order: 3, linearInt: 3, icon: 'bars-2' },
|
|
19
|
-
low: { word: 'Low', order: 4, linearInt: 4, icon: 'bars-1' },
|
|
17
|
+
urgent: { word: 'Urgent', order: 1, linearInt: 1, icon: 'alert', line: 'Fix now: hurts customers, money or security', question: 'Who is hurt, or which promise slips?' },
|
|
18
|
+
high: { word: 'High', order: 2, linearInt: 2, icon: 'bars-3', line: 'A goal we set is stuck without this', question: 'Which goal is stuck without this?' },
|
|
19
|
+
medium: { word: 'Medium', order: 3, linearInt: 3, icon: 'bars-2', line: 'Helps a goal we set, but can wait', question: 'Which goal does this help?' },
|
|
20
|
+
low: { word: 'Low', order: 4, linearInt: 4, icon: 'bars-1', line: 'Nice to have, or keeping things tidy', question: 'Why can this wait?' },
|
|
20
21
|
};
|
|
21
22
|
/** The stored tokens, most urgent first: exactly the catalog select's options. */
|
|
22
23
|
export const PRIORITY_TOKENS = Object.keys(PRIORITY_LEVELS);
|
|
23
24
|
/** An entry with no priority token. It sorts after Low; Linear's integer for it is 0. */
|
|
24
|
-
export const NO_PRIORITY = { word: 'No priority', order: 5, linearInt: 0, icon: 'dashes' };
|
|
25
|
+
export const NO_PRIORITY = { word: 'No priority', order: 5, linearInt: 0, icon: 'dashes', line: 'Not judged yet', question: 'Why clear the priority?' };
|
|
26
|
+
export const priorityLevel = (token) => (token ? PRIORITY_LEVELS[token] : NO_PRIORITY);
|
|
25
27
|
/** The stored token, or null for No priority: the one read every surface uses, so none re-derives it. */
|
|
26
28
|
export function priorityOf(value) {
|
|
27
29
|
return typeof value === 'string' && Object.prototype.hasOwnProperty.call(PRIORITY_LEVELS, value) ? value : null;
|
package/dist/lib/priority.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priority.js","sourceRoot":"","sources":["../../src/lib/priority.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,gEAAgE;AAChE,uDAAuD;AAEvD
|
|
1
|
+
{"version":3,"file":"priority.js","sourceRoot":"","sources":["../../src/lib/priority.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,gEAAgE;AAChE,uDAAuD;AAEvD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE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