@coldtea/pr-lens-cli 0.1.2 → 0.1.3
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/dist/prompt.d.ts.map +1 -1
- package/dist/prompt.js +5 -1
- package/dist/prompt.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/prompt.ts +5 -1
- package/src/version.ts +1 -1
package/dist/prompt.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../src/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAErC,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IAC/C,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IAC/C,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,SAAS,IAAI,EAAE,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../src/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAErC,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IAC/C,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IAC/C,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,SAAS,IAAI,EAAE,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,aAAa,QA8Bd,CAAC;AAWb,eAAO,MAAM,qBAAqB,YAAa,aAAa,cAAc,MAAM,KAAG,MAsBrE,CAAC;AAEf,eAAO,MAAM,qBAAqB,WAAY,MAAM,KAAG,MAKzC,CAAC;AAEf,eAAO,MAAM,iBAAiB,UAAW,iBAAiB,KAAG,MAO/C,CAAC"}
|
package/dist/prompt.js
CHANGED
|
@@ -20,7 +20,11 @@ export const SYSTEM_PROMPT = [
|
|
|
20
20
|
"- Give the document a title a reviewer would recognise, and a summary that answers 'what does this change do?' in a short paragraph.",
|
|
21
21
|
"- Attach file refs to nodes, edges and steps wherever the diff shows where they live: they become the permalinks a reader clicks.",
|
|
22
22
|
"- Add a data flow only when the change actually has an ordered sequence worth animating. One good flow beats three thin ones.",
|
|
23
|
-
"-
|
|
23
|
+
"- Choose architecture views as a C4-inspired decision tree, not a quota. A small change may need only one useful view.",
|
|
24
|
+
"- Start at the highest useful level: use system context when the change affects a user, an external system or a system boundary; otherwise start with containers. Container views cover affected applications, services, jobs, data stores and runtimes. Add a component child only when an affected container's internals matter. Do not add code-level views by default.",
|
|
25
|
+
"- Each architecture child moves down one level and materially narrows the scope. Skip empty, repetitive or speculative levels, and never create views with substantially the same nodes and edges. Infer boundaries from behavior and dependencies, not folder names alone.",
|
|
26
|
+
"- Keep data-flow views as separate roots, outside the architecture hierarchy. Set the highest useful architecture view `defaultOpen: true`; lower architecture views should normally stay collapsed.",
|
|
27
|
+
"- Views are expandable comment sections. Without views, each requested lens renders once.",
|
|
24
28
|
"- Stat chips carry the numbers that make the change legible, e.g. label 'Postmark calls' value '500x fewer'. Leave out files changed and line counts — those are filled in for you.",
|
|
25
29
|
"",
|
|
26
30
|
"Answer with the JSON document alone. No prose, no markdown fence.",
|
package/dist/prompt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.js","sourceRoot":"","sources":["../src/prompt.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,kIAAkI;IAClI,EAAE;IACF,8RAA8R;IAC9R,EAAE;IACF,qEAAqE;IACrE,0EAA0E;IAC1E,sMAAsM;IACtM,yIAAyI;IACzI,mHAAmH;IACnH,0FAA0F;IAC1F,2EAA2E;IAC3E,oEAAoE;IACpE,EAAE;IACF,wCAAwC;IACxC,yMAAyM;IACzM,4IAA4I;IAC5I,ybAAyb;IACzb,oFAAoF;IACpF,sIAAsI;IACtI,mIAAmI;IACnI,+HAA+H;IAC/H,
|
|
1
|
+
{"version":3,"file":"prompt.js","sourceRoot":"","sources":["../src/prompt.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,kIAAkI;IAClI,EAAE;IACF,8RAA8R;IAC9R,EAAE;IACF,qEAAqE;IACrE,0EAA0E;IAC1E,sMAAsM;IACtM,yIAAyI;IACzI,mHAAmH;IACnH,0FAA0F;IAC1F,2EAA2E;IAC3E,oEAAoE;IACpE,EAAE;IACF,wCAAwC;IACxC,yMAAyM;IACzM,4IAA4I;IAC5I,ybAAyb;IACzb,oFAAoF;IACpF,sIAAsI;IACtI,mIAAmI;IACnI,+HAA+H;IAC/H,wHAAwH;IACxH,4WAA4W;IAC5W,6QAA6Q;IAC7Q,sMAAsM;IACtM,2FAA2F;IAC3F,qLAAqL;IACrL,EAAE;IACF,mEAAmE;CACpE,CAAC,IAAI,CAAC,IAAI,C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C,SAAS,IAAI;IACtG,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC;IACtB,EAAE;IACF,qLAAqL;IACrL,EAAE;IACF,qFAAqF;IACrF,EAAE;IACF,UAAU;IACV,EAAE;IACF,mBAAmB;IACnB,OAAO,CAAC,IAAI,CAAC,WAAW,KAAK,SAAS;QACpC,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,uBAAuB,OAAO,CAAC,IAAI,CAAC,WAAW,qGAAqG;IACxJ,EAAE;IACF,OAAO,CAAC,IAAI,CAAC,KAAK;CACnB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEf,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,MAAc,EAAU,EAAE,CAC9D;IACE,0CAA0C,MAAM,EAAE;IAClD,EAAE;IACF,uRAAuR;CACxR,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEf,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAwB,EAAU,EAAE,CACpE;IACE,oHAAoH;IACpH,EAAE;IACF,KAAK,CAAC,OAAO;IACb,EAAE;IACF,kLAAkL;CACnL,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC"}
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coldtea/pr-lens-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "The PR Lens command line: turn a pull request diff into a schema-valid graph with your own model key, render it, and compose the comment.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Coldtea AI",
|
package/src/prompt.ts
CHANGED
|
@@ -31,7 +31,11 @@ export const SYSTEM_PROMPT = [
|
|
|
31
31
|
"- Give the document a title a reviewer would recognise, and a summary that answers 'what does this change do?' in a short paragraph.",
|
|
32
32
|
"- Attach file refs to nodes, edges and steps wherever the diff shows where they live: they become the permalinks a reader clicks.",
|
|
33
33
|
"- Add a data flow only when the change actually has an ordered sequence worth animating. One good flow beats three thin ones.",
|
|
34
|
-
"-
|
|
34
|
+
"- Choose architecture views as a C4-inspired decision tree, not a quota. A small change may need only one useful view.",
|
|
35
|
+
"- Start at the highest useful level: use system context when the change affects a user, an external system or a system boundary; otherwise start with containers. Container views cover affected applications, services, jobs, data stores and runtimes. Add a component child only when an affected container's internals matter. Do not add code-level views by default.",
|
|
36
|
+
"- Each architecture child moves down one level and materially narrows the scope. Skip empty, repetitive or speculative levels, and never create views with substantially the same nodes and edges. Infer boundaries from behavior and dependencies, not folder names alone.",
|
|
37
|
+
"- Keep data-flow views as separate roots, outside the architecture hierarchy. Set the highest useful architecture view `defaultOpen: true`; lower architecture views should normally stay collapsed.",
|
|
38
|
+
"- Views are expandable comment sections. Without views, each requested lens renders once.",
|
|
35
39
|
"- Stat chips carry the numbers that make the change legible, e.g. label 'Postmark calls' value '500x fewer'. Leave out files changed and line counts — those are filled in for you.",
|
|
36
40
|
"",
|
|
37
41
|
"Answer with the JSON document alone. No prose, no markdown fence.",
|
package/src/version.ts
CHANGED