@aiderdesk/aiderdesk 0.74.0 → 0.75.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/out/{open-telemetry-baOvr6sK.js → open-telemetry-B7yROZIC.js} +3 -0
- package/out/renderer/assets/{AgentSettings-B-793Wr6.js → AgentSettings-DX34HLFv.js} +2 -2
- package/out/renderer/assets/{InfoIcon-cuLXzJtV.js → InfoIcon-DzyZQ7Ye.js} +1 -1
- package/out/renderer/assets/{Onboarding-xrPWRnXm.js → Onboarding-FwXfKZ8B.js} +4 -4
- package/out/renderer/assets/{ProviderHeader-CMVyqpPa.js → ProviderHeader-Cii9aAmV.js} +275 -197
- package/out/renderer/assets/{SettingsPage-BBtDhv80.js → SettingsPage-XanGltUZ.js} +3 -3
- package/out/renderer/assets/{UsageDashboard-CGI4iwCD.js → UsageDashboard-eHbvZTZC.js} +3795 -2366
- package/out/renderer/assets/{arc-CFENq1wJ.js → arc-CVfdiTl1.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-3BPJPVTR-BRG_9Mao.js → architectureDiagram-3BPJPVTR-DsLLo_Ek.js} +3 -3
- package/out/renderer/assets/{blockDiagram-GPEHLZMM-B3c7WMY4.js → blockDiagram-GPEHLZMM-eWy47S0_.js} +4 -4
- package/out/renderer/assets/{c4Diagram-AAUBKEIU-BYQrxMcW.js → c4Diagram-AAUBKEIU-BH9b_e6y.js} +2 -2
- package/out/renderer/assets/{channel-DPxL1rpa.js → channel-D1z_mPGJ.js} +1 -1
- package/out/renderer/assets/{chunk-2J33WTMH-C-kk05Nj.js → chunk-2J33WTMH-DK0Yw_7f.js} +1 -1
- package/out/renderer/assets/{chunk-4BX2VUAB-BV8PWxnG.js → chunk-4BX2VUAB-DIGR8Y5b.js} +1 -1
- package/out/renderer/assets/{chunk-55IACEB6-Cj6KHkUp.js → chunk-55IACEB6-DoCkLI5e.js} +1 -1
- package/out/renderer/assets/{chunk-727SXJPM-BaIkuSPr.js → chunk-727SXJPM-C2gQLzLi.js} +5 -5
- package/out/renderer/assets/{chunk-AQP2D5EJ-DVZR_bfB.js → chunk-AQP2D5EJ-D83_SlRR.js} +3 -3
- package/out/renderer/assets/{chunk-FMBD7UC4-CNrb2a0a.js → chunk-FMBD7UC4-CyiPoUsC.js} +1 -1
- package/out/renderer/assets/{chunk-ND2GUHAM-ClOnPDjy.js → chunk-ND2GUHAM-DfGsUYDD.js} +1 -1
- package/out/renderer/assets/{chunk-QZHKN3VN-B2sJx9j2.js → chunk-QZHKN3VN-BhnTFlht.js} +1 -1
- package/out/renderer/assets/{classDiagram-4FO5ZUOK-ZzwWMcLO.js → classDiagram-4FO5ZUOK-Dy7E8tVe.js} +6 -6
- package/out/renderer/assets/{classDiagram-v2-Q7XG4LA2-ZzwWMcLO.js → classDiagram-v2-Q7XG4LA2-Dy7E8tVe.js} +6 -6
- package/out/renderer/assets/{cose-bilkent-S5V4N54A-DBx-UiMU.js → cose-bilkent-S5V4N54A-Dsl61WN3.js} +1 -1
- package/out/renderer/assets/{dagre-BM42HDAG-B_vMvYpz.js → dagre-BM42HDAG-D-u18G94.js} +3 -3
- package/out/renderer/assets/{diagram-2AECGRRQ-Do-w2xXO.js → diagram-2AECGRRQ-BumP49Qp.js} +3 -3
- package/out/renderer/assets/{diagram-5GNKFQAL-JzG77sgb.js → diagram-5GNKFQAL-VpUN87Sw.js} +4 -4
- package/out/renderer/assets/{diagram-KO2AKTUF-CGMx2nPP.js → diagram-KO2AKTUF-CXCWwzRa.js} +3 -3
- package/out/renderer/assets/{diagram-LMA3HP47-BqXnQeNu.js → diagram-LMA3HP47-vlOcStwn.js} +3 -3
- package/out/renderer/assets/{diagram-OG6HWLK6-BR4e0lIb.js → diagram-OG6HWLK6-DS1BscxN.js} +4 -4
- package/out/renderer/assets/{erDiagram-TEJ5UH35-B7QK0XSy.js → erDiagram-TEJ5UH35-DPi6-CLL.js} +4 -4
- package/out/renderer/assets/{flowDiagram-I6XJVG4X-BOySqejA.js → flowDiagram-I6XJVG4X-BYlX12Cd.js} +6 -6
- package/out/renderer/assets/{ganttDiagram-6RSMTGT7-BORAleML.js → ganttDiagram-6RSMTGT7-BJQl-A9d.js} +3 -3
- package/out/renderer/assets/{gitGraphDiagram-PVQCEYII-DTReLiJT.js → gitGraphDiagram-PVQCEYII-CUFXx3IZ.js} +4 -4
- package/out/renderer/assets/{graph-Bf8U9r0n.js → graph-CbFubTTc.js} +1 -1
- package/out/renderer/assets/{index-BS5vy5uH.js → index-9GNr8q1O.js} +1 -1
- package/out/renderer/assets/{index-DUoUqcJ_.js → index-B6R_BNfE.js} +1 -1
- package/out/renderer/assets/{index-D3R9tjiT.js → index-B9iW9QmT.js} +1 -1
- package/out/renderer/assets/{index-D6b3rMtW.js → index-BkdacTnN.js} +1 -1
- package/out/renderer/assets/{index-CmQY2QKE.js → index-C7885gEz.js} +1 -1
- package/out/renderer/assets/{index-BOQBc3Qj.js → index-Cg7tn967.js} +575 -251
- package/out/renderer/assets/{index-7NwOg_q_.css → index-DCILJy4w.css} +42 -0
- package/out/renderer/assets/{index-Dq3ldCAy.js → index-DNlMJMPg.js} +3239 -2487
- package/out/renderer/assets/{index-COyr1I0o.js → index-DYKLRIHT.js} +1 -1
- package/out/renderer/assets/{index-5i67azF0.js → index-DeoI6jti.js} +1 -1
- package/out/renderer/assets/{index-Dtxgil7l.js → index-fD843lMX.js} +1 -1
- package/out/renderer/assets/{infoDiagram-5YYISTIA-Ryv-Emth.js → infoDiagram-5YYISTIA-IWJLFUYz.js} +2 -2
- package/out/renderer/assets/{ishikawaDiagram-YF4QCWOH-Blzp6JLN.js → ishikawaDiagram-YF4QCWOH-BuNfm7cB.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-JHISSGLW--KB4ASET.js → journeyDiagram-JHISSGLW-CfceKUHO.js} +4 -4
- package/out/renderer/assets/{jsx-dev-runtime-DAzw_Red.js → jsx-dev-runtime-DT3FTts0.js} +1 -1
- package/out/renderer/assets/{kanban-definition-UN3LZRKU-BzNpCu_x.js → kanban-definition-UN3LZRKU-Bb6YnEgS.js} +2 -2
- package/out/renderer/assets/{layout-BQu4M-KW.js → layout-BkrDn6V9.js} +2 -2
- package/out/renderer/assets/{linear-DNZEF2Al.js → linear-jxO_dc8P.js} +1 -1
- package/out/renderer/assets/{mindmap-definition-RKZ34NQL-CxQjZIps.js → mindmap-definition-RKZ34NQL-BPRx7p9A.js} +3 -3
- package/out/renderer/assets/{pieDiagram-4H26LBE5-qJt7eGwM.js → pieDiagram-4H26LBE5-CPR4AuPM.js} +4 -4
- package/out/renderer/assets/{quadrantDiagram-W4KKPZXB-mMOhLjN_.js → quadrantDiagram-W4KKPZXB-BKzlAr7m.js} +2 -2
- package/out/renderer/assets/{requirementDiagram-4Y6WPE33-GLhMtLW7.js → requirementDiagram-4Y6WPE33-CUan3EZI.js} +3 -3
- package/out/renderer/assets/{sankeyDiagram-5OEKKPKP-Kcd8qR8y.js → sankeyDiagram-5OEKKPKP-y8X8qnX2.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-3UESZ5HK-CpmBIgMJ.js → sequenceDiagram-3UESZ5HK-B4xv8iDW.js} +3 -3
- package/out/renderer/assets/{stateDiagram-AJRCARHV-D00qZ9cQ.js → stateDiagram-AJRCARHV-DTPE2Z4L.js} +6 -6
- package/out/renderer/assets/{stateDiagram-v2-BHNVJYJU-CkEgNJrB.js → stateDiagram-v2-BHNVJYJU-BmZ9o6q3.js} +4 -4
- package/out/renderer/assets/{time-CQSoUo1N.js → time-D391Z6zp.js} +1 -1
- package/out/renderer/assets/{timeline-definition-PNZ67QCA-CmydTbH6.js → timeline-definition-PNZ67QCA-DVLUB2HD.js} +2 -2
- package/out/renderer/assets/{vennDiagram-CIIHVFJN-B4QGhnvI.js → vennDiagram-CIIHVFJN-BGGBlVN1.js} +1 -1
- package/out/renderer/assets/{wardley-L42UT6IY-B-mpW52K.js → wardley-L42UT6IY-ZVVSjQUD.js} +1 -1
- package/out/renderer/assets/{wardleyDiagram-YWT4CUSO-Cz1pK1MY.js → wardleyDiagram-YWT4CUSO-CRAH-LRw.js} +3 -3
- package/out/renderer/assets/{xychartDiagram-2RQKCTM6-H-Q9Zv48.js → xychartDiagram-2RQKCTM6-DQqvm7M3.js} +2 -2
- package/out/renderer/index.html +2 -2
- package/out/resources/linux/probe +0 -0
- package/out/resources/linux-x64/probe +0 -0
- package/out/resources/skills/extension-creator/SKILL.md +71 -7
- package/out/resources/skills/extension-creator/references/event-types.md +543 -40
- package/out/resources/skills/extension-creator/references/examples-gallery.md +23 -14
- package/out/resources/skills/extension-creator/references/extension-interface.md +1111 -171
- package/out/resources/skills/extension-creator/references/ui-components.md +34 -6
- package/out/runner.js +428 -320
- package/package.json +21 -19
- package/patches/@requesty+ai-sdk+3.5.0.patch +84 -0
- package/patches/ai+7.0.28.patch +33 -0
- package/patches/ai+5.0.195.patch +0 -33
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GenIcon } from "./index-
|
|
1
|
+
import { G as GenIcon } from "./index-DNlMJMPg.js";
|
|
2
2
|
function DiAndroid(props) {
|
|
3
3
|
return GenIcon({ "attr": { "version": "1.1", "viewBox": "0 0 32 32" }, "child": [{ "tag": "path", "attr": { "d": "M6.802 20.283c0 1.23-0.857 2.237-1.904 2.237s-1.905-1.006-1.905-2.237v-7.321c0-1.23 0.857-2.237 1.905-2.237s1.904 1.007 1.904 2.237v7.321zM29.007 20.283c0 1.23-0.857 2.237-1.905 2.237s-1.905-1.006-1.905-2.237v-7.321c0-1.23 0.857-2.237 1.905-2.237s1.905 1.007 1.905 2.237v7.321zM20.164 3.649l1.222-2.193c0.1-0.179 0.070-0.388-0.065-0.463s-0.329 0.009-0.428 0.188l-1.25 2.244c-1.115-0.439-2.364-0.684-3.684-0.684-1.33 0-2.588 0.25-3.71 0.695l-1.256-2.254c-0.1-0.179-0.293-0.264-0.428-0.188s-0.165 0.284-0.065 0.463l1.228 2.204c-2.555 1.2-4.276 3.453-4.276 6.035 0 0.262 0.019 0.521 0.053 0.776h16.909c0.035-0.255 0.053-0.513 0.053-0.776 0-2.59-1.732-4.849-4.301-6.046zM12.097 7.477c-0.411 0-0.744-0.333-0.744-0.744s0.333-0.744 0.744-0.744 0.744 0.333 0.744 0.744c0 0.411-0.333 0.744-0.744 0.744zM19.861 7.477c-0.411 0-0.744-0.333-0.744-0.744s0.333-0.744 0.744-0.744 0.744 0.333 0.744 0.744c0 0.411-0.333 0.744-0.744 0.744zM7.45 11.211v12.471h0.007c0.087 1.053 1.056 1.89 2.23 1.89h12.541c1.173 0 2.142-0.837 2.23-1.89h0.007v-12.471h-17.014zM14.74 25.51v3.858c0 1.23-0.857 2.237-1.905 2.237s-1.904-1.007-1.904-2.237v-3.855zM21.088 25.508v3.86c0 1.23-0.857 2.237-1.905 2.237s-1.905-1.007-1.905-2.237v-3.86z" }, "child": [] }] })(props);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GenIcon } from "./index-
|
|
1
|
+
import { G as GenIcon } from "./index-DNlMJMPg.js";
|
|
2
2
|
function WiAlien(props) {
|
|
3
3
|
return GenIcon({ "attr": { "version": "1.1", "id": "Layer_1", "x": "0px", "y": "0px", "viewBox": "0 0 30 30", "style": "enable-background:new 0 0 30 30;" }, "child": [{ "tag": "path", "attr": { "d": "M8.75,15.54c-1.12-2.4-0.95-4.66,0.52-6.79c1.03-1.48,2.6-2.39,4.73-2.72c0.16-0.04,0.34-0.07,0.54-0.08h0.63\n c2.91,0.09,5.05,1.38,6.4,3.88c0.64,1.18,0.8,2.48,0.48,3.91c-0.26,1.13-0.68,2.19-1.28,3.17c-1.29,2.01-2.63,3.64-4,4.88\n c-0.07,0.07-0.17,0.16-0.3,0.26c-0.46,0.35-0.89,0.53-1.28,0.54s-0.83-0.14-1.31-0.45c-0.29-0.17-0.53-0.37-0.74-0.59\n C11.18,19.55,9.71,17.55,8.75,15.54z M8.86,13.33c0.02,0.11,0.05,0.25,0.09,0.44s0.07,0.32,0.09,0.4c0.28,1.26,0.86,2.23,1.73,2.93\n c0.88,0.7,1.96,1.11,3.26,1.23c0.29,0.03,0.46,0.02,0.51-0.03s0.08-0.23,0.09-0.52c-0.01-0.08-0.03-0.21-0.05-0.39\n c-0.02-0.18-0.04-0.31-0.06-0.39c-0.25-1.34-0.88-2.32-1.9-2.93c-0.18-0.11-0.39-0.22-0.62-0.34s-0.44-0.2-0.61-0.27\n c-0.17-0.07-0.4-0.16-0.69-0.27c-0.29-0.11-0.5-0.19-0.63-0.25c-0.16-0.06-0.42-0.1-0.8-0.11C8.95,12.83,8.81,13,8.86,13.33z\n M15.66,17.73c-0.02,0.31,0,0.49,0.06,0.56c0.07,0.07,0.25,0.08,0.55,0.04c0.38-0.04,0.78-0.12,1.2-0.22\n c1.07-0.27,1.94-0.84,2.62-1.71c0.34-0.41,0.6-0.86,0.77-1.34s0.34-1.05,0.47-1.72c0.05-0.23,0.04-0.38-0.03-0.46\n c-0.07-0.08-0.22-0.11-0.44-0.08c-0.59,0.1-1.12,0.23-1.59,0.4c-1.15,0.43-2.02,1.01-2.62,1.74C16.05,15.68,15.72,16.6,15.66,17.73z\n " }, "child": [] }] })(props);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GenIcon } from "./index-
|
|
1
|
+
import { G as GenIcon } from "./index-DNlMJMPg.js";
|
|
2
2
|
function FcAbout(props) {
|
|
3
3
|
return GenIcon({ "attr": { "version": "1", "viewBox": "0 0 48 48", "enableBackground": "new 0 0 48 48" }, "child": [{ "tag": "path", "attr": { "fill": "#2196F3", "d": "M37,40H11l-6,6V12c0-3.3,2.7-6,6-6h26c3.3,0,6,2.7,6,6v22C43,37.3,40.3,40,37,40z" }, "child": [] }, { "tag": "g", "attr": { "fill": "#fff" }, "child": [{ "tag": "rect", "attr": { "x": "22", "y": "20", "width": "4", "height": "11" }, "child": [] }, { "tag": "circle", "attr": { "cx": "24", "cy": "15", "r": "2" }, "child": [] }] }] })(props);
|
|
4
4
|
}
|
package/out/renderer/assets/{infoDiagram-5YYISTIA-Ryv-Emth.js → infoDiagram-5YYISTIA-IWJLFUYz.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as __name, O as log, an as selectSvgElement, Q as configureSvgSize } from "./index-
|
|
2
|
-
import { p as parse } from "./wardley-L42UT6IY-
|
|
1
|
+
import { _ as __name, O as log, an as selectSvgElement, Q as configureSvgSize } from "./index-DNlMJMPg.js";
|
|
2
|
+
import { p as parse } from "./wardley-L42UT6IY-ZVVSjQUD.js";
|
|
3
3
|
var parser = {
|
|
4
4
|
parse: /* @__PURE__ */ __name(async (input) => {
|
|
5
5
|
const ast = await parse("info", input);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __name, L as getConfig2, aI as parseFontSize, an as selectSvgElement, a_ as at, ac as clear, Z as common_default, a5 as setDiagramTitle, J as getAccTitle, K as setAccTitle, H as getAccDescription, C as setAccDescription, a6 as getDiagramTitle, Q as configureSvgSize } from "./index-
|
|
1
|
+
import { _ as __name, L as getConfig2, aI as parseFontSize, an as selectSvgElement, a_ as at, ac as clear, Z as common_default, a5 as setDiagramTitle, J as getAccTitle, K as setAccTitle, H as getAccDescription, C as setAccDescription, a6 as getDiagramTitle, Q as configureSvgSize } from "./index-DNlMJMPg.js";
|
|
2
2
|
var parser = (function() {
|
|
3
3
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
4
4
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as getIconStyles } from "./chunk-FMBD7UC4-
|
|
2
|
-
import { a as drawBackgroundRect, g as getNoteRect, h as drawText, d as drawRect } from "./chunk-ND2GUHAM-
|
|
3
|
-
import { H as getAccDescription, C as setAccDescription, J as getAccTitle, K as setAccTitle, a6 as getDiagramTitle, a5 as setDiagramTitle, _ as __name, L as getConfig2, N as select, Q as configureSvgSize, ac as clear } from "./index-
|
|
4
|
-
import { d as d3arc } from "./arc-
|
|
1
|
+
import { g as getIconStyles } from "./chunk-FMBD7UC4-CyiPoUsC.js";
|
|
2
|
+
import { a as drawBackgroundRect, g as getNoteRect, h as drawText, d as drawRect } from "./chunk-ND2GUHAM-DfGsUYDD.js";
|
|
3
|
+
import { H as getAccDescription, C as setAccDescription, J as getAccTitle, K as setAccTitle, a6 as getDiagramTitle, a5 as setDiagramTitle, _ as __name, L as getConfig2, N as select, Q as configureSvgSize, ac as clear } from "./index-DNlMJMPg.js";
|
|
4
|
+
import { d as d3arc } from "./arc-CVfdiTl1.js";
|
|
5
5
|
var parser = (function() {
|
|
6
6
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
7
7
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as __name, O as log, L as getConfig2, an as selectSvgElement, aW as insertCluster, aX as insertNode, aY as positionNode, aS as setupGraphViewbox, al as defaultConfig_default, W as sanitizeText, a7 as load, a8 as JSON_SCHEMA, aP as isDark, aQ as lighten, aR as darken } from "./index-
|
|
2
|
-
import { g as getIconStyles } from "./chunk-FMBD7UC4-
|
|
1
|
+
import { _ as __name, O as log, L as getConfig2, an as selectSvgElement, aW as insertCluster, aX as insertNode, aY as positionNode, aS as setupGraphViewbox, al as defaultConfig_default, W as sanitizeText, a7 as load, a8 as JSON_SCHEMA, aP as isDark, aQ as lighten, aR as darken } from "./index-DNlMJMPg.js";
|
|
2
|
+
import { g as getIconStyles } from "./chunk-FMBD7UC4-CyiPoUsC.js";
|
|
3
3
|
var parser = (function() {
|
|
4
4
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
5
5
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as defineProperty, b as baseRest, a as baseFlatten, s as setToString, o as overRest, c as arrayEach, e as isArrayLikeObject, f as baseFor, g as baseIteratee, h as baseFindIndex, j as baseEach, k as arrayMap, l as castFunction, m as baseForOwn, n as hasPath, p as identity, q as castPath, t as toKey, r as baseGet, u as hasIn, v as toString, G as Graph, w as forEach, x as constant, i as isUndefined, y as filter, z as values, A as reduce } from "./graph-
|
|
2
|
-
import { fh as toNumber, eU as isObject, fi as eq, eY as isArrayLike, eX as isIndex, f2 as isPrototype, fj as arrayLikeKeys, fk as overArg, eZ as isObjectLike, fl as baseGetTag, eV as keys, fm as root, fn as getSymbols, fo as stubArray, eR as arrayPush, fp as baseGetAllKeys, fq as Uint8Array, eN as Symbol$1, f1 as getTag, fr as baseUnary, fs as nodeUtil, e$ as isBuffer, eS as Stack, eL as isArray, ft as getAllKeys, f0 as isTypedArray, eQ as isArguments, f8 as isFunction, eM as isSymbol } from "./index-
|
|
1
|
+
import { d as defineProperty, b as baseRest, a as baseFlatten, s as setToString, o as overRest, c as arrayEach, e as isArrayLikeObject, f as baseFor, g as baseIteratee, h as baseFindIndex, j as baseEach, k as arrayMap, l as castFunction, m as baseForOwn, n as hasPath, p as identity, q as castPath, t as toKey, r as baseGet, u as hasIn, v as toString, G as Graph, w as forEach, x as constant, i as isUndefined, y as filter, z as values, A as reduce } from "./graph-CbFubTTc.js";
|
|
2
|
+
import { fh as toNumber, eU as isObject, fi as eq, eY as isArrayLike, eX as isIndex, f2 as isPrototype, fj as arrayLikeKeys, fk as overArg, eZ as isObjectLike, fl as baseGetTag, eV as keys, fm as root, fn as getSymbols, fo as stubArray, eR as arrayPush, fp as baseGetAllKeys, fq as Uint8Array, eN as Symbol$1, f1 as getTag, fr as baseUnary, fs as nodeUtil, e$ as isBuffer, eS as Stack, eL as isArray, ft as getAllKeys, f0 as isTypedArray, eQ as isArguments, f8 as isFunction, eM as isSymbol } from "./index-DNlMJMPg.js";
|
|
3
3
|
var INFINITY = 1 / 0, MAX_INTEGER = 17976931348623157e292;
|
|
4
4
|
function toFinite(value) {
|
|
5
5
|
if (!value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dw as constant, dx as interpolateNumber, dy as color, dz as interpolateRgb, dA as interpolateString } from "./index-
|
|
1
|
+
import { dw as constant, dx as interpolateNumber, dy as color, dz as interpolateRgb, dA as interpolateString } from "./index-DNlMJMPg.js";
|
|
2
2
|
import { i as initRange } from "./init-CTO7spbL.js";
|
|
3
3
|
import { e as exponent, f as formatSpecifier, a as formatPrefix, b as format } from "./defaultLocale-B2RvLBDe.js";
|
|
4
4
|
function ascending(a, b) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as getDiagramElement } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as setupViewPortForSVG } from "./chunk-2J33WTMH-
|
|
3
|
-
import { _ as __name, O as log, a2 as getRegisteredLayoutAlgorithm, a3 as render, ai as getConfig, al as defaultConfig_default, L as getConfig2, W as sanitizeText, aU as getUserDefinedConfig, aV as v4, aP as isDark, aQ as lighten, aR as darken } from "./index-
|
|
1
|
+
import { g as getDiagramElement } from "./chunk-55IACEB6-DoCkLI5e.js";
|
|
2
|
+
import { s as setupViewPortForSVG } from "./chunk-2J33WTMH-DK0Yw_7f.js";
|
|
3
|
+
import { _ as __name, O as log, a2 as getRegisteredLayoutAlgorithm, a3 as render, ai as getConfig, al as defaultConfig_default, L as getConfig2, W as sanitizeText, aU as getUserDefinedConfig, aV as v4, aP as isDark, aQ as lighten, aR as darken } from "./index-DNlMJMPg.js";
|
|
4
4
|
var parser = (function() {
|
|
5
5
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
6
6
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
package/out/renderer/assets/{pieDiagram-4H26LBE5-qJt7eGwM.js → pieDiagram-4H26LBE5-CPR4AuPM.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { az as constant, ar as tau, bV as array, H as getAccDescription, C as setAccDescription, J as getAccTitle, K as setAccTitle, a6 as getDiagramTitle, a5 as setDiagramTitle, _ as __name, O as log, L as getConfig2$1, ak as cleanAndMerge, an as selectSvgElement, aI as parseFontSize, Q as configureSvgSize, ac as clear, al as defaultConfig_default } from "./index-
|
|
2
|
-
import { p as populateCommonDb } from "./chunk-4BX2VUAB-
|
|
3
|
-
import { p as parse } from "./wardley-L42UT6IY-
|
|
4
|
-
import { d as d3arc } from "./arc-
|
|
1
|
+
import { az as constant, ar as tau, bV as array, H as getAccDescription, C as setAccDescription, J as getAccTitle, K as setAccTitle, a6 as getDiagramTitle, a5 as setDiagramTitle, _ as __name, O as log, L as getConfig2$1, ak as cleanAndMerge, an as selectSvgElement, aI as parseFontSize, Q as configureSvgSize, ac as clear, al as defaultConfig_default } from "./index-DNlMJMPg.js";
|
|
2
|
+
import { p as populateCommonDb } from "./chunk-4BX2VUAB-DIGR8Y5b.js";
|
|
3
|
+
import { p as parse } from "./wardley-L42UT6IY-ZVVSjQUD.js";
|
|
4
|
+
import { d as d3arc } from "./arc-CVfdiTl1.js";
|
|
5
5
|
import { o as ordinal } from "./ordinal-BD3Y6v77.js";
|
|
6
6
|
import "./init-CTO7spbL.js";
|
|
7
7
|
function descending(a, b) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as setAccDescription, H as getAccDescription, a6 as getDiagramTitle, a5 as setDiagramTitle, J as getAccTitle, K as setAccTitle, _ as __name, L as getConfig2, O as log, N as select, Q as configureSvgSize, ac as clear, al as defaultConfig_default, W as sanitizeText, aD as getThemeVariables3 } from "./index-
|
|
2
|
-
import { l as linear } from "./linear-
|
|
1
|
+
import { C as setAccDescription, H as getAccDescription, a6 as getDiagramTitle, a5 as setDiagramTitle, J as getAccTitle, K as setAccTitle, _ as __name, L as getConfig2, O as log, N as select, Q as configureSvgSize, ac as clear, al as defaultConfig_default, W as sanitizeText, aD as getThemeVariables3 } from "./index-DNlMJMPg.js";
|
|
2
|
+
import { l as linear } from "./linear-jxO_dc8P.js";
|
|
3
3
|
import "./init-CTO7spbL.js";
|
|
4
4
|
import "./defaultLocale-B2RvLBDe.js";
|
|
5
5
|
var parser = (function() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as getDiagramElement } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as setupViewPortForSVG } from "./chunk-2J33WTMH-
|
|
3
|
-
import { _ as __name, ai as getConfig, K as setAccTitle, J as getAccTitle, C as setAccDescription, H as getAccDescription, a5 as setDiagramTitle, a6 as getDiagramTitle, L as getConfig2, O as log, ac as clear, ah as __export, a2 as getRegisteredLayoutAlgorithm, a3 as render, a4 as utils_default } from "./index-
|
|
1
|
+
import { g as getDiagramElement } from "./chunk-55IACEB6-DoCkLI5e.js";
|
|
2
|
+
import { s as setupViewPortForSVG } from "./chunk-2J33WTMH-DK0Yw_7f.js";
|
|
3
|
+
import { _ as __name, ai as getConfig, K as setAccTitle, J as getAccTitle, C as setAccDescription, H as getAccDescription, a5 as setDiagramTitle, a6 as getDiagramTitle, L as getConfig2, O as log, ac as clear, ah as __export, a2 as getRegisteredLayoutAlgorithm, a3 as render, a4 as utils_default } from "./index-DNlMJMPg.js";
|
|
4
4
|
var parser = (function() {
|
|
5
5
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
6
6
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a5 as setDiagramTitle, a6 as getDiagramTitle, C as setAccDescription, H as getAccDescription, K as setAccTitle, J as getAccTitle, _ as __name, L as getConfig2, ad as defaultConfig2, N as select, aS as setupGraphViewbox, ac as clear, Z as common_default } from "./index-
|
|
1
|
+
import { a5 as setDiagramTitle, a6 as getDiagramTitle, C as setAccDescription, H as getAccDescription, K as setAccTitle, J as getAccTitle, _ as __name, L as getConfig2, ad as defaultConfig2, N as select, aS as setupGraphViewbox, ac as clear, Z as common_default } from "./index-DNlMJMPg.js";
|
|
2
2
|
import { o as ordinal } from "./ordinal-BD3Y6v77.js";
|
|
3
3
|
import "./init-CTO7spbL.js";
|
|
4
4
|
function colors(specifier) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as __name, a1 as setConfig2, L as getConfig2, N as select, O as log, X as distExports, Q as configureSvgSize, T as assignWithDepth_default, Z as common_default, K as setAccTitle, C as setAccDescription, a5 as setDiagramTitle, J as getAccTitle, H as getAccDescription, a6 as getDiagramTitle, a7 as load, a8 as JSON_SCHEMA, ac as clear, W as sanitizeText, a4 as utils_default, aG as hasKatex, aH as calculateMathMLDimensions, aI as parseFontSize, aJ as ZERO_WIDTH_SPACE, ai as getConfig, aK as getUrl, aL as renderKatexSanitized } from "./index-
|
|
2
|
-
import { a as drawBackgroundRect, b as getTextObj, g as getNoteRect, d as drawRect, e as drawEmbeddedImage, f as drawImage } from "./chunk-ND2GUHAM-
|
|
3
|
-
import { I as ImperativeState } from "./chunk-QZHKN3VN-
|
|
1
|
+
import { _ as __name, a1 as setConfig2, L as getConfig2, N as select, O as log, X as distExports, Q as configureSvgSize, T as assignWithDepth_default, Z as common_default, K as setAccTitle, C as setAccDescription, a5 as setDiagramTitle, J as getAccTitle, H as getAccDescription, a6 as getDiagramTitle, a7 as load, a8 as JSON_SCHEMA, ac as clear, W as sanitizeText, a4 as utils_default, aG as hasKatex, aH as calculateMathMLDimensions, aI as parseFontSize, aJ as ZERO_WIDTH_SPACE, ai as getConfig, aK as getUrl, aL as renderKatexSanitized } from "./index-DNlMJMPg.js";
|
|
2
|
+
import { a as drawBackgroundRect, b as getTextObj, g as getNoteRect, d as drawRect, e as drawEmbeddedImage, f as drawImage } from "./chunk-ND2GUHAM-DfGsUYDD.js";
|
|
3
|
+
import { I as ImperativeState } from "./chunk-QZHKN3VN-BhnTFlht.js";
|
|
4
4
|
var parser = (function() {
|
|
5
5
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
6
6
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
package/out/renderer/assets/{stateDiagram-AJRCARHV-D00qZ9cQ.js → stateDiagram-AJRCARHV-DTPE2Z4L.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { s as styles_default, a as stateDiagram_default, S as StateDB } from "./chunk-AQP2D5EJ-
|
|
2
|
-
import { _ as __name, L as getConfig2, N as select, O as log, Q as configureSvgSize, Z as common_default, aF as shapeLine, aN as curveBasis, aK as getUrl, a4 as utils_default } from "./index-
|
|
3
|
-
import { G as Graph } from "./graph-
|
|
4
|
-
import { l as layout } from "./layout-
|
|
5
|
-
import "./chunk-55IACEB6-
|
|
6
|
-
import "./chunk-2J33WTMH-
|
|
1
|
+
import { s as styles_default, a as stateDiagram_default, S as StateDB } from "./chunk-AQP2D5EJ-D83_SlRR.js";
|
|
2
|
+
import { _ as __name, L as getConfig2, N as select, O as log, Q as configureSvgSize, Z as common_default, aF as shapeLine, aN as curveBasis, aK as getUrl, a4 as utils_default } from "./index-DNlMJMPg.js";
|
|
3
|
+
import { G as Graph } from "./graph-CbFubTTc.js";
|
|
4
|
+
import { l as layout } from "./layout-BkrDn6V9.js";
|
|
5
|
+
import "./chunk-55IACEB6-DoCkLI5e.js";
|
|
6
|
+
import "./chunk-2J33WTMH-DK0Yw_7f.js";
|
|
7
7
|
var drawStartState = /* @__PURE__ */ __name((g) => g.append("circle").attr("class", "start-state").attr("r", getConfig2().state.sizeUnit).attr("cx", getConfig2().state.padding + getConfig2().state.sizeUnit).attr("cy", getConfig2().state.padding + getConfig2().state.sizeUnit), "drawStartState");
|
|
8
8
|
var drawDivider = /* @__PURE__ */ __name((g) => g.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", getConfig2().state.textHeight).attr("class", "divider").attr("x2", getConfig2().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider");
|
|
9
9
|
var drawSimpleState = /* @__PURE__ */ __name((g, stateDef) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as styles_default, b as stateRenderer_v3_unified_default, a as stateDiagram_default, S as StateDB } from "./chunk-AQP2D5EJ-
|
|
2
|
-
import { _ as __name } from "./index-
|
|
3
|
-
import "./chunk-55IACEB6-
|
|
4
|
-
import "./chunk-2J33WTMH-
|
|
1
|
+
import { s as styles_default, b as stateRenderer_v3_unified_default, a as stateDiagram_default, S as StateDB } from "./chunk-AQP2D5EJ-D83_SlRR.js";
|
|
2
|
+
import { _ as __name } from "./index-DNlMJMPg.js";
|
|
3
|
+
import "./chunk-55IACEB6-DoCkLI5e.js";
|
|
4
|
+
import "./chunk-2J33WTMH-DK0Yw_7f.js";
|
|
5
5
|
var diagram = {
|
|
6
6
|
parser: stateDiagram_default,
|
|
7
7
|
get db() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as bisector, t as tickStep, c as continuous, a as copy } from "./linear-
|
|
1
|
+
import { b as bisector, t as tickStep, c as continuous, a as copy } from "./linear-jxO_dc8P.js";
|
|
2
2
|
import { i as initRange } from "./init-CTO7spbL.js";
|
|
3
3
|
function max(values, valueof) {
|
|
4
4
|
let max2;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as __name, ai as getConfig, aP as isDark, aQ as lighten, aR as darken, L as getConfig2, O as log, an as selectSvgElement, aI as parseFontSize, aS as setupGraphViewbox, N as select, ah as __export, aT as commonDb_exports, ac as clear } from "./index-
|
|
2
|
-
import { d as d3arc } from "./arc-
|
|
1
|
+
import { _ as __name, ai as getConfig, aP as isDark, aQ as lighten, aR as darken, L as getConfig2, O as log, an as selectSvgElement, aI as parseFontSize, aS as setupGraphViewbox, N as select, ah as __export, aT as commonDb_exports, ac as clear } from "./index-DNlMJMPg.js";
|
|
2
|
+
import { d as d3arc } from "./arc-CVfdiTl1.js";
|
|
3
3
|
var parser = (function() {
|
|
4
4
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
5
5
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
package/out/renderer/assets/{vennDiagram-CIIHVFJN-B4QGhnvI.js → vennDiagram-CIIHVFJN-BGGBlVN1.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bL as adjustChannel, C as setAccDescription, H as getAccDescription, a6 as getDiagramTitle, a5 as setDiagramTitle, J as getAccTitle, K as setAccTitle, _ as __name, ai as getConfig, an as selectSvgElement, N as select, a_ as at, aP as isDark, aQ as lighten, aR as darken, Q as configureSvgSize, ac as clear, ak as cleanAndMerge, al as defaultConfig_default } from "./index-
|
|
1
|
+
import { bL as adjustChannel, C as setAccDescription, H as getAccDescription, a6 as getDiagramTitle, a5 as setDiagramTitle, J as getAccTitle, K as setAccTitle, _ as __name, ai as getConfig, an as selectSvgElement, N as select, a_ as at, aP as isDark, aQ as lighten, aR as darken, Q as configureSvgSize, ac as clear, ak as cleanAndMerge, al as defaultConfig_default } from "./index-DNlMJMPg.js";
|
|
2
2
|
const transparentize = (color, amount) => {
|
|
3
3
|
return adjustChannel(color, "a", -amount);
|
|
4
4
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as setAccDescription, H as getAccDescription, a6 as getDiagramTitle, a5 as setDiagramTitle, J as getAccTitle, K as setAccTitle, _ as __name, aD as getThemeVariables3, ai as getConfig, ak as cleanAndMerge, O as log, an as selectSvgElement, Q as configureSvgSize, ac as clear, L as getConfig2 } from "./index-
|
|
2
|
-
import { p as populateCommonDb } from "./chunk-4BX2VUAB-
|
|
3
|
-
import { p as parse } from "./wardley-L42UT6IY-
|
|
1
|
+
import { C as setAccDescription, H as getAccDescription, a6 as getDiagramTitle, a5 as setDiagramTitle, J as getAccTitle, K as setAccTitle, _ as __name, aD as getThemeVariables3, ai as getConfig, ak as cleanAndMerge, O as log, an as selectSvgElement, Q as configureSvgSize, ac as clear, L as getConfig2 } from "./index-DNlMJMPg.js";
|
|
2
|
+
import { p as populateCommonDb } from "./chunk-4BX2VUAB-DIGR8Y5b.js";
|
|
3
|
+
import { p as parse } from "./wardley-L42UT6IY-ZVVSjQUD.js";
|
|
4
4
|
var toPercent = /* @__PURE__ */ __name((value, context) => {
|
|
5
5
|
const normalized = value <= 1 ? value * 100 : value;
|
|
6
6
|
if (normalized < 0 || normalized > 100) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as setAccDescription, H as getAccDescription, a6 as getDiagramTitle, a5 as setDiagramTitle, J as getAccTitle, K as setAccTitle, _ as __name, O as log, an as selectSvgElement, Q as configureSvgSize, ac as clear, ai as getConfig, W as sanitizeText, ak as cleanAndMerge, al as defaultConfig_default, aD as getThemeVariables3, aE as computeDimensionOfText, aF as shapeLine } from "./index-
|
|
1
|
+
import { C as setAccDescription, H as getAccDescription, a6 as getDiagramTitle, a5 as setDiagramTitle, J as getAccTitle, K as setAccTitle, _ as __name, O as log, an as selectSvgElement, Q as configureSvgSize, ac as clear, ai as getConfig, W as sanitizeText, ak as cleanAndMerge, al as defaultConfig_default, aD as getThemeVariables3, aE as computeDimensionOfText, aF as shapeLine } from "./index-DNlMJMPg.js";
|
|
2
2
|
import { b as band } from "./band-zXq5o_Ib.js";
|
|
3
|
-
import { l as linear } from "./linear-
|
|
3
|
+
import { l as linear } from "./linear-jxO_dc8P.js";
|
|
4
4
|
import "./init-CTO7spbL.js";
|
|
5
5
|
import "./ordinal-BD3Y6v77.js";
|
|
6
6
|
import "./defaultLocale-B2RvLBDe.js";
|
package/out/renderer/index.html
CHANGED
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
21
21
|
<meta name="apple-mobile-web-app-title" content="AiderDesk">
|
|
22
22
|
<link rel="apple-touch-icon" href="/icon-192.png">
|
|
23
|
-
<script type="module" crossorigin src="./assets/index-
|
|
24
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
23
|
+
<script type="module" crossorigin src="./assets/index-DNlMJMPg.js"></script>
|
|
24
|
+
<link rel="stylesheet" crossorigin href="./assets/index-DCILJy4w.css">
|
|
25
25
|
</head>
|
|
26
26
|
|
|
27
27
|
<body>
|
|
Binary file
|
|
Binary file
|
|
@@ -220,12 +220,22 @@ Before using this skill, verify:
|
|
|
220
220
|
- Extension type (single-file or folder) is determined
|
|
221
221
|
- Extension interface and types are understood
|
|
222
222
|
|
|
223
|
-
|
|
223
|
+
**IMPORTANT:** The reference files below are comprehensive but may lag behind the latest code. For the **authoritative** and **complete** API, always refer to these source files:
|
|
224
224
|
|
|
225
|
-
-
|
|
226
|
-
-
|
|
227
|
-
-
|
|
228
|
-
|
|
225
|
+
- **Types source:** [packages/common/src/extensions.ts](https://raw.githubusercontent.com/hotovo/aider-desk/refs/heads/main/packages/common/src/extensions.ts) — Extension interface, all contexts (ExtensionContext, TaskContext, ProjectContext), event payloads, UI component definitions
|
|
226
|
+
- **Context message types:** [packages/common/src/types/context.ts](https://raw.githubusercontent.com/hotovo/aider-desk/refs/heads/main/packages/common/src/types/context.ts) — ContextMessage, ContextFile, message part types
|
|
227
|
+
- **Task/common types:** [packages/common/src/types/common.ts](https://raw.githubusercontent.com/hotovo/aider-desk/refs/heads/main/packages/common/src/types/common.ts) — TaskData, Model, AgentProfile, CreateTaskParams, etc.
|
|
228
|
+
|
|
229
|
+
When you need a method or type that's not in the reference docs, **fetch the raw source first** before guessing.
|
|
230
|
+
|
|
231
|
+
**Built-in extension examples** are available at:
|
|
232
|
+
- [Online extensions gallery](https://github.com/hotovo/aider-desk/blob/main/docs-site/docs/extensions/extensions-gallery.md) — documented overview
|
|
233
|
+
- Source code for each built-in extension is in the AiderDesk repo at `packages/extensions/extensions/[extension-name]/` — browse these for real-world patterns
|
|
234
|
+
|
|
235
|
+
### Reference docs
|
|
236
|
+
- [references/install-targets.md](references/install-targets.md) for target options
|
|
237
|
+
- [references/event-types.md](references/event-types.md) for event types
|
|
238
|
+
- [references/command-definition.md](references/command-definition.md) for command structure
|
|
229
239
|
|
|
230
240
|
## Postconditions
|
|
231
241
|
|
|
@@ -257,6 +267,60 @@ After completing this skill, verify:
|
|
|
257
267
|
- Then: Implement event handler methods (onAgentStarted, onToolCalled, etc.)
|
|
258
268
|
- Return: Partial event object to modify behavior
|
|
259
269
|
|
|
270
|
+
**Situation:** Extension needs to create subtasks and coordinate between them
|
|
271
|
+
|
|
272
|
+
**Pattern:**
|
|
273
|
+
- Create: `const newTask = await projectContext.createTask({ parentId: currentTaskId, name: 'Subtask' })`
|
|
274
|
+
- Access another task: `const subtaskContext = projectContext.getTask(newTask.id)`
|
|
275
|
+
- Execute commands in subtask: `await subtaskContext?.runCustomCommand('scope:start')`
|
|
276
|
+
- Read subtask conversation: `const messages = await subtaskContext?.getContextMessages()`
|
|
277
|
+
- List all tasks: `const allTasks = await projectContext.getTasks()`
|
|
278
|
+
- Fork at specific message: `await projectContext.forkTask(taskId, messageId)`
|
|
279
|
+
- Duplicate a task: `await projectContext.duplicateTask(taskId)`
|
|
280
|
+
- Delete a task: `await projectContext.deleteTask(taskId)`
|
|
281
|
+
|
|
282
|
+
**Situation:** Extension needs to make direct LLM calls without the full agent loop
|
|
283
|
+
|
|
284
|
+
**Pattern:**
|
|
285
|
+
- Get model ID: `const profile = await taskContext.getTaskAgentProfile(); const modelId = profile ? \`\${profile.provider}/\${profile.model}\` : 'openai/gpt-4o'`
|
|
286
|
+
- Generate text: `const result = await taskContext.generateText(modelId, 'You are a helpful assistant', 'Summarize this code')`
|
|
287
|
+
- Generate structured data: `const result = await taskContext.generateObject(modelId, systemPrompt, prompt, z.object({ category: z.string() }))`
|
|
288
|
+
|
|
289
|
+
**Situation:** Extension needs to read conversation history
|
|
290
|
+
|
|
291
|
+
**Pattern:**
|
|
292
|
+
- Get messages: `const messages = await taskContext.getContextMessages()`
|
|
293
|
+
- Extract text: ContextMessage content can be a string or an array of parts. For simple text extraction:
|
|
294
|
+
```typescript
|
|
295
|
+
function extractText(content: ContextMessage['content']): string {
|
|
296
|
+
if (typeof content === 'string') return content;
|
|
297
|
+
if (Array.isArray(content)) {
|
|
298
|
+
return content
|
|
299
|
+
.filter((part): part is TextPart => part.type === 'text')
|
|
300
|
+
.map(part => part.text)
|
|
301
|
+
.join('\n');
|
|
302
|
+
}
|
|
303
|
+
return '';
|
|
304
|
+
}
|
|
305
|
+
```
|
|
306
|
+
- Reference: [context.ts](https://raw.githubusercontent.com/hotovo/aider-desk/refs/heads/main/packages/common/src/types/context.ts) for full ContextMessage type
|
|
307
|
+
|
|
308
|
+
**Situation:** Extension needs to run shell commands
|
|
309
|
+
|
|
310
|
+
**Pattern:** Node.js built-in modules (`fs`, `path`, `child_process`, `os`, etc.) are available in extensions.
|
|
311
|
+
- Synchronous: `import { execSync } from 'node:child_process'; const output = execSync('git status', { encoding: 'utf-8' });`
|
|
312
|
+
- Asynchronous: `import { exec } from 'node:child_process'; import { promisify } from 'node:util'; const execAsync = promisify(exec);`
|
|
313
|
+
- File operations: `import { readFileSync, writeFileSync } from 'node:fs'; import { join } from 'node:path';`
|
|
314
|
+
|
|
315
|
+
**Situation:** Extension needs to manage todos
|
|
316
|
+
|
|
317
|
+
**Pattern:**
|
|
318
|
+
- Get todos: `const todos = await taskContext.getTodos()`
|
|
319
|
+
- Add todo: `const todos = await taskContext.addTodo('Implement feature X')`
|
|
320
|
+
- Update todo: `const todos = await taskContext.updateTodo('Implement feature X', { completed: true })`
|
|
321
|
+
- Delete todo: `const todos = await taskContext.deleteTodo('Implement feature X')`
|
|
322
|
+
- Replace all: `await taskContext.setTodos([{ name: 'Task 1', completed: false }])`
|
|
323
|
+
|
|
260
324
|
**Situation:** Extension needs to register commands
|
|
261
325
|
|
|
262
326
|
**Pattern:**
|
|
@@ -369,9 +433,9 @@ After completing this skill, verify:
|
|
|
369
433
|
### Technical Reference (all targets)
|
|
370
434
|
|
|
371
435
|
- [packages/common/src/extensions.ts](https://raw.githubusercontent.com/hotovo/aider-desk/refs/heads/main/packages/common/src/extensions.ts) - Extension types and interfaces
|
|
372
|
-
- [extension-interface.md](references/extension-interface.md) - Full Extension interface, ExtensionContext, TaskContext,
|
|
436
|
+
- [extension-interface.md](references/extension-interface.md) - Full Extension interface, ExtensionContext, TaskContext, ProjectContext, MemoryContext, and all supporting types
|
|
373
437
|
- [extension-types.md](references/extension-types.md) - Single-file vs folder extensions, examples, extensions.json format
|
|
374
|
-
- [event-types.md](references/event-types.md) - All event types and
|
|
438
|
+
- [event-types.md](references/event-types.md) - All event types, payloads, and extension method mappings
|
|
375
439
|
- [command-definition.md](references/command-definition.md) - Command structure
|
|
376
440
|
- [ui-components.md](references/ui-components.md) - UI component system, placements, and available components
|
|
377
441
|
- [external-libraries.md](references/external-libraries.md) - Loading third-party npm libraries in UI components (getUIComponentsLibraries)
|