@uasyraf/helm 0.1.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/.claude-plugin/plugin.json +9 -0
- package/.mcp.json +8 -0
- package/LICENSE +21 -0
- package/README.md +114 -0
- package/dashboard/build/client/_app/immutable/assets/0.DPthOi2j.css +1 -0
- package/dashboard/build/client/_app/immutable/assets/0.DPthOi2j.css.br +0 -0
- package/dashboard/build/client/_app/immutable/assets/0.DPthOi2j.css.gz +0 -0
- package/dashboard/build/client/_app/immutable/chunks/B3NJzl7g.js +1 -0
- package/dashboard/build/client/_app/immutable/chunks/B3NJzl7g.js.br +0 -0
- package/dashboard/build/client/_app/immutable/chunks/B3NJzl7g.js.gz +0 -0
- package/dashboard/build/client/_app/immutable/chunks/Bvgn0Gys.js +1 -0
- package/dashboard/build/client/_app/immutable/chunks/Bvgn0Gys.js.br +0 -0
- package/dashboard/build/client/_app/immutable/chunks/Bvgn0Gys.js.gz +0 -0
- package/dashboard/build/client/_app/immutable/chunks/C72aErMY.js +3 -0
- package/dashboard/build/client/_app/immutable/chunks/C72aErMY.js.br +0 -0
- package/dashboard/build/client/_app/immutable/chunks/C72aErMY.js.gz +0 -0
- package/dashboard/build/client/_app/immutable/chunks/CjpPs8iz.js +1 -0
- package/dashboard/build/client/_app/immutable/chunks/CjpPs8iz.js.br +0 -0
- package/dashboard/build/client/_app/immutable/chunks/CjpPs8iz.js.gz +0 -0
- package/dashboard/build/client/_app/immutable/chunks/DNLp8810.js +1 -0
- package/dashboard/build/client/_app/immutable/chunks/DNLp8810.js.br +0 -0
- package/dashboard/build/client/_app/immutable/chunks/DNLp8810.js.gz +0 -0
- package/dashboard/build/client/_app/immutable/chunks/DYkFpqG7.js +1 -0
- package/dashboard/build/client/_app/immutable/chunks/DYkFpqG7.js.br +0 -0
- package/dashboard/build/client/_app/immutable/chunks/DYkFpqG7.js.gz +0 -0
- package/dashboard/build/client/_app/immutable/chunks/DsiL0ppy.js +2 -0
- package/dashboard/build/client/_app/immutable/chunks/DsiL0ppy.js.br +0 -0
- package/dashboard/build/client/_app/immutable/chunks/DsiL0ppy.js.gz +0 -0
- package/dashboard/build/client/_app/immutable/chunks/bJX5vhEj.js +1 -0
- package/dashboard/build/client/_app/immutable/chunks/bJX5vhEj.js.br +0 -0
- package/dashboard/build/client/_app/immutable/chunks/bJX5vhEj.js.gz +0 -0
- package/dashboard/build/client/_app/immutable/chunks/gQDp4_Ul.js +1 -0
- package/dashboard/build/client/_app/immutable/chunks/gQDp4_Ul.js.br +0 -0
- package/dashboard/build/client/_app/immutable/chunks/gQDp4_Ul.js.gz +0 -0
- package/dashboard/build/client/_app/immutable/entry/app.D4j9hUjJ.js +2 -0
- package/dashboard/build/client/_app/immutable/entry/app.D4j9hUjJ.js.br +0 -0
- package/dashboard/build/client/_app/immutable/entry/app.D4j9hUjJ.js.gz +0 -0
- package/dashboard/build/client/_app/immutable/entry/start.D59wIHuS.js +1 -0
- package/dashboard/build/client/_app/immutable/entry/start.D59wIHuS.js.br +2 -0
- package/dashboard/build/client/_app/immutable/entry/start.D59wIHuS.js.gz +0 -0
- package/dashboard/build/client/_app/immutable/nodes/0.HocD0HAQ.js +1 -0
- package/dashboard/build/client/_app/immutable/nodes/0.HocD0HAQ.js.br +0 -0
- package/dashboard/build/client/_app/immutable/nodes/0.HocD0HAQ.js.gz +0 -0
- package/dashboard/build/client/_app/immutable/nodes/1.xo_a-jPh.js +1 -0
- package/dashboard/build/client/_app/immutable/nodes/1.xo_a-jPh.js.br +0 -0
- package/dashboard/build/client/_app/immutable/nodes/1.xo_a-jPh.js.gz +0 -0
- package/dashboard/build/client/_app/immutable/nodes/2.BwywD4n3.js +1 -0
- package/dashboard/build/client/_app/immutable/nodes/2.BwywD4n3.js.br +0 -0
- package/dashboard/build/client/_app/immutable/nodes/2.BwywD4n3.js.gz +0 -0
- package/dashboard/build/client/_app/immutable/nodes/3.BGY0bNfC.js +1 -0
- package/dashboard/build/client/_app/immutable/nodes/3.BGY0bNfC.js.br +0 -0
- package/dashboard/build/client/_app/immutable/nodes/3.BGY0bNfC.js.gz +0 -0
- package/dashboard/build/client/_app/immutable/nodes/4.C7uIivCS.js +1 -0
- package/dashboard/build/client/_app/immutable/nodes/4.C7uIivCS.js.br +0 -0
- package/dashboard/build/client/_app/immutable/nodes/4.C7uIivCS.js.gz +0 -0
- package/dashboard/build/client/_app/immutable/nodes/5.YszfczJW.js +1 -0
- package/dashboard/build/client/_app/immutable/nodes/5.YszfczJW.js.br +0 -0
- package/dashboard/build/client/_app/immutable/nodes/5.YszfczJW.js.gz +0 -0
- package/dashboard/build/client/_app/immutable/nodes/6.7fhKcbBK.js +1 -0
- package/dashboard/build/client/_app/immutable/nodes/6.7fhKcbBK.js.br +0 -0
- package/dashboard/build/client/_app/immutable/nodes/6.7fhKcbBK.js.gz +0 -0
- package/dashboard/build/client/_app/version.json +1 -0
- package/dashboard/build/client/_app/version.json.br +0 -0
- package/dashboard/build/client/_app/version.json.gz +0 -0
- package/dashboard/build/env.js +94 -0
- package/dashboard/build/handler.js +1494 -0
- package/dashboard/build/index.js +345 -0
- package/dashboard/build/server/chunks/0-DUUsxI66.js +40 -0
- package/dashboard/build/server/chunks/0-DUUsxI66.js.map +1 -0
- package/dashboard/build/server/chunks/1-BDkdOGL6.js +9 -0
- package/dashboard/build/server/chunks/1-BDkdOGL6.js.map +1 -0
- package/dashboard/build/server/chunks/2-BLt1vNET.js +51 -0
- package/dashboard/build/server/chunks/2-BLt1vNET.js.map +1 -0
- package/dashboard/build/server/chunks/3-B-4sxMk4.js +41 -0
- package/dashboard/build/server/chunks/3-B-4sxMk4.js.map +1 -0
- package/dashboard/build/server/chunks/4-CRZIwHJO.js +39 -0
- package/dashboard/build/server/chunks/4-CRZIwHJO.js.map +1 -0
- package/dashboard/build/server/chunks/5-CwiVOtz6.js +30 -0
- package/dashboard/build/server/chunks/5-CwiVOtz6.js.map +1 -0
- package/dashboard/build/server/chunks/6-mID2_gX2.js +53 -0
- package/dashboard/build/server/chunks/6-mID2_gX2.js.map +1 -0
- package/dashboard/build/server/chunks/_layout.svelte-DeOKequ-.js +31 -0
- package/dashboard/build/server/chunks/_layout.svelte-DeOKequ-.js.map +1 -0
- package/dashboard/build/server/chunks/_page.svelte-BGS-bwra.js +65 -0
- package/dashboard/build/server/chunks/_page.svelte-BGS-bwra.js.map +1 -0
- package/dashboard/build/server/chunks/_page.svelte-BiRjdIbl.js +35 -0
- package/dashboard/build/server/chunks/_page.svelte-BiRjdIbl.js.map +1 -0
- package/dashboard/build/server/chunks/_page.svelte-C_NO0kPy.js +49 -0
- package/dashboard/build/server/chunks/_page.svelte-C_NO0kPy.js.map +1 -0
- package/dashboard/build/server/chunks/_page.svelte-DvSQBjcA.js +80 -0
- package/dashboard/build/server/chunks/_page.svelte-DvSQBjcA.js.map +1 -0
- package/dashboard/build/server/chunks/_page.svelte-ZUq8J-ew.js +33 -0
- package/dashboard/build/server/chunks/_page.svelte-ZUq8J-ew.js.map +1 -0
- package/dashboard/build/server/chunks/error.svelte-DJ3O9Tia.js +12 -0
- package/dashboard/build/server/chunks/error.svelte-DJ3O9Tia.js.map +1 -0
- package/dashboard/build/server/chunks/exports-BnaAAAnL.js +3262 -0
- package/dashboard/build/server/chunks/exports-BnaAAAnL.js.map +1 -0
- package/dashboard/build/server/chunks/index-DwR_KaNY.js +44 -0
- package/dashboard/build/server/chunks/index-DwR_KaNY.js.map +1 -0
- package/dashboard/build/server/chunks/index-lhTMmBNn.js +207 -0
- package/dashboard/build/server/chunks/index-lhTMmBNn.js.map +1 -0
- package/dashboard/build/server/chunks/queries-DGWi-KlP.js +198 -0
- package/dashboard/build/server/chunks/queries-DGWi-KlP.js.map +1 -0
- package/dashboard/build/server/chunks/renderer-DdMvhZZr.js +1930 -0
- package/dashboard/build/server/chunks/renderer-DdMvhZZr.js.map +1 -0
- package/dashboard/build/server/index.js +5911 -0
- package/dashboard/build/server/index.js.map +1 -0
- package/dashboard/build/server/manifest.js +78 -0
- package/dashboard/build/server/manifest.js.map +1 -0
- package/dashboard/build/shims.js +32 -0
- package/dashboard/package.json +29 -0
- package/dashboard/svelte.config.js +15 -0
- package/dist/bin/helm.d.ts +2 -0
- package/dist/bin/helm.js +167 -0
- package/dist/bin/helm.js.map +1 -0
- package/dist/server/src/banner.d.ts +1 -0
- package/dist/server/src/banner.js +34 -0
- package/dist/server/src/banner.js.map +1 -0
- package/dist/server/src/config/load.d.ts +14 -0
- package/dist/server/src/config/load.js +43 -0
- package/dist/server/src/config/load.js.map +1 -0
- package/dist/server/src/dashboard.d.ts +5 -0
- package/dist/server/src/dashboard.js +79 -0
- package/dist/server/src/dashboard.js.map +1 -0
- package/dist/server/src/db/bootstrap.d.ts +2 -0
- package/dist/server/src/db/bootstrap.js +106 -0
- package/dist/server/src/db/bootstrap.js.map +1 -0
- package/dist/server/src/db/client.d.ts +14 -0
- package/dist/server/src/db/client.js +32 -0
- package/dist/server/src/db/client.js.map +1 -0
- package/dist/server/src/db/open-project.d.ts +17 -0
- package/dist/server/src/db/open-project.js +27 -0
- package/dist/server/src/db/open-project.js.map +1 -0
- package/dist/server/src/db/open-repo.d.ts +8 -0
- package/dist/server/src/db/open-repo.js +45 -0
- package/dist/server/src/db/open-repo.js.map +1 -0
- package/dist/server/src/db/pg-bootstrap.d.ts +4 -0
- package/dist/server/src/db/pg-bootstrap.js +106 -0
- package/dist/server/src/db/pg-bootstrap.js.map +1 -0
- package/dist/server/src/db/pg-client.d.ts +10 -0
- package/dist/server/src/db/pg-client.js +42 -0
- package/dist/server/src/db/pg-client.js.map +1 -0
- package/dist/server/src/db/repo-pg.d.ts +3 -0
- package/dist/server/src/db/repo-pg.js +245 -0
- package/dist/server/src/db/repo-pg.js.map +1 -0
- package/dist/server/src/db/repo-sqlite.d.ts +3 -0
- package/dist/server/src/db/repo-sqlite.js +224 -0
- package/dist/server/src/db/repo-sqlite.js.map +1 -0
- package/dist/server/src/db/repo.d.ts +54 -0
- package/dist/server/src/db/repo.js +2 -0
- package/dist/server/src/db/repo.js.map +1 -0
- package/dist/server/src/db/schema-pg.d.ts +2712 -0
- package/dist/server/src/db/schema-pg.js +107 -0
- package/dist/server/src/db/schema-pg.js.map +1 -0
- package/dist/server/src/db/schema.d.ts +2721 -0
- package/dist/server/src/db/schema.js +107 -0
- package/dist/server/src/db/schema.js.map +1 -0
- package/dist/server/src/events/emit.d.ts +21 -0
- package/dist/server/src/events/emit.js +17 -0
- package/dist/server/src/events/emit.js.map +1 -0
- package/dist/server/src/http/server.d.ts +10 -0
- package/dist/server/src/http/server.js +119 -0
- package/dist/server/src/http/server.js.map +1 -0
- package/dist/server/src/index.d.ts +2 -0
- package/dist/server/src/index.js +13 -0
- package/dist/server/src/index.js.map +1 -0
- package/dist/server/src/init.d.ts +12 -0
- package/dist/server/src/init.js +59 -0
- package/dist/server/src/init.js.map +1 -0
- package/dist/server/src/install.d.ts +8 -0
- package/dist/server/src/install.js +100 -0
- package/dist/server/src/install.js.map +1 -0
- package/dist/server/src/project/bootstrap.d.ts +9 -0
- package/dist/server/src/project/bootstrap.js +83 -0
- package/dist/server/src/project/bootstrap.js.map +1 -0
- package/dist/server/src/project/detect.d.ts +10 -0
- package/dist/server/src/project/detect.js +82 -0
- package/dist/server/src/project/detect.js.map +1 -0
- package/dist/server/src/project/identity.d.ts +8 -0
- package/dist/server/src/project/identity.js +42 -0
- package/dist/server/src/project/identity.js.map +1 -0
- package/dist/server/src/server.d.ts +8 -0
- package/dist/server/src/server.js +22 -0
- package/dist/server/src/server.js.map +1 -0
- package/dist/server/src/tools/debt.d.ts +2 -0
- package/dist/server/src/tools/debt.js +88 -0
- package/dist/server/src/tools/debt.js.map +1 -0
- package/dist/server/src/tools/decision.d.ts +2 -0
- package/dist/server/src/tools/decision.js +39 -0
- package/dist/server/src/tools/decision.js.map +1 -0
- package/dist/server/src/tools/epic.d.ts +2 -0
- package/dist/server/src/tools/epic.js +95 -0
- package/dist/server/src/tools/epic.js.map +1 -0
- package/dist/server/src/tools/index.d.ts +3 -0
- package/dist/server/src/tools/index.js +21 -0
- package/dist/server/src/tools/index.js.map +1 -0
- package/dist/server/src/tools/nelson.d.ts +2 -0
- package/dist/server/src/tools/nelson.js +28 -0
- package/dist/server/src/tools/nelson.js.map +1 -0
- package/dist/server/src/tools/progress.d.ts +2 -0
- package/dist/server/src/tools/progress.js +45 -0
- package/dist/server/src/tools/progress.js.map +1 -0
- package/dist/server/src/tools/sprint.d.ts +2 -0
- package/dist/server/src/tools/sprint.js +98 -0
- package/dist/server/src/tools/sprint.js.map +1 -0
- package/dist/server/src/tools/status.d.ts +2 -0
- package/dist/server/src/tools/status.js +31 -0
- package/dist/server/src/tools/status.js.map +1 -0
- package/dist/server/src/tools/story.d.ts +2 -0
- package/dist/server/src/tools/story.js +155 -0
- package/dist/server/src/tools/story.js.map +1 -0
- package/dist/server/src/tools/task.d.ts +2 -0
- package/dist/server/src/tools/task.js +90 -0
- package/dist/server/src/tools/task.js.map +1 -0
- package/dist/server/src/tools/types.d.ts +15 -0
- package/dist/server/src/tools/types.js +11 -0
- package/dist/server/src/tools/types.js.map +1 -0
- package/dist/server/src/util/git.d.ts +8 -0
- package/dist/server/src/util/git.js +51 -0
- package/dist/server/src/util/git.js.map +1 -0
- package/dist/server/src/util/ids.d.ts +2 -0
- package/dist/server/src/util/ids.js +8 -0
- package/dist/server/src/util/ids.js.map +1 -0
- package/dist/server/src/util/paths.d.ts +2 -0
- package/dist/server/src/util/paths.js +9 -0
- package/dist/server/src/util/paths.js.map +1 -0
- package/dist/server/src/worker/client.d.ts +12 -0
- package/dist/server/src/worker/client.js +89 -0
- package/dist/server/src/worker/client.js.map +1 -0
- package/dist/server/src/worker/hook.d.ts +1 -0
- package/dist/server/src/worker/hook.js +36 -0
- package/dist/server/src/worker/hook.js.map +1 -0
- package/dist/server/src/worker/ingest.d.ts +14 -0
- package/dist/server/src/worker/ingest.js +86 -0
- package/dist/server/src/worker/ingest.js.map +1 -0
- package/dist/server/src/worker/markers/any-type.d.ts +6 -0
- package/dist/server/src/worker/markers/any-type.js +19 -0
- package/dist/server/src/worker/markers/any-type.js.map +1 -0
- package/dist/server/src/worker/markers/debt.d.ts +11 -0
- package/dist/server/src/worker/markers/debt.js +53 -0
- package/dist/server/src/worker/markers/debt.js.map +1 -0
- package/dist/server/src/worker/markers/file-size.d.ts +5 -0
- package/dist/server/src/worker/markers/file-size.js +32 -0
- package/dist/server/src/worker/markers/file-size.js.map +1 -0
- package/dist/server/src/worker/scanner.d.ts +23 -0
- package/dist/server/src/worker/scanner.js +23 -0
- package/dist/server/src/worker/scanner.js.map +1 -0
- package/dist/server/src/worker/server.d.ts +1 -0
- package/dist/server/src/worker/server.js +137 -0
- package/dist/server/src/worker/server.js.map +1 -0
- package/dist/server/src/worker/socket.d.ts +3 -0
- package/dist/server/src/worker/socket.js +12 -0
- package/dist/server/src/worker/socket.js.map +1 -0
- package/hooks/hooks.json +33 -0
- package/package.json +56 -0
- package/skills/backlog/SKILL.md +18 -0
- package/skills/debt/SKILL.md +39 -0
- package/skills/epic/SKILL.md +22 -0
- package/skills/nelson-integration/SKILL.md +44 -0
- package/skills/project-tracker/SKILL.md +60 -0
- package/skills/review/SKILL.md +27 -0
- package/skills/sprint/SKILL.md +23 -0
- package/skills/story/SKILL.md +29 -0
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import http from 'node:http';
|
|
2
|
+
import process from 'node:process';
|
|
3
|
+
import { handler } from './handler.js';
|
|
4
|
+
import { env, timeout_env } from './env.js';
|
|
5
|
+
import { setImmediate } from 'node:timers';
|
|
6
|
+
import * as qs from 'node:querystring';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @param {string|RegExp} input The route pattern
|
|
10
|
+
* @param {boolean} [loose] Allow open-ended matching. Ignored with `RegExp` input.
|
|
11
|
+
*/
|
|
12
|
+
function parse$1(input, loose) {
|
|
13
|
+
if (input instanceof RegExp) return { keys:false, pattern:input };
|
|
14
|
+
var c, o, tmp, ext, keys=[], pattern='', arr = input.split('/');
|
|
15
|
+
arr[0] || arr.shift();
|
|
16
|
+
|
|
17
|
+
while (tmp = arr.shift()) {
|
|
18
|
+
c = tmp[0];
|
|
19
|
+
if (c === '*') {
|
|
20
|
+
keys.push(c);
|
|
21
|
+
pattern += tmp[1] === '?' ? '(?:/(.*))?' : '/(.*)';
|
|
22
|
+
} else if (c === ':') {
|
|
23
|
+
o = tmp.indexOf('?', 1);
|
|
24
|
+
ext = tmp.indexOf('.', 1);
|
|
25
|
+
keys.push( tmp.substring(1, !!~o ? o : !!~ext ? ext : tmp.length) );
|
|
26
|
+
pattern += !!~o && !~ext ? '(?:/([^/]+?))?' : '/([^/]+?)';
|
|
27
|
+
if (!!~ext) pattern += (!!~o ? '?' : '') + '\\' + tmp.substring(ext);
|
|
28
|
+
} else {
|
|
29
|
+
pattern += '/' + tmp;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return {
|
|
34
|
+
keys: keys,
|
|
35
|
+
pattern: new RegExp('^' + pattern + (loose ? '(?=$|\/)' : '\/?$'), 'i')
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const MAP = {
|
|
40
|
+
"": 0,
|
|
41
|
+
GET: 1,
|
|
42
|
+
HEAD: 2,
|
|
43
|
+
PATCH: 3,
|
|
44
|
+
OPTIONS: 4,
|
|
45
|
+
CONNECT: 5,
|
|
46
|
+
DELETE: 6,
|
|
47
|
+
TRACE: 7,
|
|
48
|
+
POST: 8,
|
|
49
|
+
PUT: 9,
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
class Trouter {
|
|
53
|
+
constructor() {
|
|
54
|
+
this.routes = [];
|
|
55
|
+
|
|
56
|
+
this.all = this.add.bind(this, '');
|
|
57
|
+
this.get = this.add.bind(this, 'GET');
|
|
58
|
+
this.head = this.add.bind(this, 'HEAD');
|
|
59
|
+
this.patch = this.add.bind(this, 'PATCH');
|
|
60
|
+
this.options = this.add.bind(this, 'OPTIONS');
|
|
61
|
+
this.connect = this.add.bind(this, 'CONNECT');
|
|
62
|
+
this.delete = this.add.bind(this, 'DELETE');
|
|
63
|
+
this.trace = this.add.bind(this, 'TRACE');
|
|
64
|
+
this.post = this.add.bind(this, 'POST');
|
|
65
|
+
this.put = this.add.bind(this, 'PUT');
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
use(route, ...fns) {
|
|
69
|
+
let handlers = [].concat.apply([], fns);
|
|
70
|
+
let { keys, pattern } = parse$1(route, true);
|
|
71
|
+
this.routes.push({ keys, pattern, method: '', handlers, midx: MAP[''] });
|
|
72
|
+
return this;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
add(method, route, ...fns) {
|
|
76
|
+
let { keys, pattern } = parse$1(route);
|
|
77
|
+
let handlers = [].concat.apply([], fns);
|
|
78
|
+
this.routes.push({ keys, pattern, method, handlers, midx: MAP[method] });
|
|
79
|
+
return this;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
find(method, url) {
|
|
83
|
+
let midx = MAP[method];
|
|
84
|
+
let isHEAD = (midx === 2);
|
|
85
|
+
let i=0, j=0, k, tmp, arr=this.routes;
|
|
86
|
+
let matches=[], params={}, handlers=[];
|
|
87
|
+
for (; i < arr.length; i++) {
|
|
88
|
+
tmp = arr[i];
|
|
89
|
+
if (tmp.midx === midx || tmp.midx === 0 || (isHEAD && tmp.midx===1) ) {
|
|
90
|
+
if (tmp.keys === false) {
|
|
91
|
+
matches = tmp.pattern.exec(url);
|
|
92
|
+
if (matches === null) continue;
|
|
93
|
+
if (matches.groups !== void 0) for (k in matches.groups) params[k]=matches.groups[k];
|
|
94
|
+
tmp.handlers.length > 1 ? (handlers=handlers.concat(tmp.handlers)) : handlers.push(tmp.handlers[0]);
|
|
95
|
+
} else if (tmp.keys.length > 0) {
|
|
96
|
+
matches = tmp.pattern.exec(url);
|
|
97
|
+
if (matches === null) continue;
|
|
98
|
+
for (j=0; j < tmp.keys.length;) params[tmp.keys[j]]=matches[++j];
|
|
99
|
+
tmp.handlers.length > 1 ? (handlers=handlers.concat(tmp.handlers)) : handlers.push(tmp.handlers[0]);
|
|
100
|
+
} else if (tmp.pattern.test(url)) {
|
|
101
|
+
tmp.handlers.length > 1 ? (handlers=handlers.concat(tmp.handlers)) : handlers.push(tmp.handlers[0]);
|
|
102
|
+
}
|
|
103
|
+
} // else not a match
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return { params, handlers };
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @typedef ParsedURL
|
|
112
|
+
* @type {import('.').ParsedURL}
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @typedef Request
|
|
117
|
+
* @property {string} url
|
|
118
|
+
* @property {ParsedURL} _parsedUrl
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @param {Request} req
|
|
123
|
+
* @returns {ParsedURL|void}
|
|
124
|
+
*/
|
|
125
|
+
function parse(req) {
|
|
126
|
+
let raw = req.url;
|
|
127
|
+
if (raw == null) return;
|
|
128
|
+
|
|
129
|
+
let prev = req._parsedUrl;
|
|
130
|
+
if (prev && prev.raw === raw) return prev;
|
|
131
|
+
|
|
132
|
+
let pathname=raw, search='', query;
|
|
133
|
+
|
|
134
|
+
if (raw.length > 1) {
|
|
135
|
+
let idx = raw.indexOf('?', 1);
|
|
136
|
+
|
|
137
|
+
if (idx !== -1) {
|
|
138
|
+
search = raw.substring(idx);
|
|
139
|
+
pathname = raw.substring(0, idx);
|
|
140
|
+
if (search.length > 1) {
|
|
141
|
+
query = qs.parse(search.substring(1));
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return req._parsedUrl = { pathname, search, query, raw };
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function onError(err, req, res) {
|
|
150
|
+
let code = typeof err.status === 'number' && err.status;
|
|
151
|
+
code = res.statusCode = (code && code >= 100 ? code : 500);
|
|
152
|
+
if (typeof err === 'string' || Buffer.isBuffer(err)) res.end(err);
|
|
153
|
+
else res.end(err.message || http.STATUS_CODES[code]);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const mount = fn => fn instanceof Polka ? fn.attach : fn;
|
|
157
|
+
|
|
158
|
+
class Polka extends Trouter {
|
|
159
|
+
constructor(opts={}) {
|
|
160
|
+
super();
|
|
161
|
+
this.parse = parse;
|
|
162
|
+
this.server = opts.server;
|
|
163
|
+
this.handler = this.handler.bind(this);
|
|
164
|
+
this.onError = opts.onError || onError; // catch-all handler
|
|
165
|
+
this.onNoMatch = opts.onNoMatch || this.onError.bind(null, { status: 404 });
|
|
166
|
+
this.attach = (req, res) => setImmediate(this.handler, req, res);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
use(base, ...fns) {
|
|
170
|
+
if (base === '/') {
|
|
171
|
+
super.use(base, fns.map(mount));
|
|
172
|
+
} else if (typeof base === 'function' || base instanceof Polka) {
|
|
173
|
+
super.use('/', [base, ...fns].map(mount));
|
|
174
|
+
} else {
|
|
175
|
+
super.use(base,
|
|
176
|
+
(req, _, next) => {
|
|
177
|
+
if (typeof base === 'string') {
|
|
178
|
+
let len = base.length;
|
|
179
|
+
base.startsWith('/') || len++;
|
|
180
|
+
req.url = req.url.substring(len) || '/';
|
|
181
|
+
req.path = req.path.substring(len) || '/';
|
|
182
|
+
} else {
|
|
183
|
+
req.url = req.url.replace(base, '') || '/';
|
|
184
|
+
req.path = req.path.replace(base, '') || '/';
|
|
185
|
+
}
|
|
186
|
+
if (req.url.charAt(0) !== '/') {
|
|
187
|
+
req.url = '/' + req.url;
|
|
188
|
+
}
|
|
189
|
+
next();
|
|
190
|
+
},
|
|
191
|
+
fns.map(mount),
|
|
192
|
+
(req, _, next) => {
|
|
193
|
+
req.path = req._parsedUrl.pathname;
|
|
194
|
+
req.url = req.path + req._parsedUrl.search;
|
|
195
|
+
next();
|
|
196
|
+
}
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
return this; // chainable
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
listen() {
|
|
203
|
+
(this.server = this.server || http.createServer()).on('request', this.attach);
|
|
204
|
+
this.server.listen.apply(this.server, arguments);
|
|
205
|
+
return this;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
handler(req, res, next) {
|
|
209
|
+
let info = this.parse(req), path = info.pathname;
|
|
210
|
+
let obj = this.find(req.method, req.path=path);
|
|
211
|
+
|
|
212
|
+
req.url = path + info.search;
|
|
213
|
+
req.originalUrl = req.originalUrl || req.url;
|
|
214
|
+
req.query = info.query || {};
|
|
215
|
+
req.search = info.search;
|
|
216
|
+
req.params = obj.params;
|
|
217
|
+
|
|
218
|
+
if (path.length > 1 && path.indexOf('%', 1) !== -1) {
|
|
219
|
+
for (let k in req.params) {
|
|
220
|
+
try { req.params[k] = decodeURIComponent(req.params[k]); }
|
|
221
|
+
catch (e) { /* malform uri segment */ }
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
let i=0, arr=obj.handlers.concat(this.onNoMatch), len=arr.length;
|
|
226
|
+
let loop = async () => res.finished || (i < len) && arr[i++](req, res, next);
|
|
227
|
+
(next = next || (err => err ? this.onError(err, req, res, next) : loop().catch(next)))(); // init
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
function polka (opts) {
|
|
232
|
+
return new Polka(opts);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
const path = env('SOCKET_PATH', false);
|
|
236
|
+
const host = env('HOST', '0.0.0.0');
|
|
237
|
+
const port = env('PORT', !path && '3000');
|
|
238
|
+
|
|
239
|
+
const shutdown_timeout = parseInt(env('SHUTDOWN_TIMEOUT', '30'));
|
|
240
|
+
const idle_timeout = parseInt(env('IDLE_TIMEOUT', '0'));
|
|
241
|
+
const listen_pid = parseInt(env('LISTEN_PID', '0'));
|
|
242
|
+
const listen_fds = parseInt(env('LISTEN_FDS', '0'));
|
|
243
|
+
// https://www.freedesktop.org/software/systemd/man/latest/sd_listen_fds.html
|
|
244
|
+
const SD_LISTEN_FDS_START = 3;
|
|
245
|
+
|
|
246
|
+
if (listen_pid !== 0 && listen_pid !== process.pid) {
|
|
247
|
+
throw new Error(`received LISTEN_PID ${listen_pid} but current process id is ${process.pid}`);
|
|
248
|
+
}
|
|
249
|
+
if (listen_fds > 1) {
|
|
250
|
+
throw new Error(
|
|
251
|
+
`only one socket is allowed for socket activation, but LISTEN_FDS was set to ${listen_fds}`
|
|
252
|
+
);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
const socket_activation = listen_pid === process.pid && listen_fds === 1;
|
|
256
|
+
|
|
257
|
+
let requests = 0;
|
|
258
|
+
/** @type {NodeJS.Timeout | void} */
|
|
259
|
+
let shutdown_timeout_id;
|
|
260
|
+
/** @type {NodeJS.Timeout | void} */
|
|
261
|
+
let idle_timeout_id;
|
|
262
|
+
|
|
263
|
+
// Initialize the HTTP server here so that we can set properties before starting to listen.
|
|
264
|
+
// Otherwise, polka delays creating the server until listen() is called. Settings these
|
|
265
|
+
// properties after the server has started listening could lead to race conditions.
|
|
266
|
+
const httpServer = http.createServer();
|
|
267
|
+
|
|
268
|
+
const keep_alive_timeout = timeout_env('KEEP_ALIVE_TIMEOUT');
|
|
269
|
+
if (keep_alive_timeout !== undefined) {
|
|
270
|
+
// Convert the keep-alive timeout from seconds to milliseconds (the unit Node.js expects).
|
|
271
|
+
httpServer.keepAliveTimeout = keep_alive_timeout * 1000;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
const headers_timeout = timeout_env('HEADERS_TIMEOUT');
|
|
275
|
+
if (headers_timeout !== undefined) {
|
|
276
|
+
// Convert the headers timeout from seconds to milliseconds (the unit Node.js expects).
|
|
277
|
+
httpServer.headersTimeout = headers_timeout * 1000;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
const server = polka({ server: httpServer }).use(handler);
|
|
281
|
+
|
|
282
|
+
if (socket_activation) {
|
|
283
|
+
server.listen({ fd: SD_LISTEN_FDS_START }, () => {
|
|
284
|
+
console.log(`Listening on file descriptor ${SD_LISTEN_FDS_START}`);
|
|
285
|
+
});
|
|
286
|
+
} else {
|
|
287
|
+
server.listen({ path, host, port }, () => {
|
|
288
|
+
console.log(`Listening on ${path || `http://${host}:${port}`}`);
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/** @param {'SIGINT' | 'SIGTERM' | 'IDLE'} reason */
|
|
293
|
+
function graceful_shutdown(reason) {
|
|
294
|
+
if (shutdown_timeout_id) return;
|
|
295
|
+
|
|
296
|
+
// If a connection was opened with a keep-alive header close() will wait for the connection to
|
|
297
|
+
// time out rather than close it even if it is not handling any requests, so call this first
|
|
298
|
+
httpServer.closeIdleConnections();
|
|
299
|
+
|
|
300
|
+
httpServer.close((error) => {
|
|
301
|
+
// occurs if the server is already closed
|
|
302
|
+
if (error) return;
|
|
303
|
+
|
|
304
|
+
if (shutdown_timeout_id) {
|
|
305
|
+
clearTimeout(shutdown_timeout_id);
|
|
306
|
+
}
|
|
307
|
+
if (idle_timeout_id) {
|
|
308
|
+
clearTimeout(idle_timeout_id);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
// @ts-expect-error custom events cannot be typed
|
|
312
|
+
process.emit('sveltekit:shutdown', reason);
|
|
313
|
+
});
|
|
314
|
+
|
|
315
|
+
shutdown_timeout_id = setTimeout(() => httpServer.closeAllConnections(), shutdown_timeout * 1000);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
httpServer.on(
|
|
319
|
+
'request',
|
|
320
|
+
/** @param {import('node:http').IncomingMessage} req */
|
|
321
|
+
(req) => {
|
|
322
|
+
requests++;
|
|
323
|
+
|
|
324
|
+
if (socket_activation && idle_timeout_id) {
|
|
325
|
+
idle_timeout_id = clearTimeout(idle_timeout_id);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
req.on('close', () => {
|
|
329
|
+
requests--;
|
|
330
|
+
|
|
331
|
+
if (shutdown_timeout_id) {
|
|
332
|
+
// close connections as soon as they become idle, so they don't accept new requests
|
|
333
|
+
httpServer.closeIdleConnections();
|
|
334
|
+
}
|
|
335
|
+
if (requests === 0 && socket_activation && idle_timeout) {
|
|
336
|
+
idle_timeout_id = setTimeout(() => graceful_shutdown('IDLE'), idle_timeout * 1000);
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
);
|
|
341
|
+
|
|
342
|
+
process.on('SIGTERM', graceful_shutdown);
|
|
343
|
+
process.on('SIGINT', graceful_shutdown);
|
|
344
|
+
|
|
345
|
+
export { host, path, port, server };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { e as error } from './index-lhTMmBNn.js';
|
|
2
|
+
import { a as activeSlug, h as loadProject, d as db } from './queries-DGWi-KlP.js';
|
|
3
|
+
import '@libsql/client';
|
|
4
|
+
import 'drizzle-orm/libsql';
|
|
5
|
+
import 'node:path';
|
|
6
|
+
import 'node:os';
|
|
7
|
+
import 'drizzle-orm';
|
|
8
|
+
import 'drizzle-orm/sqlite-core';
|
|
9
|
+
|
|
10
|
+
const load = async () => {
|
|
11
|
+
let slug;
|
|
12
|
+
try {
|
|
13
|
+
slug = activeSlug();
|
|
14
|
+
} catch (err) {
|
|
15
|
+
throw error(500, err.message);
|
|
16
|
+
}
|
|
17
|
+
const project = await loadProject(db(), slug);
|
|
18
|
+
if (!project) {
|
|
19
|
+
throw error(404, `No helm project with slug "${slug}". Did you run any MCP tools yet?`);
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
project: { slug: project.slug, name: project.name }
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var _layout_server_ts = /*#__PURE__*/Object.freeze({
|
|
27
|
+
__proto__: null,
|
|
28
|
+
load: load
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const index = 0;
|
|
32
|
+
let component_cache;
|
|
33
|
+
const component = async () => component_cache ??= (await import('./_layout.svelte-DeOKequ-.js')).default;
|
|
34
|
+
const server_id = "src/routes/+layout.server.ts";
|
|
35
|
+
const imports = ["_app/immutable/nodes/0.HocD0HAQ.js","_app/immutable/chunks/DsiL0ppy.js","_app/immutable/chunks/CjpPs8iz.js","_app/immutable/chunks/Bvgn0Gys.js","_app/immutable/chunks/gQDp4_Ul.js","_app/immutable/chunks/DNLp8810.js","_app/immutable/chunks/bJX5vhEj.js","_app/immutable/chunks/C72aErMY.js","_app/immutable/chunks/DYkFpqG7.js"];
|
|
36
|
+
const stylesheets = ["_app/immutable/assets/0.DPthOi2j.css"];
|
|
37
|
+
const fonts = [];
|
|
38
|
+
|
|
39
|
+
export { component, fonts, imports, index, _layout_server_ts as server, server_id, stylesheets };
|
|
40
|
+
//# sourceMappingURL=0-DUUsxI66.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"0-DUUsxI66.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.server.ts.js","../../../.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["import { error } from \"@sveltejs/kit\";\nimport { a as activeSlug, h as loadProject, d as db } from \"../../chunks/queries.js\";\nconst load = async () => {\n let slug;\n try {\n slug = activeSlug();\n } catch (err) {\n throw error(500, err.message);\n }\n const project = await loadProject(db(), slug);\n if (!project) {\n throw error(404, `No helm project with slug \"${slug}\". Did you run any MCP tools yet?`);\n }\n return {\n project: { slug: project.slug, name: project.name }\n };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/_layout.server.ts.js';\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/+layout.server.ts\";\nexport const imports = [\"_app/immutable/nodes/0.HocD0HAQ.js\",\"_app/immutable/chunks/DsiL0ppy.js\",\"_app/immutable/chunks/CjpPs8iz.js\",\"_app/immutable/chunks/Bvgn0Gys.js\",\"_app/immutable/chunks/gQDp4_Ul.js\",\"_app/immutable/chunks/DNLp8810.js\",\"_app/immutable/chunks/bJX5vhEj.js\",\"_app/immutable/chunks/C72aErMY.js\",\"_app/immutable/chunks/DYkFpqG7.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.DPthOi2j.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;;;;AAEA,MAAM,IAAI,GAAG,YAAY;AACzB,EAAE,IAAI,IAAI;AACV,EAAE,IAAI;AACN,IAAI,IAAI,GAAG,UAAU,EAAE;AACvB,EAAE,CAAC,CAAC,OAAO,GAAG,EAAE;AAChB,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,OAAO,CAAC;AACjC,EAAE;AACF,EAAE,MAAM,OAAO,GAAG,MAAM,WAAW,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC;AAC/C,EAAE,IAAI,CAAC,OAAO,EAAE;AAChB,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,CAAC,2BAA2B,EAAE,IAAI,CAAC,iCAAiC,CAAC,CAAC;AAC3F,EAAE;AACF,EAAE,OAAO;AACT,IAAI,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI;AACrD,GAAG;AACH,CAAC;;;;;;;ACdW,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE;AAElG,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAChV,MAAC,WAAW,GAAG,CAAC,sCAAsC;AACtD,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const index = 1;
|
|
2
|
+
let component_cache;
|
|
3
|
+
const component = async () => component_cache ??= (await import('./error.svelte-DJ3O9Tia.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/1.xo_a-jPh.js","_app/immutable/chunks/DsiL0ppy.js","_app/immutable/chunks/CjpPs8iz.js","_app/immutable/chunks/bJX5vhEj.js","_app/immutable/chunks/C72aErMY.js","_app/immutable/chunks/DYkFpqG7.js"];
|
|
5
|
+
const stylesheets = [];
|
|
6
|
+
const fonts = [];
|
|
7
|
+
|
|
8
|
+
export { component, fonts, imports, index, stylesheets };
|
|
9
|
+
//# sourceMappingURL=1-BDkdOGL6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1-BDkdOGL6.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.xo_a-jPh.js\",\"_app/immutable/chunks/DsiL0ppy.js\",\"_app/immutable/chunks/CjpPs8iz.js\",\"_app/immutable/chunks/bJX5vhEj.js\",\"_app/immutable/chunks/C72aErMY.js\",\"_app/immutable/chunks/DYkFpqG7.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE;AACpG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACpO,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { d as db, h as loadProject, a as activeSlug, l as loadActiveSprint, c as computeSprintMetric, g as loadOpenDebt, i as loadRecentEvents } from './queries-DGWi-KlP.js';
|
|
2
|
+
import '@libsql/client';
|
|
3
|
+
import 'drizzle-orm/libsql';
|
|
4
|
+
import 'node:path';
|
|
5
|
+
import 'node:os';
|
|
6
|
+
import 'drizzle-orm';
|
|
7
|
+
import 'drizzle-orm/sqlite-core';
|
|
8
|
+
|
|
9
|
+
const load = async () => {
|
|
10
|
+
const handle = db();
|
|
11
|
+
const project = await loadProject(handle, activeSlug());
|
|
12
|
+
const activeSprint = await loadActiveSprint(handle, project.id);
|
|
13
|
+
const metric = activeSprint ? await computeSprintMetric(handle, activeSprint) : null;
|
|
14
|
+
const topDebt = await loadOpenDebt(handle, project.id, 5);
|
|
15
|
+
const events = await loadRecentEvents(handle, project.id, 15);
|
|
16
|
+
return {
|
|
17
|
+
project: { id: project.id, name: project.name, slug: project.slug, sprintLengthDays: project.sprintLengthDays },
|
|
18
|
+
activeSprint: activeSprint ? {
|
|
19
|
+
id: activeSprint.id,
|
|
20
|
+
name: activeSprint.name,
|
|
21
|
+
goal: activeSprint.goal,
|
|
22
|
+
startedAt: activeSprint.startedAt,
|
|
23
|
+
status: activeSprint.status
|
|
24
|
+
} : null,
|
|
25
|
+
metric,
|
|
26
|
+
topDebt: topDebt.map((d) => ({
|
|
27
|
+
id: d.id,
|
|
28
|
+
title: d.title,
|
|
29
|
+
severity: d.severity,
|
|
30
|
+
location: d.location,
|
|
31
|
+
openedAt: d.openedAt
|
|
32
|
+
})),
|
|
33
|
+
events: events.map((e) => ({ id: e.id, ts: e.ts, kind: e.kind, summary: e.summary }))
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
var _page_server_ts = /*#__PURE__*/Object.freeze({
|
|
38
|
+
__proto__: null,
|
|
39
|
+
load: load
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
const index = 2;
|
|
43
|
+
let component_cache;
|
|
44
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-DvSQBjcA.js')).default;
|
|
45
|
+
const server_id = "src/routes/+page.server.ts";
|
|
46
|
+
const imports = ["_app/immutable/nodes/2.BwywD4n3.js","_app/immutable/chunks/DsiL0ppy.js","_app/immutable/chunks/CjpPs8iz.js","_app/immutable/chunks/B3NJzl7g.js","_app/immutable/chunks/Bvgn0Gys.js","_app/immutable/chunks/gQDp4_Ul.js"];
|
|
47
|
+
const stylesheets = [];
|
|
48
|
+
const fonts = [];
|
|
49
|
+
|
|
50
|
+
export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
|
|
51
|
+
//# sourceMappingURL=2-BLt1vNET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"2-BLt1vNET.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/2.js"],"sourcesContent":["import { d as db, h as loadProject, a as activeSlug, l as loadActiveSprint, c as computeSprintMetric, g as loadOpenDebt, i as loadRecentEvents } from \"../../chunks/queries.js\";\nconst load = async () => {\n const handle = db();\n const project = await loadProject(handle, activeSlug());\n const activeSprint = await loadActiveSprint(handle, project.id);\n const metric = activeSprint ? await computeSprintMetric(handle, activeSprint) : null;\n const topDebt = await loadOpenDebt(handle, project.id, 5);\n const events = await loadRecentEvents(handle, project.id, 15);\n return {\n project: { id: project.id, name: project.name, slug: project.slug, sprintLengthDays: project.sprintLengthDays },\n activeSprint: activeSprint ? {\n id: activeSprint.id,\n name: activeSprint.name,\n goal: activeSprint.goal,\n startedAt: activeSprint.startedAt,\n status: activeSprint.status\n } : null,\n metric,\n topDebt: topDebt.map((d) => ({\n id: d.id,\n title: d.title,\n severity: d.severity,\n location: d.location,\n openedAt: d.openedAt\n })),\n events: events.map((e) => ({ id: e.id, ts: e.ts, kind: e.kind, summary: e.summary }))\n };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/_page.server.ts.js';\n\nexport const index = 2;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/2.BwywD4n3.js\",\"_app/immutable/chunks/DsiL0ppy.js\",\"_app/immutable/chunks/CjpPs8iz.js\",\"_app/immutable/chunks/B3NJzl7g.js\",\"_app/immutable/chunks/Bvgn0Gys.js\",\"_app/immutable/chunks/gQDp4_Ul.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;;;AACA,MAAM,IAAI,GAAG,YAAY;AACzB,EAAE,MAAM,MAAM,GAAG,EAAE,EAAE;AACrB,EAAE,MAAM,OAAO,GAAG,MAAM,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC;AACzD,EAAE,MAAM,YAAY,GAAG,MAAM,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;AACjE,EAAE,MAAM,MAAM,GAAG,YAAY,GAAG,MAAM,mBAAmB,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,IAAI;AACtF,EAAE,MAAM,OAAO,GAAG,MAAM,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;AAC3D,EAAE,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC;AAC/D,EAAE,OAAO;AACT,IAAI,OAAO,EAAE,EAAE,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,EAAE;AACnH,IAAI,YAAY,EAAE,YAAY,GAAG;AACjC,MAAM,EAAE,EAAE,YAAY,CAAC,EAAE;AACzB,MAAM,IAAI,EAAE,YAAY,CAAC,IAAI;AAC7B,MAAM,IAAI,EAAE,YAAY,CAAC,IAAI;AAC7B,MAAM,SAAS,EAAE,YAAY,CAAC,SAAS;AACvC,MAAM,MAAM,EAAE,YAAY,CAAC;AAC3B,KAAK,GAAG,IAAI;AACZ,IAAI,MAAM;AACV,IAAI,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM;AACjC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE;AACd,MAAM,KAAK,EAAE,CAAC,CAAC,KAAK;AACpB,MAAM,QAAQ,EAAE,CAAC,CAAC,QAAQ;AAC1B,MAAM,QAAQ,EAAE,CAAC,CAAC,QAAQ;AAC1B,MAAM,QAAQ,EAAE,CAAC,CAAC;AAClB,KAAK,CAAC,CAAC;AACP,IAAI,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;AACxF,GAAG;AACH,CAAC;;;;;;;ACzBW,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAkC,CAAC,EAAE;AAEhG,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACpO,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { d as db, h as loadProject, a as activeSlug, b as loadAllDebt } from './queries-DGWi-KlP.js';
|
|
2
|
+
import '@libsql/client';
|
|
3
|
+
import 'drizzle-orm/libsql';
|
|
4
|
+
import 'node:path';
|
|
5
|
+
import 'node:os';
|
|
6
|
+
import 'drizzle-orm';
|
|
7
|
+
import 'drizzle-orm/sqlite-core';
|
|
8
|
+
|
|
9
|
+
const load = async () => {
|
|
10
|
+
const handle = db();
|
|
11
|
+
const project = await loadProject(handle, activeSlug());
|
|
12
|
+
const items = await loadAllDebt(handle, project.id, 500);
|
|
13
|
+
return {
|
|
14
|
+
debt: items.map((d) => ({
|
|
15
|
+
id: d.id,
|
|
16
|
+
title: d.title,
|
|
17
|
+
description: d.description,
|
|
18
|
+
severity: d.severity,
|
|
19
|
+
location: d.location,
|
|
20
|
+
openedAt: d.openedAt,
|
|
21
|
+
closedAt: d.closedAt,
|
|
22
|
+
expiresAt: d.expiresAt
|
|
23
|
+
}))
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
var _page_server_ts = /*#__PURE__*/Object.freeze({
|
|
28
|
+
__proto__: null,
|
|
29
|
+
load: load
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
const index = 3;
|
|
33
|
+
let component_cache;
|
|
34
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-ZUq8J-ew.js')).default;
|
|
35
|
+
const server_id = "src/routes/debt/+page.server.ts";
|
|
36
|
+
const imports = ["_app/immutable/nodes/3.BGY0bNfC.js","_app/immutable/chunks/DsiL0ppy.js","_app/immutable/chunks/CjpPs8iz.js","_app/immutable/chunks/B3NJzl7g.js","_app/immutable/chunks/Bvgn0Gys.js","_app/immutable/chunks/gQDp4_Ul.js"];
|
|
37
|
+
const stylesheets = [];
|
|
38
|
+
const fonts = [];
|
|
39
|
+
|
|
40
|
+
export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
|
|
41
|
+
//# sourceMappingURL=3-B-4sxMk4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"3-B-4sxMk4.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/debt/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/3.js"],"sourcesContent":["import { d as db, h as loadProject, a as activeSlug, b as loadAllDebt } from \"../../../chunks/queries.js\";\nconst load = async () => {\n const handle = db();\n const project = await loadProject(handle, activeSlug());\n const items = await loadAllDebt(handle, project.id, 500);\n return {\n debt: items.map((d) => ({\n id: d.id,\n title: d.title,\n description: d.description,\n severity: d.severity,\n location: d.location,\n openedAt: d.openedAt,\n closedAt: d.closedAt,\n expiresAt: d.expiresAt\n }))\n };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/debt/_page.server.ts.js';\n\nexport const index = 3;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/debt/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/debt/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/3.BGY0bNfC.js\",\"_app/immutable/chunks/DsiL0ppy.js\",\"_app/immutable/chunks/CjpPs8iz.js\",\"_app/immutable/chunks/B3NJzl7g.js\",\"_app/immutable/chunks/Bvgn0Gys.js\",\"_app/immutable/chunks/gQDp4_Ul.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;;;AACA,MAAM,IAAI,GAAG,YAAY;AACzB,EAAE,MAAM,MAAM,GAAG,EAAE,EAAE;AACrB,EAAE,MAAM,OAAO,GAAG,MAAM,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC;AACzD,EAAE,MAAM,KAAK,GAAG,MAAM,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,GAAG,CAAC;AAC1D,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM;AAC5B,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE;AACd,MAAM,KAAK,EAAE,CAAC,CAAC,KAAK;AACpB,MAAM,WAAW,EAAE,CAAC,CAAC,WAAW;AAChC,MAAM,QAAQ,EAAE,CAAC,CAAC,QAAQ;AAC1B,MAAM,QAAQ,EAAE,CAAC,CAAC,QAAQ;AAC1B,MAAM,QAAQ,EAAE,CAAC,CAAC,QAAQ;AAC1B,MAAM,QAAQ,EAAE,CAAC,CAAC,QAAQ;AAC1B,MAAM,SAAS,EAAE,CAAC,CAAC;AACnB,KAAK,CAAC;AACN,GAAG;AACH,CAAC;;;;;;;ACfW,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAuC,CAAC,EAAE;AAErG,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACpO,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { d as db, h as loadProject, a as activeSlug, e as loadDecisions } from './queries-DGWi-KlP.js';
|
|
2
|
+
import '@libsql/client';
|
|
3
|
+
import 'drizzle-orm/libsql';
|
|
4
|
+
import 'node:path';
|
|
5
|
+
import 'node:os';
|
|
6
|
+
import 'drizzle-orm';
|
|
7
|
+
import 'drizzle-orm/sqlite-core';
|
|
8
|
+
|
|
9
|
+
const load = async () => {
|
|
10
|
+
const handle = db();
|
|
11
|
+
const project = await loadProject(handle, activeSlug());
|
|
12
|
+
const items = await loadDecisions(handle, project.id, 100);
|
|
13
|
+
return {
|
|
14
|
+
decisions: items.map((d) => ({
|
|
15
|
+
id: d.id,
|
|
16
|
+
title: d.title,
|
|
17
|
+
context: d.context,
|
|
18
|
+
decision: d.decision,
|
|
19
|
+
status: d.status,
|
|
20
|
+
decidedAt: d.decidedAt
|
|
21
|
+
}))
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
var _page_server_ts = /*#__PURE__*/Object.freeze({
|
|
26
|
+
__proto__: null,
|
|
27
|
+
load: load
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const index = 4;
|
|
31
|
+
let component_cache;
|
|
32
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-BiRjdIbl.js')).default;
|
|
33
|
+
const server_id = "src/routes/decisions/+page.server.ts";
|
|
34
|
+
const imports = ["_app/immutable/nodes/4.C7uIivCS.js","_app/immutable/chunks/DsiL0ppy.js","_app/immutable/chunks/CjpPs8iz.js","_app/immutable/chunks/B3NJzl7g.js","_app/immutable/chunks/Bvgn0Gys.js","_app/immutable/chunks/gQDp4_Ul.js"];
|
|
35
|
+
const stylesheets = [];
|
|
36
|
+
const fonts = [];
|
|
37
|
+
|
|
38
|
+
export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
|
|
39
|
+
//# sourceMappingURL=4-CRZIwHJO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4-CRZIwHJO.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/decisions/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/4.js"],"sourcesContent":["import { d as db, h as loadProject, a as activeSlug, e as loadDecisions } from \"../../../chunks/queries.js\";\nconst load = async () => {\n const handle = db();\n const project = await loadProject(handle, activeSlug());\n const items = await loadDecisions(handle, project.id, 100);\n return {\n decisions: items.map((d) => ({\n id: d.id,\n title: d.title,\n context: d.context,\n decision: d.decision,\n status: d.status,\n decidedAt: d.decidedAt\n }))\n };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/decisions/_page.server.ts.js';\n\nexport const index = 4;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/decisions/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/decisions/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/4.C7uIivCS.js\",\"_app/immutable/chunks/DsiL0ppy.js\",\"_app/immutable/chunks/CjpPs8iz.js\",\"_app/immutable/chunks/B3NJzl7g.js\",\"_app/immutable/chunks/Bvgn0Gys.js\",\"_app/immutable/chunks/gQDp4_Ul.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;;;AACA,MAAM,IAAI,GAAG,YAAY;AACzB,EAAE,MAAM,MAAM,GAAG,EAAE,EAAE;AACrB,EAAE,MAAM,OAAO,GAAG,MAAM,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC;AACzD,EAAE,MAAM,KAAK,GAAG,MAAM,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,GAAG,CAAC;AAC5D,EAAE,OAAO;AACT,IAAI,SAAS,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM;AACjC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE;AACd,MAAM,KAAK,EAAE,CAAC,CAAC,KAAK;AACpB,MAAM,OAAO,EAAE,CAAC,CAAC,OAAO;AACxB,MAAM,QAAQ,EAAE,CAAC,CAAC,QAAQ;AAC1B,MAAM,MAAM,EAAE,CAAC,CAAC,MAAM;AACtB,MAAM,SAAS,EAAE,CAAC,CAAC;AACnB,KAAK,CAAC;AACN,GAAG;AACH,CAAC;;;;;;;ACbW,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAA4C,CAAC,EAAE;AAE1G,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACpO,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { d as db, h as loadProject, a as activeSlug, k as loadSprintMetrics } from './queries-DGWi-KlP.js';
|
|
2
|
+
import '@libsql/client';
|
|
3
|
+
import 'drizzle-orm/libsql';
|
|
4
|
+
import 'node:path';
|
|
5
|
+
import 'node:os';
|
|
6
|
+
import 'drizzle-orm';
|
|
7
|
+
import 'drizzle-orm/sqlite-core';
|
|
8
|
+
|
|
9
|
+
const load = async () => {
|
|
10
|
+
const handle = db();
|
|
11
|
+
const project = await loadProject(handle, activeSlug());
|
|
12
|
+
const metrics = await loadSprintMetrics(handle, project.id);
|
|
13
|
+
return { metrics };
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
var _page_server_ts = /*#__PURE__*/Object.freeze({
|
|
17
|
+
__proto__: null,
|
|
18
|
+
load: load
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const index = 5;
|
|
22
|
+
let component_cache;
|
|
23
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-C_NO0kPy.js')).default;
|
|
24
|
+
const server_id = "src/routes/sprints/+page.server.ts";
|
|
25
|
+
const imports = ["_app/immutable/nodes/5.YszfczJW.js","_app/immutable/chunks/DsiL0ppy.js","_app/immutable/chunks/CjpPs8iz.js","_app/immutable/chunks/B3NJzl7g.js","_app/immutable/chunks/Bvgn0Gys.js","_app/immutable/chunks/gQDp4_Ul.js","_app/immutable/chunks/DNLp8810.js"];
|
|
26
|
+
const stylesheets = [];
|
|
27
|
+
const fonts = [];
|
|
28
|
+
|
|
29
|
+
export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
|
|
30
|
+
//# sourceMappingURL=5-CwiVOtz6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"5-CwiVOtz6.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/sprints/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/5.js"],"sourcesContent":["import { d as db, h as loadProject, a as activeSlug, k as loadSprintMetrics } from \"../../../chunks/queries.js\";\nconst load = async () => {\n const handle = db();\n const project = await loadProject(handle, activeSlug());\n const metrics = await loadSprintMetrics(handle, project.id);\n return { metrics };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/sprints/_page.server.ts.js';\n\nexport const index = 5;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/sprints/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/sprints/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/5.YszfczJW.js\",\"_app/immutable/chunks/DsiL0ppy.js\",\"_app/immutable/chunks/CjpPs8iz.js\",\"_app/immutable/chunks/B3NJzl7g.js\",\"_app/immutable/chunks/Bvgn0Gys.js\",\"_app/immutable/chunks/gQDp4_Ul.js\",\"_app/immutable/chunks/DNLp8810.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;;;AACA,MAAM,IAAI,GAAG,YAAY;AACzB,EAAE,MAAM,MAAM,GAAG,EAAE,EAAE;AACrB,EAAE,MAAM,OAAO,GAAG,MAAM,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC;AACzD,EAAE,MAAM,OAAO,GAAG,MAAM,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;AAC7D,EAAE,OAAO,EAAE,OAAO,EAAE;AACpB,CAAC;;;;;;;ACJW,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAA0C,CAAC,EAAE;AAExG,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACxQ,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { e as error } from './index-lhTMmBNn.js';
|
|
2
|
+
import { d as db, h as loadProject, a as activeSlug, j as loadSprintById, c as computeSprintMetric, m as loadStoriesInSprint, f as loadEventsForSprint } from './queries-DGWi-KlP.js';
|
|
3
|
+
import '@libsql/client';
|
|
4
|
+
import 'drizzle-orm/libsql';
|
|
5
|
+
import 'node:path';
|
|
6
|
+
import 'node:os';
|
|
7
|
+
import 'drizzle-orm';
|
|
8
|
+
import 'drizzle-orm/sqlite-core';
|
|
9
|
+
|
|
10
|
+
const load = async ({ params }) => {
|
|
11
|
+
const handle = db();
|
|
12
|
+
await loadProject(handle, activeSlug());
|
|
13
|
+
const sprint = await loadSprintById(handle, params.id);
|
|
14
|
+
if (!sprint) throw error(404, `Sprint ${params.id} not found`);
|
|
15
|
+
const metric = await computeSprintMetric(handle, sprint);
|
|
16
|
+
const stories = await loadStoriesInSprint(handle, sprint.id);
|
|
17
|
+
const events = await loadEventsForSprint(handle, sprint.id, 100);
|
|
18
|
+
return {
|
|
19
|
+
sprint: {
|
|
20
|
+
id: sprint.id,
|
|
21
|
+
name: sprint.name,
|
|
22
|
+
goal: sprint.goal,
|
|
23
|
+
status: sprint.status,
|
|
24
|
+
startedAt: sprint.startedAt,
|
|
25
|
+
endedAt: sprint.endedAt
|
|
26
|
+
},
|
|
27
|
+
metric,
|
|
28
|
+
stories: stories.map((s) => ({
|
|
29
|
+
id: s.id,
|
|
30
|
+
title: s.title,
|
|
31
|
+
status: s.status,
|
|
32
|
+
size: s.size,
|
|
33
|
+
priority: s.priority
|
|
34
|
+
})),
|
|
35
|
+
events: events.map((e) => ({ id: e.id, ts: e.ts, kind: e.kind, summary: e.summary }))
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
var _page_server_ts = /*#__PURE__*/Object.freeze({
|
|
40
|
+
__proto__: null,
|
|
41
|
+
load: load
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
const index = 6;
|
|
45
|
+
let component_cache;
|
|
46
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-BGS-bwra.js')).default;
|
|
47
|
+
const server_id = "src/routes/sprints/[id]/+page.server.ts";
|
|
48
|
+
const imports = ["_app/immutable/nodes/6.7fhKcbBK.js","_app/immutable/chunks/DsiL0ppy.js","_app/immutable/chunks/CjpPs8iz.js","_app/immutable/chunks/B3NJzl7g.js","_app/immutable/chunks/Bvgn0Gys.js","_app/immutable/chunks/gQDp4_Ul.js"];
|
|
49
|
+
const stylesheets = [];
|
|
50
|
+
const fonts = [];
|
|
51
|
+
|
|
52
|
+
export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
|
|
53
|
+
//# sourceMappingURL=6-mID2_gX2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"6-mID2_gX2.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/sprints/_id_/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/6.js"],"sourcesContent":["import { error } from \"@sveltejs/kit\";\nimport { d as db, h as loadProject, a as activeSlug, j as loadSprintById, c as computeSprintMetric, m as loadStoriesInSprint, f as loadEventsForSprint } from \"../../../../chunks/queries.js\";\nconst load = async ({ params }) => {\n const handle = db();\n await loadProject(handle, activeSlug());\n const sprint = await loadSprintById(handle, params.id);\n if (!sprint) throw error(404, `Sprint ${params.id} not found`);\n const metric = await computeSprintMetric(handle, sprint);\n const stories = await loadStoriesInSprint(handle, sprint.id);\n const events = await loadEventsForSprint(handle, sprint.id, 100);\n return {\n sprint: {\n id: sprint.id,\n name: sprint.name,\n goal: sprint.goal,\n status: sprint.status,\n startedAt: sprint.startedAt,\n endedAt: sprint.endedAt\n },\n metric,\n stories: stories.map((s) => ({\n id: s.id,\n title: s.title,\n status: s.status,\n size: s.size,\n priority: s.priority\n })),\n events: events.map((e) => ({ id: e.id, ts: e.ts, kind: e.kind, summary: e.summary }))\n };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/sprints/_id_/_page.server.ts.js';\n\nexport const index = 6;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/sprints/_id_/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/sprints/[id]/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/6.7fhKcbBK.js\",\"_app/immutable/chunks/DsiL0ppy.js\",\"_app/immutable/chunks/CjpPs8iz.js\",\"_app/immutable/chunks/B3NJzl7g.js\",\"_app/immutable/chunks/Bvgn0Gys.js\",\"_app/immutable/chunks/gQDp4_Ul.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;;;;AAEA,MAAM,IAAI,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK;AACnC,EAAE,MAAM,MAAM,GAAG,EAAE,EAAE;AACrB,EAAE,MAAM,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC;AACzC,EAAE,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;AACxD,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;AAChE,EAAE,MAAM,MAAM,GAAG,MAAM,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1D,EAAE,MAAM,OAAO,GAAG,MAAM,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;AAC9D,EAAE,MAAM,MAAM,GAAG,MAAM,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC;AAClE,EAAE,OAAO;AACT,IAAI,MAAM,EAAE;AACZ,MAAM,EAAE,EAAE,MAAM,CAAC,EAAE;AACnB,MAAM,IAAI,EAAE,MAAM,CAAC,IAAI;AACvB,MAAM,IAAI,EAAE,MAAM,CAAC,IAAI;AACvB,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM;AAC3B,MAAM,SAAS,EAAE,MAAM,CAAC,SAAS;AACjC,MAAM,OAAO,EAAE,MAAM,CAAC;AACtB,KAAK;AACL,IAAI,MAAM;AACV,IAAI,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM;AACjC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE;AACd,MAAM,KAAK,EAAE,CAAC,CAAC,KAAK;AACpB,MAAM,MAAM,EAAE,CAAC,CAAC,MAAM;AACtB,MAAM,IAAI,EAAE,CAAC,CAAC,IAAI;AAClB,MAAM,QAAQ,EAAE,CAAC,CAAC;AAClB,KAAK,CAAC,CAAC;AACP,IAAI,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;AACxF,GAAG;AACH,CAAC;;;;;;;AC3BW,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAA+C,CAAC,EAAE;AAE7G,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACpO,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|