@productbrain/cli 0.1.0-beta.13196 → 0.1.0-beta.13215

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.
@@ -0,0 +1,50 @@
1
+ /**
2
+ * The priority a work package or a task carries, in Linear's five levels (DEC-2416). The catalog
3
+ * stores only the token (dev-system-collections.json, the `priority` select on work-packages and
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. No priority has no token: a field never set is
6
+ * absent, and a clear stores "" (the CLI's empty -f value) or null (MCP data), so undefined, null, "" and
7
+ * any other non-token value all read as No priority through priorityOf.
8
+ *
9
+ * Dependency-free: copied verbatim into both connector packages by
10
+ * scripts/generate-mcp-embedded-copies.mjs, since neither connector can import the kernel at runtime.
11
+ */
12
+ export declare const PRIORITY_LEVELS: {
13
+ readonly urgent: {
14
+ readonly word: "Urgent";
15
+ readonly order: 1;
16
+ readonly linearInt: 1;
17
+ readonly icon: "alert";
18
+ };
19
+ readonly high: {
20
+ readonly word: "High";
21
+ readonly order: 2;
22
+ readonly linearInt: 2;
23
+ readonly icon: "bars-3";
24
+ };
25
+ readonly medium: {
26
+ readonly word: "Medium";
27
+ readonly order: 3;
28
+ readonly linearInt: 3;
29
+ readonly icon: "bars-2";
30
+ };
31
+ readonly low: {
32
+ readonly word: "Low";
33
+ readonly order: 4;
34
+ readonly linearInt: 4;
35
+ readonly icon: "bars-1";
36
+ };
37
+ };
38
+ export type PriorityToken = keyof typeof PRIORITY_LEVELS;
39
+ /** The stored tokens, most urgent first: exactly the catalog select's options. */
40
+ export declare const PRIORITY_TOKENS: readonly PriorityToken[];
41
+ /** An entry with no priority token. It sorts after Low; Linear's integer for it is 0. */
42
+ export declare const NO_PRIORITY: {
43
+ readonly word: "No priority";
44
+ readonly order: 5;
45
+ readonly linearInt: 0;
46
+ readonly icon: "dashes";
47
+ };
48
+ /** The stored token, or null for No priority: the one read every surface uses, so none re-derives it. */
49
+ export declare function priorityOf(value: unknown): PriorityToken | null;
50
+ //# sourceMappingURL=priority.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"priority.d.ts","sourceRoot":"","sources":["../../src/lib/priority.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;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;;;;;CAA2E,CAAC;AAEpG,yGAAyG;AACzG,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,GAAG,IAAI,CAE/D"}
@@ -0,0 +1,29 @@
1
+ // GENERATED by scripts/generate-mcp-embedded-copies.mjs from kernel/entries/priority.ts.
2
+ // DO NOT EDIT. Run `npm run mcp:embedded-copies` to regenerate.
3
+ // Local runtime copy for the isolated connector build.
4
+ /**
5
+ * The priority a work package or a task carries, in Linear's five levels (DEC-2416). The catalog
6
+ * stores only the token (dev-system-collections.json, the `priority` select on work-packages and
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. No priority has no token: a field never set is
9
+ * absent, and a clear stores "" (the CLI's empty -f value) or null (MCP data), so undefined, null, "" and
10
+ * any other non-token value all read as No priority through priorityOf.
11
+ *
12
+ * Dependency-free: copied verbatim into both connector packages by
13
+ * scripts/generate-mcp-embedded-copies.mjs, since neither connector can import the kernel at runtime.
14
+ */
15
+ 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' },
20
+ };
21
+ /** The stored tokens, most urgent first: exactly the catalog select's options. */
22
+ export const PRIORITY_TOKENS = Object.keys(PRIORITY_LEVELS);
23
+ /** 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
+ /** The stored token, or null for No priority: the one read every surface uses, so none re-derives it. */
26
+ export function priorityOf(value) {
27
+ return typeof value === 'string' && Object.prototype.hasOwnProperty.call(PRIORITY_LEVELS, value) ? value : null;
28
+ }
29
+ //# sourceMappingURL=priority.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"priority.js","sourceRoot":"","sources":["../../src/lib/priority.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,gEAAgE;AAChE,uDAAuD;AAEvD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;IACjE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE;IAC9D,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE;IAClE,GAAG,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE;CACnD,CAAC;AAIX,kFAAkF;AAClF,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,eAAe,CAA6B,CAAC;AAExF,yFAAyF;AACzF,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAW,CAAC;AAEpG,yGAAyG;AACzG,MAAM,UAAU,UAAU,CAAC,KAAc;IACxC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC,CAAC,CAAE,KAAuB,CAAC,CAAC,CAAC,IAAI,CAAC;AACpI,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@productbrain/cli",
3
- "version": "0.1.0-beta.13196",
3
+ "version": "0.1.0-beta.13215",
4
4
  "description": "Product Brain — Chain knowledge and write-back CLI",
5
5
  "type": "module",
6
6
  "bin": {