@litfamily/litcodex 1.0.24 → 1.0.26
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 +11 -12
- package/README.md +11 -13
- package/dist/install/auto-update-doctor.d.ts +15 -0
- package/dist/install/auto-update-doctor.js +146 -0
- package/dist/install/doctor-render.js +7 -1
- package/dist/install/doctor.d.ts +9 -0
- package/dist/install/doctor.js +42 -19
- package/dist/install/generated-skill-payload-hashes.d.ts +3 -3
- package/dist/install/generated-skill-payload-hashes.js +3 -3
- package/dist/install/index.js +11 -2
- package/dist/install/types.d.ts +7 -3
- package/marketplace/plugins/litcodex/.codex-plugin/plugin.json +1 -1
- package/marketplace/plugins/litcodex/components/auto-update/dist/auto-update.d.ts +7 -0
- package/marketplace/plugins/litcodex/components/auto-update/dist/auto-update.js +55 -7
- package/marketplace/plugins/litcodex/components/auto-update/dist/cli.js +5 -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/codex-hook.js +5 -3
- package/marketplace/plugins/litcodex/components/lit-loop/dist/directive.d.ts +2 -8
- package/marketplace/plugins/litcodex/components/lit-loop/dist/directive.js +2 -45
- package/marketplace/plugins/litcodex/components/lit-loop/dist/hook-cli.d.ts +1 -8
- package/marketplace/plugins/litcodex/components/lit-loop/dist/hook-cli.js +27 -32
- package/marketplace/plugins/litcodex/components/lit-loop/dist/route-context.d.ts +8 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/route-context.js +69 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/route-heads.d.ts +6 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/route-heads.js +285 -0
- 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/bundled-rules/lit-humanizer.md +4 -2
- package/marketplace/plugins/litcodex/components/rules/dist/deliverable-hedge-guard.js +23 -2
- 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/skills/lit-humanizer/references/taxonomy.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-humanizer/rules.json +10 -7
- package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/core.mjs +13 -2
- package/node_modules/@litcodex/lit-loop/dist/codex-hook.js +5 -3
- package/node_modules/@litcodex/lit-loop/dist/directive.d.ts +2 -8
- package/node_modules/@litcodex/lit-loop/dist/directive.js +2 -45
- package/node_modules/@litcodex/lit-loop/dist/hook-cli.d.ts +1 -8
- package/node_modules/@litcodex/lit-loop/dist/hook-cli.js +27 -32
- package/node_modules/@litcodex/lit-loop/dist/route-context.d.ts +8 -0
- package/node_modules/@litcodex/lit-loop/dist/route-context.js +69 -0
- package/node_modules/@litcodex/lit-loop/dist/route-heads.d.ts +6 -0
- package/node_modules/@litcodex/lit-loop/dist/route-heads.js +285 -0
- package/node_modules/@litcodex/lit-loop/package.json +1 -1
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/taxonomy.md +1 -1
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/rules.json +10 -7
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/core.mjs +13 -2
- package/package.json +2 -2
- package/readme-assets/badge-version.svg +1 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/jev-hint.d.ts +0 -123
- package/marketplace/plugins/litcodex/components/lit-loop/dist/jev-hint.js +0 -553
- package/node_modules/@litcodex/lit-loop/dist/jev-hint.d.ts +0 -123
- package/node_modules/@litcodex/lit-loop/dist/jev-hint.js +0 -553
|
@@ -884,14 +884,15 @@
|
|
|
884
884
|
"id": "ko-negative-pledge",
|
|
885
885
|
"lang": "ko",
|
|
886
886
|
"severity": "block",
|
|
887
|
-
"pattern": "(?<![가-힣])(?:이|본|해당|위|아래)\\s+(?:자료|문서|보고서|슬라이드|덱|표|그림|그래프|차트|수치|결과|비교|분석|내용|예시)(?:은|는)\\s[^.!?\\n]{0,40}?(?:(?:해석하|의미하|주장하|대표하)(?:지\\s*(?:[*_]{1,2}\\s*)?(?:않(?:음|는다|습니다)|말\\s
|
|
887
|
+
"pattern": "(?<![가-힣])(?:이|본|해당|위|아래)\\s+(?:자료|문서|보고서|슬라이드|덱|표|그림|그래프|차트|수치|결과|비교|분석|내용|예시)(?:은|는)\\s[^.!?\\n]{0,40}?(?:(?:해석하|의미하|주장하|대표하)(?:지\\s*(?:[*_]{1,2}\\s*)?(?:않(?:음|는다|습니다)|말\\s*것|마세요|마십시오|말아\\s*주(?:세요|십시오))|(?:으)?면\\s*(?:[*_]{1,2}\\s*)?안\\s*(?:됨|된다|됩니다)(?![가-힣]))|(?:(?:비교|결론|벤치마크|순위|대표값|일반화)(?:이|가)|목적이|(?:위한|려는)\\s*것이)\\s*(?:[*_]{1,2}\\s*)?(?:아님|아니다|아닙니다)(?![가-힣])|순위표(?:이|가)\\s*(?:[*_]{1,2}\\s*)?(?:아님|아니다|아닙니다|아니고)(?![가-힣]))|(?:비교|결론|벤치마크|순위|대표값|일반화)(?:처럼|으로|로)\\s*(?:[*_]{1,2}\\s*)?(?:쓰|사용하|해석하|읽|간주하|인용하)(?:지\\s*(?:[*_]{1,2}\\s*)?(?:않(?:음|는다|습니다)|말\\s*것|마세요|마십시오|말아\\s*주(?:세요|십시오))|(?:으)?면\\s*(?:[*_]{1,2}\\s*)?안\\s*(?:됨|된다|됩니다)(?![가-힣]))|(?:공개|배포|대외|외부|홍보|발표|보고|비교|인용|공식)용\\s*(?:자료|문서|수치|표|그래프)(?:이|가)\\s*(?:[*_]{1,2}\\s*)?(?:아님|아니다|아닙니다)(?![가-힣])|(?<![가-힣])(?:숫자|수치)(?:들)?(?:은|는|이|가|을|를|끼리|도)(?![가-힣])(?:(?!면\\s)[^.!?\\n]){0,40}?(?<![와과]\\s)(?<![와과])비교할\\s*수\\s*(?:는\\s*)?없(?:다|습니다|음|나)(?![가-힣])|(?<![가-힣])(?:숫자|수치)(?:들)?끼리\\s*(?:서로\\s*|직접\\s*)?비교(?:해서|하여|해)\\s[^.!?\\n]{0,30}?[\"”’']\\s*(?:는|라는)\\s*결론[^.!?\\n]{0,8}?(?:수\\s*없(?:다|습니다)(?![가-힣])|(?:으)?면\\s*(?:[*_]{1,2}\\s*)?안\\s*(?:됨|된다|됩니다)(?![가-힣]))|(?:(?<![가-힣])(?:숫자|수치)(?:들)?|(?<![가-힣])(?:이|위|아래|본)\\s+(?:표|값|자료|그래프|차트))[^.!?\\n]{0,40}?(?:빠르|느리)다고\\s*판단하(?:지\\s*(?:[*_]{1,2}\\s*)?(?:말\\s*것|마세요|마십시오|말아\\s*주(?:세요|십시오))|(?:으)?면\\s*(?:[*_]{1,2}\\s*)?안\\s*(?:됨|된다|됩니다)(?![가-힣]))|(?:빠르|느리)다[\"”’']?\\s*(?:는|라는)\\s*식으로\\s*읽(?:지\\s*(?:[*_]{1,2}\\s*)?(?:말\\s*것|마세요|마십시오|말아\\s*주(?:세요|십시오))|(?:으)?면\\s*(?:[*_]{1,2}\\s*)?안\\s*(?:됨|된다|됩니다)(?![가-힣]))|만으로\\s[^.!?\\n]{0,40}?(?<![가-힣])순위를\\s*정하[^.!?\\n]{0,25}?(?:수\\s*없(?:다|습니다|음)(?![가-힣])|(?:해|하)서는\\s*안\\s*(?:됨|된다|됩니다)(?![가-힣]))|(?<![가-힣])순위[^.!?\\n]{0,20}?근거로\\s*(?:[*_]{1,2}\\s*)?사용할\\s*수\\s*(?:는\\s*)?없(?:다|습니다|음)(?![가-힣])|할\\s*수\\s*없는\\s*것\\s{0,3}:\\s{0,3}(?:[*_]{1,2}\\s{0,3})?[^.!?\\n]{0,30}?(?<![가-힣])순위를?\\s*매기거나|(?<![가-힣])표의\\s+(?:나열\\s+)?순서(?:는|가)\\s[^.!?\\n]{0,20}?(?<![가-힣])순위(?:(?:를|을)\\s*뜻하지\\s*(?:[*_]{1,2}\\s*)?않(?:음|는다|습니다)|(?:가|이)\\s*(?:[*_]{1,2}\\s*)?(?:아님|아니다|아닙니다)(?![가-힣]))",
|
|
888
888
|
"flags": "m",
|
|
889
889
|
"scope": "line",
|
|
890
890
|
"context": [
|
|
891
891
|
"fenced_code",
|
|
892
|
-
"quoted_user_text"
|
|
892
|
+
"quoted_user_text",
|
|
893
|
+
"blockquote_callout"
|
|
893
894
|
],
|
|
894
|
-
"rationale": "A line that tells the reader what the document, table or number is not for
|
|
895
|
+
"rationale": "A line that tells the reader what the document, table or number is not for belongs in the chat reply, or it becomes a fact about the data. Refused shapes: a self-reference topic (이/본/해당/위/아래 plus a document noun plus 은/는) followed on the same line by a negated claim verb, a claim noun plus 아님, or 위한/려는 것이 아님; a comparison or ranking noun plus (으)로/처럼 and a negated use or reading verb, including the polite 말아 주세요 form; a purpose-용 data noun such as 공개용 수치 plus 아님; 숫자/수치 said to be incomparable, or compared among themselves toward a quoted verdict; a speed judgment forbidden for these numbers; a ranking refused for this data (…만으로 순위를 정할 수 없다, 할 수 없는 것: 순위를 매기거나); and a table whose row order is said not to be a ranking. Kept outside the pattern because operating rules, method lines, manuals and standard notices are written with them: use verbs after a self-reference, 근거/평가/증거/추천, inference limits, conditional method facts, type-system rules, reported speech and explainers, order notices with no table anchor, and the legal or financial notice verbs (대체하, 보장하, 권유). A bold-label callout line (> **주의:** …) is read as well; a plain quote is not.",
|
|
895
896
|
"fixture_ids": [
|
|
896
897
|
"ko-negative-pledge:positive",
|
|
897
898
|
"ko-negative-pledge:negative"
|
|
@@ -906,7 +907,8 @@
|
|
|
906
907
|
"scope": "document",
|
|
907
908
|
"context": [
|
|
908
909
|
"fenced_code",
|
|
909
|
-
"quoted_user_text"
|
|
910
|
+
"quoted_user_text",
|
|
911
|
+
"blockquote_callout"
|
|
910
912
|
],
|
|
911
913
|
"rationale": "Two or more sentences that end in 해석하지/주장하지/대표하지 않음, or in a claim noun plus 이/가 plus 아님, turn a document into a list of disclaimers. 의미하, 간주하, 인용하 and the use verbs are left out because repeated definitions, data-handling rules and operating rules end the same way. A single such sentence is left to the advisory ko-status-negation rule.",
|
|
912
914
|
"fixture_ids": [
|
|
@@ -918,14 +920,15 @@
|
|
|
918
920
|
"id": "en-negative-pledge",
|
|
919
921
|
"lang": "en",
|
|
920
922
|
"severity": "block",
|
|
921
|
-
"pattern": "\\b(?:this|these)\\s+(?:deck|report|document|analysis|table|chart|figure|figures|numbers|results|slide|comparison)\\s+(?:(?:is|are)\\s+not\\s+(?:intended|meant|to\\s+be\\s+(?:read|used|taken|interpreted))(?:\\s+to\\s+be\\s+(?:read|used|taken|interpreted))?\\s+as\\b(?!\\s*(?:a\\s+substitute|a\\s+replacement|(?:legal|investment|medical|professional)\\s+advice))\\s+(?:an?\\s+|the\\s+)?(?:[A-Za-z0-9-]+\\s+){0,4}?(?:comparison|benchmark|ranking)s?\\b(?!-)(?!\\s+(?:arm|arms|group|groups|standard|standards|class|baseline)\\b)|(?:should|must)\\s+not\\s+be\\s+(?:read|used|taken|interpreted)\\s+as\\s+(?:an?\\s+|the\\s+)?(?:[A-Za-z0-9-]+\\s+){0,4}?(?:comparison|benchmark|ranking)s?\\b(?!-)(?!\\s+(?:arm|arms|group|groups|standard|standards|class|baseline)\\b)|makes?\\s+no\\s+claims?\\s+(?:about|that|regarding|as\\s+to)\\b)|\\b(?:this|these)\\s+(?:is|are)\\s+not\\s+(?:intended|meant)\\s+as\\b(?!\\s*(?:a\\s+substitute|a\\s+replacement|(?:legal|investment|medical|professional)\\s+advice))\\s+(?:an?\\s+|the\\s+)?(?:[A-Za-z0-9-]+\\s+){0,4}?(?:comparison|benchmark|ranking)s?\\b(?!-)(?!\\s+(?:arm|arms|group|groups|standard|standards|class|baseline)\\b)|\\bthe\\s+(?:deck|report|document|analysis)\\s+makes?\\s+no\\s+claims?\\s+(?:about|that|regarding|as\\s+to)\\b|(?:^|\\s[-*]\\s)\\s*(?:[-*]\\s+|\\d+\\.\\s+)?(?:[*_]{1,2})?not\\s+(?:intended|meant|to\\s+be\\s+read|to\\s+be\\s+used)\\s+as\\b(?!\\s*(?:a\\s+substitute|a\\s+replacement|(?:legal|investment|medical|professional)\\s+advice))\\s+(?:an?\\s+|the\\s+)?(?:[A-Za-z0-9-]+\\s+){0,4}?(?:comparison|benchmark|ranking)s?\\b(?!-)(?!\\s+(?:arm|arms|group|groups|standard|standards|class|baseline)\\b)|\\b(?:this|these)\\s+(?:table|chart|figure|figures|numbers|results|comparison|analysis)\\s+(?:does|do)\\s+not\\s+constitute\\s+(?:an?\\s+)?[^.!?]{0,60}?\\b(?:comparison|benchmark|ranking)s?\\b(?!-)(?!\\s+(?:arm|arms|group|groups|standard|standards|class|baseline)\\b)",
|
|
923
|
+
"pattern": "\\b(?:this|these)\\s+(?:deck|report|document|analysis|table|chart|figure|figures|numbers|results|slide|comparison)\\s+(?:(?:is|are)\\s+not\\s+(?:intended|meant|to\\s+be\\s+(?:read|used|taken|interpreted))(?:\\s+to\\s+be\\s+(?:read|used|taken|interpreted))?\\s+as\\b(?!\\s*(?:a\\s+substitute|a\\s+replacement|(?:legal|investment|medical|professional)\\s+advice))\\s+(?:an?\\s+|the\\s+)?(?:[A-Za-z0-9-]+\\s+){0,4}?(?:comparison|benchmark|ranking)s?\\b(?!-)(?!\\s+(?:arm|arms|group|groups|standard|standards|class|baseline)\\b)|(?:should|must)\\s+not\\s+be\\s+(?:read|used|taken|interpreted)\\s+as\\s+(?:an?\\s+|the\\s+)?(?:[A-Za-z0-9-]+\\s+){0,4}?(?:comparison|benchmark|ranking)s?\\b(?!-)(?!\\s+(?:arm|arms|group|groups|standard|standards|class|baseline)\\b)|makes?\\s+no\\s+claims?\\s+(?:about|that|regarding|as\\s+to)\\b)|\\b(?:this|these)\\s+(?:is|are)\\s+not\\s+(?:intended|meant)\\s+as\\b(?!\\s*(?:a\\s+substitute|a\\s+replacement|(?:legal|investment|medical|professional)\\s+advice))\\s+(?:an?\\s+|the\\s+)?(?:[A-Za-z0-9-]+\\s+){0,4}?(?:comparison|benchmark|ranking)s?\\b(?!-)(?!\\s+(?:arm|arms|group|groups|standard|standards|class|baseline)\\b)|\\bthe\\s+(?:deck|report|document|analysis)\\s+makes?\\s+no\\s+claims?\\s+(?:about|that|regarding|as\\s+to)\\b|(?:^|\\s[-*]\\s)\\s*(?:[-*]\\s+|\\d+\\.\\s+)?(?:[*_]{1,2})?not\\s+(?:intended|meant|to\\s+be\\s+read|to\\s+be\\s+used)\\s+as\\b(?!\\s*(?:a\\s+substitute|a\\s+replacement|(?:legal|investment|medical|professional)\\s+advice))\\s+(?:an?\\s+|the\\s+)?(?:[A-Za-z0-9-]+\\s+){0,4}?(?:comparison|benchmark|ranking)s?\\b(?!-)(?!\\s+(?:arm|arms|group|groups|standard|standards|class|baseline)\\b)|\\b(?:this|these)\\s+(?:table|chart|figure|figures|numbers|results|comparison|analysis)\\s+(?:does|do)\\s+not\\s+constitute\\s+(?:an?\\s+)?[^.!?]{0,60}?\\b(?:comparison|benchmark|ranking)s?\\b(?!-)(?!\\s+(?:arm|arms|group|groups|standard|standards|class|baseline)\\b)|\\bthey\\s+are\\s+not\\s+(?:an?\\s+)?(?:comparison|benchmark|ranking)s?\\b(?!-)(?!\\s+(?:arm|arms|group|groups|standard|standards|class|baseline)\\b)(?=\\s*(?:[.!?*_]|$))|\\b(?:do\\s+not|don[’']t)\\s+compare\\s+(?:these|those)\\s+(?:numbers|figures|results|values|scores|latencies)(?:\\s+(?:with|to)\\s+(?:each\\s+other|one\\s+another)\\b|(?=\\s*(?:[.!?*_]|$)))|\\b(?:these|those|the)\\s+(?:numbers|figures)\\s+are\\s+not\\s+comparable(?:\\s+(?:with|to)\\s+(?:each\\s+other|one\\s+another)\\b|(?=\\s*(?:[.!?*_]|$)))|\\b(?:this|the|these|our)\\s+(?:table|chart|figure|graph|list|report|document|deck|slide|page|summary|overview|analysis)s?\\s+(?:is|are)\\s+not\\s+(?:(?:meant|intended)\\s+)?(?:(?:to\\s+be\\s+)?(?:an?\\s+)?(?:ranking|benchmark|comparison|leaderboard|endorsement)s?\\b(?!-)(?!\\s+(?:arm|arms|group|groups|standard|standards|class|baseline)\\b)(?=\\s*(?:[.!?*_]|$))|to\\s+(?:rank|compare|benchmark)\\b)|\\b(?:do\\s+not|don[’']t)\\s+read\\s+(?:this|the|these|our)\\s+(?:table|chart|figure|graph|list|report|document|deck|slide|page|summary|overview|analysis)s?\\s+as\\s+(?:an?\\s+)?(?:comparison|benchmark|ranking)s?\\b(?!-)(?!\\s+(?:arm|arms|group|groups|standard|standards|class|baseline)\\b)",
|
|
922
924
|
"flags": "i",
|
|
923
925
|
"scope": "sentence",
|
|
924
926
|
"context": [
|
|
925
927
|
"fenced_code",
|
|
926
|
-
"quoted_user_text"
|
|
928
|
+
"quoted_user_text",
|
|
929
|
+
"blockquote_callout"
|
|
927
930
|
],
|
|
928
|
-
"rationale": "A sentence saying the deck, report or numbers are not intended, meant or to be read as a comparison, benchmark or ranking, that a table or set of figures does not constitute one,
|
|
931
|
+
"rationale": "A sentence saying the deck, report or numbers are not intended, meant or to be read as a comparison, benchmark or ranking, or that the document makes no claim about something, belongs in the chat reply. The same refusal covers a table, chart or set of figures that does not constitute one, a closing \"they are not a ranking.\", \"do not compare these numbers (with each other).\" or \"the numbers are not comparable.\", and a deliverable subject (this table, the report, our deck) that is not a ranking, benchmark, comparison, leaderboard or endorsement or is not meant to rank or compare. The comparison, benchmark or ranking noun is required so safety labels and advice, offer or diagnosis notices stay clean; a refusal that goes on to describe or instruct (a ranking of schools, comparable with the previous release, compare these values directly; convert to SI first, this is not a benchmark, it is …) stays clean, and a bare \"this\" is not a subject. A bold-label callout line (> **Note:** …) is read as well; a plain quote is not.",
|
|
929
932
|
"fixture_ids": [
|
|
930
933
|
"en-negative-pledge:positive",
|
|
931
934
|
"en-negative-pledge:negative"
|
|
@@ -82,7 +82,12 @@ function sourceRows(text) {
|
|
|
82
82
|
if (/^\s{0,3}>\s?/.test(line)) {
|
|
83
83
|
captionPending = 0;
|
|
84
84
|
figureActive = false;
|
|
85
|
-
|
|
85
|
+
// A quote that opens with a bold label (> **주의:** ...) is the author's own callout, not quoted
|
|
86
|
+
// user text. Rules with the blockquote_callout context still read it, with the marker blanked.
|
|
87
|
+
const callout = /^\s{0,3}>\s?(?:\*\*|__)[^*_\n]{1,24}(?:\*\*|__)/.test(line)
|
|
88
|
+
? inlineCodeAsSpaces(line.replace(/^\s{0,3}>\s?/, (prefix) => ' '.repeat(prefix.length)))
|
|
89
|
+
: '';
|
|
90
|
+
return { line, number: index + 1, candidate: '', callout, skipped: true, caption: false, captionAttribution: false };
|
|
86
91
|
}
|
|
87
92
|
const candidate = inlineCodeAsSpaces(line);
|
|
88
93
|
const caption = isCaption(line);
|
|
@@ -149,7 +154,8 @@ function splitSentences(span) {
|
|
|
149
154
|
}
|
|
150
155
|
|
|
151
156
|
function ruleSegments(rows, rule, cache) {
|
|
152
|
-
const
|
|
157
|
+
const readCallouts = rule.context.includes('blockquote_callout');
|
|
158
|
+
const cacheKey = `${rule.scope}/${rule.context.includes('table_figure_caption')}/${readCallouts}`;
|
|
153
159
|
if (cache.has(cacheKey)) return cache.get(cacheKey);
|
|
154
160
|
const skipCaptions = rule.context.includes('table_figure_caption');
|
|
155
161
|
const segments = [];
|
|
@@ -162,6 +168,11 @@ function ruleSegments(rows, rule, cache) {
|
|
|
162
168
|
};
|
|
163
169
|
|
|
164
170
|
for (const row of rows) {
|
|
171
|
+
if (readCallouts && row.callout) {
|
|
172
|
+
flush();
|
|
173
|
+
segments.push({ text: row.callout, line: row.number });
|
|
174
|
+
continue;
|
|
175
|
+
}
|
|
165
176
|
const captionExempt = skipCaptions && (row.caption || row.captionAttribution);
|
|
166
177
|
if (row.skipped || captionExempt || (rule.scope === 'sentence' && !row.candidate.trim())) {
|
|
167
178
|
flush();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@litfamily/litcodex",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
4
4
|
"description": "Codex CLI plugin that turns a request into a goal with checks, keeps the evidence in your project and hands unfinished work to the next session.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"codex",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"readme-assets"
|
|
53
53
|
],
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@litcodex/lit-loop": "1.0.
|
|
55
|
+
"@litcodex/lit-loop": "1.0.26"
|
|
56
56
|
},
|
|
57
57
|
"bundledDependencies": [
|
|
58
58
|
"@litcodex/lit-loop"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="146" height="20" role="img" aria-label="release: 1.0.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="146" height="20" role="img" aria-label="release: 1.0.26"><title>release: 1.0.26</title><g shape-rendering="crispEdges"><rect width="49" height="20" fill="#080d14"/><rect x="49" width="97" height="20" fill="#ff6337"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text x="255" y="140" textLength="390" transform="scale(.1)">release</text><text x="965" y="140" textLength="870" transform="scale(.1)" fill="#080D14">1.0.26</text></g></svg>
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
export declare const JEV_FLAG_ENV = "LITCODEX_JEV";
|
|
2
|
-
export declare const JEV_KEY_ENV = "TYPESAFE_API_KEY";
|
|
3
|
-
export declare const JEV_ENDPOINT = "https://api.typesafe.ai/v1/systemone";
|
|
4
|
-
export declare const JEV_DEFAULT_MODEL = "jev-1.13.0";
|
|
5
|
-
export declare const JEV_DEFAULT_TIMEOUT_MS = 1500;
|
|
6
|
-
export declare const JEV_MAX_TIMEOUT_MS = 3000;
|
|
7
|
-
export declare const JEV_DEFAULT_MAX_CALLS = 200;
|
|
8
|
-
export declare const JEV_DEFAULT_MIN_CONFIDENCE = 0.35;
|
|
9
|
-
export declare const JEV_MAX_PROMPT_CHARS = 2000;
|
|
10
|
-
export declare const JEV_REDACTION_WINDOW_CHARS = 8000;
|
|
11
|
-
export declare const JEV_MAX_DESCRIPTION_CHARS = 300;
|
|
12
|
-
export declare const JEV_MAX_BODY_BYTES: number;
|
|
13
|
-
export declare const JEV_STATE_DIR = ".litcodex/jev";
|
|
14
|
-
export type JevSwitchState = "off" | "on" | "flag on but TYPESAFE_API_KEY missing";
|
|
15
|
-
/** The doctor/status state. Never reveals the key or its length. */
|
|
16
|
-
export declare function jevSwitchState(env: NodeJS.ProcessEnv): JevSwitchState;
|
|
17
|
-
/**
|
|
18
|
-
* Redact an 8,000-character window (home paths, e-mail addresses, the literal key and token-shaped
|
|
19
|
-
* strings, in that order), then cut to 2,000 characters. A run of 8 or more token characters left at
|
|
20
|
-
* the cut is part of something the cut split, so it becomes `[secret]` too.
|
|
21
|
-
*/
|
|
22
|
-
export declare function redactJevPrompt(prompt: string, key?: string): string;
|
|
23
|
-
export interface JevCatalogEntry {
|
|
24
|
-
readonly id: string;
|
|
25
|
-
readonly description: string;
|
|
26
|
-
}
|
|
27
|
-
/** The installed plugin's `skills/` directory, resolved the same way the mode router finds bodies. */
|
|
28
|
-
export declare function defaultJevSkillsRoot(): string;
|
|
29
|
-
/**
|
|
30
|
-
* This plugin's own skills that the host may load on the model's initiative: every `skills/<id>/SKILL.md`
|
|
31
|
-
* whose frontmatter `name` equals its directory, minus skills whose `agents/openai.yaml` sets
|
|
32
|
-
* `allow_implicit_invocation: false` (those run only on an explicit user invocation).
|
|
33
|
-
*/
|
|
34
|
-
export declare function loadJevCatalog(skillsRoot?: string): JevCatalogEntry[];
|
|
35
|
-
export type JevSkipReason = "slash-command" | "skill-mention" | "routed" | "too-short";
|
|
36
|
-
/** Why this turn gets no Jev request, or null when it is eligible. Pure. */
|
|
37
|
-
export declare function jevSkipReason(prompt: string, catalogIds?: ReadonlySet<string>): JevSkipReason | null;
|
|
38
|
-
export interface JevRequestBody {
|
|
39
|
-
readonly model: string;
|
|
40
|
-
readonly state: string;
|
|
41
|
-
readonly questions: {
|
|
42
|
-
readonly which: {
|
|
43
|
-
readonly type: "choice";
|
|
44
|
-
readonly instructions: string;
|
|
45
|
-
readonly criteria: Readonly<Record<string, string>>;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
export declare function buildJevRequestBody(model: string, state: string, catalog: readonly JevCatalogEntry[]): JevRequestBody;
|
|
50
|
-
export type JevVerdict = {
|
|
51
|
-
readonly kind: "hint";
|
|
52
|
-
readonly skillId: string;
|
|
53
|
-
readonly confidence: number;
|
|
54
|
-
} | {
|
|
55
|
-
readonly kind: "none";
|
|
56
|
-
readonly confidence: number;
|
|
57
|
-
} | {
|
|
58
|
-
readonly kind: "low-confidence";
|
|
59
|
-
readonly choice: string;
|
|
60
|
-
readonly confidence: number;
|
|
61
|
-
} | {
|
|
62
|
-
readonly kind: "rejected";
|
|
63
|
-
};
|
|
64
|
-
/** Validate an already-parsed response against the ids that were sent. Nothing else is trusted. */
|
|
65
|
-
export declare function judgeJevResponse(parsed: unknown, catalogIds: ReadonlySet<string>, minConfidence: number): JevVerdict;
|
|
66
|
-
export declare function jevHintLine(skillId: string): string;
|
|
67
|
-
/** The opt-in (`LITCODEX_JEV_SHOW=1`) visible line for a hinted turn: skill id and latency only. */
|
|
68
|
-
export declare function jevShowLine(skillId: string, latencyMs: number): string;
|
|
69
|
-
/** Once-per-session awareness banner. Plain text: Codex renders hook systemMessage control characters literally. */
|
|
70
|
-
export declare const JEV_ON_BANNER = "\u2726 Jev skill hint ON";
|
|
71
|
-
export declare function jevFallbackNote(reason: string): string;
|
|
72
|
-
export interface JevHttpRequest {
|
|
73
|
-
readonly method: "POST";
|
|
74
|
-
readonly headers: Readonly<Record<string, string>>;
|
|
75
|
-
readonly body: string;
|
|
76
|
-
readonly signal: AbortSignal;
|
|
77
|
-
}
|
|
78
|
-
export interface JevHttpResponse {
|
|
79
|
-
readonly status: number;
|
|
80
|
-
text(): Promise<string>;
|
|
81
|
-
}
|
|
82
|
-
/** Injected in tests; the default uses the runtime's built-in `fetch`. */
|
|
83
|
-
export type JevHttpClient = (url: string, request: JevHttpRequest) => Promise<JevHttpResponse>;
|
|
84
|
-
export declare const fetchJevHttpClient: JevHttpClient;
|
|
85
|
-
export interface JevSessionState {
|
|
86
|
-
readonly version: 1;
|
|
87
|
-
readonly calls: number;
|
|
88
|
-
readonly noted: boolean;
|
|
89
|
-
readonly announced: boolean;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* The session record: fresh when missing or malformed, null when `.litcodex`, `.litcodex/jev` or the
|
|
93
|
-
* record itself is a symlink or the wrong kind of entry, so a checked-in link is never read through.
|
|
94
|
-
*/
|
|
95
|
-
export declare function readJevSessionState(path: string): JevSessionState | null;
|
|
96
|
-
export interface JevHintInput {
|
|
97
|
-
readonly prompt: string;
|
|
98
|
-
readonly sessionId: string | null;
|
|
99
|
-
readonly repoRoot: string;
|
|
100
|
-
readonly env: NodeJS.ProcessEnv;
|
|
101
|
-
readonly http?: JevHttpClient;
|
|
102
|
-
readonly skillsRoot?: string;
|
|
103
|
-
readonly now?: () => number;
|
|
104
|
-
}
|
|
105
|
-
/** A hint sets `additionalContext`, plus `systemMessage` only with `LITCODEX_JEV_SHOW=1`; a note sets `systemMessage`. */
|
|
106
|
-
export interface JevHintResult {
|
|
107
|
-
readonly additionalContext?: string;
|
|
108
|
-
readonly systemMessage?: string;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Decide the optional hint for one UserPromptSubmit turn. Never throws; every failure resolves to at
|
|
112
|
-
* most one visible fallback note per session and otherwise to nothing.
|
|
113
|
-
*/
|
|
114
|
-
export declare function runJevSkillHint(input: JevHintInput): Promise<JevHintResult>;
|
|
115
|
-
/**
|
|
116
|
-
* The once-per-session banner, or null. Only when the hint is fully on (flag and key); it is claimed in
|
|
117
|
-
* the session state before it is shown, so a state write failure shows nothing rather than repeating.
|
|
118
|
-
*/
|
|
119
|
-
export declare function claimJevOnBanner(repoRoot: string, sessionId: string | null, env: NodeJS.ProcessEnv): string | null;
|
|
120
|
-
/** Put the banner (when claimed) on its own line ahead of any other visible Jev line. */
|
|
121
|
-
export declare function withJevBanner(result: JevHintResult, banner: string | null): JevHintResult;
|
|
122
|
-
/** Codex UserPromptSubmit output for a hint and/or visible line; "" when there is nothing to say. */
|
|
123
|
-
export declare function formatJevHookOutput(result: JevHintResult): string;
|