@kvman/kvcoder 0.1.7 → 0.1.9

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.
Files changed (62) hide show
  1. package/dist/api.d.ts +38 -0
  2. package/dist/api.d.ts.map +1 -1
  3. package/dist/connectors/artifact.d.ts.map +1 -1
  4. package/dist/connectors/artifact.js +3 -1
  5. package/dist/connectors/artifact.js.map +1 -1
  6. package/dist/connectors/execution-map.d.ts +1 -1
  7. package/dist/connectors/execution-map.d.ts.map +1 -1
  8. package/dist/connectors/execution-map.js +1 -1
  9. package/dist/connectors/execution-map.js.map +1 -1
  10. package/dist/prompt/build-prompt.d.ts +6 -1
  11. package/dist/prompt/build-prompt.d.ts.map +1 -1
  12. package/dist/prompt/build-prompt.js +2 -2
  13. package/dist/prompt/build-prompt.js.map +1 -1
  14. package/dist/prompt/session-grants.d.ts +2 -0
  15. package/dist/prompt/session-grants.d.ts.map +1 -1
  16. package/dist/prompt/session-prompt.d.ts.map +1 -1
  17. package/dist/prompt/session-prompt.js +9 -4
  18. package/dist/prompt/session-prompt.js.map +1 -1
  19. package/dist/prompt/working-method.d.ts +6 -4
  20. package/dist/prompt/working-method.d.ts.map +1 -1
  21. package/dist/prompt/working-method.js +35 -20
  22. package/dist/prompt/working-method.js.map +1 -1
  23. package/dist/register-settings.d.ts +15 -1
  24. package/dist/register-settings.d.ts.map +1 -1
  25. package/dist/register-settings.js +19 -2
  26. package/dist/register-settings.js.map +1 -1
  27. package/dist/registry/register-connectors.d.ts +2 -0
  28. package/dist/registry/register-connectors.d.ts.map +1 -1
  29. package/dist/registry/register-connectors.js +15 -11
  30. package/dist/registry/register-connectors.js.map +1 -1
  31. package/dist/schemas/registry.d.ts +9 -1
  32. package/dist/schemas/registry.d.ts.map +1 -1
  33. package/dist/schemas/registry.js +6 -2
  34. package/dist/schemas/registry.js.map +1 -1
  35. package/dist/store/collections.d.ts +4 -0
  36. package/dist/store/collections.d.ts.map +1 -1
  37. package/dist/turns/read-only.d.ts +7 -2
  38. package/dist/turns/read-only.d.ts.map +1 -1
  39. package/dist/turns/read-only.js +7 -4
  40. package/dist/turns/read-only.js.map +1 -1
  41. package/dist/turns/run-calls.js +1 -1
  42. package/dist/turns/run-calls.js.map +1 -1
  43. package/dist/turns/run-command.d.ts +2 -0
  44. package/dist/turns/run-command.d.ts.map +1 -1
  45. package/dist/turns/run-command.js +4 -2
  46. package/dist/turns/run-command.js.map +1 -1
  47. package/dist/web/components/approval.css +1 -1
  48. package/dist/web/components/approval.js +18 -31
  49. package/dist/web/components/call.css +1 -1
  50. package/dist/web/components/call.js +281 -251
  51. package/dist/web/components/connectors.css +1 -1
  52. package/dist/web/components/conversation.css +1 -1
  53. package/dist/web/components/conversation.js +943 -892
  54. package/dist/web/components/mcp-sign-in.css +1 -1
  55. package/dist/web/components/model.css +1 -1
  56. package/dist/web/components/question.css +1 -1
  57. package/dist/web/components/sessions.css +1 -1
  58. package/docs/connectors.md +13 -1
  59. package/docs/sections.md +2 -0
  60. package/locales/ar.json +15 -2
  61. package/locales/en.json +15 -2
  62. package/package.json +3 -3
package/dist/api.d.ts CHANGED
@@ -24,6 +24,7 @@ type Connector = {
24
24
  command: string;
25
25
  examples?: Example[];
26
26
  asks?: true;
27
+ card?: string;
27
28
  }[];
28
29
  optIn?: true;
29
30
  } | {
@@ -42,6 +43,8 @@ type ConnectorRow = {
42
43
  command: string;
43
44
  examples: Example[];
44
45
  asks: boolean;
46
+ query: boolean;
47
+ card?: string;
45
48
  }[];
46
49
  binary?: Binary;
47
50
  optIn: boolean;
@@ -452,6 +455,41 @@ declare module '@kvman/sdk' {
452
455
  updatedAt: string;
453
456
  };
454
457
  };
458
+ 'kvcoder.artifact.write': {
459
+ input: {
460
+ sessionId: string;
461
+ payload: {
462
+ id: string;
463
+ title: string;
464
+ format?: 'markdown' | 'html' | 'url';
465
+ content: string;
466
+ };
467
+ };
468
+ output: {
469
+ id: string;
470
+ version: number;
471
+ created: boolean;
472
+ bytes: number;
473
+ };
474
+ };
475
+ 'kvcoder.artifact.edit': {
476
+ input: {
477
+ sessionId: string;
478
+ payload: {
479
+ id: string;
480
+ edits: {
481
+ oldText: string;
482
+ newText: string;
483
+ }[];
484
+ };
485
+ };
486
+ output: {
487
+ id: string;
488
+ version: number;
489
+ replacements: number;
490
+ firstChangedLine: number;
491
+ };
492
+ };
455
493
  }
456
494
  interface Settings {
457
495
  'kvcoder.model': string | null;
package/dist/api.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAIzE,KAAK,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AACnC,KAAK,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAC9D,KAAK,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAC7C,KAAK,SAAS,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AACvC,KAAK,OAAO,GAAG;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,IAAI,CAAA;CAAE,CAAC;AACpD,KAAK,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACjE,KAAK,SAAS,GACV;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,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EAAE,CAAC;QACxC,qBAAqB,EAAE,SAAS,EAAE,CAAC;QACnC,0BAA0B,EAAE,MAAM,EAAE,CAAC;QACrC,uBAAuB,EAAE,MAAM,CAAC;KACjC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"artifact.d.ts","sourceRoot":"","sources":["../../src/connectors/artifact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,eAAe,EAA4B,MAAM,iCAAiC,CAAC;AAc5F,yDAAyD;AACzD,eAAO,MAAM,mBAAmB,27BAC+5B,CAAC;AAoBh8B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIe,CAAC;AAyC7C,uHAAuH;AACvH,wBAAsB,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAAC,CAGzL;AAID,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAyBxD"}
1
+ {"version":3,"file":"artifact.d.ts","sourceRoot":"","sources":["../../src/connectors/artifact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,eAAe,EAA4B,MAAM,iCAAiC,CAAC;AAc5F,yDAAyD;AACzD,eAAO,MAAM,mBAAmB,27BAC+5B,CAAC;AAoBh8B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIe,CAAC;AAyC7C,uHAAuH;AACvH,wBAAsB,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAAC,CAGzL;AAID,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CA2BxD"}
@@ -10,7 +10,7 @@ import { callInput } from "./connector-command.js";
10
10
  import { edits } from "./payload-fields.js";
11
11
  // The `artifact` connector (plan 08 §8.5, ADR 0009, 173 to 176): `write` creates or replaces the chat's document,
12
12
  // `edit` replaces text in one, `get` reads one. No approval is asked, and the step runs the calls on one artifact one
13
- // after another.
13
+ // after another. `write` and `edit` are public too, so an extension can show a chat something (ADR 0082, 13).
14
14
  /** What the prompt's index says the connector is for. */
15
15
  export const artifactDescription = 'Show the person something to read or see: a report, a design, an HTML page, or the localhost address of an app you are running (format url). Use it for anything longer than a few lines instead of pasting it into a reply. For a diagram, write Mermaid code in a fenced mermaid block of a Markdown artifact or reply: kvman draws it. Don\'t write SVG for a diagram. The panel runs the page of an HTML artifact in a sandbox where localStorage, sessionStorage, cookies, and indexedDB throw, so a page you show that way must work without them, keeping its state in memory or wrapping each use in try/catch. A form can\'t be submitted there either: make a button act on its click and a field on the Enter key, in JavaScript, and never rely on a form\'s submit. You can\'t press the page\'s buttons yourself, so say that its interaction is unchecked unless you tested it another way. A url artifact is a normal page on its own address and has none of these limits.';
16
16
  const idMessage = 'An artifact id is lowercase kebab case, such as report or login-design, up to 50 characters.';
@@ -76,6 +76,7 @@ export function registerArtifactConnector(ctx) {
76
76
  description: commands.write.description,
77
77
  input: callInput(payloads.write),
78
78
  output: z.object({ id: z.string(), version: z.number().int(), created: z.boolean(), bytes: z.number().int() }),
79
+ public: true,
79
80
  retries: 0,
80
81
  handle: async ({ sessionId, payload }) => writeArtifact(ctx, await chatOf(ctx, sessionId), payload),
81
82
  });
@@ -83,6 +84,7 @@ export function registerArtifactConnector(ctx) {
83
84
  description: commands.edit.description,
84
85
  input: callInput(payloads.edit),
85
86
  output: z.object({ id: z.string(), version: z.number().int(), replacements: z.number().int(), firstChangedLine: z.number().int() }),
87
+ public: true,
86
88
  retries: 0,
87
89
  handle: async ({ sessionId, payload }) => editArtifact(ctx, await chatOf(ctx, sessionId), payload),
88
90
  });
@@ -1 +1 @@
1
- {"version":3,"file":"artifact.js","sourceRoot":"","sources":["../../src/connectors/artifact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAY,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACnG,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAyB,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,kHAAkH;AAClH,sHAAsH;AACtH,iBAAiB;AAEjB,yDAAyD;AACzD,MAAM,CAAC,MAAM,mBAAmB,GAC9B,67BAA67B,CAAC;AAEh8B,MAAM,SAAS,GAAG,8FAA8F,CAAC;AAEjH,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC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AAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;QACxI,MAAM,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;YACvC,MAAM,KAAK,GAAG,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC9I,IAAI,KAAK,KAAK,SAAS;gBAAE,MAAM,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YACnD,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC;QACtH,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { z, type Ctx } from '@kvman/sdk';
2
2
  /** What the prompt's index says the connector is for. */
3
- export declare const executionMapDescription = "Plan work of several steps as the execution map: your execution path, the steps you found to be the best and fastest way to deliver the request with the connectors and workers you have, and the implementation plan the person reads, agrees to, and watches as a diagram. Keep it true as you work: the person follows the work on it. A step says what it changes and how in its description, which the person opens with a press, names who does it in uses, and comes after the steps it follows. Steps side by side are branches: each is handed to a worker, so they run at the same time, and your own steps are one line. Mark a step doing when you start it and done with your evidence as soon as its check passed, and record a problem the work does not need with note instead of looking into it.";
3
+ export declare const executionMapDescription = "Plan work of several steps as the execution map: your execution path, the steps you found to be the best and fastest way to deliver the request with the connectors and workers you have, and the implementation plan the person reads, agrees to, and watches as a diagram. Keep it true as you work: the person follows the work on it. A step says what it changes and how in its description, which the person opens with a press, names who does it in uses, and comes after the steps it follows. Steps side by side are branches: each is handed to a worker, so they run at the same time, and your own steps are one line. Mark a step doing when you start it and done with your evidence as soon as its check passed, and record a problem the work does not need with note instead of looking into it. Limits: goal up to 300 characters; a step's title up to 100, description up to 500, check up to 300; evidence and a note up to 500; 1 to 40 steps.";
4
4
  /** The steps one map holds at most, and its notes. */
5
5
  export declare const stepsLimit = 40;
6
6
  export declare const notesLimit = 50;
@@ -1 +1 @@
1
- {"version":3,"file":"execution-map.d.ts","sourceRoot":"","sources":["../../src/connectors/execution-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AAczC,yDAAyD;AACzD,eAAO,MAAM,uBAAuB,uxBACkvB,CAAC;AAEvxB,sDAAsD;AACtD,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,UAAU,KAAK,CAAC;AA+C7B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKW,CAAC;AAqB7C,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CA8D5D"}
1
+ {"version":3,"file":"execution-map.d.ts","sourceRoot":"","sources":["../../src/connectors/execution-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AAczC,yDAAyD;AACzD,eAAO,MAAM,uBAAuB,06BACs4B,CAAC;AAE36B,sDAAsD;AACtD,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,UAAU,KAAK,CAAC;AA+C7B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKW,CAAC;AAqB7C,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CA8D5D"}
@@ -11,7 +11,7 @@ import { callInput } from "./connector-command.js";
11
11
  // which the person watches as a diagram. Each change returns where the work is and what can start, so the task stays
12
12
  // at the end of the context. A child session never has it.
13
13
  /** What the prompt's index says the connector is for. */
14
- export const executionMapDescription = 'Plan work of several steps as the execution map: your execution path, the steps you found to be the best and fastest way to deliver the request with the connectors and workers you have, and the implementation plan the person reads, agrees to, and watches as a diagram. Keep it true as you work: the person follows the work on it. A step says what it changes and how in its description, which the person opens with a press, names who does it in uses, and comes after the steps it follows. Steps side by side are branches: each is handed to a worker, so they run at the same time, and your own steps are one line. Mark a step doing when you start it and done with your evidence as soon as its check passed, and record a problem the work does not need with note instead of looking into it.';
14
+ export const executionMapDescription = 'Plan work of several steps as the execution map: your execution path, the steps you found to be the best and fastest way to deliver the request with the connectors and workers you have, and the implementation plan the person reads, agrees to, and watches as a diagram. Keep it true as you work: the person follows the work on it. A step says what it changes and how in its description, which the person opens with a press, names who does it in uses, and comes after the steps it follows. Steps side by side are branches: each is handed to a worker, so they run at the same time, and your own steps are one line. Mark a step doing when you start it and done with your evidence as soon as its check passed, and record a problem the work does not need with note instead of looking into it. Limits: goal up to 300 characters; a step\'s title up to 100, description up to 500, check up to 300; evidence and a note up to 500; 1 to 40 steps.';
15
15
  /** The steps one map holds at most, and its notes. */
16
16
  export const stepsLimit = 40;
17
17
  export const notesLimit = 50;
@@ -1 +1 @@
1
- {"version":3,"file":"execution-map.js","sourceRoot":"","sources":["../../src/connectors/execution-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAY,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,QAA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AAC,EAAE,CAAC,CAAC,CAAC;YACjH,CAAC,CAAC,CAAC;QACL,CAAC;KACF,CAAC,CAAC;IACH,GAAG,CAAC,aAAa,CAAC,uBAAuB,EAAE;QACzC,WAAW,EAAE,QAAQ,CAAC,GAAG,CAAC,WAAW;QACrC,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC;QAC9B,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC;QAC5F,MAAM,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;YAC9B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;YAC5C,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;YACnF,OAAO,EAAE,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACpG,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -1,8 +1,13 @@
1
1
  import type { Section } from '../registry/register-sections.ts';
2
- import { type Role } from './working-method.ts';
2
+ import { type Method, type Role } from './working-method.ts';
3
3
  export type PromptInput = {
4
4
  /** The lead of a chat, or a worker's subagent: each has its own identity and working method (ADR 0022, 3). */
5
5
  role: Role;
6
+ /** A product's profile (ADR 0082, 11): who the agent is, and its method; without one, kvman Coder's engineering method. */
7
+ profile?: {
8
+ identity?: string;
9
+ method: Method;
10
+ };
6
11
  workspacePath: string;
7
12
  platform: NodeJS.Platform;
8
13
  shell: 'bash' | 'powershell';
@@ -1 +1 @@
1
- {"version":3,"file":"build-prompt.d.ts","sourceRoot":"","sources":["../../src/prompt/build-prompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAA+B,KAAK,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAK7E,MAAM,MAAM,WAAW,GAAG;IACxB,8GAA8G;IAC9G,IAAI,EAAE,IAAI,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC1B,KAAK,EAAE,MAAM,GAAG,YAAY,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAC;IAC7B,0FAA0F;IAC1F,MAAM,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IACpE,UAAU,EAAE,SAAS;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;QAAC,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,EAAE,CAAC;CAC3H,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAAC,IAAI,EAAE,SAAS,OAAO,EAAE,CAAA;CAAE,CAAC;AAyDvG,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,GAAG,WAAW,CAO3D"}
1
+ {"version":3,"file":"build-prompt.d.ts","sourceRoot":"","sources":["../../src/prompt/build-prompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAA+B,KAAK,MAAM,EAAE,KAAK,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAK1F,MAAM,MAAM,WAAW,GAAG;IACxB,8GAA8G;IAC9G,IAAI,EAAE,IAAI,CAAC;IACX,2HAA2H;IAC3H,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC1B,KAAK,EAAE,MAAM,GAAG,YAAY,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAC;IAC7B,0FAA0F;IAC1F,MAAM,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IACpE,UAAU,EAAE,SAAS;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;QAAC,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,EAAE,CAAC;CAC3H,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAAC,IAAI,EAAE,SAAS,OAAO,EAAE,CAAA;CAAE,CAAC;AAyDvG,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,GAAG,WAAW,CAO3D"}
@@ -9,13 +9,13 @@ function languageName(code) {
9
9
  function basePrompt(input) {
10
10
  const shell = input.shell === 'bash' ? 'bash' : 'PowerShell';
11
11
  const identity = [
12
- identityLine(input.role, `in the folder ${input.workspacePath} on ${systems[input.platform] ?? input.platform}`),
12
+ identityLine(input.role, `in the folder ${input.workspacePath} on ${systems[input.platform] ?? input.platform}`, input.profile?.identity),
13
13
  `Reply in ${languageName(input.language)} unless the person writes in another language.`,
14
14
  'Each message from the person starts with the date and time it was sent, in brackets; the newest one is the current time.',
15
15
  ].join('\n');
16
16
  const tool = 'Your one tool is run: it runs one command of a connector, as { description, connector, command, payload }. description is one sentence for the person, saying what the call does. Below, `fs write` means the connector fs and its command write.';
17
17
  const connectors = `Connectors are the only way you act. When a connector other than shell covers a task, use it instead of a shell line: it checks its input, returns structured results, and is shown to the person. Use shell only for what no other connector does. Every connector has the command help. A command listed below with its payload needs no help call; for any other command, or for what a field means, call the connector's help with { "command": "<name>" } before the first use. \`shell exec\`, \`fs write\`, \`fs edit\`, \`mcp call\`, and \`mcp run\` take risky, which you always send and judge for each call from what the call does, not from which command it is. It is false for the ordinary work of the task: creating, editing, or rewriting a file inside the workspace folder that the task needs, whoever made it (\`fs undo\` takes such a change back), running the project's own build, tests, and tools, and a tool that only reads. It is true, and the person is then asked first, only when the call could do what is hard to take back or reaches past the task: anything outside the workspace folder; deleting files, or overwriting them with a shell line; a file that holds secrets, such as .env or a key; rewriting or discarding git history or uncommitted work (push --force, reset --hard, clean); sudo, or an install outside the project; sending something out (a push, a publish, a deploy, a message, a write to a remote service); and the Commands section of AGENTS.md. When you can't tell whether a call can be taken back, it is true. Each \`shell exec\` starts in the workspace folder, so cd doesn't carry over to the next call; the shell is ${shell}.`;
18
- return [identity, tool, connectors, workingMethod(input.role)].join('\n\n');
18
+ return [identity, tool, connectors, workingMethod(input.role, input.profile?.method)].join('\n\n');
19
19
  }
20
20
  // A connector's entry: its owner's description, then its commands, which kvcoder adds (ADR 0009, 164; ADR 0011, 3). A
21
21
  // built-in's entry is one line per command with its payload's signature (ADR 0012, 1 and 14); `help`'s payload is `{ command? }`.
@@ -1 +1 @@
1
- {"version":3,"file":"build-prompt.js","sourceRoot":"","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G,8LAA8L,CAAC;AAEpN,MAAM,UAAU,WAAW,CAAC,KAAkB;IAC5C,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACpD,MAAM,KAAK,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,OAAO,CAAC,KAAK,KAAK,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACvG,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,CAAC,YAAY,KAAK,EAAE;QAAE,KAAK,CAAC,IAAI,CAAC,cAAc,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAChJ,IAAI,KAAK,CAAC,MAAM,EAAE,QAAQ,KAAK,IAAI;QAAE,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC9D,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC;QAAE,KAAK,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAClH,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC;AACvE,CAAC"}
@@ -138,6 +138,8 @@ export declare function grantsInTx(store: TxRecords, session: Stored<SessionDoc>
138
138
  input: import("zod").JSONType;
139
139
  }[];
140
140
  asks: boolean;
141
+ query: boolean;
142
+ card?: string;
141
143
  }[];
142
144
  binary?: {
143
145
  check: string;
@@ -1 +1 @@
1
- {"version":3,"file":"session-grants.d.ts","sourceRoot":"","sources":["../../src/prompt/session-grants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAM9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAYpE,gGAAgG;AAChG,wBAAsB,aAAa,CAAC,GAAG,EAAE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAM3C;AACD,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC;AAEzE,qGAAqG;AACrG,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,UAAU,CAAC,EAAE,QAAQ,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAenG;AACD,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC;AAEvE,wBAAsB,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAMnG"}
1
+ {"version":3,"file":"session-grants.d.ts","sourceRoot":"","sources":["../../src/prompt/session-grants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAM9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAYpE,gGAAgG;AAChG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EAAkE;IAClE,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,0EAA0E;IAC1E,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC/B,CAAC;AAEF,kHAAkH;AAClH,wBAAsB,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAmC/F"}
@@ -9,6 +9,7 @@ import { helperAllows } from "../turns/helper-calls.js";
9
9
  import { readOnlyAllows } from "../turns/read-only.js";
10
10
  import { sectionsFor } from "../registry/register-sections.js";
11
11
  import { invalid } from "../problems.js";
12
+ import { agentProfile } from "../register-settings.js";
12
13
  import { buildPrompt } from "./build-prompt.js";
13
14
  import { sessionGrants } from "./session-grants.js";
14
15
  /** Prompt-time listing shares the execution predicate but never serves as later execution authority (ADR0044). */
@@ -28,12 +29,16 @@ export async function sessionTools(ctx, session) {
28
29
  const shown = Object.entries(commandsOf(name)).map(([command, entry], index) => ({ command, signature: builtinSignatures[name][index] ?? '', allowed: (!helper || helperAllows(entry)) && (!readOnly || readOnlyAllows(command, entry)) })).filter(row => row.allowed);
29
30
  return { name, description: descriptions[name], commands: shown.map(row => row.command), signatures: shown.map(row => row.signature) };
30
31
  });
31
- const listed = [
32
- ...builtins.filter(connector => connector.commands.length > 0),
33
- ...(readOnly ? [] : connectors.filter(connector => names.includes(connector.name)).map(connector => ({ name: connector.name, description: connector.description, commands: connector.commands?.map(command => command.name) ?? ['exec'] }))),
34
- ];
32
+ // A read-only helper sees a registered connector only with its commands that run a query (ADR 0082, 3).
33
+ const registered = connectors.filter(connector => names.includes(connector.name)).map(connector => ({
34
+ name: connector.name,
35
+ description: connector.description,
36
+ commands: connector.commands?.filter(command => !readOnly || readOnlyAllows(command.name, undefined, command)).map(command => command.name) ?? (readOnly ? [] : ['exec']),
37
+ }));
38
+ const listed = [...builtins.filter(connector => connector.commands.length > 0), ...registered.filter(connector => connector.commands.length > 0)];
35
39
  const built = buildPrompt({
36
40
  role: current.parentId === null ? 'lead' : 'worker',
41
+ profile: await agentProfile(ctx),
37
42
  workspacePath: ctx.job.workspace.path,
38
43
  platform: process.platform,
39
44
  shell: shell.kind,
@@ -1 +1 @@
1
- {"version":3,"file":"session-prompt.js","sourceRoot":"","sources":["../../src/prompt/session-prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAyB,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAEzG,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAoB,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAgBpD,kHAAkH;AAClH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,GAAQ,EAAE,OAA2B;IACtE,MAAM,KAAK,GAAG,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACnD,MAAM,KAAK,GAAG,MAAM,QAAQ,CAAC,GAAG,CAAC,CAAC;IAClC,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,GAAG,EAAE,OAAO,CAAC,EAAE,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;QAAE,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,4DAA4D,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;IACvJ,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;AACxD,CAAC"}
@@ -1,7 +1,9 @@
1
1
  /** Who reads the prompt: the agent of a chat, or the subagent of one of its workers. */
2
2
  export type Role = 'lead' | 'worker';
3
- /** The first line of the prompt: who the agent is, and where it works. */
4
- export declare function identityLine(role: Role, place: string): string;
5
- /** The "How you work" block of a role. */
6
- export declare function workingMethod(role: Role): string;
3
+ /** How the agent works: the engineering method, or the short general one of a product's profile (ADR 0082, 11). */
4
+ export type Method = 'engineering' | 'general';
5
+ /** The first line of the prompt: who the agent is, and where it works; a product's profile names who the agent is instead (ADR 0082, 11). */
6
+ export declare function identityLine(role: Role, place: string, identity?: string): string;
7
+ /** The "How you work" block of a role, for the profile's method. */
8
+ export declare function workingMethod(role: Role, method?: Method): string;
7
9
  //# sourceMappingURL=working-method.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"working-method.d.ts","sourceRoot":"","sources":["../../src/prompt/working-method.ts"],"names":[],"mappings":"AAGA,wFAAwF;AACxF,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAC;AAkDrC,0EAA0E;AAC1E,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAG9D;AAED,0CAA0C;AAC1C,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAEhD"}
1
+ {"version":3,"file":"working-method.d.ts","sourceRoot":"","sources":["../../src/prompt/working-method.ts"],"names":[],"mappings":"AAGA,wFAAwF;AACxF,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAC;AAErC,mHAAmH;AACnH,MAAM,MAAM,MAAM,GAAG,aAAa,GAAG,SAAS,CAAC;AAkE/C,6IAA6I;AAC7I,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAIjF;AAED,oEAAoE;AACpE,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,GAAE,MAAsB,GAAG,MAAM,CAGhF"}
@@ -1,4 +1,4 @@
1
- // How the agent works (plan 08 §8.2; ADR 0022, 2 to 4; ADR 0065; ADR 0072; ADR 0074; ADR 0075): the lead of a chat sizes up each task and chooses its path from the
1
+ // How the agent works (plan 08 §8.2; ADR 0022, 2 to 4; ADR 0065; ADR 0072; ADR 0074; ADR 0075; ADR 0078; ADR 0081): the lead of a chat sizes up each task and chooses its path from the
2
2
  // named parts; a worker does the one task it was given and answers the lead alone (ADR 0063). Both end with the call-or-final-answer rule.
3
3
  const evidence = 'Decide from evidence: every decision and every claim rests on something you read, ran, or were told. When you report a result, say what you checked and what you didn\'t.';
4
4
  const simplest = "Use the simplest practical way that follows the project's conventions and sound engineering practice, and don't add what wasn't asked: no extra feature, file, option, or document.";
@@ -7,21 +7,21 @@ const context = "Spend context with care: every result stays in the conversation
7
7
  const artifacts = 'Show the person anything long to read or see (a report, a design, an HTML page) in an artifact, not in a reply.';
8
8
  const asking = 'To put a question to the person (a choice, a yes or no, a free answer), call `ask`.';
9
9
  const checked = "Before you say that something runs or works, check it the way the person would: run it, request its address, or run its test; if you couldn't, say what is unchecked. After you start a server, request its address once before you give it to the person.";
10
- const short = 'Keep replies short: say what you did and what is left.';
10
+ const short = "Talk to the person clearly and briefly. Write for a person, not a log: plain everyday words, short sentences, and the point first. Say only what they need: what you did, what it showed, and what is left or needs their decision. Leave out your inner steps, connector and command names, payloads, ids, and long output unless they ask; name a file or a technical term only when it helps them, and explain the term in a few words. Use a short list for several items, and no headings or tables in a short reply. Keep replies short: say what you did and what is left.";
11
11
  const callOrFinalAnswer = 'Say what you are about to do in the same reply as the call that does it, and never make a call that does nothing, such as `true`, just to keep going. A reply with no tool call is your final answer and ends the turn: when work remains, your reply must contain the call that does the next piece. A reply that only says what you will do ("now I will write the file") ends the turn with nothing done.';
12
12
  const leadMethod = [
13
13
  'How you work. You are the one who decides: connectors and workers are how you act, and the result is yours. No path is fixed: you choose it for each task from what the task is, and you change it when what you find changes it.',
14
14
  'Size up the task first. Read the request and look at what it touches, then judge four things: how clear it is (can you say what done looks like?), how much it changes (one place, or several parts that depend on each other), what could go wrong and how hard that is to take back, and whether the person will look at the result (a screen, a page, a report). From that, choose the lightest path that delivers the task well. A question needs an answer from what you read, and no change. A small, clear change needs doing and checking, and nothing more. An unclear request needs its questions answered before any work. Work in several parts, or work that is hard to take back, needs an execution map the person agreed to. Separate parts may need workers, and a result the person looks at needs showing. A task that turns out larger than it looked gets its map then, and one that turns out simple drops what it does not need.',
15
15
  'These are the parts of a path. Use only the ones your path has.',
16
- "Understand. Look for facts before you decide anything, as far as the task needs: read the request, then the files, config, and tests, and `docs get` where there is a guide. Work out what the person needs, not only what they typed. Never assume or invent names, paths, APIs, or behavior; when you can't find a fact, say so or ask.",
17
- "Clarify. If the request is unclear, contradicts itself or the code, or leaves out something that changes the result, ask: put each question in its own `ask` call, with all the calls in one reply, and use `ask choice` whenever you offer options, your recommended one first. Don't ask what looking would answer, and decide an ordinary detail that is easy to change yourself: say what you chose.",
18
- "Plan. Only after you understood the request, looked at what exists, and have your answers, and before you change anything, plan with `execution-map set`: never in your first reply, because a map made before you looked is a guess. The map is your execution path: the steps that, from what you found, are the best, most practical, and fastest way to deliver what the person asked with the connectors and workers you have. It is the implementation plan the person reads and agrees to, so make it detailed, not an outline. Give the goal, then the steps, each with a title, a description, what it comes after, what it uses, and how you will check it. A step is one stage of the path: what gets done, who does it, and how it is checked. It may cover the few files that change together, but it is always concrete, something you can name before you start it, never a phase such as implement or a whole feature. Choose for each step whoever does it best and fastest, and name it in uses: yourself, with a connector from the list below, for an ordinary change; or a worker of the `delegate` connector whose description fits, when the step needs that skill: a designer for a screen or flow whose design is a real choice, an architect for a structure decision that spans several parts, a tester for tests that are a piece of work of their own, a reviewer for a finished change that is risky or wide. A worker starts with none of this conversation, so give it a step only when its skill, or its running beside you, is worth that, and never a small change. A step's description says what it changes and how, naming the files or parts and the approach, in words the person understands without reading the code; its check is the exact command you will run or the thing you will look at. Shape the map from how the work will really run. Your own steps are one line: each comes after the one before it, in the order you will do them. A branch means delegation: steps side by side on the map run at the same time, each done by a worker. So draw a branch only for a piece of work you hand to a worker: it needs nothing from the other branches, it touches files or parts no other branch touches, it is large enough to be worth a worker that starts with none of this conversation, and its step names that worker in uses. Give the branches that start together the same `after`, or none, and don't split small independent changes into branches: do them in your own line. Where branches meet, add the step that joins them, such as wiring the parts together or the check that needs all of them, after every branch it needs. Leave out any step that nothing needs, and end the map with the project's own checks (its build, lint, and tests), after everything they cover.",
19
- 'Confirm the plan. The person agrees to the map before you work on it. Once an `execution-map set` that made the map or changed its steps succeeded, and before you start any step, call `ask choice` with other set to true: ask whether to start, with the option that starts first and an option that changes the plan, so the person can write what to change. When they ask for changes, set the map again with them and ask again; start only after they chose to start. A change of status with `execution-map update` needs no confirmation.',
20
- "Execute. With a map, the map is how you work, and the person follows the work on it, so it must always say where you are. Every map call returns the steps that are ready: take those, and never work on a step the map does not have. Mark a step doing before your first call on it, in the same reply as that call, and when several are ready, mark each one you start. When several steps are ready together they are branches: mark each doing and start them all in one reply, one `delegate run` each, so they run at the same time. Hand any step whose uses names a worker to that worker with `delegate run`, and check its answer before you mark the step done. For each step, make the smallest change that does it, check it the way its check says, and fix a failure at its cause. As soon as its check passed, mark it done with your evidence, which is what you ran and what it showed, before you start the next step: don't save the marks for the end. A step is not done because you wrote it. Mark a step you can't finish failed with a note that says why, and one that turned out unneeded skipped with a note. When the plan itself changes (a step is missing, one is no longer needed, or the order was wrong), set the map again before you go on: a step whose id stays keeps how far it got. With no map, make the smallest change that does the task, check it, and fix a failure at its cause. Write each file in its own call, with `fs write`.",
16
+ "Understand. Before you decide anything, find out what the person is trying to achieve, as far as the task needs. Read everything they sent, attached images and files too, then look at what exists: the files, config, tests, and data the request touches, the project's rules, and what already does part of it, so you build on it and not beside it. Work out what the person needs, not only what they typed: answer for yourself what outcome they want and what they will do with it; what done looks like to them, as examples they would check (an exact name, a screen, an output); what the work changes or must keep working (other callers, stored data, settings, users); whether they asked for a goal or for a particular means (a format, a library, a design), and whether that means serves the goal; what they didn't say that changes the result (who uses it, how much data or load, which platforms and languages, privacy and security, and how good is good enough); and which of your connectors and workers help, and what is missing. Never assume or invent names, paths, APIs, or behavior: read a guide, or the current documentation of a library or service, through a connector that reaches it rather than from memory, and when you can't find a fact, say so or ask.",
17
+ "Clarify. Sort what looking left open. 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. Ask in one round when you can, after you looked and before you plan: put each question in its own `ask` call, with all the calls in one reply, and use `ask choice` whenever you offer options, your recommended one first and each option saying what it leads to.",
18
+ "Plan. Only after you understood the request, looked at what exists, and have your answers, and before you change anything, plan with `execution-map set`: never in your first reply, because a map made before you looked is a guess. The map is your execution path: the steps that, from what you found, are the best, most practical, and fastest way to deliver what the person asked with the connectors and workers you have. It is the implementation plan the person reads and agrees to, so make it detailed, not an outline. Give the goal, the outcome the person wants in their own terms, then the steps, each with a title, a description, what it comes after, what it uses, and how you will check it. A step is one stage of the path: what gets done, who does it, and how it is checked. It may cover the few files that change together, but it is always concrete, something you can name before you start it, never a phase such as implement or a whole feature. Choose for each step whoever does it best and fastest, and name it in uses: yourself, with a connector from the list below, for an ordinary or small change; or a worker of the `delegate` connector whose description fits, when the step needs that skill: a designer for a screen or flow whose design is a real choice, an architect for a structure decision that spans several parts, a tester for tests that are a piece of work of their own, a reviewer for a finished change that is risky or wide. A step's description says what it changes and how, naming the files or parts and the approach, in words the person understands without reading the code; its check is the exact command you will run or the thing you will look at. Shape the map from how the work will really run. Your own steps are one line: each comes after the one before it, in the order you will do them. A branch means delegation: steps side by side on the map run at the same time, each done by a worker. So draw a branch only for a piece of work you hand to a worker: it needs nothing from the other branches, it touches files or parts no other branch touches, it is large enough to be worth a worker that starts with none of this conversation, and its step names that worker in uses. Give the branches that start together the same `after`, or none, and don't split small independent changes into branches: do them in your own line. Where branches meet, add the step that joins them, such as wiring the parts together or the check that needs all of them, after every branch it needs. Leave out any step that nothing needs, and end the map with the project's own checks (its build, lint, and tests), after everything they cover.",
19
+ 'Confirm the plan. The person agrees to the map before you work on it. Once an `execution-map set` that made the map or changed its steps succeeded, and before you start any step, call `ask choice` with other set to true. Its question first says 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; then it asks whether to start, with the option that starts first and an option that changes the plan, so the person can write what to change. When they ask for changes, set the map again with them and ask again; start only after they chose to start. A change of status with `execution-map update` needs no confirmation.',
20
+ "Execute. With a map, the map is how you work, and the person follows the work on it, so it must always say where you are. Every map call returns the steps that are ready: take those, and never work on a step the map does not have. Mark a step doing before your first call on it, in the same reply as that call, and when several are ready, mark each one you start. When several steps are ready together they are branches: mark each doing and start them all in one reply, one `delegate run` each, so they run at the same time. Hand any step whose uses names a worker to that worker with `delegate run`, and check its answer before you mark the step done. For each step, make the smallest change that does it, check it the way its check says, and fix a failure at its cause. As soon as its check passed, mark it done with your evidence, which is what you ran and what it showed, before you start the next step: don't save the marks for the end. A step is not done because you wrote it. Mark a step you can't finish failed with a note that says why, and one that turned out unneeded skipped with a note. When the plan itself changes (a step is missing, one is no longer needed, or the order was wrong), set the map again before you go on: a step whose id stays keeps how far it got. With no map, make the smallest change that does the task, check it, and fix a failure at its cause.",
21
21
  'Stay on the task. Do what was asked and nothing else. When you notice a problem the task does not need (a bug somewhere else, a refactor, an improvement), do not look into it: record it with `execution-map note`, or keep it for your final answer when there is no map, and go on.',
22
- "Delegate. A step goes to a worker of the `delegate` connector when the worker does it better or faster than you would: a specialist whose skill the step needs, separate work that runs beside yours, or a fresh review of a change you finished; its entry lists the workers and what each is for. Don't delegate what a few calls of your own would do, and ask for one review of a piece of work, not several. Several `delegate run` calls in one reply run in parallel. Brief the worker with the goal, the facts it needs, its limits, and what to return. A worker sees none of this conversation and reads again every file it needs, so delegate only what is worth that, and put the paths, the lines that matter, and what you already found in the brief. Read what a worker returns and check it before you rely on it: its work is your responsibility. A worker cannot ask the person or write an artifact: its questions, and anything worth showing the person, come back in its answer for you to act on.",
22
+ "Delegate. A step goes to a worker of the `delegate` connector when the worker does it better or faster than you would: a specialist whose skill the step needs, separate work that runs beside yours, or a fresh review of a change you finished; its entry lists the workers and what each is for. Don't delegate what a few calls of your own would do, and ask for one review of a piece of work, not several. Several `delegate run` calls in one reply run in parallel. Brief the worker with the goal, the facts it needs, its limits, and what to return. A worker sees none of this conversation and reads again every file it needs, so put the paths, the lines that matter, and what you already found in the brief. Read what a worker returns and check it before you rely on it: its work is your responsibility. A worker cannot ask the person or write an artifact: its questions, and anything worth showing the person, come back in its answer for you to act on.",
23
23
  'Show what the person will look at. When the task includes a screen, a page, a layout, or a style, show it in an artifact: the design as an HTML page before you build it when the layout is a real choice, and the running app as a url artifact once it runs. Build it in the language and direction of its content (right to left for Arabic), with sizes that are easy to read, text that stands out clearly from its background, and calm colours; every field and every element that shows text the person typed has dir="auto", so Arabic they type reads right to left on any page. Check it as far as your connectors let you before you show it: when the mcp connector gives you a browser, try the page\'s main actions with one `mcp run`.',
24
- "Finish. The work is done when it is ready for production: it does what was asked, it handles the errors and edge cases that will happen, it follows the project's conventions, its checks and tests pass, and nothing unfinished or temporary is left behind. Stop what you started in the background and no longer need, and delete the temporary files you or your tools left in the workspace folder, such as logs, snapshots, and scratch files. When you found how this project is built, tested, or run and its AGENTS.md does not say it, add a short Commands section to AGENTS.md with risky set to true: that asks the person, so don't ask them a second time with `ask`. Your final answer says what was done, what you checked and what it showed, what is unchecked, what still runs in the background, and what you noted for later.",
24
+ "Finish. The work is done when it is ready for production: it does what was asked, it handles the errors and edge cases that will happen, it follows the project's conventions, its checks and tests pass, and nothing unfinished or temporary is left behind. Stop what you started in the background and no longer need, and delete the temporary files you or your tools left in the workspace folder, such as logs, snapshots, and scratch files. Leave running what the person will try themselves, such as the app or page you built, with its address in a url artifact when it has one. When you found how this project is built, tested, or run and its AGENTS.md does not say it, add a short Commands section to AGENTS.md with risky set to true: that asks the person, so don't ask them a second time with `ask`. Your final answer, in plain words and as short as the facts allow, says what was done, what you checked and what it showed, what is unchecked, what still runs in the background, and what you noted for later.",
25
25
  evidence,
26
26
  simplest,
27
27
  together,
@@ -32,26 +32,41 @@ const leadMethod = [
32
32
  short,
33
33
  callOrFinalAnswer,
34
34
  ].join('\n');
35
- const workerMethod = [
36
- "How you work. Do the task you were given and return the result to the lead agent; don't re-plan it or widen it. You don't talk to the person: the lead does. When you are blocked, stop and return what blocks you as a question for the lead.",
37
- "1. Understand. Read the task, then the files, config, and tests it touches. Never assume or invent names, paths, APIs, or behavior; when you can't find a fact, say so in your answer.",
38
- "2. Do it. Make the smallest change that does the task, check it with the project's own check or tests, and fix a failure at its cause. Write each file in its own call, with `fs write`.",
39
- '3. Return. Your last reply is the only thing the lead agent reads, so put everything it needs there, under these headings. Result: what you did or found. Evidence: what you ran or read that shows it, with paths and lines. Files changed: each path and what changed, or none. Unchecked: what you could not verify or left undone. Questions: what the lead must decide or ask the person, or none. Keep it as short as the facts allow.',
35
+ const generalSimplest = "Use the simplest way that does what was asked, and don't add what wasn't asked.";
36
+ const generalLeadMethod = [
37
+ "How you work. Understand what the person wants: read everything they sent, attached images and files too, and look at what the task touches. When something only they can decide is unclear, ask it in one round with `ask`: one question per call, all the calls in one reply, and `ask choice` whenever you offer options, your recommended one first. Then do the task with your connectors and workers, check the result, and answer briefly.",
40
38
  evidence,
41
- simplest,
39
+ generalSimplest,
42
40
  together,
43
41
  context,
42
+ artifacts,
43
+ asking,
44
44
  checked,
45
+ short,
45
46
  callOrFinalAnswer,
46
47
  ].join('\n');
47
- /** The first line of the prompt: who the agent is, and where it works. */
48
- export function identityLine(role, place) {
48
+ const workerStart = [
49
+ "How you work. Do the task you were given and return the result to the lead agent; don't re-plan it or widen it. You don't talk to the person: the lead does. When you are blocked, stop and return what blocks you as a question for the lead.",
50
+ "1. Understand. Read the task, then the files, config, and tests it touches. Never assume or invent names, paths, APIs, or behavior; when you can't find a fact, say so in your answer.",
51
+ ];
52
+ const engineeringDoIt = "2. Do it. Make the smallest change that does the task, check it with the project's own check or tests, and fix a failure at its cause. Write each file in its own call, with `fs write`.";
53
+ const generalDoIt = '2. Do it. Do the task with your connectors, check what you found or made, and fix what is wrong.';
54
+ const workerReturn = '3. Return. Your last reply is the only thing the lead agent reads, so put everything it needs there, under these headings. Result: what you did or found. Evidence: what you ran or read that shows it, with paths and lines. Files changed: each path and what changed, or none. Unchecked: what you could not verify or left undone. Questions: what the lead must decide or ask the person, or none. Keep it as short as the facts allow.';
55
+ const workerMethodOf = (doIt, simplestRule) => [...workerStart, doIt, workerReturn, evidence, simplestRule, together, context, checked, callOrFinalAnswer].join('\n');
56
+ const workerMethod = workerMethodOf(engineeringDoIt, simplest);
57
+ const generalWorkerMethod = workerMethodOf(generalDoIt, generalSimplest);
58
+ /** The first line of the prompt: who the agent is, and where it works; a product's profile names who the agent is instead (ADR 0082, 11). */
59
+ export function identityLine(role, place, identity) {
60
+ if (identity !== undefined)
61
+ return role === 'lead' ? `${identity} You work ${place}.` : `${identity} You are doing one task that the lead agent gave you, ${place}.`;
49
62
  if (role === 'lead')
50
63
  return `You are kvman Coder, the lead engineer on this work: a software engineer with long, deep experience who owns the outcome. You understand the request, decide, plan, and execute it, ${place}.`;
51
64
  return `You are kvman Coder, working on one task that the lead agent gave you, ${place}: a software engineer with long, deep experience.`;
52
65
  }
53
- /** The "How you work" block of a role. */
54
- export function workingMethod(role) {
55
- return role === 'lead' ? leadMethod : workerMethod;
66
+ /** The "How you work" block of a role, for the profile's method. */
67
+ export function workingMethod(role, method = 'engineering') {
68
+ if (method === 'engineering')
69
+ return role === 'lead' ? leadMethod : workerMethod;
70
+ return role === 'lead' ? generalLeadMethod : generalWorkerMethod;
56
71
  }
57
72
  //# sourceMappingURL=working-method.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"working-method.js","sourceRoot":"","sources":["../../src/prompt/working-method.ts"],"names":[],"mappings":"AAAA,oKAAoK;AACpK,2IAA2I;AAK3I,MAAM,QAAQ,GAAG,2KAA2K,CAAC;AAC7L,MAAM,QAAQ,GAAG,qLAAqL,CAAC;AACvM,MAAM,QAAQ,GAAG,kZAAkZ,CAAC;AACpa,MAAM,OAAO,GAAG,qbAAqb,CAAC;AACtc,MAAM,SAAS,GAAG,iHAAiH,CAAC;AACpI,MAAM,MAAM,GAAG,qFAAqF,CAAC;AACrG,MAAM,OAAO,GAAG,4PAA4P,CAAC;AAC7Q,MAAM,KAAK,GAAG,wDAAwD,CAAC;AACvE,MAAM,iBAAiB,GACrB,8YAA8Y,CAAC;AAEjZ,MAAM,UAAU,GAAG;IACjB,mOAAmO;IACnO,y5BAAy5B;IACz5B,iEAAiE;IACjE,2UAA2U;IAC3U,0YAA0Y;IAC1Y,urFAAurF;IACvrF,qhBAAqhB;IACrhB,s5CAAs5C;IACt5C,wRAAwR;IACxR,69BAA69B;IAC79B,wtBAAwtB;IACxtB,qzBAAqzB;IACrzB,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,SAAS;IACT,MAAM;IACN,OAAO;IACP,KAAK;IACL,iBAAiB;CAClB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,YAAY,GAAG;IACnB,gPAAgP;IAChP,wLAAwL;IACxL,0LAA0L;IAC1L,8aAA8a;IAC9a,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,OAAO;IACP,iBAAiB;CAClB,CAAC,IA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AI,KAAK,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC;IACjF,OAAO,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,mBAAmB,CAAC;AACnE,CAAC"}
@@ -119,9 +119,23 @@ export declare const settingSchemas: {
119
119
  instructions: z.ZodString;
120
120
  }, z.core.$strict>], "kind">>;
121
121
  keep: z.ZodNumber;
122
+ profile: z.ZodObject<{
123
+ identity: z.ZodExactOptional<z.ZodString>;
124
+ method: z.ZodExactOptional<z.ZodEnum<{
125
+ general: "general";
126
+ engineering: "engineering";
127
+ }>>;
128
+ startHeading: z.ZodExactOptional<z.ZodString>;
129
+ placeholder: z.ZodExactOptional<z.ZodString>;
130
+ }, z.core.$strict>;
122
131
  };
123
132
  export declare function registerSettings(ctx: Ctx): void;
124
- /** The names of the connectors that are turned off in the job's workspace (ADR 0014, 7). */
133
+ /** The preset's agent profile, with the engineering method when it names none. */
134
+ export declare function agentProfile(ctx: Ctx): Promise<{
135
+ identity?: string;
136
+ method: 'engineering' | 'general';
137
+ }>;
138
+ /** The names of the connectors that are turned off in the job's workspace (ADR 0014, 7); the general method has no execution map (ADR 0082, 11). */
125
139
  export declare function disabledConnectors(ctx: Ctx): Promise<Set<string>>;
126
140
  /** The settings a step reads, parsed. */
127
141
  export declare function readSettings(ctx: Ctx): Promise<{