@plune-ai/cairn 0.11.6 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +29 -25
- package/dist/agent/index.js.map +1 -1
- package/dist/artifacts/contract.d.ts +9 -0
- package/dist/artifacts/contract.d.ts.map +1 -1
- package/dist/artifacts/contract.js +9 -0
- package/dist/artifacts/contract.js.map +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/codegen/lint.d.ts.map +1 -1
- package/dist/codegen/lint.js +5 -1
- package/dist/codegen/lint.js.map +1 -1
- package/dist/config/profiles.js +10 -10
- package/dist/eval/judge.d.ts +8 -1
- package/dist/eval/judge.d.ts.map +1 -1
- package/dist/eval/judge.js +34 -6
- package/dist/eval/judge.js.map +1 -1
- package/dist/llm/cost.d.ts +7 -1
- package/dist/llm/cost.d.ts.map +1 -1
- package/dist/llm/cost.js +11 -2
- package/dist/llm/cost.js.map +1 -1
- package/dist/llm/factory.d.ts +5 -3
- package/dist/llm/factory.d.ts.map +1 -1
- package/dist/llm/factory.js +34 -5
- package/dist/llm/factory.js.map +1 -1
- package/dist/llm/routing.js +2 -2
- package/dist/llm/routing.js.map +1 -1
- package/dist/llm/structured.d.ts.map +1 -1
- package/dist/llm/structured.js +2 -1
- package/dist/llm/structured.js.map +1 -1
- package/dist/prompts/local/index.d.ts.map +1 -1
- package/dist/prompts/local/index.js +2 -0
- package/dist/prompts/local/index.js.map +1 -1
- package/dist/prompts/local/judge-test-cases-run.d.ts +7 -0
- package/dist/prompts/local/judge-test-cases-run.d.ts.map +1 -0
- package/dist/prompts/local/judge-test-cases-run.js +28 -0
- package/dist/prompts/local/judge-test-cases-run.js.map +1 -0
- package/dist/prompts/local/qa-case-critique.d.ts +1 -1
- package/dist/prompts/local/qa-case-critique.d.ts.map +1 -1
- package/dist/prompts/local/qa-case-critique.js +2 -2
- package/dist/prompts/local/qa-gap-cases.d.ts +1 -1
- package/dist/prompts/local/qa-gap-cases.d.ts.map +1 -1
- package/dist/prompts/local/qa-gap-cases.js +2 -2
- package/dist/prompts/local/qa-journey-from-flow.d.ts +1 -1
- package/dist/prompts/local/qa-journey-from-flow.d.ts.map +1 -1
- package/dist/prompts/local/qa-journey-from-flow.js +2 -2
- package/dist/prompts/local/qa-playwright-ts-writer.d.ts +1 -1
- package/dist/prompts/local/qa-playwright-ts-writer.d.ts.map +1 -1
- package/dist/prompts/local/qa-playwright-ts-writer.js +1 -1
- package/dist/prompts/local/qa-testcase-from-ui.d.ts +1 -1
- package/dist/prompts/local/qa-testcase-from-ui.d.ts.map +1 -1
- package/dist/prompts/local/qa-testcase-from-ui.js +6 -6
- package/dist/telemetry/index.d.ts +36 -1
- package/dist/telemetry/index.d.ts.map +1 -1
- package/dist/telemetry/index.js +93 -6
- package/dist/telemetry/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* redesign and does NOT touch the methodology / assertion-safety rules — those live in
|
|
5
5
|
* `qa-testcase-from-ui` and `qa-manual-test-designer` and stay fixed.
|
|
6
6
|
*/
|
|
7
|
-
export declare const QA_CASE_CRITIQUE = "You are a senior QA reviewer doing a SECOND pass over an already-designed set of UI test cases.\nWrite everything (titles, steps, expected) in {{language}} \u2014 do not mix languages.\n\nCurrent test cases (id \u00B7 [technique/type] \u00B7 title \u2192 expected):\n{{cases}}\n\nUnder-represented 29119-4 techniques on this page (cover these if the page genuinely supports them \u2014 do NOT invent cases the page can't back):\n{{underrepresented}}\n\nReal element refs you may reference (use ONLY these \u2014 never invent refs):\n{{elements}}\n\nDo TWO things:\n1. PRUNE \u2014 list the ids of cases to DROP, each with a one-line reason. Drop a case ONLY if it is:\n - trivial (asserts nothing meaningful, e.g. \"page loads\"),\n - contradictory with another case (e.g. two cases expect opposite states of the same toggle from a clean start), or\n - not verifiable (its \"expected\" cannot be objectively checked).\n When in doubt, KEEP the case \u2014 pruning is conservative.\n2. TOP UP \u2014 add NEW cases ONLY for the under-represented techniques above, where the page supports them.\n Each new case follows the SAME rules as the original design:\n - one logical check (one expected), independent, starting from a clean page;\n -
|
|
7
|
+
export declare const QA_CASE_CRITIQUE = "You are a senior QA reviewer doing a SECOND pass over an already-designed set of UI test cases.\nWrite everything (titles, steps, expected) in {{language}} \u2014 do not mix languages in your own wording. Text the page itself shows (button labels, headings, messages, placeholders) that a step clicks or an expected result checks for is quoted verbatim in the page's own language, never translated, so the test looks for the string that is really there.\n\nCurrent test cases (id \u00B7 [technique/type] \u00B7 title \u2192 expected):\n{{cases}}\n\nUnder-represented 29119-4 techniques on this page (cover these if the page genuinely supports them \u2014 do NOT invent cases the page can't back):\n{{underrepresented}}\n\nReal element refs you may reference (use ONLY these \u2014 never invent refs):\n{{elements}}\n\nDo TWO things:\n1. PRUNE \u2014 list the ids of cases to DROP, each with a one-line reason. Drop a case ONLY if it is:\n - trivial (asserts nothing meaningful, e.g. \"page loads\"),\n - contradictory with another case (e.g. two cases expect opposite states of the same toggle from a clean start), or\n - not verifiable (its \"expected\" cannot be objectively checked).\n When in doubt, KEEP the case \u2014 pruning is conservative.\n2. TOP UP \u2014 add NEW cases ONLY for the under-represented techniques above, where the page supports them.\n Each new case follows the SAME rules as the original design:\n - one logical check (one expected), independent, starting from a clean page;\n - Page-only actions are automated: click, toggle, type, key press, hover, a browser dialog (accept / dismiss / answer), adding or removing an element on the page, opening or closing an overlay, sorting or filtering a table; their effect stays in the browser. Only an action that changes data on a server or the session (a submit that sends data, deleting a saved record, a payment, sending a message, signing out) is left to a human: check that its control is VISIBLE and do not perform it. Judge an action by what it does, never by a word in its label such as Add or Remove.;\n - real element labels in steps; elementRefs taken ONLY from the refs listed above.\n Add nothing if the techniques cannot be honestly covered \u2014 an empty top-up is a valid answer.\n\nEach new case has: title, technique (one of the under-represented ones), kind (\"static\"|\"active\"),\ntype (\"Positive\"|\"Negative\"), execution (\"auto\"|\"manual\"), preconditions, steps, expected, priority, elementRefs.";
|
|
8
8
|
//# sourceMappingURL=qa-case-critique.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qa-case-critique.d.ts","sourceRoot":"","sources":["../../../src/prompts/local/qa-case-critique.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"qa-case-critique.d.ts","sourceRoot":"","sources":["../../../src/prompts/local/qa-case-critique.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,u9EA0BqF,CAAC"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* `qa-testcase-from-ui` and `qa-manual-test-designer` and stay fixed.
|
|
6
6
|
*/
|
|
7
7
|
export const QA_CASE_CRITIQUE = `You are a senior QA reviewer doing a SECOND pass over an already-designed set of UI test cases.
|
|
8
|
-
Write everything (titles, steps, expected) in {{language}} — do not mix languages.
|
|
8
|
+
Write everything (titles, steps, expected) in {{language}} — do not mix languages in your own wording. Text the page itself shows (button labels, headings, messages, placeholders) that a step clicks or an expected result checks for is quoted verbatim in the page's own language, never translated, so the test looks for the string that is really there.
|
|
9
9
|
|
|
10
10
|
Current test cases (id · [technique/type] · title → expected):
|
|
11
11
|
{{cases}}
|
|
@@ -25,7 +25,7 @@ Do TWO things:
|
|
|
25
25
|
2. TOP UP — add NEW cases ONLY for the under-represented techniques above, where the page supports them.
|
|
26
26
|
Each new case follows the SAME rules as the original design:
|
|
27
27
|
- one logical check (one expected), independent, starting from a clean page;
|
|
28
|
-
-
|
|
28
|
+
- Page-only actions are automated: click, toggle, type, key press, hover, a browser dialog (accept / dismiss / answer), adding or removing an element on the page, opening or closing an overlay, sorting or filtering a table; their effect stays in the browser. Only an action that changes data on a server or the session (a submit that sends data, deleting a saved record, a payment, sending a message, signing out) is left to a human: check that its control is VISIBLE and do not perform it. Judge an action by what it does, never by a word in its label such as Add or Remove.;
|
|
29
29
|
- real element labels in steps; elementRefs taken ONLY from the refs listed above.
|
|
30
30
|
Add nothing if the techniques cannot be honestly covered — an empty top-up is a valid answer.
|
|
31
31
|
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* that close the gaps. Worker-tier. Output is treated as SUGGESTIONS (gap- id prefix). Does not touch
|
|
4
4
|
* the design methodology — it reuses the same case shape, scoped to the untested surface.
|
|
5
5
|
*/
|
|
6
|
-
export declare const QA_GAP_CASES = "You are a QA engineer reviewing test COVERAGE. Below are interactive elements that were observed on the app but are NOT referenced by any existing test case \u2014 the coverage gaps.\nWrite all titles, steps, expected in {{language}} \u2014 do not mix languages.\n\nPage purpose:\n{{pageSemantics}}\n\nUntested elements (ref \u00B7 role \u00B7 name \u00B7 page \u2014 why it matters). In elementRefs use ONLY these refs:\n{{gaps}}\n\nSuggest focused test cases that close these gaps. For each case: title, technique (29119-4), kind (\"static\"|\"active\"), type (\"Positive\"|\"Negative\"), execution (\"auto\"|\"manual\"), preconditions, steps (real labels), expected (verifiable), priority, elementRefs (only from the list above).\n\nRULES:\n-
|
|
6
|
+
export declare const QA_GAP_CASES = "You are a QA engineer reviewing test COVERAGE. Below are interactive elements that were observed on the app but are NOT referenced by any existing test case \u2014 the coverage gaps.\nWrite all titles, steps, expected in {{language}} \u2014 do not mix languages in your own wording. Text the page itself shows (button labels, headings, messages, placeholders) that a step clicks or an expected result checks for is quoted verbatim in the page's own language, never translated, so the test looks for the string that is really there.\n\nPage purpose:\n{{pageSemantics}}\n\nUntested elements (ref \u00B7 role \u00B7 name \u00B7 page \u2014 why it matters). In elementRefs use ONLY these refs:\n{{gaps}}\n\nSuggest focused test cases that close these gaps. For each case: title, technique (29119-4), kind (\"static\"|\"active\"), type (\"Positive\"|\"Negative\"), execution (\"auto\"|\"manual\"), preconditions, steps (real labels), expected (verifiable), priority, elementRefs (only from the list above).\n\nRULES:\n- Page-only actions are automated: click, toggle, type, key press, hover, a browser dialog (accept / dismiss / answer), adding or removing an element on the page, opening or closing an overlay, sorting or filtering a table; their effect stays in the browser. Only an action that changes data on a server or the session (a submit that sends data, deleting a saved record, a payment, sending a message, signing out) is left to a human: check that its control is VISIBLE and do not perform it. Judge an action by what it does, never by a word in its label such as Add or Remove.\n- One logical check per case; independent; start from a clean page.\n- Only reference the untested refs above \u2014 do not invent elements or re-test already-covered ones.\n- These are SUGGESTIONS to fill coverage gaps; keep them concrete and runnable.";
|
|
7
7
|
//# sourceMappingURL=qa-gap-cases.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qa-gap-cases.d.ts","sourceRoot":"","sources":["../../../src/prompts/local/qa-gap-cases.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"qa-gap-cases.d.ts","sourceRoot":"","sources":["../../../src/prompts/local/qa-gap-cases.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,YAAY,wzDAeuD,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* the design methodology — it reuses the same case shape, scoped to the untested surface.
|
|
5
5
|
*/
|
|
6
6
|
export const QA_GAP_CASES = `You are a QA engineer reviewing test COVERAGE. Below are interactive elements that were observed on the app but are NOT referenced by any existing test case — the coverage gaps.
|
|
7
|
-
Write all titles, steps, expected in {{language}} — do not mix languages.
|
|
7
|
+
Write all titles, steps, expected in {{language}} — do not mix languages in your own wording. Text the page itself shows (button labels, headings, messages, placeholders) that a step clicks or an expected result checks for is quoted verbatim in the page's own language, never translated, so the test looks for the string that is really there.
|
|
8
8
|
|
|
9
9
|
Page purpose:
|
|
10
10
|
{{pageSemantics}}
|
|
@@ -15,7 +15,7 @@ Untested elements (ref · role · name · page — why it matters). In elementRe
|
|
|
15
15
|
Suggest focused test cases that close these gaps. For each case: title, technique (29119-4), kind ("static"|"active"), type ("Positive"|"Negative"), execution ("auto"|"manual"), preconditions, steps (real labels), expected (verifiable), priority, elementRefs (only from the list above).
|
|
16
16
|
|
|
17
17
|
RULES:
|
|
18
|
-
-
|
|
18
|
+
- Page-only actions are automated: click, toggle, type, key press, hover, a browser dialog (accept / dismiss / answer), adding or removing an element on the page, opening or closing an overlay, sorting or filtering a table; their effect stays in the browser. Only an action that changes data on a server or the session (a submit that sends data, deleting a saved record, a payment, sending a message, signing out) is left to a human: check that its control is VISIBLE and do not perform it. Judge an action by what it does, never by a word in its label such as Add or Remove.
|
|
19
19
|
- One logical check per case; independent; start from a clean page.
|
|
20
20
|
- Only reference the untested refs above — do not invent elements or re-test already-covered ones.
|
|
21
21
|
- These are SUGGESTIONS to fill coverage gaps; keep them concrete and runnable.`;
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* graph. SEPARATE from the per-page design prompt — it does not redesign per-page cases and does not
|
|
4
4
|
* touch the methodology / assertion-safety rules in `qa-testcase-from-ui`.
|
|
5
5
|
*/
|
|
6
|
-
export declare const QA_JOURNEY_FROM_FLOW = "You are an experienced QA engineer. From the observed page/flow GRAPH below, design end-to-end USER JOURNEY test cases that span MULTIPLE pages (e.g. login \u2192 dashboard \u2192 action).\nWrite all titles, actions, expected in {{language}} \u2014 do not mix languages.\n\nPages studied (each with its REAL interactive elements \u2014 ref \u00B7 role \u00B7 name). In a step's elementRefs use ONLY refs from THAT step's page \u2014 never invent refs and never use a ref from another page:\n{{pages}}\n\nObserved transitions between pages (act\u2192observe \u2014 these are REAL navigations you may rely on):\n{{edges}}\n\nDesign journeys that cross page boundaries. For each journey:\n- title \u2014 concise title of the end-to-end flow;\n- technique \u2014 applied 29119-4 technique (state-transition fits multi-step flows well);\n- type \u2014 \"Positive\" | \"Negative\";\n- preconditions \u2014 what must be true before the journey starts (e.g. \"a registered user\");\n- steps \u2014 an ORDERED list; each step has: page (one of the page URLs above), action (real labels), elementRefs (refs from THAT page only);\n- expected \u2014 a single verifiable end state;\n- priority \u2014 critical | high | medium | low.\n\nRULES (a journey is a TEST \u2014 keep it safe and runnable):\n- A journey MUST span at least TWO distinct pages (\u22652 different page URLs across its steps). Single-page checks are NOT journeys \u2014 omit them.\n-
|
|
6
|
+
export declare const QA_JOURNEY_FROM_FLOW = "You are an experienced QA engineer. From the observed page/flow GRAPH below, design end-to-end USER JOURNEY test cases that span MULTIPLE pages (e.g. login \u2192 dashboard \u2192 action).\nWrite all titles, actions, expected in {{language}} \u2014 do not mix languages in your own wording. Text the page itself shows (button labels, headings, messages, placeholders) that a step clicks or an expected result checks for is quoted verbatim in the page's own language, never translated, so the test looks for the string that is really there.\n\nPages studied (each with its REAL interactive elements \u2014 ref \u00B7 role \u00B7 name). In a step's elementRefs use ONLY refs from THAT step's page \u2014 never invent refs and never use a ref from another page:\n{{pages}}\n\nObserved transitions between pages (act\u2192observe \u2014 these are REAL navigations you may rely on):\n{{edges}}\n\nDesign journeys that cross page boundaries. For each journey:\n- title \u2014 concise title of the end-to-end flow;\n- technique \u2014 applied 29119-4 technique (state-transition fits multi-step flows well);\n- type \u2014 \"Positive\" | \"Negative\";\n- preconditions \u2014 what must be true before the journey starts (e.g. \"a registered user\");\n- steps \u2014 an ORDERED list; each step has: page (one of the page URLs above), action (real labels), elementRefs (refs from THAT page only);\n- expected \u2014 a single verifiable end state;\n- priority \u2014 critical | high | medium | low.\n\nRULES (a journey is a TEST \u2014 keep it safe and runnable):\n- A journey MUST span at least TWO distinct pages (\u22652 different page URLs across its steps). Single-page checks are NOT journeys \u2014 omit them.\n- Page-only actions are automated: click, toggle, type, key press, hover, a browser dialog (accept / dismiss / answer), adding or removing an element on the page, opening or closing an overlay, sorting or filtering a table; their effect stays in the browser. Only an action that changes data on a server or the session (a submit that sends data, deleting a saved record, a payment, sending a message, signing out) is left to a human: check that its control is VISIBLE and do not perform it. Judge an action by what it does, never by a word in its label such as Add or Remove.\n- Each step is grounded on its page's observed elements; do not assume elements the graph did not show.\n- Prefer journeys that follow the OBSERVED transitions above (they are known to work).";
|
|
7
7
|
//# sourceMappingURL=qa-journey-from-flow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qa-journey-from-flow.d.ts","sourceRoot":"","sources":["../../../src/prompts/local/qa-journey-from-flow.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"qa-journey-from-flow.d.ts","sourceRoot":"","sources":["../../../src/prompts/local/qa-journey-from-flow.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,i7EAsBsD,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* touch the methodology / assertion-safety rules in `qa-testcase-from-ui`.
|
|
5
5
|
*/
|
|
6
6
|
export const QA_JOURNEY_FROM_FLOW = `You are an experienced QA engineer. From the observed page/flow GRAPH below, design end-to-end USER JOURNEY test cases that span MULTIPLE pages (e.g. login → dashboard → action).
|
|
7
|
-
Write all titles, actions, expected in {{language}} — do not mix languages.
|
|
7
|
+
Write all titles, actions, expected in {{language}} — do not mix languages in your own wording. Text the page itself shows (button labels, headings, messages, placeholders) that a step clicks or an expected result checks for is quoted verbatim in the page's own language, never translated, so the test looks for the string that is really there.
|
|
8
8
|
|
|
9
9
|
Pages studied (each with its REAL interactive elements — ref · role · name). In a step's elementRefs use ONLY refs from THAT step's page — never invent refs and never use a ref from another page:
|
|
10
10
|
{{pages}}
|
|
@@ -23,7 +23,7 @@ Design journeys that cross page boundaries. For each journey:
|
|
|
23
23
|
|
|
24
24
|
RULES (a journey is a TEST — keep it safe and runnable):
|
|
25
25
|
- A journey MUST span at least TWO distinct pages (≥2 different page URLs across its steps). Single-page checks are NOT journeys — omit them.
|
|
26
|
-
-
|
|
26
|
+
- Page-only actions are automated: click, toggle, type, key press, hover, a browser dialog (accept / dismiss / answer), adding or removing an element on the page, opening or closing an overlay, sorting or filtering a table; their effect stays in the browser. Only an action that changes data on a server or the session (a submit that sends data, deleting a saved record, a payment, sending a message, signing out) is left to a human: check that its control is VISIBLE and do not perform it. Judge an action by what it does, never by a word in its label such as Add or Remove.
|
|
27
27
|
- Each step is grounded on its page's observed elements; do not assume elements the graph did not show.
|
|
28
28
|
- Prefer journeys that follow the OBSERVED transitions above (they are known to work).`;
|
|
29
29
|
//# sourceMappingURL=qa-journey-from-flow.js.map
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* Prompt for generating @playwright/test code from test cases (ADR-0005).
|
|
3
3
|
* Provenance: ported from AZANIR/qa-skills → `qa-playwright-ts-writer` (authored by the maintainer; included here under Apache-2.0). ADR-0008.
|
|
4
4
|
*/
|
|
5
|
-
export declare const QA_PLAYWRIGHT_TS_WRITER = "You are an experienced Playwright test automation engineer (@playwright/test, TypeScript).\nGenerate RUNNABLE spec files covering the provided test cases.\n\nPage under test:\n- URL: {{baseUrl}}\n- Purpose: {{pageSemantics}}\n\nInteractive elements (ref \u00B7 role \u00B7 name; \u00D7N = repeated, several identical):\n{{elements}}\n\nTest cases to cover:\n{{testCases}}\n\nObserved state transitions (for state-transition assertions \u2014 use exactly these before\u2192after):\n{{transitions}}\n\n{{overlays}}\n\nRules (STRICT):\n- Each file is complete valid TypeScript: import { test, expect } from '@playwright/test';\n- At the start of each test: await page.goto('{{baseUrl}}');\n- Locators ONLY user-facing by role+name: page.getByRole('button', { name: 'Sign In' }), getByLabel, getByText. NO CSS/XPath/testid.\n- Every locator must resolve to exactly ONE visible element of the list above. Pass exact: true with every name, and always when the element's line says its name is part of another's. Never use an element marked as outside the viewport.\n- Repeated elements (marked \u00D7N \u2014 list/table rows): never pick by position. Narrow by context: go through the accessible name of the row, card, section or list item the element sits in, e.g. page.getByRole('row', { name: 'Jane Roe Delete', exact: true }).getByRole('button', { name: 'Delete', exact: true }). Use the locator given on the element's line when there is one. .first() / .nth(i) ONLY with a comment (on the same line or the line above) saying why the position is the point of the check, for example sorting: the first row must be the lowest. An element marked \"ambiguous\" cannot be told apart from the others: do not click it; at most assert it is visible.\n- FORBIDDEN (the code is rejected before it runs): page.mouse.click(...), { force: true }, and .first() / .nth(...) without such a comment.\n- An element marked [first click tab \"X\"] lives behind a tab/view: first await page.getByRole(...{ name: 'X' }).click(), and ONLY then interact with it (otherwise it is not visible).\n- Waiting (STRICT): rely on web-first auto-retrying assertions (await expect(locator).toBeVisible()/toBeEnabled()). NEVER page.waitForTimeout(...) or waitForLoadState('networkidle') \u2014 both are flaky. Playwright auto-waits for actionability; do NOT add manual sleeps.\n- One test case \u2192 one test('<name>', async ({ page }) => { ... }) with verifiable await expect(...).\n- Wrap logical steps in await test.step('<step description>', async () => { ... }) \u2014 a more readable run report.\n- Assertions must match really observable behavior; do not invent elements outside the list.\n-
|
|
5
|
+
export declare const QA_PLAYWRIGHT_TS_WRITER = "You are an experienced Playwright test automation engineer (@playwright/test, TypeScript).\nGenerate RUNNABLE spec files covering the provided test cases.\n\nPage under test:\n- URL: {{baseUrl}}\n- Purpose: {{pageSemantics}}\n\nInteractive elements (ref \u00B7 role \u00B7 name; \u00D7N = repeated, several identical):\n{{elements}}\n\nTest cases to cover:\n{{testCases}}\n\nObserved state transitions (for state-transition assertions \u2014 use exactly these before\u2192after):\n{{transitions}}\n\n{{overlays}}\n\nRules (STRICT):\n- Each file is complete valid TypeScript: import { test, expect } from '@playwright/test';\n- At the start of each test: await page.goto('{{baseUrl}}');\n- Locators ONLY user-facing by role+name: page.getByRole('button', { name: 'Sign In' }), getByLabel, getByText. NO CSS/XPath/testid.\n- Every locator must resolve to exactly ONE visible element of the list above. Pass exact: true with every name, and always when the element's line says its name is part of another's. Never use an element marked as outside the viewport.\n- Repeated elements (marked \u00D7N \u2014 list/table rows): never pick by position. Narrow by context: go through the accessible name of the row, card, section or list item the element sits in, e.g. page.getByRole('row', { name: 'Jane Roe Delete', exact: true }).getByRole('button', { name: 'Delete', exact: true }). Use the locator given on the element's line when there is one. .first() / .nth(i) ONLY with a comment (on the same line or the line above) saying why the position is the point of the check, for example sorting: the first row must be the lowest. An element marked \"ambiguous\" cannot be told apart from the others: do not click it; at most assert it is visible.\n- FORBIDDEN (the code is rejected before it runs): page.mouse.click(...), { force: true }, and .first() / .nth(...) without such a comment.\n- An element marked [first click tab \"X\"] lives behind a tab/view: first await page.getByRole(...{ name: 'X' }).click(), and ONLY then interact with it (otherwise it is not visible).\n- Waiting (STRICT): rely on web-first auto-retrying assertions (await expect(locator).toBeVisible()/toBeEnabled()). NEVER page.waitForTimeout(...) or waitForLoadState('networkidle') \u2014 both are flaky. Playwright auto-waits for actionability; do NOT add manual sleeps.\n- One test case \u2192 one test('<name>', async ({ page }) => { ... }) with verifiable await expect(...).\n- Wrap logical steps in await test.step('<step description>', async () => { ... }) \u2014 a more readable run report.\n- Assertions must match really observable behavior; do not invent elements outside the list.\n- Page-only actions are automated: click, toggle, type, key press, hover, a browser dialog (accept / dismiss / answer), adding or removing an element on the page, opening or closing an overlay, sorting or filtering a table; their effect stays in the browser. Only an action that changes data on a server or the session (a submit that sends data, deleting a saved record, a payment, sending a message, signing out) is left to a human: check that its control is VISIBLE and do not perform it. Judge an action by what it does, never by a word in its label such as Add or Remove. A browser dialog is handled with page.once('dialog', ...) registered before the click.\n- Each test() is INDEPENDENT: starts with await page.goto('{{baseUrl}}') (clean state); do NOT rely on state from another test.\n- One or two RELATED assertions per test; no brittle chains or mega-tests.\n- The code is self-contained and must parse with tsc.\n\nFILE STRUCTURE:\n- All STATIC cases (visibility/state checks, no actions) \u2192 ONE file static-checks.spec.ts (each case = a separate test() inside).\n- Each ACTIVE case (with actions) \u2192 a SEPARATE file, named after the case (e.g. add-user-flow.spec.ts).\n\nReturn files: an array of objects { path: '<name>.spec.ts', content: '<full file code>', cases: [{ test: '<the exact title of a test() in this file>', caseId: '<the id of the case it covers, as listed above>' }] } \u2014 one cases entry per test().";
|
|
6
6
|
//# sourceMappingURL=qa-playwright-ts-writer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qa-playwright-ts-writer.d.ts","sourceRoot":"","sources":["../../../src/prompts/local/qa-playwright-ts-writer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"qa-playwright-ts-writer.d.ts","sourceRoot":"","sources":["../../../src/prompts/local/qa-playwright-ts-writer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,uBAAuB,wgIAuCgN,CAAC"}
|
|
@@ -32,7 +32,7 @@ Rules (STRICT):
|
|
|
32
32
|
- One test case → one test('<name>', async ({ page }) => { ... }) with verifiable await expect(...).
|
|
33
33
|
- Wrap logical steps in await test.step('<step description>', async () => { ... }) — a more readable run report.
|
|
34
34
|
- Assertions must match really observable behavior; do not invent elements outside the list.
|
|
35
|
-
-
|
|
35
|
+
- Page-only actions are automated: click, toggle, type, key press, hover, a browser dialog (accept / dismiss / answer), adding or removing an element on the page, opening or closing an overlay, sorting or filtering a table; their effect stays in the browser. Only an action that changes data on a server or the session (a submit that sends data, deleting a saved record, a payment, sending a message, signing out) is left to a human: check that its control is VISIBLE and do not perform it. Judge an action by what it does, never by a word in its label such as Add or Remove. A browser dialog is handled with page.once('dialog', ...) registered before the click.
|
|
36
36
|
- Each test() is INDEPENDENT: starts with await page.goto('{{baseUrl}}') (clean state); do NOT rely on state from another test.
|
|
37
37
|
- One or two RELATED assertions per test; no brittle chains or mega-tests.
|
|
38
38
|
- The code is self-contained and must parse with tsc.
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* Main prompt for generating test cases from a page.
|
|
3
3
|
* Provenance: ported from AZANIR/qa-skills → `qa-testcase-from-ui` (authored by the maintainer; included here under Apache-2.0). ADR-0008.
|
|
4
4
|
*/
|
|
5
|
-
export declare const QA_TESTCASE_FROM_UI = "You are an experienced QA engineer. Based on the explored page, generate UI test cases.\nIMPORTANT: write all title, steps, expected in {{language}} \u2014 do not mix languages (even if the checklist/page is in another language).\n\nPage purpose:\n{{pageSemantics}}\n\n{{goal}}\n\nInteractive elements (ref \u00B7 role \u00B7 name; \u00D7N = repeated, several identical on the page \u2014 e.g. list rows). All REALLY present. In elementRefs use ONLY these refs \u2014 do not invent or change them:\n{{elements}}\n\nObserved state transitions (act\u2192observe). GROUND state-transition assertions ON THESE \u2014 do not invent consequences:\n{{transitions}}\n\n{{overlays}}\n\nDomain knowledge (credentials, validation rules, nuances \u2014 account for these in the cases):\n{{knowledge}}\n\n{{experience}}\n\n{{style}}\n\n{{methodology}}\n\n{{checklist}}\n\nGenerate clear, verifiable test cases. For each:\n- title \u2014 concise title;\n- technique \u2014 applied 29119-4 technique;\n- kind \u2014 \"static\" (visibility/state check only, no actions) or \"active\" (with actions: click/fill/navigation);\n- type \u2014 \"Positive\" (valid scenario) or \"Negative\" (invalid/erroneous input);\n- execution \u2014 \"auto\" (can be RELIABLY automated:
|
|
5
|
+
export declare const QA_TESTCASE_FROM_UI = "You are an experienced QA engineer. Based on the explored page, generate UI test cases.\nIMPORTANT: write all title, steps, expected in {{language}} \u2014 do not mix languages in your own wording (even if the checklist/page is in another language). Text the page itself shows (button labels, headings, messages, placeholders) that a step clicks or an expected result checks for is quoted verbatim in the page's own language, never translated, so the test looks for the string that is really there.\n\nPage purpose:\n{{pageSemantics}}\n\n{{goal}}\n\nInteractive elements (ref \u00B7 role \u00B7 name; \u00D7N = repeated, several identical on the page \u2014 e.g. list rows). All REALLY present. In elementRefs use ONLY these refs \u2014 do not invent or change them:\n{{elements}}\n\nObserved state transitions (act\u2192observe). GROUND state-transition assertions ON THESE \u2014 do not invent consequences:\n{{transitions}}\n\n{{overlays}}\n\nDomain knowledge (credentials, validation rules, nuances \u2014 account for these in the cases):\n{{knowledge}}\n\n{{experience}}\n\n{{style}}\n\n{{methodology}}\n\n{{checklist}}\n\nGenerate clear, verifiable test cases. For each:\n- title \u2014 concise title;\n- technique \u2014 applied 29119-4 technique;\n- kind \u2014 \"static\" (visibility/state check only, no actions) or \"active\" (with actions: click/fill/navigation);\n- type \u2014 \"Positive\" (valid scenario) or \"Negative\" (invalid/erroneous input);\n- execution \u2014 \"auto\" (can be RELIABLY automated on verified locators: state checks AND page-only actions, see ACTION SAFETY) or \"manual\" (an action that changes server data or the session, security/XSS, UI-UX/visual/responsiveness \u2014 the bot does NOT automate these);\n- preconditions \u2014 preconditions (e.g. \"user is logged in\", \"page X is open\");\n- steps \u2014 DETAILED unambiguous steps with REAL element labels (e.g. 'Click \"Generate CV\"', 'Enter text into the \"Vacancy text\" field');\n- expected \u2014 verifiable expected result;\n- priority \u2014 critical | high | medium | low;\n- elementRefs \u2014 real refs from the list above that the case touches.\n\nACTION SAFETY:\n- Page-only actions are automated: click, toggle, type, key press, hover, a browser dialog (accept / dismiss / answer), adding or removing an element on the page, opening or closing an overlay, sorting or filtering a table; their effect stays in the browser. Only an action that changes data on a server or the session (a submit that sends data, deleting a saved record, a payment, sending a message, signing out) is left to a human: check that its control is VISIBLE and do not perform it. Judge an action by what it does, never by a word in its label such as Add or Remove.\n- A page's core action that is page-only is an \"auto\" case that performs it and checks its visible result (the element appears, the text changes, the dialog result shows), not only that its control is visible.\n\nSTABILITY (CRITICAL):\n- One case = ONE logical check (one expected). Do NOT combine many assertions in one case \u2014 a mega-test fails entirely if any single part is off.\n- Each case is INDEPENDENT and starts from a CLEAN page. Do NOT assume state left by another case.\n- Do NOT generate contradictory cases (e.g. one expects toggle=on, another toggle=off from a fresh start). For a toggle take EXACTLY ONE transition from the \"Observed state transitions\" (before\u2192after).\n\nCover happy path AND negative/edge scenarios. No duplicates or trivialities (no two cases with the same technique + same elements + same steps).\nTECHNIQUE BREADTH: apply a VARIETY of 29119-4 techniques where the page allows \u2014 equivalence-partitioning, boundary-value, decision-table, state-transition, error-guessing \u2014 not just exploratory.\n\nFULL CHECKLIST COVERAGE: do NOT skip checklist items. If an item cannot be reliably automated (an action that changes server data or the session, security/XSS, UI-UX/visual/responsiveness) \u2014 STILL create a case, but set execution=\"manual\" (it will not be automated, but it is documented for manual testing). Every checklist item \u2192 at least one case (auto or manual).";
|
|
6
6
|
//# sourceMappingURL=qa-testcase-from-ui.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qa-testcase-from-ui.d.ts","sourceRoot":"","sources":["../../../src/prompts/local/qa-testcase-from-ui.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"qa-testcase-from-ui.d.ts","sourceRoot":"","sources":["../../../src/prompts/local/qa-testcase-from-ui.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,mBAAmB,6lIAmD+U,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Provenance: ported from AZANIR/qa-skills → `qa-testcase-from-ui` (authored by the maintainer; included here under Apache-2.0). ADR-0008.
|
|
4
4
|
*/
|
|
5
5
|
export const QA_TESTCASE_FROM_UI = `You are an experienced QA engineer. Based on the explored page, generate UI test cases.
|
|
6
|
-
IMPORTANT: write all title, steps, expected in {{language}} — do not mix languages (even if the checklist/page is in another language).
|
|
6
|
+
IMPORTANT: write all title, steps, expected in {{language}} — do not mix languages in your own wording (even if the checklist/page is in another language). Text the page itself shows (button labels, headings, messages, placeholders) that a step clicks or an expected result checks for is quoted verbatim in the page's own language, never translated, so the test looks for the string that is really there.
|
|
7
7
|
|
|
8
8
|
Page purpose:
|
|
9
9
|
{{pageSemantics}}
|
|
@@ -34,16 +34,16 @@ Generate clear, verifiable test cases. For each:
|
|
|
34
34
|
- technique — applied 29119-4 technique;
|
|
35
35
|
- kind — "static" (visibility/state check only, no actions) or "active" (with actions: click/fill/navigation);
|
|
36
36
|
- type — "Positive" (valid scenario) or "Negative" (invalid/erroneous input);
|
|
37
|
-
- execution — "auto" (can be RELIABLY automated:
|
|
37
|
+
- execution — "auto" (can be RELIABLY automated on verified locators: state checks AND page-only actions, see ACTION SAFETY) or "manual" (an action that changes server data or the session, security/XSS, UI-UX/visual/responsiveness — the bot does NOT automate these);
|
|
38
38
|
- preconditions — preconditions (e.g. "user is logged in", "page X is open");
|
|
39
39
|
- steps — DETAILED unambiguous steps with REAL element labels (e.g. 'Click "Generate CV"', 'Enter text into the "Vacancy text" field');
|
|
40
40
|
- expected — verifiable expected result;
|
|
41
41
|
- priority — critical | high | medium | low;
|
|
42
42
|
- elementRefs — real refs from the list above that the case touches.
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
44
|
+
ACTION SAFETY:
|
|
45
|
+
- Page-only actions are automated: click, toggle, type, key press, hover, a browser dialog (accept / dismiss / answer), adding or removing an element on the page, opening or closing an overlay, sorting or filtering a table; their effect stays in the browser. Only an action that changes data on a server or the session (a submit that sends data, deleting a saved record, a payment, sending a message, signing out) is left to a human: check that its control is VISIBLE and do not perform it. Judge an action by what it does, never by a word in its label such as Add or Remove.
|
|
46
|
+
- A page's core action that is page-only is an "auto" case that performs it and checks its visible result (the element appears, the text changes, the dialog result shows), not only that its control is visible.
|
|
47
47
|
|
|
48
48
|
STABILITY (CRITICAL):
|
|
49
49
|
- One case = ONE logical check (one expected). Do NOT combine many assertions in one case — a mega-test fails entirely if any single part is off.
|
|
@@ -53,5 +53,5 @@ STABILITY (CRITICAL):
|
|
|
53
53
|
Cover happy path AND negative/edge scenarios. No duplicates or trivialities (no two cases with the same technique + same elements + same steps).
|
|
54
54
|
TECHNIQUE BREADTH: apply a VARIETY of 29119-4 techniques where the page allows — equivalence-partitioning, boundary-value, decision-table, state-transition, error-guessing — not just exploratory.
|
|
55
55
|
|
|
56
|
-
FULL CHECKLIST COVERAGE: do NOT skip checklist items. If an item cannot be reliably automated (
|
|
56
|
+
FULL CHECKLIST COVERAGE: do NOT skip checklist items. If an item cannot be reliably automated (an action that changes server data or the session, security/XSS, UI-UX/visual/responsiveness) — STILL create a case, but set execution="manual" (it will not be automated, but it is documented for manual testing). Every checklist item → at least one case (auto or manual).`;
|
|
57
57
|
//# sourceMappingURL=qa-testcase-from-ui.js.map
|
|
@@ -28,6 +28,16 @@ export interface DecisionTrace {
|
|
|
28
28
|
reason?: string;
|
|
29
29
|
minConfidence: number;
|
|
30
30
|
}
|
|
31
|
+
/** What the root trace carries besides its name: metadata, and the run's input (shown as the trace Input). */
|
|
32
|
+
export interface TraceAttrs {
|
|
33
|
+
metadata: Record<string, unknown>;
|
|
34
|
+
input: unknown;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The run result as the trace Output: as is, but without the page screenshot (`study.screenshotB64`, base64 —
|
|
38
|
+
* it would bloat every trace; the screenshot stays in the run folder).
|
|
39
|
+
*/
|
|
40
|
+
export declare function traceOutput(result: unknown): unknown;
|
|
31
41
|
export interface Telemetry {
|
|
32
42
|
enabled: boolean;
|
|
33
43
|
callbackHandler?: CallbackHandler;
|
|
@@ -45,8 +55,33 @@ export interface Telemetry {
|
|
|
45
55
|
* generations are collected under ONE trace (rather than N separate traces). When
|
|
46
56
|
* telemetry is disabled, `fn` is called directly (no-op path). (Task 2, ADR-0012)
|
|
47
57
|
*/
|
|
48
|
-
runInTrace: <T>(name: string,
|
|
58
|
+
runInTrace: <T>(name: string, attrs: TraceAttrs, fn: () => Promise<T>) => Promise<T>;
|
|
59
|
+
/**
|
|
60
|
+
* The web address of the active run trace, for `report.json` — call it inside `runInTrace`. Resolves to
|
|
61
|
+
* `undefined`, after ONE `warn` line, when no address fit for a report can be built. Absent when tracing is off.
|
|
62
|
+
*/
|
|
63
|
+
traceUrl?: (warn: (line: string) => void) => Promise<string | undefined>;
|
|
49
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* A trace address as a report may carry it, or `undefined`: https only, a host, no user name or password, no
|
|
67
|
+
* query or fragment, no space or control character, at most `TRACE_URL_MAX` characters, and none of `keys`
|
|
68
|
+
* anywhere in it, percent-encoded or in another case included. A doubled
|
|
69
|
+
* slash in the path (a base URL written with a trailing slash) is folded.
|
|
70
|
+
*/
|
|
71
|
+
export declare function reportableTraceUrl(raw: string, keys?: readonly (string | undefined)[]): string | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* The run trace's web address through the tracing SDK's own `lookup` (it knows the base URL and asks the server
|
|
74
|
+
* for the project the keys belong to), bounded by `timeoutMs` so a silent server cannot hold the report back.
|
|
75
|
+
* No address, or one `reportableTraceUrl` refuses, costs only the link: `undefined`, and one `warn` line that
|
|
76
|
+
* shows neither the address nor the lookup's error (either can carry a credential).
|
|
77
|
+
*/
|
|
78
|
+
export declare function resolveTraceUrl(deps: {
|
|
79
|
+
traceId: string | undefined;
|
|
80
|
+
lookup: (traceId: string) => Promise<string>;
|
|
81
|
+
keys?: readonly (string | undefined)[];
|
|
82
|
+
warn: (line: string) => void;
|
|
83
|
+
timeoutMs?: number;
|
|
84
|
+
}): Promise<string | undefined>;
|
|
50
85
|
/**
|
|
51
86
|
* Telemetry bootstrap. Returns a no-op (so the bot works offline — ADR-0004/0006) when Langfuse is
|
|
52
87
|
* disabled (no keys) OR when the optional tracing packages are not installed. The enabled path is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/telemetry/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;;;;;;;GAUG;AACH,0DAA0D;AAC1D,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,qEAAqE;IACrE,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE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AM,GAAG,SAAS,CAAC,EAAE,CAAC;IACvC,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAwB9B;AAOD;;;;GAIG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,CA+GtE"}
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1,3 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The run result as the trace Output: as is, but without the page screenshot (`study.screenshotB64`, base64 —
|
|
3
|
+
* it would bloat every trace; the screenshot stays in the run folder).
|
|
4
|
+
*/
|
|
5
|
+
export function traceOutput(result) {
|
|
6
|
+
if (typeof result !== "object" || result === null || !("study" in result))
|
|
7
|
+
return result;
|
|
8
|
+
const study = result.study;
|
|
9
|
+
if (typeof study !== "object" || study === null)
|
|
10
|
+
return result;
|
|
11
|
+
const rest = { ...study };
|
|
12
|
+
delete rest["screenshotB64"];
|
|
13
|
+
return { ...result, study: rest };
|
|
14
|
+
}
|
|
15
|
+
/** The longest trace link a report carries; readers of the report keep no longer one. */
|
|
16
|
+
const TRACE_URL_MAX = 2048;
|
|
17
|
+
/**
|
|
18
|
+
* A trace address as a report may carry it, or `undefined`: https only, a host, no user name or password, no
|
|
19
|
+
* query or fragment, no space or control character, at most `TRACE_URL_MAX` characters, and none of `keys`
|
|
20
|
+
* anywhere in it, percent-encoded or in another case included. A doubled
|
|
21
|
+
* slash in the path (a base URL written with a trailing slash) is folded.
|
|
22
|
+
*/
|
|
23
|
+
export function reportableTraceUrl(raw, keys = []) {
|
|
24
|
+
if (!URL.canParse(raw))
|
|
25
|
+
return undefined;
|
|
26
|
+
const parsed = new URL(raw);
|
|
27
|
+
parsed.pathname = parsed.pathname.replace(/\/{2,}/g, "/");
|
|
28
|
+
const url = parsed.href;
|
|
29
|
+
if (parsed.protocol !== "https:" || parsed.hostname === "" || parsed.username !== "" || parsed.password !== "")
|
|
30
|
+
return undefined;
|
|
31
|
+
if (url.length > TRACE_URL_MAX || /[\s\p{Cc}\p{Cf}]/u.test(url))
|
|
32
|
+
return undefined;
|
|
33
|
+
// The SDK's address has neither; one in the base URL is where a token would ride along.
|
|
34
|
+
if (parsed.search !== "" || parsed.hash !== "")
|
|
35
|
+
return undefined;
|
|
36
|
+
// Keys are looked for in the decoded, lower-cased address, so `%2D` for `-` or another case hides none.
|
|
37
|
+
let plain;
|
|
38
|
+
try {
|
|
39
|
+
plain = decodeURIComponent(url).toLowerCase();
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (keys.some((k) => k && plain.includes(k.toLowerCase())))
|
|
45
|
+
return undefined;
|
|
46
|
+
return url;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The run trace's web address through the tracing SDK's own `lookup` (it knows the base URL and asks the server
|
|
50
|
+
* for the project the keys belong to), bounded by `timeoutMs` so a silent server cannot hold the report back.
|
|
51
|
+
* No address, or one `reportableTraceUrl` refuses, costs only the link: `undefined`, and one `warn` line that
|
|
52
|
+
* shows neither the address nor the lookup's error (either can carry a credential).
|
|
53
|
+
*/
|
|
54
|
+
export async function resolveTraceUrl(deps) {
|
|
55
|
+
const skip = (why) => {
|
|
56
|
+
deps.warn(`trace link — not written to the report: ${why}`);
|
|
57
|
+
return undefined;
|
|
58
|
+
};
|
|
59
|
+
if (!deps.traceId)
|
|
60
|
+
return skip("the run has no active trace");
|
|
61
|
+
let timer;
|
|
62
|
+
let raw;
|
|
63
|
+
try {
|
|
64
|
+
raw = await Promise.race([
|
|
65
|
+
deps.lookup(deps.traceId),
|
|
66
|
+
new Promise((_resolve, reject) => {
|
|
67
|
+
timer = setTimeout(() => reject(new Error("timeout")), deps.timeoutMs ?? 5000);
|
|
68
|
+
}),
|
|
69
|
+
]);
|
|
70
|
+
}
|
|
71
|
+
catch {
|
|
72
|
+
return skip("the tracing server did not give the trace's address (check LANGFUSE_BASE_URL and the keys)");
|
|
73
|
+
}
|
|
74
|
+
finally {
|
|
75
|
+
clearTimeout(timer);
|
|
76
|
+
}
|
|
77
|
+
return (reportableTraceUrl(raw, deps.keys) ??
|
|
78
|
+
skip("the trace's address must be https, with no user name, password, key, query or fragment in it (check LANGFUSE_BASE_URL)"));
|
|
79
|
+
}
|
|
1
80
|
/** The offline / not-configured / packages-absent result: a no-op so the bot runs without tracing. */
|
|
2
81
|
function noopTelemetry() {
|
|
3
82
|
return { enabled: false, shutdown: async () => { }, runInTrace: (_n, _m, fn) => fn() };
|
|
@@ -46,12 +125,14 @@ export async function initTelemetry(cfg) {
|
|
|
46
125
|
* Wraps `fn` in a root Langfuse span via `startActiveObservation`, so that all nested
|
|
47
126
|
* LangChain CallbackHandler generations attach to ONE trace instead of N separate traces.
|
|
48
127
|
* The span name becomes the Langfuse trace name. `metadata` is stored as span metadata.
|
|
49
|
-
*
|
|
50
|
-
*
|
|
128
|
+
* With `@langfuse/*` v6 the trace takes its Input and Output from the root observation (there is no
|
|
129
|
+
* trace-level setter), so the root span carries the run's input and its result as output.
|
|
51
130
|
*/
|
|
52
|
-
const runInTrace = (name,
|
|
53
|
-
span.update({ metadata });
|
|
54
|
-
|
|
131
|
+
const runInTrace = (name, attrs, fn) => lfTracing.startActiveObservation(name, async (span) => {
|
|
132
|
+
span.update({ metadata: attrs.metadata, input: attrs.input });
|
|
133
|
+
const result = await fn();
|
|
134
|
+
span.update({ output: traceOutput(result) });
|
|
135
|
+
return result;
|
|
55
136
|
});
|
|
56
137
|
const recordDecision = (d) => {
|
|
57
138
|
try {
|
|
@@ -96,6 +177,12 @@ export async function initTelemetry(cfg) {
|
|
|
96
177
|
// tracing is best-effort — it must never touch the run
|
|
97
178
|
}
|
|
98
179
|
};
|
|
99
|
-
|
|
180
|
+
const traceUrl = (warn) => resolveTraceUrl({
|
|
181
|
+
traceId: lfTracing.getActiveTraceId(),
|
|
182
|
+
lookup: (traceId) => client.getTraceUrl(traceId),
|
|
183
|
+
keys: [publicKey, secretKey],
|
|
184
|
+
warn,
|
|
185
|
+
});
|
|
186
|
+
return { enabled: true, callbackHandler, client, shutdown, runInTrace, recordDecision, recordScore, traceUrl };
|
|
100
187
|
}
|
|
101
188
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/telemetry/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/telemetry/index.ts"],"names":[],"mappings":"AAsCA;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,MAAe;IACzC,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,IAAI,CAAC,CAAC,OAAO,IAAI,MAAM,CAAC;QAAE,OAAO,MAAM,CAAC;IACzF,MAAM,KAAK,GAAI,MAA6B,CAAC,KAAK,CAAC;IACnD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,MAAM,CAAC;IAC/D,MAAM,IAAI,GAAG,EAAE,GAAI,KAAiC,EAAE,CAAC;IACvD,OAAO,IAAI,CAAC,eAAe,CAAC,CAAC;IAC7B,OAAO,EAAE,GAAG,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AACpC,CAAC;AA2BD,yFAAyF;AACzF,MAAM,aAAa,GAAG,IAAI,CAAC;AAE3B;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAAW,EAAE,OAAwC,EAAE;IACxF,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,SAAS,CAAC;IACzC,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;IAC5B,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,CAA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AC,gBAAgB,EAAE;QACrC,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC;QAChD,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;QAC5B,IAAI;KACL,CAAC,CAAC;IAEL,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;AACjH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plune-ai/cairn",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Cairn — an AI that walks your system and leaves a trail of tests. Autonomous QA agent (UI today; API/unit/docs planned) powered by Claude/OpenRouter, with self-improvement via Langfuse.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|