@burtson-labs/agent-core 1.6.75 → 1.6.77

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.
@@ -5,13 +5,14 @@ export { testGenSkill } from './test-gen-skill';
5
5
  export { planSkill } from './plan-skill';
6
6
  export { semanticSearchSkill, configureSemanticSearchOllamaUrl, resetSemanticIndex } from './semantic-search-skill';
7
7
  export { mailSearchSkill } from './mail-search-skill';
8
+ export { webArtifactSkill, HTML_ARTIFACT_GUIDANCE } from './web-artifact-skill';
8
9
  export { interactionSkill } from './interaction-skill';
9
10
  import { SkillRegistry } from '../skill-registry';
10
11
  /**
11
12
  * Returns a SkillRegistry pre-loaded with all built-in skills.
12
13
  * Core and git skills are 'always' active. Review, test, plan,
13
- * semantic search, and mail-search skills auto-activate based on
14
- * prompt patterns.
14
+ * semantic search, mail-search, and web-artifact skills auto-activate
15
+ * based on prompt patterns.
15
16
  */
16
17
  export declare function createDefaultSkillRegistry(): SkillRegistry;
17
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/skills/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,gCAAgC,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACpH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AASlD;;;;;GAKG;AACH,wBAAgB,0BAA0B,IAAI,aAAa,CAU1D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/skills/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,gCAAgC,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACpH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAEhF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAUlD;;;;;GAKG;AACH,wBAAgB,0BAA0B,IAAI,aAAa,CAW1D"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.interactionSkill = exports.mailSearchSkill = exports.resetSemanticIndex = exports.configureSemanticSearchOllamaUrl = exports.semanticSearchSkill = exports.planSkill = exports.testGenSkill = exports.codeReviewSkill = exports.gitSkill = exports.coreSkill = void 0;
3
+ exports.interactionSkill = exports.HTML_ARTIFACT_GUIDANCE = exports.webArtifactSkill = exports.mailSearchSkill = exports.resetSemanticIndex = exports.configureSemanticSearchOllamaUrl = exports.semanticSearchSkill = exports.planSkill = exports.testGenSkill = exports.codeReviewSkill = exports.gitSkill = exports.coreSkill = void 0;
4
4
  exports.createDefaultSkillRegistry = createDefaultSkillRegistry;
5
5
  var core_skill_1 = require("./core-skill");
6
6
  Object.defineProperty(exports, "coreSkill", { enumerable: true, get: function () { return core_skill_1.coreSkill; } });
@@ -18,6 +18,9 @@ Object.defineProperty(exports, "configureSemanticSearchOllamaUrl", { enumerable:
18
18
  Object.defineProperty(exports, "resetSemanticIndex", { enumerable: true, get: function () { return semantic_search_skill_1.resetSemanticIndex; } });
19
19
  var mail_search_skill_1 = require("./mail-search-skill");
20
20
  Object.defineProperty(exports, "mailSearchSkill", { enumerable: true, get: function () { return mail_search_skill_1.mailSearchSkill; } });
21
+ var web_artifact_skill_1 = require("./web-artifact-skill");
22
+ Object.defineProperty(exports, "webArtifactSkill", { enumerable: true, get: function () { return web_artifact_skill_1.webArtifactSkill; } });
23
+ Object.defineProperty(exports, "HTML_ARTIFACT_GUIDANCE", { enumerable: true, get: function () { return web_artifact_skill_1.HTML_ARTIFACT_GUIDANCE; } });
21
24
  // Host-opt-in only (not in createDefaultSkillRegistry — see interaction-skill).
22
25
  var interaction_skill_1 = require("./interaction-skill");
23
26
  Object.defineProperty(exports, "interactionSkill", { enumerable: true, get: function () { return interaction_skill_1.interactionSkill; } });
@@ -29,11 +32,12 @@ const test_gen_skill_2 = require("./test-gen-skill");
29
32
  const plan_skill_2 = require("./plan-skill");
30
33
  const semantic_search_skill_2 = require("./semantic-search-skill");
31
34
  const mail_search_skill_2 = require("./mail-search-skill");
35
+ const web_artifact_skill_2 = require("./web-artifact-skill");
32
36
  /**
33
37
  * Returns a SkillRegistry pre-loaded with all built-in skills.
34
38
  * Core and git skills are 'always' active. Review, test, plan,
35
- * semantic search, and mail-search skills auto-activate based on
36
- * prompt patterns.
39
+ * semantic search, mail-search, and web-artifact skills auto-activate
40
+ * based on prompt patterns.
37
41
  */
38
42
  function createDefaultSkillRegistry() {
39
43
  return new skill_registry_1.SkillRegistry().registerAll([
@@ -43,7 +47,8 @@ function createDefaultSkillRegistry() {
43
47
  test_gen_skill_2.testGenSkill,
44
48
  plan_skill_2.planSkill,
45
49
  semantic_search_skill_2.semanticSearchSkill,
46
- mail_search_skill_2.mailSearchSkill
50
+ mail_search_skill_2.mailSearchSkill,
51
+ web_artifact_skill_2.webArtifactSkill
47
52
  ]);
48
53
  }
49
54
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/skills/index.ts"],"names":[],"mappings":";;;AAyBA,gEAUC;AAnCD,2CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAClB,yCAAuC;AAA9B,qGAAA,QAAQ,OAAA;AACjB,yDAAsD;AAA7C,oHAAA,eAAe,OAAA;AACxB,mDAAgD;AAAvC,8GAAA,YAAY,OAAA;AACrB,2CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAClB,iEAAoH;AAA3G,4HAAA,mBAAmB,OAAA;AAAE,yIAAA,gCAAgC,OAAA;AAAE,2HAAA,kBAAkB,OAAA;AAClF,yDAAsD;AAA7C,oHAAA,eAAe,OAAA;AACxB,gFAAgF;AAChF,yDAAuD;AAA9C,qHAAA,gBAAgB,OAAA;AAEzB,sDAAkD;AAClD,6CAAyC;AACzC,2CAAuC;AACvC,2DAAsD;AACtD,qDAAgD;AAChD,6CAAyC;AACzC,mEAA8D;AAC9D,2DAAsD;AAEtD;;;;;GAKG;AACH,SAAgB,0BAA0B;IACxC,OAAO,IAAI,8BAAa,EAAE,CAAC,WAAW,CAAC;QACrC,sBAAS;QACT,oBAAQ;QACR,mCAAe;QACf,6BAAY;QACZ,sBAAS;QACT,2CAAmB;QACnB,mCAAe;KAChB,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/skills/index.ts"],"names":[],"mappings":";;;AA2BA,gEAWC;AAtCD,2CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAClB,yCAAuC;AAA9B,qGAAA,QAAQ,OAAA;AACjB,yDAAsD;AAA7C,oHAAA,eAAe,OAAA;AACxB,mDAAgD;AAAvC,8GAAA,YAAY,OAAA;AACrB,2CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAClB,iEAAoH;AAA3G,4HAAA,mBAAmB,OAAA;AAAE,yIAAA,gCAAgC,OAAA;AAAE,2HAAA,kBAAkB,OAAA;AAClF,yDAAsD;AAA7C,oHAAA,eAAe,OAAA;AACxB,2DAAgF;AAAvE,sHAAA,gBAAgB,OAAA;AAAE,4HAAA,sBAAsB,OAAA;AACjD,gFAAgF;AAChF,yDAAuD;AAA9C,qHAAA,gBAAgB,OAAA;AAEzB,sDAAkD;AAClD,6CAAyC;AACzC,2CAAuC;AACvC,2DAAsD;AACtD,qDAAgD;AAChD,6CAAyC;AACzC,mEAA8D;AAC9D,2DAAsD;AACtD,6DAAwD;AAExD;;;;;GAKG;AACH,SAAgB,0BAA0B;IACxC,OAAO,IAAI,8BAAa,EAAE,CAAC,WAAW,CAAC;QACrC,sBAAS;QACT,oBAAQ;QACR,mCAAe;QACf,6BAAY;QACZ,sBAAS;QACT,2CAAmB;QACnB,mCAAe;QACf,qCAAgB;KACjB,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Web Artifact skill — auto-activated when the task is to build an HTML page /
3
+ * artifact / report / dashboard the user will view or publish.
4
+ *
5
+ * It ships NO tools; its whole job is to inject quality guidance into the system
6
+ * prompt so self-contained HTML artifacts come out looking like real product
7
+ * design — mobile-friendly, theme-aware, Lucide-iconed — instead of a raw dump.
8
+ * The same guidance (HTML_ARTIFACT_GUIDANCE) is reused by the CLI graph sink node
9
+ * so a published-from-a-graph artifact hits the same bar.
10
+ */
11
+ import type { SkillManifest } from '../skill-types';
12
+ /**
13
+ * The house style for any self-contained HTML artifact Bandit produces. Kept as a
14
+ * standalone export so both this skill (normal turns) and the graph sink node
15
+ * (research→publish turns) advise the model identically.
16
+ */
17
+ export declare const HTML_ARTIFACT_GUIDANCE: string;
18
+ export declare const webArtifactSkill: SkillManifest;
19
+ //# sourceMappingURL=web-artifact-skill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-artifact-skill.d.ts","sourceRoot":"","sources":["../../../src/tools/skills/web-artifact-skill.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,QAQvB,CAAC;AAEb,eAAO,MAAM,gBAAgB,EAAE,aAsB9B,CAAC"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.webArtifactSkill = exports.HTML_ARTIFACT_GUIDANCE = void 0;
4
+ /**
5
+ * The house style for any self-contained HTML artifact Bandit produces. Kept as a
6
+ * standalone export so both this skill (normal turns) and the graph sink node
7
+ * (research→publish turns) advise the model identically.
8
+ */
9
+ exports.HTML_ARTIFACT_GUIDANCE = [
10
+ 'When you build a self-contained HTML artifact (a page, report, dashboard, briefing, or any HTML you will publish), treat it as real product design, not a raw document. Deliver these by DEFAULT:',
11
+ '- Self-contained + CSP-safe: ALL CSS in a <style> tag and ALL JS in a <script> tag — no external stylesheets, fonts, scripts, or CDNs (they are blocked). Embed images as data: URIs. Use a system font stack, no web fonts.',
12
+ '- Mobile-first & responsive: design for a phone first, then scale up. Relative units, flexbox/grid, max-width on content, images max-width:100%. The page body must NEVER scroll horizontally — wide tables/code/diagrams scroll inside their own overflow-x:auto container. Comfortable tap targets and spacing.',
13
+ '- Light AND dark theme: style BOTH. Default to the viewer’s system preference with @media (prefers-color-scheme: dark), drive every color from CSS variables, and add a small theme toggle that flips them. Never hard-code one background/text color that breaks in the other mode.',
14
+ '- Lucide icons, inlined as SVG: use Lucide-style icons inlined directly as <svg> (never a CDN or icon font). Lucide convention: viewBox="0 0 24 24", fill="none", stroke="currentColor", stroke-width="2", stroke-linecap="round", stroke-linejoin="round" — currentColor makes them follow the theme automatically. Size with width/height or CSS.',
15
+ '- Polished by default: clear visual hierarchy, generous whitespace, one coherent accent color, subtle borders/shadows, and a readable line length (~60-75ch) for prose.',
16
+ 'If the task leaves room and you can ask the user (ask_user), briefly offer to tailor the polish BEFORE you build: how refined they want it, brand colors or a logo, imagery, and tone. Ask ONCE, keep it short, and never block a quick request — if they do not care or it is a fast turn, just ship the great default above.',
17
+ ].join('\n');
18
+ exports.webArtifactSkill = {
19
+ id: 'web/artifact',
20
+ name: 'Web Artifact',
21
+ version: '1.0.0',
22
+ description: 'Build self-contained HTML artifacts with excellent, mobile-friendly, theme-aware UX.',
23
+ instructions: exports.HTML_ARTIFACT_GUIDANCE,
24
+ activation: 'auto',
25
+ triggerPatterns: [
26
+ /\bhtml\b/i,
27
+ /\bartifact\b/i,
28
+ /\bweb\s?page\b/i,
29
+ /\blanding page\b/i,
30
+ /\bstatic site\b/i,
31
+ /\bmicrosite\b/i,
32
+ /\bone[-\s]?pager\b/i,
33
+ /\bself[-\s]?contained\b/i,
34
+ // "build/make/create/design a <deliverable>" — a page-shaped deliverable, not code.
35
+ /\b(build|make|create|generate|design)\b[\s\S]{0,30}\b(page|site|report|briefing|dashboard|deck|flyer|poster|resume|cv|portfolio|invoice|newsletter)\b/i,
36
+ // "publish/share this as a <page/site/report/...>"
37
+ /\b(publish|share)\b[\s\S]{0,40}\b(page|site|report|briefing|dashboard|deck|artifact)\b/i,
38
+ ],
39
+ tools: [],
40
+ };
41
+ //# sourceMappingURL=web-artifact-skill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-artifact-skill.js","sourceRoot":"","sources":["../../../src/tools/skills/web-artifact-skill.ts"],"names":[],"mappings":";;;AAYA;;;;GAIG;AACU,QAAA,sBAAsB,GAAG;IACpC,mMAAmM;IACnM,8NAA8N;IAC9N,mTAAmT;IACnT,sRAAsR;IACtR,qVAAqV;IACrV,yKAAyK;IACzK,gUAAgU;CACjU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEA,QAAA,gBAAgB,GAAkB;IAC7C,EAAE,EAAE,cAAc;IAClB,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sFAAsF;IACnG,YAAY,EAAE,8BAAsB;IACpC,UAAU,EAAE,MAAM;IAClB,eAAe,EAAE;QACf,WAAW;QACX,eAAe;QACf,iBAAiB;QACjB,mBAAmB;QACnB,kBAAkB;QAClB,gBAAgB;QAChB,qBAAqB;QACrB,0BAA0B;QAC1B,oFAAoF;QACpF,wJAAwJ;QACxJ,mDAAmD;QACnD,yFAAyF;KAC1F;IACD,KAAK,EAAE,EAAE;CACV,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burtson-labs/agent-core",
3
- "version": "1.6.75",
3
+ "version": "1.6.77",
4
4
  "author": {
5
5
  "name": "Burtson Labs",
6
6
  "email": "team@burtson.ai",