github-reporadar 0.12.0 → 0.12.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.
|
@@ -83,7 +83,7 @@ Confluenceとの齟齬 (${r.length}) ページを書いたあとに実装が進
|
|
|
83
83
|
${o.join(`
|
|
84
84
|
`)}`]}const Cg=40,VS=30;function _g(a,i){return{id:a,startedAt:i,updatedAt:i,messages:[]}}function Tg(a,i,u){const r=i.filter(o=>o.content.trim()!=="");return{...a,updatedAt:u,messages:r}}function QS(a){var u;const i=(u=a.messages.find(r=>r.role==="user"))==null?void 0:u.content.split(`
|
|
85
85
|
`)[0].trim();return i?i.length>Cg?i.slice(0,Cg):i:a.startedAt.slice(0,10)}function wo(a,i=VS){return a.filter(u=>u.messages.length>0).sort((u,r)=>u.updatedAt<r.updatedAt?1:u.updatedAt>r.updatedAt?-1:0).slice(0,i)}const KS={user:"あなた",assistant:"壁打ち"};function ZS(a){const i=["# 壁打ちのログ",""];for(const u of wo(a)){const r=`${u.updatedAt.slice(0,10)} ${u.updatedAt.slice(11,16)}`;i.push(`## ${r} ${QS(u)}`,"");for(const o of u.messages){const d=KS[o.role];d&&i.push(`### ${d}`,"",o.content.trim(),"")}}return i.join(`
|
|
86
|
-
`)}const JS="gpt-
|
|
86
|
+
`)}const JS="gpt-6-luna",$S="https://api.openai.com/v1/chat/completions";function WS(a){const i=a.replace(/\r\n/g,`
|
|
87
87
|
`).split(`
|
|
88
88
|
|
|
89
89
|
`),u=i.pop()??"";return{events:i.filter(r=>r.trim()!==""),rest:u}}function FS(a){var i,u,r;for(const o of a.split(`
|
package/dist/index.html
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap"
|
|
17
17
|
rel="stylesheet"
|
|
18
18
|
/>
|
|
19
|
-
<script type="module" crossorigin src="/assets/index-
|
|
19
|
+
<script type="module" crossorigin src="/assets/index-DgyqPY8M.js"></script>
|
|
20
20
|
<link rel="stylesheet" crossorigin href="/assets/index-BkaUjLCS.css">
|
|
21
21
|
</head>
|
|
22
22
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "github-reporadar",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "自分のGitHub活動を一晩ぶん眺める計器盤。npx github-reporadarでローカルに開く",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -25,6 +25,22 @@
|
|
|
25
25
|
"url": "git+https://github.com/BoxPistols/github-reporadar.git"
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
28
|
+
"scripts": {
|
|
29
|
+
"dev": "vite",
|
|
30
|
+
"build": "tsc -b && vite build",
|
|
31
|
+
"preview": "vite preview",
|
|
32
|
+
"sync": "tsx scripts/sync.ts",
|
|
33
|
+
"brief": "tsx scripts/brief.ts",
|
|
34
|
+
"test": "vitest run",
|
|
35
|
+
"e2e": "pnpm build && node e2e/persist.mjs",
|
|
36
|
+
"typecheck": "tsc -b --noEmit",
|
|
37
|
+
"verify": "vitest run && tsc -b --noEmit && vite build",
|
|
38
|
+
"design": "vite build && node scripts/design/fontsize.mjs && node scripts/design/contrast.mjs && node scripts/design/axe.mjs",
|
|
39
|
+
"design:lint": "node scripts/design/lint.mjs",
|
|
40
|
+
"build:cli": "vite build --config vite.cli.config.ts",
|
|
41
|
+
"cli": "tsx scripts/cli/main.ts",
|
|
42
|
+
"prepublishOnly": "pnpm verify && rm -rf dist/data && pnpm build:cli"
|
|
43
|
+
},
|
|
28
44
|
"dependencies": {
|
|
29
45
|
"@dnd-kit/core": "^6.3.1",
|
|
30
46
|
"@dnd-kit/sortable": "^10.0.0",
|
|
@@ -50,20 +66,5 @@
|
|
|
50
66
|
"typescript": "^5.8.0",
|
|
51
67
|
"vite": "^6.3.0",
|
|
52
68
|
"vitest": "^3.1.0"
|
|
53
|
-
},
|
|
54
|
-
"scripts": {
|
|
55
|
-
"dev": "vite",
|
|
56
|
-
"build": "tsc -b && vite build",
|
|
57
|
-
"preview": "vite preview",
|
|
58
|
-
"sync": "tsx scripts/sync.ts",
|
|
59
|
-
"brief": "tsx scripts/brief.ts",
|
|
60
|
-
"test": "vitest run",
|
|
61
|
-
"e2e": "pnpm build && node e2e/persist.mjs",
|
|
62
|
-
"typecheck": "tsc -b --noEmit",
|
|
63
|
-
"verify": "vitest run && tsc -b --noEmit && vite build",
|
|
64
|
-
"design": "vite build && node scripts/design/fontsize.mjs && node scripts/design/contrast.mjs && node scripts/design/axe.mjs",
|
|
65
|
-
"design:lint": "node scripts/design/lint.mjs",
|
|
66
|
-
"build:cli": "vite build --config vite.cli.config.ts",
|
|
67
|
-
"cli": "tsx scripts/cli/main.ts"
|
|
68
69
|
}
|
|
69
|
-
}
|
|
70
|
+
}
|