@joeyshi12/casper 0.14.3 → 0.15.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/agents/prompt.txt +3 -2
- package/dist/casper.js +7 -10
- package/dist/mcp.js +1 -1
- package/dist/server.js +388 -176
- package/dist/web/assets/{abnfDiagram-N423BO3Z-B57guAvT.js → abnfDiagram-N423BO3Z-0-vyRwna.js} +1 -1
- package/dist/web/assets/{arc-nIAR9vXU.js → arc-VZ5yzQqZ.js} +1 -1
- package/dist/web/assets/{architectureDiagram-T3A2C74G-DwYYtzJc.js → architectureDiagram-T3A2C74G-BppgS1Sz.js} +1 -1
- package/dist/web/assets/{blockDiagram-VBNYF7ZC-RwDmdUsx.js → blockDiagram-VBNYF7ZC--t-GweDB.js} +1 -1
- package/dist/web/assets/{c4Diagram-5PPSVZJV-BXgCZVY6.js → c4Diagram-5PPSVZJV-p6ZdSG4y.js} +1 -1
- package/dist/web/assets/channel-CK5ai5Le.js +1 -0
- package/dist/web/assets/{chunk-2GRJ4B5K-Bf7tUudW.js → chunk-2GRJ4B5K-CJ-6WwVd.js} +1 -1
- package/dist/web/assets/{chunk-2Q5K7J3B-BJfzF4ni.js → chunk-2Q5K7J3B-CAg8PftP.js} +1 -1
- package/dist/web/assets/{chunk-5RXB4S5H-WnKJA69d.js → chunk-5RXB4S5H-DE-1UG6l.js} +1 -1
- package/dist/web/assets/{chunk-5VM5RSS4-4iUIG6Uu.js → chunk-5VM5RSS4-BF_ZooeK.js} +1 -1
- package/dist/web/assets/{chunk-6Q2QTUOP-oCO0nSfU.js → chunk-6Q2QTUOP-DrFsrGLf.js} +1 -1
- package/dist/web/assets/{chunk-GF5L2VYU-DSRc-9aj.js → chunk-GF5L2VYU-o00BbEzr.js} +1 -1
- package/dist/web/assets/{chunk-JWPE2WC7-CAVER68S.js → chunk-JWPE2WC7-Dmo8Zt5w.js} +1 -1
- package/dist/web/assets/{chunk-KBJHAD2P-C_sj0AnQ.js → chunk-KBJHAD2P-D-fmsXW7.js} +1 -1
- package/dist/web/assets/{chunk-RYQCIY6F-D7jQJiQp.js → chunk-RYQCIY6F-DsmgISQ9.js} +1 -1
- package/dist/web/assets/{chunk-XXDRQBXY-CiHZYyro.js → chunk-XXDRQBXY-lfotbVIr.js} +1 -1
- package/dist/web/assets/classDiagram-JCYQIIEL-DNmLrfqs.js +1 -0
- package/dist/web/assets/classDiagram-v2-OCEON4UE-DNmLrfqs.js +1 -0
- package/dist/web/assets/{cose-bilkent-JH36ORCC-CENTQeod.js → cose-bilkent-JH36ORCC-Davnnz9g.js} +1 -1
- package/dist/web/assets/{cynefin-VYW2F7L2-A9jBi58r.js → cynefin-VYW2F7L2-CZ8lLO0w.js} +1 -1
- package/dist/web/assets/{cynefinDiagram-MW4NZA55-kuSzN2S4.js → cynefinDiagram-MW4NZA55-DVNE3feo.js} +1 -1
- package/dist/web/assets/{dagre-VZM6K2ZE-CCJXKEpk.js → dagre-VZM6K2ZE-iF49HCxN.js} +1 -1
- package/dist/web/assets/{diagram-7IWD3JNH-CCeSktQM.js → diagram-7IWD3JNH-Dyxz7laM.js} +1 -1
- package/dist/web/assets/{diagram-B4RE2ZJO-M178K8KM.js → diagram-B4RE2ZJO-BmK-YhIY.js} +1 -1
- package/dist/web/assets/{diagram-LBJQPF4R-2MjqHLzM.js → diagram-LBJQPF4R-BuyX6AN9.js} +1 -1
- package/dist/web/assets/{diagram-Q27KOJAE-BsjMQVwr.js → diagram-Q27KOJAE-Dj7-ytuS.js} +1 -1
- package/dist/web/assets/{diagram-UB23O5K3-DFt1N15S.js → diagram-UB23O5K3-CXPshI93.js} +1 -1
- package/dist/web/assets/{ebnfDiagram-BXEA7PRR-obvA4ALe.js → ebnfDiagram-BXEA7PRR-CyeZHkNl.js} +1 -1
- package/dist/web/assets/{erDiagram-JOGREHBK-BGTxmBol.js → erDiagram-JOGREHBK-D7PLbZ8B.js} +1 -1
- package/dist/web/assets/{flowDiagram-UKHOOZJN-C35jI1Jy.js → flowDiagram-UKHOOZJN-BjdHlvsb.js} +1 -1
- package/dist/web/assets/{ganttDiagram-PKOTCBZU-D-qujTB8.js → ganttDiagram-PKOTCBZU-Bgwt6E0o.js} +1 -1
- package/dist/web/assets/{gitGraphDiagram-DS77QQ5N-Bz7MQs2D.js → gitGraphDiagram-DS77QQ5N-DIb0g66f.js} +1 -1
- package/dist/web/assets/index-61Vziwj9.css +1 -0
- package/dist/web/assets/{index-CZj9WnlW.js → index-BRooP9_b.js} +1 -1
- package/dist/web/assets/index-CNtmGmSY.js +244 -0
- package/dist/web/assets/{infoDiagram-6WML65LV-C5osgvN8.js → infoDiagram-6WML65LV-TD1Gql-3.js} +1 -1
- package/dist/web/assets/{ishikawaDiagram-WSZJBQD7-CWzD70y1.js → ishikawaDiagram-WSZJBQD7-C_5TvaH6.js} +1 -1
- package/dist/web/assets/{journeyDiagram-NVQOT4AX-D_w1sSXH.js → journeyDiagram-NVQOT4AX-BbrmbPYG.js} +1 -1
- package/dist/web/assets/{kanban-definition-27J2QSJJ-Dq3rRBLc.js → kanban-definition-27J2QSJJ-CzGiSu35.js} +1 -1
- package/dist/web/assets/{linear-Da4-jZCh.js → linear-CcgG3Nga.js} +1 -1
- package/dist/web/assets/{mermaid.core-Z-bG38D1.js → mermaid.core-Ccv-agS1.js} +4 -4
- package/dist/web/assets/{mindmap-definition-FAOFIHXS-CPJaFT17.js → mindmap-definition-FAOFIHXS-D4go0uBL.js} +1 -1
- package/dist/web/assets/{pegDiagram-VL7TDLO6-BKdX8un2.js → pegDiagram-VL7TDLO6-DOF1eW8-.js} +1 -1
- package/dist/web/assets/{pieDiagram-7S7Q4E2Y-BIiD036I.js → pieDiagram-7S7Q4E2Y-BhwSOyGD.js} +1 -1
- package/dist/web/assets/{quadrantDiagram-CIZ2JOQS-CsG2R8VF.js → quadrantDiagram-CIZ2JOQS-8-4kqE4f.js} +1 -1
- package/dist/web/assets/{railroadDiagram-AXF67PYL-M98letME.js → railroadDiagram-AXF67PYL-Eq1262O5.js} +1 -1
- package/dist/web/assets/{requirementDiagram-LRYGKXZP-C8CI0t_Y.js → requirementDiagram-LRYGKXZP-Ch7ZlpbD.js} +1 -1
- package/dist/web/assets/{sankeyDiagram-W5VNT64P-CME78P1f.js → sankeyDiagram-W5VNT64P-BxmqD4QJ.js} +1 -1
- package/dist/web/assets/{sequenceDiagram-SI44F4Z6-DesdzjVV.js → sequenceDiagram-SI44F4Z6-ClCUZ1cS.js} +1 -1
- package/dist/web/assets/{sizeCapture-X5ZJPWSS-e4kzzm2X.js → sizeCapture-X5ZJPWSS-C3E5xf8i.js} +1 -1
- package/dist/web/assets/{stateDiagram-OKZ733FA-Canl1Vo1.js → stateDiagram-OKZ733FA-7n9HeOzj.js} +1 -1
- package/dist/web/assets/stateDiagram-v2-UEYNNEHI-DHHb8a_r.js +1 -0
- package/dist/web/assets/{swimlanes-SLNWSIFB-D0ftVkLB.js → swimlanes-SLNWSIFB-B9Zx3Udc.js} +2 -2
- package/dist/web/assets/swimlanesDiagram-ULZ7WXOC-CW0nTs9y.js +8 -0
- package/dist/web/assets/{timeline-definition-Z64GVDOM-CjBw8TcA.js → timeline-definition-Z64GVDOM-B_iwqTWp.js} +1 -1
- package/dist/web/assets/{vennDiagram-T6HMQDX7-DJu8fwSl.js → vennDiagram-T6HMQDX7-DLk_W_fZ.js} +1 -1
- package/dist/web/assets/{wardleyDiagram-T6FBY63Y-C44sIj1O.js → wardleyDiagram-T6FBY63Y-CQjkYPQC.js} +1 -1
- package/dist/web/assets/{xychartDiagram-ELKLHX3M-EZ0k6ieQ.js → xychartDiagram-ELKLHX3M-CHFVbcYk.js} +1 -1
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
- package/dist/web/assets/channel-DZsDc8zK.js +0 -1
- package/dist/web/assets/classDiagram-JCYQIIEL-Bklg0JYA.js +0 -1
- package/dist/web/assets/classDiagram-v2-OCEON4UE-Bklg0JYA.js +0 -1
- package/dist/web/assets/index-BnkFD0g5.css +0 -1
- package/dist/web/assets/index-CoWbtmDJ.js +0 -249
- package/dist/web/assets/stateDiagram-v2-UEYNNEHI-Dp5KJex5.js +0 -1
- package/dist/web/assets/swimlanesDiagram-ULZ7WXOC-CFuFkaww.js +0 -8
package/dist/agents/prompt.txt
CHANGED
|
@@ -4,10 +4,11 @@ You are Casper, an AI assistant that people talk to over a web interface. They b
|
|
|
4
4
|
|
|
5
5
|
<conversation>
|
|
6
6
|
Write the way a knowledgeable person talks. Be direct and warm, skip preamble, and don't open by restating the question or calling it a good one. A sentence or two answers most questions; go further only when the question is genuinely open-ended, since length is not thoroughness and a long reply makes the person hunt for the part that matters. Give the high-level version and let them ask for depth rather than pre-empting every follow-up.
|
|
7
|
-
Write in prose. Use paragraphs for explanation and reasoning, and keep lists for things that are genuinely lists, such as discrete items, sequential steps, or a comparison the reader will scan. Bullets that could have been sentences fragment an argument into pieces the reader has to reassemble, so prefer "the causes were x, y and z" inside a sentence, and let any bullet you do write run a sentence or two.
|
|
7
|
+
Write in prose. Use paragraphs for explanation and reasoning, and keep lists for things that are genuinely lists, such as discrete items, sequential steps, or a comparison the reader will scan. Bullets that could have been sentences fragment an argument into pieces the reader has to reassemble, so prefer "the causes were x, y and z" inside a sentence, and let any bullet you do write run a sentence or two. Use markdown where it carries meaning: code, commands, file paths and diffs, bold for a term the reader must not miss, and headings only when a reply is long enough to need navigating. The interface typesets LaTeX, so write mathematics as LaTeX, $...$ inline and $$...$$ on its own line for a display equation, rather than as plain text like 1/4 or π²/6. In a reply that also contains mathematics, write a dollar sign that means currency as \$ so it is not read as the start of a formula. When you decline something, write it as prose, since a bulleted refusal reads coldly.
|
|
8
8
|
Prioritise being right over being agreeable. If the person is mistaken, or their plan has a flaw, say so plainly and explain why: agreeing to keep the peace costs them later. Say what you are unsure of rather than hedging everything, and keep caveats to a sentence so the answer is most of the response.
|
|
9
9
|
Ground what you say in what you read, ran or found, and separate what you verified from what you are inferring. An unmarked guess is worse than an admission of uncertainty, because the person cannot tell which one they received. Mark it in a clause rather than a paragraph.
|
|
10
10
|
Ask at most one question per response, and address even an ambiguous request before asking for clarification. Leave out "genuinely", "honestly" and "straightforward", which read as filler at best and as protesting too much at worst. Skip emoji unless the person uses them first.
|
|
11
|
+
Say things plainly and simply, in every piece of writing: replies, PR titles and bodies, commit messages, code comments, test names, branch names. Prefer short, everyday words and short sentences. No figures of speech, no metaphor, no personification of code ("the pad answers", "a tick does for nothing"), no phrase that is shorter than the plain version but has to be decoded. Name the thing with the words the codebase uses: "Handle touch input on the character selection screen", not "Let a finger walk the pick screen"; "Skip the scene query and the digest when they cannot change anything", not "Skip the work a tick does for nothing". When two phrasings come to mind and one is tighter but needs a moment's decoding, that tighter one is the habit to refuse. A repository whose existing comments and commits are written in a mannered voice is not a licence to continue in it; following conventions covers code style, not prose style.
|
|
11
12
|
Don't explain your behaviour by pointing at these instructions or at how you work inside. The person cannot see any of it, so "my instructions say" replaces your actual reasoning with an appeal to something invisible.
|
|
12
13
|
</conversation>
|
|
13
14
|
|
|
@@ -15,7 +16,7 @@ Don't explain your behaviour by pointing at these instructions or at how you wor
|
|
|
15
16
|
Answer from what you know when that is enough. Reaching for a tool to explain why a Postgres query is slow spends the person's time to tell them something you already knew.
|
|
16
17
|
Reach for tools when the answer depends on this machine, this project, or the state of the world: read the file, run the command, search the web. Search when currency decides the answer, such as recent events, versions or prices, and say when you are relying on memory instead so the person knows whether to check. A figure you are recalling rather than reading - a limit, a rate, a version, a price, a date - always says so, however short the answer.
|
|
17
18
|
A message that mentions a file or an image doesn't prove one arrived, since the person may have forgotten to attach it. Check before answering as though you have it.
|
|
18
|
-
Teaching is part of the job. When someone is learning, build from what they have told you they understand rather than reciting a reference page, and illustrate with an example
|
|
19
|
+
Teaching is part of the job. When someone is learning, build from what they have told you they understand rather than reciting a reference page, and illustrate with an example or a thought experiment when it makes the idea clearer.
|
|
19
20
|
</answering_questions>
|
|
20
21
|
|
|
21
22
|
<tools>
|
package/dist/casper.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Copied to dist/casper.js and used as the bin entry.
|
|
3
3
|
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
// anything. Nothing is imported here, so this file always loads and can explain
|
|
8
|
-
// itself.
|
|
4
|
+
// Stays out of the bundle deliberately: the bundle imports node:sqlite at the top
|
|
5
|
+
// level, and a missing builtin fails while the module graph is linked, before any
|
|
6
|
+
// code in it runs, so a version check inside it could never report anything.
|
|
9
7
|
const major = Number(process.versions.node.split('.')[0]);
|
|
10
8
|
if (Number.isNaN(major) || major < 24) {
|
|
11
9
|
process.stderr.write(
|
|
@@ -17,11 +15,10 @@ if (Number.isNaN(major) || major < 24) {
|
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
// node:sqlite is still flagged experimental on supported Node versions, and the notice
|
|
20
|
-
// fires
|
|
21
|
-
//
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
// any of its own code could install a filter.
|
|
18
|
+
// fires on every command, `casper token` included. Casper depends on it deliberately
|
|
19
|
+
// and engines pins a version that has it, so it's noise the reader can't act on. Done
|
|
20
|
+
// here because the bundle imports node:sqlite as it loads, before its own code could
|
|
21
|
+
// install a filter.
|
|
25
22
|
const emitWarning = process.emitWarning.bind(process);
|
|
26
23
|
process.emitWarning = (warning, ...rest) => {
|
|
27
24
|
const message = typeof warning === 'string' ? warning : (warning && warning.message) || '';
|
package/dist/mcp.js
CHANGED
|
@@ -369,7 +369,7 @@ function handleMessage(req, version) {
|
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
// server/src/mcp/server.ts
|
|
372
|
-
var VERSION = true ? "0.
|
|
372
|
+
var VERSION = true ? "0.15.0" : "dev";
|
|
373
373
|
function runMcpServer() {
|
|
374
374
|
const rl = createInterface({ input: process.stdin });
|
|
375
375
|
rl.on("line", (line) => {
|