@kernhq/module-tracker 0.1.0 → 0.1.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 +8 -6
- package/src/client/api.ts +1 -1
- package/src/client/format.ts +1 -1
- package/src/client/group.ts +1 -1
- package/src/client/kql.ts +13 -5
- package/src/client/types.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kernhq/module-tracker",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Kern tracker module: projects, work item types, custom fields, workflows, issues, KQL, cycles, views, reports, intake, time tracking (server + client skeleton)",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"type": "module",
|
|
@@ -15,21 +15,23 @@
|
|
|
15
15
|
"files": [
|
|
16
16
|
"dist",
|
|
17
17
|
"migrations",
|
|
18
|
-
"src/client"
|
|
19
|
-
"docs"
|
|
18
|
+
"src/client"
|
|
20
19
|
],
|
|
21
20
|
"exports": {
|
|
22
21
|
"./contract": {
|
|
23
22
|
"types": "./dist/contract/index.d.ts",
|
|
24
|
-
"import": "./dist/contract/index.js"
|
|
23
|
+
"import": "./dist/contract/index.js",
|
|
24
|
+
"default": "./dist/contract/index.js"
|
|
25
25
|
},
|
|
26
26
|
"./kql": {
|
|
27
27
|
"types": "./dist/kql/index.d.ts",
|
|
28
|
-
"import": "./dist/kql/index.js"
|
|
28
|
+
"import": "./dist/kql/index.js",
|
|
29
|
+
"default": "./dist/kql/index.js"
|
|
29
30
|
},
|
|
30
31
|
"./server": {
|
|
31
32
|
"types": "./dist/server/index.d.ts",
|
|
32
|
-
"import": "./dist/server/index.js"
|
|
33
|
+
"import": "./dist/server/index.js",
|
|
34
|
+
"default": "./dist/server/index.js"
|
|
33
35
|
},
|
|
34
36
|
"./client": {
|
|
35
37
|
"types": "./src/client/index.ts",
|
package/src/client/api.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { TrackerContract } from '@kernhq/module-tracker/contract'
|
|
1
2
|
import { createModuleClient, type KernClientOptions } from '@kernhq/sdk'
|
|
2
3
|
import type { ContractRouterClient } from '@orpc/contract'
|
|
3
|
-
import type { TrackerContract } from '../contract/index.js'
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Typed oRPC client for `/api/tracker` (see `../contract`).
|
package/src/client/format.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { Priority } from '@kernhq/module-tracker/contract'
|
|
1
2
|
import type { StatusCategory } from '@kernhq/workflow'
|
|
2
|
-
import type { Priority } from '../contract/models.js'
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Presentation rules shared by every tracker surface (list rows, board cards, detail panel).
|
package/src/client/group.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { GroupBy, Issue, Priority } from '@kernhq/module-tracker/contract'
|
|
1
2
|
import type { StatusCategory } from '@kernhq/workflow'
|
|
2
|
-
import type { GroupBy, Issue, Priority } from '../contract/models.js'
|
|
3
3
|
import { PRIORITY_GROUP_ORDER, STATUS_CATEGORY_ORDER } from './format.js'
|
|
4
4
|
import { byRank } from './rank.js'
|
|
5
5
|
|
package/src/client/kql.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { KqlError, KqlSuggestion } from '
|
|
2
|
-
import type { KqlExpr, KqlOp, KqlOrder, KqlQuery, KqlValue, Span } from '
|
|
3
|
-
import { printQuery } from '../kql/ast.js'
|
|
1
|
+
import type { KqlError, KqlSuggestion } from '@kernhq/module-tracker/contract'
|
|
2
|
+
import type { KqlExpr, KqlOp, KqlOrder, KqlQuery, KqlValue, Span } from '@kernhq/module-tracker/kql'
|
|
4
3
|
import {
|
|
5
4
|
customKqlField,
|
|
6
5
|
findField,
|
|
7
6
|
KQL_FUNCTIONS,
|
|
8
7
|
type KqlField,
|
|
9
8
|
operatorsFor,
|
|
9
|
+
printQuery,
|
|
10
10
|
SYSTEM_FIELDS,
|
|
11
|
-
} from '
|
|
11
|
+
} from '@kernhq/module-tracker/kql'
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* A KQL reader for the query box.
|
|
@@ -487,6 +487,14 @@ function suggest(tokens: Token[], fields: readonly KqlField[], cursor: number):
|
|
|
487
487
|
.map((k) => ({ kind: 'keyword' as const, label: k, insertText: `${k} ` }))
|
|
488
488
|
}
|
|
489
489
|
|
|
490
|
-
export type {
|
|
490
|
+
export type {
|
|
491
|
+
KqlComparison,
|
|
492
|
+
KqlExpr,
|
|
493
|
+
KqlOp,
|
|
494
|
+
KqlOrder,
|
|
495
|
+
KqlQuery,
|
|
496
|
+
KqlValue,
|
|
497
|
+
Span,
|
|
498
|
+
} from '@kernhq/module-tracker/kql'
|
|
491
499
|
export type { KqlField }
|
|
492
500
|
export { customKqlField, operatorsFor, SYSTEM_FIELDS }
|
package/src/client/types.ts
CHANGED