@litfamily/litcodex 1.0.22 → 1.0.24
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/README-Ko-KR.md +9 -9
- package/README.md +9 -9
- package/dist/install/doctor-render.js +5 -0
- package/dist/install/doctor.js +9 -0
- package/dist/install/generated-skill-payload-hashes.d.ts +12 -12
- package/dist/install/generated-skill-payload-hashes.js +12 -12
- package/dist/install/types.d.ts +4 -0
- package/marketplace/plugins/litcodex/.codex-plugin/plugin.json +1 -1
- package/marketplace/plugins/litcodex/.mcp.json +9 -1
- package/marketplace/plugins/litcodex/components/auto-update/package.json +1 -1
- package/marketplace/plugins/litcodex/components/comment-checker/package.json +1 -1
- package/marketplace/plugins/litcodex/components/git-bash/package.json +1 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-html.d.ts +1 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-html.js +352 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-mcp.d.ts +14 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-mcp.js +162 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-server.d.ts +2 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-server.js +38 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-status.d.ts +45 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-status.js +367 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/cli.js +5 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/hook-cli.d.ts +17 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/hook-cli.js +75 -2
- package/marketplace/plugins/litcodex/components/lit-loop/dist/live-step.d.ts +67 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/live-step.js +305 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/workflow-map.d.ts +30 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/workflow-map.js +113 -45
- package/marketplace/plugins/litcodex/components/lit-loop/package.json +1 -1
- package/marketplace/plugins/litcodex/components/lsp/package.json +1 -1
- package/marketplace/plugins/litcodex/components/rules/package.json +1 -1
- package/marketplace/plugins/litcodex/components/start-work-continuation/package.json +1 -1
- package/marketplace/plugins/litcodex/components/telemetry/package.json +1 -1
- package/marketplace/plugins/litcodex/components/wikify-knowledge/package.json +1 -1
- package/marketplace/plugins/litcodex/hooks/hooks.json +20 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/SKILL.md +2 -2
- package/marketplace/plugins/litcodex/skills/lit-docx/references/examples/01-report-ko.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/taxonomy.md +2 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/rules.json +52 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/SKILL.md +2 -2
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/authoring-guide.md +3 -4
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/data-display-cookbook.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/density-and-fill.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/04-research-talk-paper-en.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/layout-families.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/paper.md +2 -2
- package/marketplace/plugins/litcodex/skills/lit-pptx/specs/markdown-slide-spec-v1.md +1 -1
- package/node_modules/@litcodex/lit-loop/dist/card-html.d.ts +1 -0
- package/node_modules/@litcodex/lit-loop/dist/card-html.js +352 -0
- package/node_modules/@litcodex/lit-loop/dist/card-mcp.d.ts +14 -0
- package/node_modules/@litcodex/lit-loop/dist/card-mcp.js +162 -0
- package/node_modules/@litcodex/lit-loop/dist/card-server.d.ts +2 -0
- package/node_modules/@litcodex/lit-loop/dist/card-server.js +38 -0
- package/node_modules/@litcodex/lit-loop/dist/card-status.d.ts +45 -0
- package/node_modules/@litcodex/lit-loop/dist/card-status.js +367 -0
- package/node_modules/@litcodex/lit-loop/dist/cli.js +5 -1
- package/node_modules/@litcodex/lit-loop/dist/hook-cli.d.ts +17 -0
- package/node_modules/@litcodex/lit-loop/dist/hook-cli.js +75 -2
- package/node_modules/@litcodex/lit-loop/dist/live-step.d.ts +67 -0
- package/node_modules/@litcodex/lit-loop/dist/live-step.js +305 -0
- package/node_modules/@litcodex/lit-loop/dist/workflow-map.d.ts +30 -0
- package/node_modules/@litcodex/lit-loop/dist/workflow-map.js +113 -45
- package/node_modules/@litcodex/lit-loop/package.json +1 -1
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/taxonomy.md +2 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/rules.json +52 -1
- package/package.json +2 -2
- package/readme-assets/badge-version.svg +1 -1
package/README-Ko-KR.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.
|
|
1
|
+
<p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.24/readme-assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.24/readme-assets/cover-motion.webp" width="100%" alt="LitFamily 모션 커버: 다섯 로봇 패널이 차례로 켜지고, LitCodex 로봇의 눈과 테두리가 빛난 뒤 LITFAMILY와 KEEP THE WORK LIT. 문구가 밝아지는 영상" /></picture></p>
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<a href="#설치"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.
|
|
5
|
-
<a href="https://github.com/wjgoarxiv/litcodex/blob/main/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.
|
|
4
|
+
<a href="#설치"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.24/readme-assets/badge-version.svg" alt="1.0.24" /></a>
|
|
5
|
+
<a href="https://github.com/wjgoarxiv/litcodex/blob/main/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.24/readme-assets/badge-license.svg" alt="MIT license" /></a>
|
|
6
6
|
</p>
|
|
7
7
|
|
|
8
8
|
<p align="center">
|
|
9
|
-
<a href="https://github.com/wjgoarxiv/litcodex/blob/main/docs/usage-Ko-KR.md"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.
|
|
9
|
+
<a href="https://github.com/wjgoarxiv/litcodex/blob/main/docs/usage-Ko-KR.md"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.24/readme-assets/lucide-book-open.svg" width="16" alt="" /> 문서</a> <a href="#설치">설치</a> <a href="https://github.com/wjgoarxiv/litcodex/blob/main/docs/assets/readme/ignition-film.mp4"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.24/readme-assets/lucide-play.svg" width="16" alt="" /> Ignition</a> <a href="https://github.com/wjgoarxiv/litcodex/blob/main/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.24/readme-assets/lucide-shield-check.svg" width="16" alt="" /> MIT</a>
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
12
|
# LitCodex
|
|
@@ -23,12 +23,12 @@ Codex CLI 플러그인입니다.
|
|
|
23
23
|
Node.js 22 이상과 Codex CLI가 필요합니다.
|
|
24
24
|
|
|
25
25
|
```sh
|
|
26
|
-
npm exec --yes --package @litfamily/litcodex@1.0.
|
|
26
|
+
npm exec --yes --package @litfamily/litcodex@1.0.24 -- litcodex install
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
설치기는 어떤 모델이 이끌지, 어떤 모델이 거들지, 답변 스타일은 무엇으로 할지 묻고, 쓰려는 내용을 먼저 보여 준 뒤
|
|
30
30
|
`~/.codex/config.toml`에서 자기가 관리하는 항목만 고칩니다. 계획만 먼저 보려면
|
|
31
|
-
`npm exec --yes --package @litfamily/litcodex@1.0.
|
|
31
|
+
`npm exec --yes --package @litfamily/litcodex@1.0.24 -- litcodex --dry-run install`을 실행하고, 묻는 단계 없이
|
|
32
32
|
설치하려면 `install` 뒤에 `--yes`를 붙이세요.
|
|
33
33
|
|
|
34
34
|
```sh
|
|
@@ -39,7 +39,7 @@ litcodex install
|
|
|
39
39
|
전역으로 설치하면 영상 스킬이 쓸 도구를 미리 준비하느라 버전이 고정된 파일 몇 개를 내려받습니다. 무엇을 받는지와
|
|
40
40
|
건너뛰는 방법은 [설치 안내](https://github.com/wjgoarxiv/litcodex/blob/main/docs/install-Ko-KR.md#전역-명령으로-쓰기)에 있습니다.
|
|
41
41
|
|
|
42
|
-
> 전역 설치가 없다면 `npm exec --yes --package @litfamily/litcodex@1.0.
|
|
42
|
+
> 전역 설치가 없다면 `npm exec --yes --package @litfamily/litcodex@1.0.24 -- litcodex <command>` 형식을 사용하세요.
|
|
43
43
|
|
|
44
44
|
## 첫 작업
|
|
45
45
|
|
|
@@ -91,7 +91,7 @@ lit 회원가입 폼에 입력 검증을 추가해줘
|
|
|
91
91
|
## 확인, 문제 해결, 제거
|
|
92
92
|
|
|
93
93
|
```sh
|
|
94
|
-
npm exec --yes --package @litfamily/litcodex@1.0.
|
|
94
|
+
npm exec --yes --package @litfamily/litcodex@1.0.24 -- litcodex doctor
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
`litcodex doctor`는 등록·훅·설정·호스트 기능을, `litcodex loop doctor`는 현재 프로젝트의 루프 상태를 확인합니다.
|
|
@@ -99,7 +99,7 @@ npm exec --yes --package @litfamily/litcodex@1.0.22 -- litcodex doctor
|
|
|
99
99
|
[문제 해결](https://github.com/wjgoarxiv/litcodex/blob/main/README-Ko-KR.md#문제-해결)에 있습니다.
|
|
100
100
|
|
|
101
101
|
```sh
|
|
102
|
-
npm exec --yes --package @litfamily/litcodex@1.0.
|
|
102
|
+
npm exec --yes --package @litfamily/litcodex@1.0.24 -- litcodex uninstall
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
플러그인과 LitCodex가 관리하는 설정을 지우고, 관련 없는 설정은 그대로 둡니다.
|
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.
|
|
1
|
+
<p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.24/readme-assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.24/readme-assets/cover-motion.webp" width="100%" alt="LitFamily motion cover: five armored robots power on one by one, the LitCodex robot wakes with glowing eyes and a lit frame, then LITFAMILY and KEEP THE WORK LIT. light up." /></picture></p>
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<a href="#install"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.
|
|
5
|
-
<a href="https://github.com/wjgoarxiv/litcodex/blob/main/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.
|
|
4
|
+
<a href="#install"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.24/readme-assets/badge-version.svg" alt="1.0.24" /></a>
|
|
5
|
+
<a href="https://github.com/wjgoarxiv/litcodex/blob/main/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.24/readme-assets/badge-license.svg" alt="MIT license" /></a>
|
|
6
6
|
</p>
|
|
7
7
|
|
|
8
8
|
<p align="center">
|
|
9
|
-
<a href="https://github.com/wjgoarxiv/litcodex/blob/main/docs/usage.md"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.
|
|
9
|
+
<a href="https://github.com/wjgoarxiv/litcodex/blob/main/docs/usage.md"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.24/readme-assets/lucide-book-open.svg" width="16" alt="" /> Docs</a> <a href="#install">Install</a> <a href="https://github.com/wjgoarxiv/litcodex/blob/main/docs/assets/readme/ignition-film.mp4"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.24/readme-assets/lucide-play.svg" width="16" alt="" /> Ignition</a> <a href="https://github.com/wjgoarxiv/litcodex/blob/main/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.24/readme-assets/lucide-shield-check.svg" width="16" alt="" /> MIT</a>
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
12
|
# LitCodex
|
|
@@ -23,12 +23,12 @@ and hands unfinished work to the next session.
|
|
|
23
23
|
You need Node.js 22 or later and Codex CLI.
|
|
24
24
|
|
|
25
25
|
```sh
|
|
26
|
-
npm exec --yes --package @litfamily/litcodex@1.0.
|
|
26
|
+
npm exec --yes --package @litfamily/litcodex@1.0.24 -- litcodex install
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
The installer asks which model leads, which model helps and which output style you like, shows what it is
|
|
30
30
|
about to write, and changes only the keys it manages in `~/.codex/config.toml`. To see the plan first, run
|
|
31
|
-
`npm exec --yes --package @litfamily/litcodex@1.0.
|
|
31
|
+
`npm exec --yes --package @litfamily/litcodex@1.0.24 -- litcodex --dry-run install`. To skip the
|
|
32
32
|
questions, add `--yes` after `install`.
|
|
33
33
|
|
|
34
34
|
```sh
|
|
@@ -40,7 +40,7 @@ A global install also gets the video skill's tools ready with a few pinned downl
|
|
|
40
40
|
[install guide](https://github.com/wjgoarxiv/litcodex/blob/main/docs/install.md#a-global-command) lists them
|
|
41
41
|
and shows how to skip them.
|
|
42
42
|
|
|
43
|
-
> Without a global install, use `npm exec --yes --package @litfamily/litcodex@1.0.
|
|
43
|
+
> Without a global install, use `npm exec --yes --package @litfamily/litcodex@1.0.24 -- litcodex <command>`.
|
|
44
44
|
|
|
45
45
|
## First task
|
|
46
46
|
|
|
@@ -96,7 +96,7 @@ Pick any skill in the Codex skill picker or mention it by scoped name, such as `
|
|
|
96
96
|
## Check, fix, remove
|
|
97
97
|
|
|
98
98
|
```sh
|
|
99
|
-
npm exec --yes --package @litfamily/litcodex@1.0.
|
|
99
|
+
npm exec --yes --package @litfamily/litcodex@1.0.24 -- litcodex doctor
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
`litcodex doctor` checks registration, hooks, config and host capabilities; `litcodex loop doctor` checks
|
|
@@ -104,7 +104,7 @@ the current project's loop state. If `lit` does nothing, run doctor and check th
|
|
|
104
104
|
in Codex. More fixes are under [troubleshooting](https://github.com/wjgoarxiv/litcodex#troubleshooting).
|
|
105
105
|
|
|
106
106
|
```sh
|
|
107
|
-
npm exec --yes --package @litfamily/litcodex@1.0.
|
|
107
|
+
npm exec --yes --package @litfamily/litcodex@1.0.24 -- litcodex uninstall
|
|
108
108
|
```
|
|
109
109
|
|
|
110
110
|
This removes the plugin and the config LitCodex manages, and leaves your other settings alone.
|
|
@@ -29,6 +29,11 @@ export function renderDoctorText(report) {
|
|
|
29
29
|
]),
|
|
30
30
|
...(report.jevSkillHint === undefined ? [] : [` Jev skill hint: ${report.jevSkillHint}`]),
|
|
31
31
|
...(report.autoHandoff === undefined ? [] : [` automatic handoff: ${autoHandoffLine(report.autoHandoff)}`]),
|
|
32
|
+
...(report.statusCard === undefined
|
|
33
|
+
? []
|
|
34
|
+
: [
|
|
35
|
+
` card: Codex desktop app only; needs the app's MCP Apps feature${report.statusCard.serverInstalled ? "" : " (server missing)"}`,
|
|
36
|
+
]),
|
|
32
37
|
` concurrency: ${capabilityText(report.capabilities.concurrency)}`,
|
|
33
38
|
` probe-only explicit context/auto-compaction override: ${capabilityText(report.capabilities.autoCompaction)}`,
|
|
34
39
|
];
|
package/dist/install/doctor.js
CHANGED
|
@@ -21,6 +21,8 @@ import { canonicalMarketplacePath, LITCODEX_MARKETPLACE, managedMarketplaceRoot
|
|
|
21
21
|
import { probeSkillCatalogPayload } from "./skill-catalog.js";
|
|
22
22
|
export { renderDoctorText } from "./doctor-render.js";
|
|
23
23
|
const PACKAGE_VERSION = createRequire(import.meta.url)("../../package.json").version;
|
|
24
|
+
/** The LIT card MCP server inside the installed plugin; only the Codex desktop app draws the card. */
|
|
25
|
+
const CARD_SERVER_RELPATH = join("components", "lit-loop", "dist", "card-server.js");
|
|
24
26
|
const MAX_DIAGNOSTIC_FAMILIES = 2;
|
|
25
27
|
const MAX_DIAGNOSTIC_PATHS = 2;
|
|
26
28
|
const MAX_DIAGNOSTIC_PATH_LENGTH = 120;
|
|
@@ -154,6 +156,12 @@ export function runDoctor(deps) {
|
|
|
154
156
|
else if (authMode === "unknown") {
|
|
155
157
|
warnings.push("Codex auth mode could not be determined (auth.json absent or unrecognized). ChatGPT-subscription accounts may fail with the public gpt-5.6 alias; run `litcodex install` after authenticating.");
|
|
156
158
|
}
|
|
159
|
+
const statusCard = {
|
|
160
|
+
serverInstalled: deps.fs.existsSync(join(managedRoot, "plugins", "litcodex", CARD_SERVER_RELPATH)),
|
|
161
|
+
};
|
|
162
|
+
if (pluginInstalled && !statusCard.serverInstalled) {
|
|
163
|
+
warnings.push("LIT card server is missing from the installed plugin. Run `litcodex install`.");
|
|
164
|
+
}
|
|
157
165
|
const autoUpdate = readAutoUpdateReport(deps.env);
|
|
158
166
|
if (autoUpdate.status === "unknown-state") {
|
|
159
167
|
issues.push(`Foreground auto-update rollback failed; installation state is unknown. Inspect ${autoUpdate.receiptPath} and reinstall the exact stable package.`);
|
|
@@ -177,6 +185,7 @@ export function runDoctor(deps) {
|
|
|
177
185
|
jevSkillHint: jevSkillHintState(deps.env),
|
|
178
186
|
autoHandoff: autoHandoffWithWarnings(deps, codexHome, warnings),
|
|
179
187
|
tuiSuggestion: inspectTuiSuggestion(deps.fs, join(codexHome, "config.toml")),
|
|
188
|
+
statusCard,
|
|
180
189
|
issues,
|
|
181
190
|
warnings,
|
|
182
191
|
};
|
|
@@ -283,8 +283,8 @@ export declare const HUMANIZER_PAYLOAD_HASHES: {
|
|
|
283
283
|
readonly "references/ko-patterns.md": "cf9a3e74db9c7aa83a5cd27b08bed409005bc487a96cab33935799a2c6c2e1ea";
|
|
284
284
|
readonly "references/prompt-injection-handling.md": "89a594faf03083785375afa20e179d95c12379539cacb36a3272b13bae2990b7";
|
|
285
285
|
readonly "references/rewrite-playbook.md": "3b0bae2e24e9aada73ea527402e80c25a9bf471b65871248858496f1a2fe8ffb";
|
|
286
|
-
readonly "references/taxonomy.md": "
|
|
287
|
-
readonly "rules.json": "
|
|
286
|
+
readonly "references/taxonomy.md": "7f8903fd4853392f95a9341f2704d964fe5bd5a7ca593efe476419eac6a46624";
|
|
287
|
+
readonly "rules.json": "38df7471c10ce20e62f562d30869d0b79350de98ae38edbf7f181baa171ed29b";
|
|
288
288
|
readonly "scripts/core.mjs": "59d760512e4d69041e630eef2d7e0c17d1f1cde8e2284d75a2dc86334e1b19b4";
|
|
289
289
|
readonly "scripts/detect.mjs": "183446709f861299d088af4587fafb808adf2094e08b82c2279c0b50cc39e872";
|
|
290
290
|
readonly "scripts/extract_office_text.py": "2badb7a32335d28c0dd029617ffe866c27053ef54b8951a40a14475b56633265";
|
|
@@ -687,11 +687,11 @@ export declare const DIAGRAM_DRAWER_PAYLOAD_HASHES: {
|
|
|
687
687
|
export declare const DOCX_PAYLOAD_HASHES: {
|
|
688
688
|
readonly LICENSE: "8b63387196e2fa43a40bfc4c7b8a367ed72ea9b421954a9f4e5050e43b91026e";
|
|
689
689
|
readonly NOTICE: "ef4291ab24c16fa21907ee11e9ef4a93eb390ffb1cabc4af421992ee350f8156";
|
|
690
|
-
readonly "SKILL.md": "
|
|
690
|
+
readonly "SKILL.md": "46ec449e9ffdbb56edc5ec9a96c50d6365cca84fb4b9475ea985d657f3e8da18";
|
|
691
691
|
readonly "agents/openai.yaml": "8a6a46168f01c4a836838b9871070575a1578e4b8f8d378c3555859fc54a397c";
|
|
692
692
|
readonly "references/components.md": "53a6bbc1524b5316ea2e9aedc546590873b9d10471886a67c50bb04191f97769";
|
|
693
693
|
readonly "references/direction-step.md": "a4e06c1a5980dadb4467b080a8e89a854fe00aaa8026e40bda847c451b1342cf";
|
|
694
|
-
readonly "references/examples/01-report-ko.md": "
|
|
694
|
+
readonly "references/examples/01-report-ko.md": "1e878a4cdc0c74e6b496d52944ea25f956ecc309cb6005a45b026cbdab41cfce";
|
|
695
695
|
readonly "references/examples/02-brief-ko.md": "143828f369c5412b6d13c5d96464eb5e9ed88b6290a22221664688fb2cb9b511";
|
|
696
696
|
readonly "references/examples/03-manual-ko.md": "7a6c6be4711c8177b3b5c74116573424e0fe86fd402bfa9d70dd82ecb2b662a7";
|
|
697
697
|
readonly "references/examples/04-proposal-ko.md": "22fcd15c1a351c42315f056e5f1a760eaa189f44592ef30f08358245fe04f8a4";
|
|
@@ -752,7 +752,7 @@ export declare const DOCX_PAYLOAD_HASHES: {
|
|
|
752
752
|
export declare const PPTX_PAYLOAD_HASHES: {
|
|
753
753
|
readonly "FORBIDDEN_TERMS.json": "8ef78f42a519c513c9291d8145dedd6180d4130e31553d1036821f1afd61cc81";
|
|
754
754
|
readonly NOTICE: "806c7aebcaf70ee5c24307f956d9ea0fd4626b63576da7522cbb94040bf08002";
|
|
755
|
-
readonly "SKILL.md": "
|
|
755
|
+
readonly "SKILL.md": "3fa2f01bff1bc4cc80072d04aff7d4d3691daeb1c7f5731ba3526bc8e4d32622";
|
|
756
756
|
readonly "agents/analyst.md": "93ab81384b223da9a4b63427d161081b45b89b2a7323b57c514f9a1206eb88d1";
|
|
757
757
|
readonly "agents/antithesis.md": "62544ef5617e5824d3056b1ca944a91e51e966a58f7a4fbef128a1b0d0575fbe";
|
|
758
758
|
readonly "agents/architect.md": "758a440cae8ee6091c2e21af794123db1581bea796069bd2e1ac56a4522b5068";
|
|
@@ -774,16 +774,16 @@ export declare const PPTX_PAYLOAD_HASHES: {
|
|
|
774
774
|
readonly "pretendard-font/public/static/Pretendard-Bold.otf": "2e91915fab54df71cc9598ebf608b2bdb54c6fe3c066ac61dff0bc44fca71cc7";
|
|
775
775
|
readonly "pretendard-font/public/static/Pretendard-Regular.otf": "3ffbacde6ab8411f1d2db54bb9b1f0b3ee2a738932033722cf0388c06aed1c93";
|
|
776
776
|
readonly "references/anti-slop-checklist.md": "fa245a263411aab8364378b61c65742865fea906d932cdf563631c8af61d69e9";
|
|
777
|
-
readonly "references/authoring-guide.md": "
|
|
777
|
+
readonly "references/authoring-guide.md": "1943f43dc8efd289b0f1925cab729f79d44a7109e0864f5a5abac8f3a2ab7247";
|
|
778
778
|
readonly "references/consensus-protocol.md": "44f8bb8f2d7a38a9c5d832b85fc54ad437ea17b65347948ff7d3f46c9ebf8c42";
|
|
779
|
-
readonly "references/data-display-cookbook.md": "
|
|
780
|
-
readonly "references/density-and-fill.md": "
|
|
779
|
+
readonly "references/data-display-cookbook.md": "4d1caf31f0c27a02cbf97beb8508123666c01a81aad914b6b97fe77cd1d95256";
|
|
780
|
+
readonly "references/density-and-fill.md": "23b9f7d79a5c3ade8c52c7d603546dfff629c6e7bb8e5464465e8224efc8b814";
|
|
781
781
|
readonly "references/design-system-azure.md": "f7908fbce495f6cd14c446faaa0ce58350d9d7e91f33f2deb7d89d36a584d402";
|
|
782
782
|
readonly "references/direction-step.md": "182a2c45bb0b160b2afa51dccb1e6d24cfe4e2208c06d87d28bfd460e0418dac";
|
|
783
783
|
readonly "references/examples/01-pitch-signal-ko.md": "ee383d37ee95ecb4bf848e82925a88c6eef0af25ff4c20f625976493d365745b";
|
|
784
784
|
readonly "references/examples/02-pitch-studio-en.md": "fc0701a54761766eeab4ed071d72aa4c7653c6175c025942f4fa84b0d86d504a";
|
|
785
785
|
readonly "references/examples/03-business-review-ledger-ko.md": "784e59271bc55b533c807d977c7efd88580932d3765ca42c217bad7ea9fe0b9f";
|
|
786
|
-
readonly "references/examples/04-research-talk-paper-en.md": "
|
|
786
|
+
readonly "references/examples/04-research-talk-paper-en.md": "2f2a82b9e534103d55628ae5556e6021b7df1c8a2dc1e1d1339d92b3ce03b36b";
|
|
787
787
|
readonly "references/examples/05-research-keynote-night-ko.md": "09ff4820119658b0782fb8ba1c9d6cdbadedba8e8a5309243d1d2425776ccedc";
|
|
788
788
|
readonly "references/examples/06-lecture-chalk-ko.md": "6c25e087e1934316d97dbb19048393b864f35d6ab16f811c80d4536f0c091dc8";
|
|
789
789
|
readonly "references/examples/07-data-review-night-en.md": "9d17841d1396f37f6ed1ea55b9136f45ba08daa8964e8280702d9191bf32b0b0";
|
|
@@ -794,14 +794,14 @@ export declare const PPTX_PAYLOAD_HASHES: {
|
|
|
794
794
|
readonly "references/examples/12-tutorial-chalk-en.md": "e8663b97ed0257990518dcc45de9aefffe0f5588a86958fb07bab0f9ff7fc311";
|
|
795
795
|
readonly "references/examples/13-status-update-gazette-ko.md": "236bdf3c1f253740a64d5f92e37349b54f2d33b1a08a4d062a4271fa6cda2e82";
|
|
796
796
|
readonly "references/interview-protocol.md": "8b8b3bba7b14127702a20b734b05418c794c620b5df4d222d2da873d02398ed0";
|
|
797
|
-
readonly "references/layout-families.md": "
|
|
797
|
+
readonly "references/layout-families.md": "4c072e7b4d95bf864509c0d8e69feb96e963fdc0ef2e39184119aaf98e2824cc";
|
|
798
798
|
readonly "references/title-treatments.md": "81b36f9b8a7ececf23bf236f75581d3fe15a41c5825792442308ee17b251694a";
|
|
799
799
|
readonly "references/tonalities/atlas.md": "3a55bd1026cad5925fd041802137236bc6609249b3ca36030b0ab1769295dcba";
|
|
800
800
|
readonly "references/tonalities/chalk.md": "d4f69d23bd477db61803e00464c18e4de3ed10368e2618c2d1e3833a5623adce";
|
|
801
801
|
readonly "references/tonalities/gazette.md": "60937365ee08e539caf876dbd9244b67004a07c3248c47fbb00ec8367374c791";
|
|
802
802
|
readonly "references/tonalities/ledger.md": "12c51f654ce9b1b831be3f434c648c907a0d9dcf8789e535d840dd46af6f0e9c";
|
|
803
803
|
readonly "references/tonalities/night.md": "34365a6a71559cc7fa3569436f975df8a382aa1fd2e44283b896aa2c2625a1d0";
|
|
804
|
-
readonly "references/tonalities/paper.md": "
|
|
804
|
+
readonly "references/tonalities/paper.md": "6b457124e15b75a65233e5369999c15452f0eaa900293b4270853da15f6f12d7";
|
|
805
805
|
readonly "references/tonalities/signal.md": "3c52945f7c4d513b97ae382b6bd544f9cf1daf5780b6f462ac947284b1d38285";
|
|
806
806
|
readonly "references/tonalities/studio.md": "cca577f4458a6be2306995d996dd99e2d605b7f2a80cbc256c7eff776b65858f";
|
|
807
807
|
readonly "runtime/package-lock.json": "67b19a8431f408ab6c75eeb6dd658850089e13f072bf475ae72a2ae79d4e1687";
|
|
@@ -832,7 +832,7 @@ export declare const PPTX_PAYLOAD_HASHES: {
|
|
|
832
832
|
readonly "scripts/package.json": "dbf8353f77358bc12169b7bb7301e1978d5b503e002ee927229a8993672818fc";
|
|
833
833
|
readonly "scripts/qa_deck.py": "dbde757b72dffe3f5b31def40dc5f7b92444a2b768ac3c91879fc959c30a2edc";
|
|
834
834
|
readonly "scripts/validate_pptx.py": "2d3ddd0fd2564dab93f1bd74832c602d8df4f31e2856fd8a3b1e2c3e089d4ec4";
|
|
835
|
-
readonly "specs/markdown-slide-spec-v1.md": "
|
|
835
|
+
readonly "specs/markdown-slide-spec-v1.md": "64b4fd6a028cd441cf34cbfe9e01a405a506601e3dcacc5e9a6477dcb0216449";
|
|
836
836
|
readonly "specs/markdown-slide-spec-v2.md": "3a7a91dfb21418711d5ad28f7a542603bc2f145051950478be0d2107f7fa5458";
|
|
837
837
|
readonly "specs/slide-ast-v1.schema.json": "d6d244bd30b6747645bd4a4f81cf0e2a3d12aa5aa4d0d11f2fb8b5f93dca1187";
|
|
838
838
|
readonly "specs/slide-ast-v2.schema.json": "e685dba539b34ec03ba8a7ab4a03338296360059ccdc91a4fbabd53b5770af86";
|
|
@@ -284,8 +284,8 @@ export const HUMANIZER_PAYLOAD_HASHES = {
|
|
|
284
284
|
"references/ko-patterns.md": "cf9a3e74db9c7aa83a5cd27b08bed409005bc487a96cab33935799a2c6c2e1ea",
|
|
285
285
|
"references/prompt-injection-handling.md": "89a594faf03083785375afa20e179d95c12379539cacb36a3272b13bae2990b7",
|
|
286
286
|
"references/rewrite-playbook.md": "3b0bae2e24e9aada73ea527402e80c25a9bf471b65871248858496f1a2fe8ffb",
|
|
287
|
-
"references/taxonomy.md": "
|
|
288
|
-
"rules.json": "
|
|
287
|
+
"references/taxonomy.md": "7f8903fd4853392f95a9341f2704d964fe5bd5a7ca593efe476419eac6a46624",
|
|
288
|
+
"rules.json": "38df7471c10ce20e62f562d30869d0b79350de98ae38edbf7f181baa171ed29b",
|
|
289
289
|
"scripts/core.mjs": "59d760512e4d69041e630eef2d7e0c17d1f1cde8e2284d75a2dc86334e1b19b4",
|
|
290
290
|
"scripts/detect.mjs": "183446709f861299d088af4587fafb808adf2094e08b82c2279c0b50cc39e872",
|
|
291
291
|
"scripts/extract_office_text.py": "2badb7a32335d28c0dd029617ffe866c27053ef54b8951a40a14475b56633265",
|
|
@@ -688,11 +688,11 @@ export const DIAGRAM_DRAWER_PAYLOAD_HASHES = {
|
|
|
688
688
|
export const DOCX_PAYLOAD_HASHES = {
|
|
689
689
|
LICENSE: "8b63387196e2fa43a40bfc4c7b8a367ed72ea9b421954a9f4e5050e43b91026e",
|
|
690
690
|
NOTICE: "ef4291ab24c16fa21907ee11e9ef4a93eb390ffb1cabc4af421992ee350f8156",
|
|
691
|
-
"SKILL.md": "
|
|
691
|
+
"SKILL.md": "46ec449e9ffdbb56edc5ec9a96c50d6365cca84fb4b9475ea985d657f3e8da18",
|
|
692
692
|
"agents/openai.yaml": "8a6a46168f01c4a836838b9871070575a1578e4b8f8d378c3555859fc54a397c",
|
|
693
693
|
"references/components.md": "53a6bbc1524b5316ea2e9aedc546590873b9d10471886a67c50bb04191f97769",
|
|
694
694
|
"references/direction-step.md": "a4e06c1a5980dadb4467b080a8e89a854fe00aaa8026e40bda847c451b1342cf",
|
|
695
|
-
"references/examples/01-report-ko.md": "
|
|
695
|
+
"references/examples/01-report-ko.md": "1e878a4cdc0c74e6b496d52944ea25f956ecc309cb6005a45b026cbdab41cfce",
|
|
696
696
|
"references/examples/02-brief-ko.md": "143828f369c5412b6d13c5d96464eb5e9ed88b6290a22221664688fb2cb9b511",
|
|
697
697
|
"references/examples/03-manual-ko.md": "7a6c6be4711c8177b3b5c74116573424e0fe86fd402bfa9d70dd82ecb2b662a7",
|
|
698
698
|
"references/examples/04-proposal-ko.md": "22fcd15c1a351c42315f056e5f1a760eaa189f44592ef30f08358245fe04f8a4",
|
|
@@ -753,7 +753,7 @@ export const DOCX_PAYLOAD_HASHES = {
|
|
|
753
753
|
export const PPTX_PAYLOAD_HASHES = {
|
|
754
754
|
"FORBIDDEN_TERMS.json": "8ef78f42a519c513c9291d8145dedd6180d4130e31553d1036821f1afd61cc81",
|
|
755
755
|
NOTICE: "806c7aebcaf70ee5c24307f956d9ea0fd4626b63576da7522cbb94040bf08002",
|
|
756
|
-
"SKILL.md": "
|
|
756
|
+
"SKILL.md": "3fa2f01bff1bc4cc80072d04aff7d4d3691daeb1c7f5731ba3526bc8e4d32622",
|
|
757
757
|
"agents/analyst.md": "93ab81384b223da9a4b63427d161081b45b89b2a7323b57c514f9a1206eb88d1",
|
|
758
758
|
"agents/antithesis.md": "62544ef5617e5824d3056b1ca944a91e51e966a58f7a4fbef128a1b0d0575fbe",
|
|
759
759
|
"agents/architect.md": "758a440cae8ee6091c2e21af794123db1581bea796069bd2e1ac56a4522b5068",
|
|
@@ -775,16 +775,16 @@ export const PPTX_PAYLOAD_HASHES = {
|
|
|
775
775
|
"pretendard-font/public/static/Pretendard-Bold.otf": "2e91915fab54df71cc9598ebf608b2bdb54c6fe3c066ac61dff0bc44fca71cc7",
|
|
776
776
|
"pretendard-font/public/static/Pretendard-Regular.otf": "3ffbacde6ab8411f1d2db54bb9b1f0b3ee2a738932033722cf0388c06aed1c93",
|
|
777
777
|
"references/anti-slop-checklist.md": "fa245a263411aab8364378b61c65742865fea906d932cdf563631c8af61d69e9",
|
|
778
|
-
"references/authoring-guide.md": "
|
|
778
|
+
"references/authoring-guide.md": "1943f43dc8efd289b0f1925cab729f79d44a7109e0864f5a5abac8f3a2ab7247",
|
|
779
779
|
"references/consensus-protocol.md": "44f8bb8f2d7a38a9c5d832b85fc54ad437ea17b65347948ff7d3f46c9ebf8c42",
|
|
780
|
-
"references/data-display-cookbook.md": "
|
|
781
|
-
"references/density-and-fill.md": "
|
|
780
|
+
"references/data-display-cookbook.md": "4d1caf31f0c27a02cbf97beb8508123666c01a81aad914b6b97fe77cd1d95256",
|
|
781
|
+
"references/density-and-fill.md": "23b9f7d79a5c3ade8c52c7d603546dfff629c6e7bb8e5464465e8224efc8b814",
|
|
782
782
|
"references/design-system-azure.md": "f7908fbce495f6cd14c446faaa0ce58350d9d7e91f33f2deb7d89d36a584d402",
|
|
783
783
|
"references/direction-step.md": "182a2c45bb0b160b2afa51dccb1e6d24cfe4e2208c06d87d28bfd460e0418dac",
|
|
784
784
|
"references/examples/01-pitch-signal-ko.md": "ee383d37ee95ecb4bf848e82925a88c6eef0af25ff4c20f625976493d365745b",
|
|
785
785
|
"references/examples/02-pitch-studio-en.md": "fc0701a54761766eeab4ed071d72aa4c7653c6175c025942f4fa84b0d86d504a",
|
|
786
786
|
"references/examples/03-business-review-ledger-ko.md": "784e59271bc55b533c807d977c7efd88580932d3765ca42c217bad7ea9fe0b9f",
|
|
787
|
-
"references/examples/04-research-talk-paper-en.md": "
|
|
787
|
+
"references/examples/04-research-talk-paper-en.md": "2f2a82b9e534103d55628ae5556e6021b7df1c8a2dc1e1d1339d92b3ce03b36b",
|
|
788
788
|
"references/examples/05-research-keynote-night-ko.md": "09ff4820119658b0782fb8ba1c9d6cdbadedba8e8a5309243d1d2425776ccedc",
|
|
789
789
|
"references/examples/06-lecture-chalk-ko.md": "6c25e087e1934316d97dbb19048393b864f35d6ab16f811c80d4536f0c091dc8",
|
|
790
790
|
"references/examples/07-data-review-night-en.md": "9d17841d1396f37f6ed1ea55b9136f45ba08daa8964e8280702d9191bf32b0b0",
|
|
@@ -795,14 +795,14 @@ export const PPTX_PAYLOAD_HASHES = {
|
|
|
795
795
|
"references/examples/12-tutorial-chalk-en.md": "e8663b97ed0257990518dcc45de9aefffe0f5588a86958fb07bab0f9ff7fc311",
|
|
796
796
|
"references/examples/13-status-update-gazette-ko.md": "236bdf3c1f253740a64d5f92e37349b54f2d33b1a08a4d062a4271fa6cda2e82",
|
|
797
797
|
"references/interview-protocol.md": "8b8b3bba7b14127702a20b734b05418c794c620b5df4d222d2da873d02398ed0",
|
|
798
|
-
"references/layout-families.md": "
|
|
798
|
+
"references/layout-families.md": "4c072e7b4d95bf864509c0d8e69feb96e963fdc0ef2e39184119aaf98e2824cc",
|
|
799
799
|
"references/title-treatments.md": "81b36f9b8a7ececf23bf236f75581d3fe15a41c5825792442308ee17b251694a",
|
|
800
800
|
"references/tonalities/atlas.md": "3a55bd1026cad5925fd041802137236bc6609249b3ca36030b0ab1769295dcba",
|
|
801
801
|
"references/tonalities/chalk.md": "d4f69d23bd477db61803e00464c18e4de3ed10368e2618c2d1e3833a5623adce",
|
|
802
802
|
"references/tonalities/gazette.md": "60937365ee08e539caf876dbd9244b67004a07c3248c47fbb00ec8367374c791",
|
|
803
803
|
"references/tonalities/ledger.md": "12c51f654ce9b1b831be3f434c648c907a0d9dcf8789e535d840dd46af6f0e9c",
|
|
804
804
|
"references/tonalities/night.md": "34365a6a71559cc7fa3569436f975df8a382aa1fd2e44283b896aa2c2625a1d0",
|
|
805
|
-
"references/tonalities/paper.md": "
|
|
805
|
+
"references/tonalities/paper.md": "6b457124e15b75a65233e5369999c15452f0eaa900293b4270853da15f6f12d7",
|
|
806
806
|
"references/tonalities/signal.md": "3c52945f7c4d513b97ae382b6bd544f9cf1daf5780b6f462ac947284b1d38285",
|
|
807
807
|
"references/tonalities/studio.md": "cca577f4458a6be2306995d996dd99e2d605b7f2a80cbc256c7eff776b65858f",
|
|
808
808
|
"runtime/package-lock.json": "67b19a8431f408ab6c75eeb6dd658850089e13f072bf475ae72a2ae79d4e1687",
|
|
@@ -833,7 +833,7 @@ export const PPTX_PAYLOAD_HASHES = {
|
|
|
833
833
|
"scripts/package.json": "dbf8353f77358bc12169b7bb7301e1978d5b503e002ee927229a8993672818fc",
|
|
834
834
|
"scripts/qa_deck.py": "dbde757b72dffe3f5b31def40dc5f7b92444a2b768ac3c91879fc959c30a2edc",
|
|
835
835
|
"scripts/validate_pptx.py": "2d3ddd0fd2564dab93f1bd74832c602d8df4f31e2856fd8a3b1e2c3e089d4ec4",
|
|
836
|
-
"specs/markdown-slide-spec-v1.md": "
|
|
836
|
+
"specs/markdown-slide-spec-v1.md": "64b4fd6a028cd441cf34cbfe9e01a405a506601e3dcacc5e9a6477dcb0216449",
|
|
837
837
|
"specs/markdown-slide-spec-v2.md": "3a7a91dfb21418711d5ad28f7a542603bc2f145051950478be0d2107f7fa5458",
|
|
838
838
|
"specs/slide-ast-v1.schema.json": "d6d244bd30b6747645bd4a4f81cf0e2a3d12aa5aa4d0d11f2fb8b5f93dca1187",
|
|
839
839
|
"specs/slide-ast-v2.schema.json": "e685dba539b34ec03ba8a7ab4a03338296360059ccdc91a4fbabd53b5770af86",
|
package/dist/install/types.d.ts
CHANGED
|
@@ -95,6 +95,10 @@ export interface DoctorReport {
|
|
|
95
95
|
readonly autoHandoff?: AutoHandoffDoctorReport;
|
|
96
96
|
/** Built-in Codex status line / terminal title snippet; null when the config already sets both. */
|
|
97
97
|
readonly tuiSuggestion?: TuiSuggestion | null;
|
|
98
|
+
/** The LIT card MCP server: present in the installed plugin or not. Read-only; never touches `[features]`. */
|
|
99
|
+
readonly statusCard?: {
|
|
100
|
+
readonly serverInstalled: boolean;
|
|
101
|
+
};
|
|
98
102
|
}
|
|
99
103
|
export type TuiSuggestionKey = "status_line" | "terminal_title";
|
|
100
104
|
export interface TuiSuggestion {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CARD_HTML = "<!doctype html>\n<html lang=\"en\"><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n<title>LIT</title>\n<style>\n:root{color-scheme:dark;--bg:#10141c;--bg2:#0d1118;--ink:#e6edf3;--dim:#7d8590;--faint:#30363d;--rail:#3a434e;--flame:#ff6337;--pink:#ff2d95;--acc:#5fd7ff;--accfill:#5fd7ff;--green:#6bdb8f;--amber:#ffaf3c;--red:#ff5f5f;--pillink:#0b0f14;\n--mono:\"SF Mono\",SFMono-Regular,ui-monospace,Menlo,Monaco,Consolas,\"Liberation Mono\",monospace}\n:root.light{color-scheme:light;--bg:#ffffff;--bg2:#fafbfd;--ink:#1b1f27;--dim:#5f6672;--faint:#dde2e8;--rail:#cfd6de;--flame:#bd3f0b;--pink:#c0186b;--acc:#006f99;--green:#17783f;--amber:#9a5b00;--red:#c42f2f}\n*{box-sizing:border-box}\nhtml,body{margin:0;background:transparent}\nbody{color:var(--ink);font-size:12.5px;line-height:1.55;font-weight:500;-webkit-font-smoothing:antialiased}\n.lc,.lc *{font-family:var(--mono)!important}\n.lc{position:relative;border-radius:14px;padding:11px 14px 10px;margin:1px;\nbackground:radial-gradient(110% 120% at 0% 0%,color-mix(in srgb,var(--pink) 8%,var(--bg)),var(--bg) 55%,var(--bg2));\nborder:1px solid color-mix(in srgb,var(--acc) 55%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--acc) 8%,transparent),0 10px 30px -18px color-mix(in srgb,var(--acc) 50%,transparent);animation:breathe 4.8s ease-in-out infinite}\n.lc.is-done{border-color:color-mix(in srgb,var(--green) 55%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--green) 8%,transparent);animation:none}\n.lc.is-idle{border-color:color-mix(in srgb,var(--dim) 40%,transparent);box-shadow:none;animation:none}\n@keyframes breathe{0%,100%{border-color:color-mix(in srgb,var(--acc) 38%,transparent)}50%{border-color:color-mix(in srgb,var(--acc) 80%,transparent)}}\n.head{display:flex;align-items:center;gap:7px;white-space:nowrap;min-height:22px}\n.brand{position:relative;overflow:hidden;display:inline-flex;align-items:center;gap:3px;padding:1px 9px 1px 7px;border-radius:999px;background:linear-gradient(90deg,#ff2d95,#ff6337);color:#0b0f14;font-weight:800;letter-spacing:.03em;box-shadow:0 0 16px -6px rgba(255,45,149,.6)}\n.j{display:inline-block;flex:0 0 auto;width:3px;height:3px;border-radius:50%;background:var(--rail)}\n.name{font-weight:700;overflow:hidden;text-overflow:ellipsis}.acc{color:var(--acc)}.dim{color:var(--dim)}.ok{color:var(--green)}\n.right{margin-left:auto;font-weight:700;letter-spacing:.04em;display:inline-flex;align-items:center;gap:6px}\n.dot{width:6px;height:6px;border-radius:50%;background:var(--acc);box-shadow:0 0 7px var(--acc);animation:pulse 1.6s ease-in-out infinite}\n@keyframes pulse{50%{opacity:.35}}\n.map{display:flex;align-items:center;gap:7px;margin:9px 0 6px;white-space:nowrap;overflow:hidden}\n.st em{font-style:normal;margin-left:3px}.st.todo{color:var(--dim)}.st.done{font-weight:600}\n.rail{position:relative;display:inline-block;height:2px;border-radius:2px;flex:1 1 12px;max-width:56px;min-width:10px;background:var(--rail)}\n.rail.lead{overflow:hidden}.headfill{position:absolute;inset:0;width:40%;background:linear-gradient(90deg,var(--acc),transparent)}\n.comet{position:absolute;top:50%;width:5px;height:5px;margin-top:-2.5px;border-radius:50%;background:#fff;box-shadow:0 0 7px 2px var(--acc);animation:comet 2.4s linear infinite}\n:root.light .comet{background:var(--accfill);box-shadow:0 0 5px 1px var(--accfill)}\n@keyframes comet{0%{left:-8%;opacity:0}15%,85%{opacity:1}100%{left:100%;opacity:0}}\n.nowpill{position:relative;overflow:hidden;display:inline-flex;gap:6px;align-items:center;padding:0 9px;border-radius:999px;background:var(--accfill);color:var(--pillink);font-weight:800;box-shadow:0 0 14px -4px color-mix(in srgb,var(--accfill) 80%,transparent)}\n.brand::after,.nowpill::after{content:\"\";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.7) 50%,transparent 70%);transform:translateX(-120%);animation:sweep 3.2s ease-in-out infinite;pointer-events:none}\n@keyframes sweep{0%,55%{transform:translateX(-120%)}85%,100%{transform:translateX(120%)}}\n.is-done .brand::after,.is-idle .brand::after,.folded .brand::after{display:none}\n.row{display:flex;align-items:center;gap:8px;white-space:nowrap;min-height:20px}\n.tl{display:inline-flex;align-items:center;gap:6px;overflow:hidden;min-width:0}\n.nx{overflow:hidden;text-overflow:ellipsis}\n.bar{display:inline-flex;gap:2px;vertical-align:middle}.seg{display:inline-block;width:6px;height:10px;border-radius:1.5px}.seg.off{background:var(--faint)}\n.live{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto}.row .tl+.live{margin-left:auto}\n.live .tool{font-weight:700}.live .last{font-weight:600;overflow:hidden;text-overflow:ellipsis}.live.done{color:var(--green);font-weight:700}\n.spin{color:var(--acc);animation:spin 1s linear infinite;flex:0 0 auto}@keyframes spin{to{transform:rotate(360deg)}}\n.spin.soft{color:var(--dim)}\nkbd{font-size:12px;color:var(--acc);background:color-mix(in srgb,var(--acc) 12%,transparent);border:1px solid color-mix(in srgb,var(--acc) 32%,transparent);border-radius:6px;padding:0 6px}\n.foot{display:flex;align-items:center;gap:12px;margin-top:7px;padding-top:7px;border-top:1px solid color-mix(in srgb,var(--faint) 75%,transparent);font-size:11.5px;color:var(--dim);white-space:nowrap;overflow:hidden}\n.use{display:inline-flex;align-items:center;gap:5px}.use b{font-weight:600;color:var(--ink)}\n.mini{display:inline-flex;gap:1.5px}.mini i{display:inline-block;width:4px;height:8px;border-radius:1px;background:var(--faint)}\n.ws{margin-left:auto;overflow:hidden;text-overflow:ellipsis}\n/* the side pane (the host's fullscreen mode): a vertical timeline, the use bars at the bottom */\n:root.pane .lc{min-height:calc(100vh - 2px);display:flex;flex-direction:column;padding:18px 20px 16px;font-size:13px}\n:root.pane .brand{font-size:13.5px;padding:2px 11px 2px 9px}:root.pane .name{font-size:13.5px}\n.tline{margin:18px 0 6px}\n.stg{position:relative;padding:0 0 12px 24px}\n.stg::before{content:\"\";position:absolute;left:4px;top:0;bottom:0;width:2px;background:var(--line,var(--rail))}\n.stg:first-child::before{top:9px}.stg:last-child::before{bottom:auto;height:9px}.stg:last-child{padding-bottom:0}\n.stg .pt{position:absolute;left:0;top:4px;width:10px;height:10px;border-radius:50%;border:2px solid var(--rail);background:var(--bg)}\n.stg.done .pt{border-color:var(--c);background:var(--c)}\n.stg.cur .pt{border-color:var(--acc);background:var(--bg);box-shadow:0 0 0 3px color-mix(in srgb,var(--acc) 25%,transparent),0 0 10px var(--acc)}\n.stg .line1{display:flex;align-items:center;gap:8px;min-height:18px}\n.stg .w{font-weight:600}.stg.todo .w{color:var(--dim);font-weight:500}\n.stg .meta{margin-left:auto;color:var(--dim);font-size:12px}\n.detail{margin-top:8px;padding:8px 11px;border-radius:10px;border:1px solid color-mix(in srgb,var(--faint) 85%,transparent);background:color-mix(in srgb,var(--bg2) 60%,transparent);display:flex;flex-direction:column;gap:3px}\n.banner{display:flex;align-items:center;gap:8px;margin:14px 0 0;padding:7px 11px;border-radius:10px;color:var(--green);font-weight:700;background:color-mix(in srgb,var(--green) 11%,transparent);border:1px solid color-mix(in srgb,var(--green) 32%,transparent)}\n.banner .dim{font-weight:500}\n.usage{margin-top:auto;padding-top:14px;border-top:1px solid color-mix(in srgb,var(--faint) 75%,transparent);display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--dim)}\n.ub{display:grid;grid-template-columns:3.2em 1fr 3.4em;align-items:center;gap:10px}.ub .pct{text-align:right;color:var(--ink);font-weight:600}\n.track{height:5px;border-radius:3px;background:var(--faint);overflow:hidden}.track i{display:block;height:100%;border-radius:3px}\n.hero{text-align:center;padding:36px 0 10px}.flame{font-size:40px;filter:drop-shadow(0 0 16px rgba(255,99,55,.45))}\n.herot{font-weight:700;font-size:15px;margin-top:8px}.heros{color:var(--dim);margin:6px 0 14px}\n.examples{display:flex;flex-direction:column;align-items:center;gap:6px}\n/* an earlier turn's card, once a newer one opened below: one quiet line, no glow, no motion */\n.lc.folded{padding:3px 10px;border-radius:10px;background:var(--bg);border:1px solid color-mix(in srgb,var(--dim) 30%,transparent);box-shadow:none;animation:none;font-size:12px}\n.lc.folded .head{min-height:20px;gap:6px}\n.lc.folded .brand{padding:0 7px 0 6px;font-size:11px;background:color-mix(in srgb,var(--dim) 24%,var(--bg));color:var(--ink);box-shadow:none;filter:grayscale(1)}\n.lc.folded .name{color:var(--dim);font-weight:600}\n.lc.folded .right{font-weight:600;letter-spacing:0;flex:0 0 auto}\n@media (prefers-reduced-motion:reduce){.lc,.lc *{animation:none!important}.brand::after,.nowpill::after,.comet{display:none}}\n</style></head>\n<body><div id=\"card\" class=\"lc is-idle\" role=\"status\" aria-live=\"polite\"><div class=\"head\"><span class=\"brand\">\uD83D\uDD25 LIT</span><span class=\"j\">\u00B7</span><span class=\"name dim\">starting\u2026</span></div></div>\n<script>\n(function(){\nvar STATUS_TOOL=\"lit_card_status\";\nvar FAST=1500,SLOW=5000,IDLE=15000,MAX_BACKOFF=30000;\nvar root=document.documentElement,card=document.getElementById(\"card\");\nvar status=null,thread=null,timer=null,ticker=null,failures=0,idleSince=Date.now(),bridge=null,hostMode=null;\nvar opened=null,folded=false;\nvar nextId=1,pending={};\n\nfunction el(tag,cls,text){var n=document.createElement(tag);if(cls)n.className=cls;if(text!=null)n.textContent=String(text);return n;}\nfunction add(parent){for(var i=1;i<arguments.length;i++){var c=arguments[i];if(c!=null)parent.appendChild(typeof c===\"string\"?document.createTextNode(c):c);}return parent;}\nfunction joiner(){var n=el(\"span\",\"j\");n.setAttribute(\"aria-hidden\",\"true\");return n;}\n\n/* linear-RGB mixing, so the flame \u2192 pink \u2192 accent ramp keeps its brightness */\nfunction hex(c){c=c.trim().replace(\"#\",\"\");return[0,2,4].map(function(i){return parseInt(c.substr(i,2),16)/255;});}\nfunction lin(v){return v<=0.04045?v/12.92:Math.pow((v+0.055)/1.055,2.4);}\nfunction gam(v){return v<=0.0031308?v*12.92:1.055*Math.pow(v,1/2.4)-0.055;}\nfunction mix(a,b,t){var x=hex(a),y=hex(b);return\"#\"+x.map(function(v,i){var m=gam(lin(v)+(lin(y[i])-lin(v))*t);return(\"0\"+Math.round(Math.max(0,Math.min(1,m))*255).toString(16)).slice(-2);}).join(\"\");}\nfunction token(name){return getComputedStyle(root).getPropertyValue(name)||\"#ffffff\";}\nfunction ramp(t){var f=token(\"--flame\"),p=token(\"--pink\"),a=token(\"--acc\");return t<=0.5?mix(f,p,t*2):mix(p,a,(t-0.5)*2);}\n\nfunction clock(ms){var s=Math.max(0,Math.floor(ms/1000));return Math.floor(s/60)+\":\"+(\"0\"+(s%60)).slice(-2);}\nfunction span(ms){var s=Math.max(1,Math.round(ms/1000));if(s<60)return s+\"s\";var m=Math.floor(s/60);if(m<60)return s%60?m+\"m \"+(s%60)+\"s\":m+\"m\";return Math.floor(m/60)+\"h \"+(m%60)+\"m\";}\nfunction since(t){var n=el(\"span\",\"dim el\",\"\u00B7 \"+clock(Date.now()-t));n.setAttribute(\"data-since\",String(t));return n;}\nfunction turnClock(t){var n=el(\"span\",\"el\",clock(Date.now()-t));n.setAttribute(\"data-since\",String(t));n.setAttribute(\"data-bare\",\"1\");return n;}\nfunction pane(){var m=(window.openai&&window.openai.displayMode)||hostMode;return m===\"fullscreen\"||m===\"pip\";}\n\nfunction bar(done,total){\n var cells=Math.min(total,10),filled=total===0?0:Math.round(done/total*cells);\n if(done>0&&filled===0)filled=1;if(done<total&&filled===cells)filled=cells-1;\n var b=el(\"span\",\"bar\");\n for(var i=0;i<cells;i++){var s=el(\"i\",\"seg\"+(i<filled?\"\":\" off\"));if(i<filled)s.style.background=mix(token(\"--pink\"),token(\"--acc\"),cells<=1?0:i/(cells-1));b.appendChild(s);}\n return b;\n}\nfunction useColor(p){return p>=90?token(\"--red\"):p>=70?token(\"--amber\"):null;}\nfunction mini(p){var b=el(\"span\",\"mini\"),on=Math.round(p/10),fill=useColor(p)||token(\"--acc\");for(var i=0;i<10;i++){var c=el(\"i\");if(i<on)c.style.background=fill;b.appendChild(c);}return b;}\nfunction spinner(soft){\n var ns=\"http://www.w3.org/2000/svg\",svg=document.createElementNS(ns,\"svg\");\n svg.setAttribute(\"class\",\"spin\"+(soft?\" soft\":\"\"));svg.setAttribute(\"viewBox\",\"0 0 16 16\");svg.setAttribute(\"width\",\"12\");svg.setAttribute(\"height\",\"12\");svg.setAttribute(\"aria-hidden\",\"true\");\n var c=document.createElementNS(ns,\"circle\");\n [[\"cx\",\"8\"],[\"cy\",\"8\"],[\"r\",\"5.6\"],[\"fill\",\"none\"],[\"stroke\",\"currentColor\"],[\"stroke-width\",\"2.2\"],[\"stroke-dasharray\",\"24 11.2\"],[\"stroke-linecap\",\"round\"]].forEach(function(a){c.setAttribute(a[0],a[1]);});\n svg.appendChild(c);return svg;\n}\nfunction progressOf(map){if(!map)return null;for(var i=0;i<map.cells.length;i++)if(map.cells[i].progress)return map.cells[i].progress;return null;}\nfunction doneWord(s){return progressOf(s.map)?\"COMPLETE\":\"DONE\";}\nfunction took(s){if(s.turnEndedAt)return s.turnEndedAt-(s.turnStartedAt||s.ignitedAt||s.turnEndedAt);return (s.lastStepAt||s.now)-s.ignitedAt;}\n\n/* what LIT is doing now: the running tool, the turn's own time, or that it waits */\nfunction liveNode(s){\n var n=el(\"span\",\"live\");\n if(s.step){add(n,spinner(false),el(\"span\",\"tool\",s.step.tool),since(s.step.startedAt));return n;}\n if(s.state===\"complete\"){n.className=\"live done\";add(n,\"\u2713 \",el(\"span\",null,doneWord(s)===\"DONE\"?\"turn done\":\"all done\"));if(s.ignitedAt)add(n,el(\"span\",\"dim\",\"in \"+span(took(s))));return n;}\n if(s.state===\"ignited\"&&s.working){add(n,spinner(true),el(\"span\",\"dim\",\"thinking\"));if(s.lastTool)add(n,el(\"span\",\"dim\",\"\u00B7 last\"),el(\"span\",\"acc\",\"\u25B8\"),el(\"span\",\"last\",s.lastTool));return n;}\n if(s.state===\"ignited\"){add(n,el(\"span\",\"dim\",\"\u25E6 waiting for you\"));return n;}\n return null;\n}\n/* the header's right side: the turn clock while working (the map already names the stage), the result once done */\nfunction head(s){\n var h=el(\"div\",\"head\");add(h,el(\"span\",\"brand\",\"\uD83D\uDD25 LIT\"),joiner());\n if(s.state===\"ready\"){add(h,el(\"span\",\"name dim\",\"ready\"),el(\"span\",\"right dim\",\"idle\"));return h;}\n add(h,el(\"span\",\"name acc\",s.mode||\"lit\"));\n if(s.state===\"complete\"){add(h,el(\"span\",\"right ok\",doneWord(s)+\" \u2713\"));return h;}\n var r=el(\"span\",\"right acc\");if(!s.map)r.appendChild(el(\"span\",null,\"IGNITED\"));\n if(s.working){if(s.turnStartedAt)r.appendChild(turnClock(s.turnStartedAt));r.appendChild(el(\"i\",\"dot\"));}\n if(r.childNodes.length)h.appendChild(r);return h;\n}\n/* an earlier turn's card: the LIT mark, its mode and how it ended, on one line */\nfunction renderFolded(s){\n var h=el(\"div\",\"head\");add(h,el(\"span\",\"brand\",\"\uD83D\uDD25 LIT\"),joiner(),el(\"span\",\"name\",s&&s.mode||\"lit\"));\n if(s&&s.state===\"complete\"){var r=el(\"span\",\"right ok\",doneWord(s).toLowerCase()+\" \u2713\");if(s.ignitedAt)add(r,\" \",el(\"span\",\"dim\",span(took(s))));h.appendChild(r);}\n else h.appendChild(el(\"span\",\"right dim\",\"continued below \u2193\"));\n card.appendChild(h);\n}\nfunction pillExtra(c){var l=(c.label||\"\").toLowerCase(),w=c.word.toLowerCase();if(!l||l===w)return\"\";return l.indexOf(w+\" \")===0?l.slice(w.length+1):l;}\nfunction stageWord(c){var w=c.word;if(c.state===\"done\"&&c.label)w+=\" \"+c.label;else if(c.progress&&c.state!==\"current\")w+=\" \"+c.progress.done+\"/\"+c.progress.total;return w;}\nfunction mapRow(s){\n var m=el(\"div\",\"map\"),cells=s.map.cells,n=cells.length,lastColor=null;\n cells.forEach(function(c,i){\n var color=ramp(n<=1?0:i/(n-1)),cur=c.state===\"current\"&&s.state!==\"complete\";\n if(i>0){\n var r=el(\"span\",\"rail\");\n if((c.state===\"done\"||c.state===\"partial\")&&cells[i-1].state!==\"pending\")r.style.background=\"linear-gradient(90deg,\"+(lastColor||color)+\",\"+color+\")\";\n else if(cur){r.style.background=\"linear-gradient(90deg,\"+(lastColor||token(\"--acc\"))+\",\"+token(\"--acc\")+\")\";r.appendChild(el(\"i\",\"comet\"));}\n else if(cells[i-1].state===\"current\"&&s.state!==\"complete\"){r.className=\"rail lead\";r.appendChild(el(\"i\",\"headfill\"));}\n m.appendChild(r);\n }\n if(cur){\n var p=el(\"span\",\"st nowpill\",c.word);var extra=pillExtra(c);if(extra)add(p,el(\"b\",null,extra));if(c.progress)add(p,el(\"b\",null,c.progress.done+\"/\"+c.progress.total));m.appendChild(p);lastColor=token(\"--acc\");\n }else if(c.state===\"pending\"){var t=el(\"span\",\"st todo\",c.word);t.appendChild(el(\"em\",null,\"\u00B7\"));m.appendChild(t);}\n else{var d=el(\"span\",\"st done\",stageWord(c));d.style.color=color;d.appendChild(el(\"em\",null,c.state===\"partial\"?\"\u2026\":\"\u2713\"));m.appendChild(d);lastColor=color;}\n });\n return m;\n}\n/* the task line: progress and next on the left, the live step on the right; just the live step otherwise */\nfunction taskRow(s){\n var row=el(\"div\",\"row\"),prog=progressOf(s.map),next=s.map&&s.map.next;\n if(prog||next){\n var left=el(\"span\",\"tl\");add(left,el(\"span\",\"dim\",\"\u2514\"));\n if(prog)add(left,el(\"span\",\"dim\",\"task\"),el(\"b\",null,prog.done+\"/\"+prog.total),bar(prog.done,prog.total));\n if(next){if(prog)left.appendChild(joiner());add(left,el(\"span\",\"dim\",\"next\"),el(\"span\",\"acc\",\"\u25B8\"),el(\"span\",\"nx\",next));}\n add(row,left,liveNode(s));return row;\n }\n add(row,el(\"span\",\"dim\",\"\u2514\"),liveNode(s));return row;\n}\nfunction useItems(s){\n var u=s.usage||{},items=[];\n [[\"ctx\",u.ctx],[\"5h\",u.fiveHour],[\"1w\",u.week]].forEach(function(x){if(typeof x[1]===\"number\")items.push(x);});\n return items;\n}\nfunction foot(s){\n var f=el(\"div\",\"foot\");\n useItems(s).forEach(function(x){var u=el(\"span\",\"use\");add(u,x[0],mini(x[1]),el(\"b\",null,x[1]+\"%\"));var w=useColor(x[1]);if(w)u.lastChild.style.color=w;f.appendChild(u);});\n if(s.branch){var g=el(\"span\",\"use\");add(g,\"git\",el(\"b\",null,s.branch));f.appendChild(g);}\n if(s.workspace)f.appendChild(el(\"span\",\"ws\",s.workspace));\n return f.childNodes.length?f:null;\n}\nfunction timeline(s){\n var t=el(\"div\",\"tline\"),cells=s.map.cells,n=cells.length;\n cells.forEach(function(c,i){\n var color=ramp(n<=1?0:i/(n-1)),cur=c.state===\"current\"&&s.state!==\"complete\",todo=c.state===\"pending\";\n var g=el(\"div\",\"stg \"+(cur?\"cur\":todo?\"todo\":\"done\"));g.style.setProperty(\"--c\",color);\n var nextCell=cells[i+1];if(!todo&&!cur&&nextCell&&nextCell.state!==\"pending\")g.style.setProperty(\"--line\",color);\n var l1=el(\"div\",\"line1\"),w;\n if(cur)w=el(\"span\",\"st nowpill\",c.label||c.word.toUpperCase());\n else{w=el(\"span\",\"w\",c.word);if(!todo)w.style.color=color;}\n var meta=el(\"span\",\"meta\");if(c.progress)meta.textContent=c.progress.done+\"/\"+c.progress.total;else if(!todo&&!cur)meta.textContent=c.label?c.label+\" \u2713\":\"\u2713\";\n add(l1,w,meta);add(g,el(\"span\",\"pt\"),l1);\n if(cur){\n var d=el(\"div\",\"detail\"),prog=c.progress;\n if(prog){var r1=el(\"div\",\"row\");add(r1,el(\"span\",\"dim\",\"tasks\"),el(\"b\",null,prog.done+\"/\"+prog.total),bar(prog.done,prog.total));d.appendChild(r1);}\n if(s.map.next){var r2=el(\"div\",\"row\");add(r2,el(\"span\",\"dim\",\"next\"),el(\"span\",\"acc\",\"\u25B8\"),el(\"span\",\"nx\",s.map.next));d.appendChild(r2);}\n var r3=el(\"div\",\"row\"),live=liveNode(s);if(live){r3.appendChild(live);d.appendChild(r3);}\n g.appendChild(d);\n }\n t.appendChild(g);\n });\n return t;\n}\nfunction usageBlock(s){\n var items=useItems(s);if(!items.length&&!s.branch&&!s.workspace)return null;\n var u=el(\"div\",\"usage\");\n items.forEach(function(x){var r=el(\"div\",\"ub\"),tr=el(\"span\",\"track\"),fill=el(\"i\"),w=useColor(x[1]);fill.style.width=x[1]+\"%\";fill.style.background=w||token(\"--acc\");tr.appendChild(fill);var pct=el(\"span\",\"pct\",x[1]+\"%\");if(w)pct.style.color=w;add(r,el(\"span\",null,x[0]),tr,pct);u.appendChild(r);});\n var g=el(\"div\",\"row\");if(s.branch)add(g,\"git\",el(\"b\",null,s.branch));if(s.workspace){if(s.branch)g.appendChild(joiner());g.appendChild(el(\"span\",null,s.workspace));}\n if(g.childNodes.length)u.appendChild(g);\n return u;\n}\nfunction renderInline(s){\n card.appendChild(head(s));\n if(s.state===\"ready\"){var hint=el(\"div\",\"row\");add(hint,el(\"span\",\"dim\",\"no LIT skill yet\"),joiner(),el(\"span\",\"dim\",\"type\"),el(\"kbd\",null,\"lit <task>\"),el(\"span\",\"dim\",\"to start one\"));hint.style.marginTop=\"6px\";card.appendChild(hint);return;}\n if(s.map)card.appendChild(mapRow(s));else card.appendChild(el(\"div\",\"map\"));\n card.appendChild(taskRow(s));\n var f=foot(s);if(!f)return;card.appendChild(f);\n /* a narrow card drops the workspace, then the branch, then the last use items, rather than cut a number */\n var ws=f.querySelector(\".ws\");if(ws&&ws.scrollWidth>ws.clientWidth+1)f.removeChild(ws);\n while(f.lastChild&&f.scrollWidth>f.clientWidth+1)f.removeChild(f.lastChild);\n if(!f.childNodes.length)card.removeChild(f);\n}\nfunction renderPane(s){\n card.appendChild(head(s));\n if(s.state===\"ready\"){\n var hero=el(\"div\",\"hero\"),hs=el(\"div\",\"heros\");add(hs,\"type \",el(\"kbd\",null,\"lit <task>\"),\" in this thread to start one\");\n var ex=el(\"div\",\"examples\");[\"lit add a --shout flag\",\"lit plan the release note\",\"lit-loop fix the parser\"].forEach(function(t){ex.appendChild(el(\"kbd\",null,t));});\n add(hero,el(\"div\",\"flame\",\"\uD83D\uDD25\"),el(\"div\",\"herot\",\"no LIT skill yet\"),hs,ex);card.appendChild(hero);\n }else{\n if(s.state===\"complete\"){var prog=progressOf(s.map),bn=el(\"div\",\"banner\",doneWord(s)+\" \u2713\");if(prog)add(bn,el(\"span\",\"dim\",prog.done+\"/\"+prog.total+\" tasks\"));if(s.ignitedAt)add(bn,el(\"span\",\"dim\",\"\u00B7 \"+span(took(s))));card.appendChild(bn);}\n if(s.map)card.appendChild(timeline(s));else{var r=el(\"div\",\"row\");r.style.marginTop=\"14px\";add(r,liveNode(s));card.appendChild(r);}\n }\n var u=usageBlock(s);if(u)card.appendChild(u);\n}\nfunction render(){\n var s=status;\n if(folded){root.classList.toggle(\"pane\",false);card.className=\"lc folded\";card.textContent=\"\";renderFolded(s);reportSize();return;}\n if(!s)return;\n var p=pane();root.classList.toggle(\"pane\",p);\n card.className=\"lc\"+(s.state===\"complete\"?\" is-done\":s.state===\"ready\"?\" is-idle\":\"\");\n card.textContent=\"\";\n if(p)renderPane(s);else renderInline(s);\n reportSize();\n}\nfunction tick(){\n if(ticker){clearInterval(ticker);ticker=null;}\n if(document.hidden||!card.querySelector(\"[data-since]\"))return;\n ticker=setInterval(function(){var n=card.querySelectorAll(\"[data-since]\");for(var i=0;i<n.length;i++)n[i].textContent=(n[i].getAttribute(\"data-bare\")?\"\":\"\u00B7 \")+clock(Date.now()-Number(n[i].getAttribute(\"data-since\")));},1000);\n}\n/* the card's own opening time comes only from the tool result that created it, never from a poll */\nfunction own(s){if(opened===null&&s&&s.card&&typeof s.card.openedAt===\"number\")opened=s.card.openedAt;}\nfunction fold(){\n folded=true;\n if(timer){clearTimeout(timer);timer=null;}\n if(ticker){clearInterval(ticker);ticker=null;}\n render();\n}\nfunction accept(s,fromTool){\n if(folded||!s||s.version!==1)return;\n if(fromTool)own(s);\n if(opened!==null&&typeof s.cardOpenedAt===\"number\"&&s.cardOpenedAt>opened){fold();return;}\n status=s;if(s.thread)thread=s.thread;\n if(s.working)idleSince=Date.now();\n render();tick();\n}\n\n/* host bridge: window.openai when present, else MCP Apps JSON-RPC over postMessage */\nfunction rpc(method,params){return new Promise(function(resolve,reject){var id=nextId++;pending[id]={resolve:resolve,reject:reject};window.parent.postMessage({jsonrpc:\"2.0\",id:id,method:method,params:params},\"*\");setTimeout(function(){if(pending[id]){delete pending[id];reject(new Error(method+\" timed out\"));}},5000);});}\nwindow.addEventListener(\"message\",function(ev){\n var m=ev.data;if(ev.source!==window.parent||!m||m.jsonrpc!==\"2.0\")return;\n if(m.id!=null&&pending[m.id]){var p=pending[m.id];delete pending[m.id];if(m.error)p.reject(m.error);else p.resolve(m.result);return;}\n if(m.method===\"ui/notifications/tool-result\"&&m.params)accept(m.params.structuredContent,true);\n if(m.method===\"ui/notifications/host-context-changed\"&&m.params){if(m.params.displayMode)hostMode=m.params.displayMode;applyTheme(m.params.theme||null);}\n});\nwindow.addEventListener(\"openai:set_globals\",function(){if(window.openai){var o=window.openai.toolOutput;own(o);applyTheme(window.openai.theme);if(o&&!status)accept(o,true);else render();}});\nfunction callStatus(){\n var args=thread?{thread_id:thread}:{};\n if(bridge===\"openai\")return window.openai.callTool(STATUS_TOOL,args).then(function(r){return r&&(r.structuredContent||r.result&&r.result.structuredContent);});\n return rpc(\"tools/call\",{name:STATUS_TOOL,arguments:args}).then(function(r){return r&&r.structuredContent;});\n}\nvar lastHeight=0;\nfunction reportSize(){\n if(pane())return;\n var h=Math.ceil(card.getBoundingClientRect().height)+2;if(h===lastHeight)return;lastHeight=h;\n if(bridge===\"openai\"&&typeof window.openai.notifyIntrinsicHeight===\"function\"){try{window.openai.notifyIntrinsicHeight(h);}catch(e){}}\n else if(bridge===\"mcp\")window.parent.postMessage({jsonrpc:\"2.0\",method:\"ui/notifications/size-changed\",params:{height:h}},\"*\");\n}\nfunction applyTheme(theme){\n var dark=theme?theme===\"dark\":!(window.matchMedia&&window.matchMedia(\"(prefers-color-scheme: light)\").matches);\n root.classList.toggle(\"light\",!dark);if(status)render();\n}\n\nfunction delay(){\n if(failures>0)return Math.min(MAX_BACKOFF,FAST*Math.pow(2,failures));\n if(status&&status.working)return FAST;\n return Date.now()-idleSince>120000?IDLE:SLOW;\n}\nfunction schedule(){if(timer)clearTimeout(timer);timer=null;if(!document.hidden&&!folded)timer=setTimeout(poll,delay());}\nfunction poll(){\n if(folded)return;\n callStatus().then(function(s){failures=0;accept(s);},function(){failures=Math.min(failures+1,5);}).then(schedule);\n}\ndocument.addEventListener(\"visibilitychange\",function(){if(folded)return;if(document.hidden){if(timer)clearTimeout(timer);timer=null;tick();}else{idleSince=Date.now();tick();poll();}});\nwindow.addEventListener(\"resize\",function(){if(status||folded)render();});\n\nfunction start(){\n if(window.openai&&typeof window.openai.callTool===\"function\"){\n bridge=\"openai\";applyTheme(window.openai.theme);if(window.openai.toolOutput)accept(window.openai.toolOutput,true);poll();return;\n }\n bridge=\"mcp\";applyTheme(null);\n rpc(\"ui/initialize\",{protocolVersion:\"2026-01-26\",appInfo:{name:\"lit-card\",version:\"1\"},appCapabilities:{availableDisplayModes:[\"inline\",\"fullscreen\"]}}).then(function(r){\n window.parent.postMessage({jsonrpc:\"2.0\",method:\"ui/notifications/initialized\",params:{}},\"*\");\n var ctx=r&&r.hostContext;if(ctx&&ctx.displayMode)hostMode=ctx.displayMode;applyTheme(ctx&&ctx.theme||null);poll();\n },function(){poll();});\n}\nif(window.matchMedia)window.matchMedia(\"(prefers-color-scheme: light)\").addEventListener(\"change\",function(){if(!(window.openai&&window.openai.theme))applyTheme(null);});\nstart();\n})();\n</script></body></html>\n";
|