@kvman/kvcoder 0.1.20 → 0.1.21
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"working-method.d.ts","sourceRoot":"","sources":["../../src/prompt/working-method.ts"],"names":[],"mappings":"AAKA,wFAAwF;AACxF,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAC;AAErC,mHAAmH;AACnH,MAAM,MAAM,MAAM,GAAG,aAAa,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"working-method.d.ts","sourceRoot":"","sources":["../../src/prompt/working-method.ts"],"names":[],"mappings":"AAKA,wFAAwF;AACxF,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAC;AAErC,mHAAmH;AACnH,MAAM,MAAM,MAAM,GAAG,aAAa,GAAG,SAAS,CAAC;AA+G/C;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAQlG;AAED,8HAA8H;AAC9H,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,GAAE,MAAsB,EAAE,OAAO,UAAQ,GAAG,MAAM,CAGjG"}
|
|
@@ -26,8 +26,9 @@ const understand = "Understand. Read everything the person sent, attached images
|
|
|
26
26
|
// The person's go-ahead is never asked for again (ADR 0112, 3).
|
|
27
27
|
const clarifyAsking = "Clarify. A fact that looking would answer: look, don't ask. An ordinary detail that is easy to change: decide it yourself, and say what you chose. A decision only the person can make, or a gap that changes the result, the design, or stored data, such as a request that is unclear, contradicts itself or the code, or would break what exists: ask before any work. When the means they asked for works against their goal, or a clearly better way exists, say so and offer both before you build theirs. Look first, then ask everything in one round: every question in the same reply, one `ask` call each, never one question per reply, and `ask choice` whenever you offer options, your recommended one first and each option saying what it leads to. The person's go-ahead (\"do it\", \"yes\", or the option that starts, chosen after you said what you would do) answers what it covers: never ask it again.";
|
|
28
28
|
const clarifyDeciding = "Clarify. A fact that looking would answer: look, don't guess. Anything else, decide yourself, since the person asked you to decide: choose what you would recommend, and say in a line what you chose and why. Put no question to the person in a reply either: decide, say what you chose, and go on. When the means they asked for works against their goal, or a clearly better way exists, say so in a line and take the way you would recommend.";
|
|
29
|
-
// Deliberating is chosen apart from the map, and names no worker, since the person may turn the council off (ADR 0103, 6)
|
|
30
|
-
|
|
29
|
+
// Deliberating is chosen apart from the map, and names no worker, since the person may turn the council off (ADR 0103, 6);
|
|
30
|
+
// a guide in the prompt, such as kvvideo's, may say when to (ADR 0117, 18).
|
|
31
|
+
const deliberate = "Deliberate. Only when the person asks for the approaches to be debated, or a guide in your prompt says when to: once you understood the request and have the person's answers, and before any map or change, hand it in one `delegate run` to the worker of the `delegate` connector that debates approaches, when its entry lists one, briefed with the goal, what done looks like, the facts and paths you found, the constraints, and the person's answers. Check its final answer against what you read, then build on it: the map's steps and details when your path has a map, or the work itself when it doesn't. Deliberating and mapping are separate choices, and deliberate once per request, not per step.";
|
|
31
32
|
const mapStart = "Map. Only when your path needs one, after you understood the request, looked at what exists, and have your answers, and before you change anything: never in your first reply, because a map made before you looked is a guess. The map is the implementation plan the person reads and agrees to, so make it detailed, not an outline; the `execution-map` entry below says how to set it with its steps' details in one call, and keep it true. Choose for each step whoever does it best and fastest: yourself, with a connector, for an ordinary or small change, or a worker of the `delegate` connector whose description fits when the step needs that skill.";
|
|
32
33
|
const understood = 'say in a few lines what you understood (the goal, what done looks like, what stays as it is, and the choices you made for the person)';
|
|
33
34
|
const agreeAsking = `Once every step has details (its undetailed list is empty), and before you start any step, get the person's agreement. When they already told you to go ahead with what the map does, ${understood} and start. Otherwise call \`ask choice\` with other set to true: its question says those few lines, then asks whether to start, the option that starts first and one that changes the plan; when they ask for changes, set the map again, detail what changed, and ask again. A map set again with a change to what the person gets (the goal, what done looks like, what stays as it is, stored data, or what could go wrong) needs their agreement again; a change inside the plan (who does a step, the order, a step split or retried, or a worker reassigned) or of a step's status needs none: say what changed in one line.`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"working-method.js","sourceRoot":"","sources":["../../src/prompt/working-method.ts"],"names":[],"mappings":"AAAA,mMAAmM;AACnM,sJAAsJ;AACtJ,qJAAqJ;AACrJ,6EAA6E;AAQ7E,8EAA8E;AAC9E,MAAM,QAAQ,GAAG,4KAA4K,CAAC;AAC9L,+FAA+F;AAC/F,MAAM,IAAI,GAAG,8IAA8I,CAAC;AAC5J,MAAM,QAAQ,GAAG,6IAA6I,CAAC;AAC/J,MAAM,OAAO,GAAG,gIAAgI,CAAC;AACjJ,MAAM,QAAQ,GAAG,qLAAqL,CAAC;AACvM,MAAM,QAAQ,GACZ,snBAAsnB,CAAC;AACznB,MAAM,OAAO,GAAG,ybAAyb,CAAC;AAC1c,MAAM,SAAS,GAAG,uLAAuL,CAAC;AAC1M,MAAM,MAAM,GAAG,qFAAqF,CAAC;AACrG,MAAM,OAAO,GAAG,4UAA4U,CAAC;AAC7V,2GAA2G;AAC3G,MAAM,OAAO,GACX,m3BAAm3B,CAAC;AACt3B,uHAAuH;AACvH,MAAM,MAAM,GACV,icAAic,CAAC;AACpc,mGAAmG;AACnG,MAAM,SAAS,GACb,qSAAqS,CAAC;AACxS,MAAM,iBAAiB,GACrB,iUAAiU,CAAC;AAEpU,MAAM,IAAI,GACR,qvBAAqvB,CAAC;AACxvB,MAAM,UAAU,GACd,u2BAAu2B,CAAC;AAC12B,gEAAgE;AAChE,MAAM,aAAa,GACjB,i4BAAi4B,CAAC;AACp4B,MAAM,eAAe,GACnB,ubAAub,CAAC;AAC1b,2HAA2H;AAC3H,MAAM,UAAU,GACd,
|
|
1
|
+
{"version":3,"file":"working-method.js","sourceRoot":"","sources":["../../src/prompt/working-method.ts"],"names":[],"mappings":"AAAA,mMAAmM;AACnM,sJAAsJ;AACtJ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