@zibby/skills 0.1.96 → 0.2.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/README.md +1 -1
- package/dist/artifact.d.ts +1 -115
- package/dist/browser.d.ts +10 -19
- package/dist/chartRender.d.ts +46 -57
- package/dist/chartRender.js +1 -1
- package/dist/chat-memory.d.ts +26 -330
- package/dist/chat-notify.d.ts +30 -409
- package/dist/chat-notify.js +3 -3
- package/dist/chatProgress.d.ts +28 -47
- package/dist/code-scan.d.ts +52 -58
- package/dist/codeStats.d.ts +36 -136
- package/dist/codeStats.js +1 -1
- package/dist/codebaseMemory.d.ts +52 -32
- package/dist/codebaseMemory.js +2 -2
- package/dist/core-tools.d.ts +10 -131
- package/dist/datasetStore.d.ts +52 -326
- package/dist/discord.d.ts +32 -68
- package/dist/figma.d.ts +5 -408
- package/dist/function-skill.d.ts +23 -135
- package/dist/function-skill.js +1 -1
- package/dist/gbrain.d.ts +46 -114
- package/dist/git-write.d.ts +45 -137
- package/dist/git-write.js +6 -6
- package/dist/git.d.ts +2 -73
- package/dist/github.d.ts +2 -1202
- package/dist/gitlab.d.ts +55 -1059
- package/dist/gitlab.js +2 -2
- package/dist/googleDocs.d.ts +39 -175
- package/dist/hubspot.d.ts +1 -381
- package/dist/index.d.ts +19 -12
- package/dist/index.js +135 -135
- package/dist/integrations.d.ts +2 -2
- package/dist/jira.d.ts +2 -532
- package/dist/jira.js +4 -4
- package/dist/kvMemory.d.ts +47 -78
- package/dist/lark.d.ts +2 -161
- package/dist/lark.js +1 -1
- package/dist/larkDocs.d.ts +35 -236
- package/dist/linear.d.ts +36 -343
- package/dist/linkedin.d.ts +10 -120
- package/dist/llm-billing.d.ts +92 -180
- package/dist/llm-billing.js +1 -1
- package/dist/memory.d.ts +11 -137
- package/dist/notion.d.ts +28 -276
- package/dist/notion.js +4 -4
- package/dist/opendesign.d.ts +24 -202
- package/dist/opendesign.js +2 -2
- package/dist/package.json +3 -2
- package/dist/plane.d.ts +40 -24
- package/dist/report.d.ts +153 -110
- package/dist/review-dedup.d.ts +8 -8
- package/dist/review.d.ts +12 -2
- package/dist/reviewMemoryIo.d.ts +37 -3
- package/dist/reviewRecord.d.ts +41 -47
- package/dist/sentry.d.ts +25 -22
- package/dist/skill-installer.d.ts +11 -86
- package/dist/slack.d.ts +1 -284
- package/dist/socialCard.d.ts +35 -89
- package/dist/test-runner.d.ts +1 -220
- package/dist/trackers/github-adapter.d.ts +39 -94
- package/dist/trackers/index.d.ts +25 -18
- package/dist/trackers/jira-adapter.d.ts +20 -88
- package/dist/trackers/linear-adapter.d.ts +24 -87
- package/dist/trackers/plane-adapter.d.ts +29 -85
- package/dist/trackers/plane-adapter.js +1 -1
- package/dist/trackers/types.d.ts +1 -186
- package/dist/triggerAgent.d.ts +26 -42
- package/dist/triggerAgent.js +1 -1
- package/dist/workflow-builder.d.ts +11 -245
- package/docs/concepts/designing-agents.md +201 -0
- package/docs/self-host/backup-restore.md +52 -0
- package/docs/self-host/index.md +75 -0
- package/docs/self-host/storage.md +50 -0
- package/docs/self-host/troubleshooting.md +48 -0
- package/docs/self-host/upgrade.md +81 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
[Deutsch](./i18n/README.de.md) | [Español](./i18n/README.es.md) | [français](./i18n/README.fr.md) | [日本語](./i18n/README.ja.md) | [한국어](./i18n/README.ko.md) | [Português](./i18n/README.pt.md) | [Русский](./i18n/README.ru.md) | [中文](./i18n/README.zh.md)
|
|
8
8
|
|
|
9
|
-
📖 **Full docs:** [docs.zibby.app](https://docs.zibby.app) · [Get Started](https://docs.zibby.app/get-started/install) · [Concepts](https://docs.zibby.app/concepts/graph) · [CLI Reference](https://docs.zibby.app/cli-reference) · [Cloud](https://docs.zibby.app/cloud/triggering)
|
|
9
|
+
📖 **Full docs:** [docs.zibby.app](https://docs.zibby.app) · [Get Started](https://docs.zibby.app/get-started/install) · [Concepts](https://docs.zibby.app/concepts/graph) · [Designing agents](https://docs.zibby.app/concepts/designing-agents) · [CLI Reference](https://docs.zibby.app/cli-reference) · [Cloud](https://docs.zibby.app/cloud/triggering)
|
|
10
10
|
|
|
11
11
|
> **The skill layer for [@zibby/agent-workflow](https://github.com/ZibbyDev/agent-workflow).** Built-in skill definitions that give a workflow node the tools it needs — function tools, MCP servers, browser, issue trackers, memory. Vendor-neutral, JavaScript-first.
|
|
12
12
|
|
package/dist/artifact.d.ts
CHANGED
|
@@ -1,115 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
let id: string;
|
|
3
|
-
let meta: any;
|
|
4
|
-
let serverName: string;
|
|
5
|
-
let allowedTools: string[];
|
|
6
|
-
let description: string;
|
|
7
|
-
let promptFragment: string;
|
|
8
|
-
function resolve(): {
|
|
9
|
-
command: any;
|
|
10
|
-
args: any[];
|
|
11
|
-
env: {};
|
|
12
|
-
description: string;
|
|
13
|
-
type?: undefined;
|
|
14
|
-
alwaysLoad?: undefined;
|
|
15
|
-
} | {
|
|
16
|
-
type: string;
|
|
17
|
-
command: string;
|
|
18
|
-
args: any[];
|
|
19
|
-
env: {};
|
|
20
|
-
description: string;
|
|
21
|
-
alwaysLoad: boolean;
|
|
22
|
-
};
|
|
23
|
-
function handleToolCall(name: any, args: any): Promise<string>;
|
|
24
|
-
let tools: ({
|
|
25
|
-
name: string;
|
|
26
|
-
description: string;
|
|
27
|
-
input_schema: {
|
|
28
|
-
type: string;
|
|
29
|
-
properties: {
|
|
30
|
-
title: {
|
|
31
|
-
type: string;
|
|
32
|
-
description: string;
|
|
33
|
-
};
|
|
34
|
-
html: {
|
|
35
|
-
type: string;
|
|
36
|
-
description: string;
|
|
37
|
-
};
|
|
38
|
-
markdown: {
|
|
39
|
-
type: string;
|
|
40
|
-
description: string;
|
|
41
|
-
};
|
|
42
|
-
kind: {
|
|
43
|
-
type: string;
|
|
44
|
-
description: string;
|
|
45
|
-
};
|
|
46
|
-
favicon: {
|
|
47
|
-
type: string;
|
|
48
|
-
description: string;
|
|
49
|
-
};
|
|
50
|
-
summary: {
|
|
51
|
-
type: string;
|
|
52
|
-
description: string;
|
|
53
|
-
};
|
|
54
|
-
id?: undefined;
|
|
55
|
-
};
|
|
56
|
-
required: string[];
|
|
57
|
-
};
|
|
58
|
-
} | {
|
|
59
|
-
name: string;
|
|
60
|
-
description: string;
|
|
61
|
-
input_schema: {
|
|
62
|
-
type: string;
|
|
63
|
-
properties: {
|
|
64
|
-
id: {
|
|
65
|
-
type: string;
|
|
66
|
-
description: string;
|
|
67
|
-
};
|
|
68
|
-
title: {
|
|
69
|
-
type: string;
|
|
70
|
-
description: string;
|
|
71
|
-
};
|
|
72
|
-
html: {
|
|
73
|
-
type: string;
|
|
74
|
-
description: string;
|
|
75
|
-
};
|
|
76
|
-
markdown: {
|
|
77
|
-
type: string;
|
|
78
|
-
description: string;
|
|
79
|
-
};
|
|
80
|
-
kind: {
|
|
81
|
-
type: string;
|
|
82
|
-
description: string;
|
|
83
|
-
};
|
|
84
|
-
favicon: {
|
|
85
|
-
type: string;
|
|
86
|
-
description: string;
|
|
87
|
-
};
|
|
88
|
-
summary: {
|
|
89
|
-
type: string;
|
|
90
|
-
description: string;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
required: string[];
|
|
94
|
-
};
|
|
95
|
-
} | {
|
|
96
|
-
name: string;
|
|
97
|
-
description: string;
|
|
98
|
-
input_schema: {
|
|
99
|
-
type: string;
|
|
100
|
-
properties: {
|
|
101
|
-
id: {
|
|
102
|
-
type: string;
|
|
103
|
-
description: string;
|
|
104
|
-
};
|
|
105
|
-
title?: undefined;
|
|
106
|
-
html?: undefined;
|
|
107
|
-
markdown?: undefined;
|
|
108
|
-
kind?: undefined;
|
|
109
|
-
favicon?: undefined;
|
|
110
|
-
summary?: undefined;
|
|
111
|
-
};
|
|
112
|
-
required: string[];
|
|
113
|
-
};
|
|
114
|
-
})[];
|
|
115
|
-
}
|
|
1
|
+
export declare const artifactSkill: any;
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
function resolve({ sessionPath, workspace, nodeName, headless }?: {}): {
|
|
12
|
-
command: string;
|
|
13
|
-
args: any;
|
|
14
|
-
env: {
|
|
15
|
-
ZIBBY_NODE_SESSION_PATH: any;
|
|
16
|
-
ZIBBY_SESSION_PATH: any;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Browser Skill
|
|
3
|
+
*
|
|
4
|
+
* Provides Playwright-based browser automation via MCP.
|
|
5
|
+
* Resolves to @zibby/mcp-browser (if installed) or @playwright/mcp as fallback.
|
|
6
|
+
*
|
|
7
|
+
* Call resolve({ sessionPath, workspace }) to get a ready-to-use MCP server
|
|
8
|
+
* config with session-specific args (video dir, viewport, etc.).
|
|
9
|
+
*/
|
|
10
|
+
export declare const browserSkill: any;
|
package/dist/chartRender.d.ts
CHANGED
|
@@ -1,57 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
description: string;
|
|
48
|
-
};
|
|
49
|
-
filename: {
|
|
50
|
-
type: string;
|
|
51
|
-
description: string;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
required: string[];
|
|
55
|
-
};
|
|
56
|
-
}[];
|
|
57
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* chartRender.js — local, server-side chart rendering skill (tier ①: API-only,
|
|
3
|
+
* fully local — data NEVER leaves the box; no browser, no external service).
|
|
4
|
+
*
|
|
5
|
+
* WHAT IT IS
|
|
6
|
+
* ──────────
|
|
7
|
+
* A hand-written multi-tool skill (same shape as kvMemory.js / datasetStore.js /
|
|
8
|
+
* github.js): `serverName`, `allowedTools`, `tools[]`, `handleToolCall`, and a
|
|
9
|
+
* `resolve()` that spawns the GENERIC bin/mcp-skill.mjs. One tool —
|
|
10
|
+
* `chart_render` — takes a RAW Apache ECharts option object (pass-through
|
|
11
|
+
* dialect, NO invented normalized schema), renders it to SVG via ECharts'
|
|
12
|
+
* zero-dependency pure-SVG SSR, and rasterizes to PNG via @resvg/resvg-js
|
|
13
|
+
* (napi-rs PREBUILT binaries — no node-gyp; the code is structured so the
|
|
14
|
+
* @resvg/resvg-wasm variant could be swapped in via loadResvg() if a target
|
|
15
|
+
* ever lacks a prebuild).
|
|
16
|
+
*
|
|
17
|
+
* RENDER PIPELINE (validated by the research spike)
|
|
18
|
+
* ─────────────────────────────────────────────────
|
|
19
|
+
* echarts.init(null, null, { renderer:'svg', ssr:true, width, height })
|
|
20
|
+
* → chart.setOption(spec) → chart.renderToSVGString() → chart.dispose()
|
|
21
|
+
* → (png/both) new Resvg(svg, { font }) → .render().asPng()
|
|
22
|
+
*
|
|
23
|
+
* FONTS — the agent container (node:20-bullseye-slim) may ship NO fonts, and
|
|
24
|
+
* resvg renders EMPTY text without one. We bundle Noto Sans Regular + Bold
|
|
25
|
+
* (SIL OFL 1.1 — license file alongside, assets/fonts/OFL.txt) and pass them
|
|
26
|
+
* via resvg `font.fontFiles` + set 'Noto Sans' as the default ECharts
|
|
27
|
+
* textStyle.fontFamily. `loadSystemFonts:true` stays on so a host WITH fonts
|
|
28
|
+
* can still satisfy exotic families the spec asks for.
|
|
29
|
+
*
|
|
30
|
+
* OUTPUT FILES — same convention as the other artifact-writing surfaces:
|
|
31
|
+
* files land under the run's session output dir so the CLI session-uploader
|
|
32
|
+
* (which scans `<sessionPath>/<nodeName>/**`) auto-uploads them with the run:
|
|
33
|
+
* 1. ZIBBY_NODE_SESSION_PATH (browser.js convention — <sessionPath>/<node>)
|
|
34
|
+
* 2. ZIBBY_SESSION_PATH/chart-render (a node-shaped folder the uploader sees)
|
|
35
|
+
* 3. <cwd>/.zibby/output/charts (local dev fallback, agent-workflow's
|
|
36
|
+
* DEFAULT_OUTPUT_BASE '.zibby/output')
|
|
37
|
+
*
|
|
38
|
+
* SAFETY INJECTIONS before render (never trusts SSR text measurement):
|
|
39
|
+
* - spec must be a plain JSON object (validated; clear errors for the LLM)
|
|
40
|
+
* - animation is FORCED off (SSR has no frames)
|
|
41
|
+
* - backgroundColor defaults to '#fff' (PNG would otherwise be transparent)
|
|
42
|
+
* - width/height default 800×600, capped at 4096, floored at 16
|
|
43
|
+
* - very long labels in known label slots are truncated (SSR text
|
|
44
|
+
* measurement is estimated — unbounded labels overflow the canvas)
|
|
45
|
+
*/
|
|
46
|
+
export declare const chartRenderSkill: any;
|
package/dist/chartRender.js
CHANGED
|
@@ -4,4 +4,4 @@ Apache ECharts option object as \`spec\` (any chart type: bar, line, pie,
|
|
|
4
4
|
radar, scatter, heatmap, \u2026). It renders server-side to SVG/PNG files in the
|
|
5
5
|
run's output folder (auto-attached to the run as artifacts) and returns the
|
|
6
6
|
file paths. No browser, no external chart service \u2014 the data never leaves
|
|
7
|
-
the machine. Don't set animation (it's forced off). Default 800\xD7600 PNG.`,resolve({sessionPath:e,nodeName:t}={}){let r=k();if(!r)return{command:null,args:[],env:{},description:this.description};let n={},s=e&&t?l(e,t):null;s&&(n.ZIBBY_NODE_SESSION_PATH=s),e&&(n.ZIBBY_SESSION_PATH=e);for(let a of["ZIBBY_NODE_SESSION_PATH","ZIBBY_SESSION_PATH"])!n[a]&&process.env[a]&&(n[a]=process.env[a]);return{type:"stdio",command:"node",args:[r,"../dist/chartRender.js","chartRenderSkill"],env:n,description:this.description,alwaysLoad:!0}},async handleToolCall(e,t){if(e!=="chart_render")return JSON.stringify({error:`Unknown tool: ${e}`});try{let r=t?.spec;if(!o(r))return JSON.stringify({error:"spec must be a plain ECharts option OBJECT (e.g. { xAxis: {...}, yAxis: {...}, series: [...] }) \u2014 got "+(r===null?"null":Array.isArray(r)?"an array":typeof r)+". Pass the option object itself, not a string or an array."});let n=A(t?.width,T),s=A(t?.height,w),a=["svg","png","both"].includes(t?.output)?t.output:"png",
|
|
7
|
+
the machine. Don't set animation (it's forced off). Default 800\xD7600 PNG.`,resolve({sessionPath:e,nodeName:t}={}){let r=k();if(!r)return{command:null,args:[],env:{},description:this.description};let n={},s=e&&t?l(e,t):null;s&&(n.ZIBBY_NODE_SESSION_PATH=s),e&&(n.ZIBBY_SESSION_PATH=e);for(let a of["ZIBBY_NODE_SESSION_PATH","ZIBBY_SESSION_PATH"])!n[a]&&process.env[a]&&(n[a]=process.env[a]);return{type:"stdio",command:"node",args:[r,"../dist/chartRender.js","chartRenderSkill"],env:n,description:this.description,alwaysLoad:!0}},async handleToolCall(e,t){if(e!=="chart_render")return JSON.stringify({error:`Unknown tool: ${e}`});try{let r=t?.spec;if(!o(r))return JSON.stringify({error:"spec must be a plain ECharts option OBJECT (e.g. { xAxis: {...}, yAxis: {...}, series: [...] }) \u2014 got "+(r===null?"null":Array.isArray(r)?"an array":typeof r)+". Pass the option object itself, not a string or an array."});let n=A(t?.width,T),s=A(t?.height,w),a=["svg","png","both"].includes(t?.output)?t.output:"png",y=M(t?.filename)||`chart-${Date.now()}`,c;try{c=J(H(r),n,s)}catch(i){return JSON.stringify({error:`Chart render failed: ${i.message}. The spec must be a valid Apache ECharts option (check series[].type, and that xAxis/yAxis/radar match the series type). Fix the spec and retry.`})}if(typeof c!="string"||!c.includes("<svg"))return JSON.stringify({error:"Chart render produced no SVG \u2014 the spec likely describes an empty chart (no series?). Add at least one series and retry."});let m=j(),u=[];if(a==="svg"||a==="both"){let i=l(m,`${y}.svg`);S(i,c,"utf-8"),u.push({path:i,format:"svg",bytes:Buffer.byteLength(c,"utf-8")})}if(a==="png"||a==="both"){let i;try{i=Y(c)}catch(I){return JSON.stringify({error:`PNG rasterization failed: ${I.message}. Retry with output:'svg' if you only need the vector.`})}let g=l(m,`${y}.png`);S(g,i),u.push({path:g,format:"png",bytes:i.length})}return JSON.stringify({ok:!0,width:n,height:s,files:u})}catch(r){return JSON.stringify({error:`chart_render failed: ${r.message}`})}},tools:[{name:"chart_render",description:'Render a chart LOCALLY (no external service) from a standard Apache ECharts option and save it as SVG/PNG files in the run output folder. Pass the raw ECharts option as `spec` \u2014 every ECharts chart type works (bar, line, pie, radar, scatter, heatmap, \u2026). Returns the written file path(s). animation is forced off; background defaults to white. Bar example: {"xAxis":{"type":"category","data":["Q1","Q2"]},"yAxis":{},"series":[{"type":"bar","data":[12,30]}]}. Radar example: {"legend":{"data":["A","B"]},"radar":{"indicator":[{"name":"speed","max":10},{"name":"cost","max":10},{"name":"quality","max":10}]},"series":[{"type":"radar","data":[{"name":"A","value":[7,4,9]},{"name":"B","value":[5,8,6]}]}]}.',input_schema:{type:"object",properties:{spec:{type:"object",description:"The Apache ECharts option object, passed through as-is (series, xAxis/yAxis, radar, legend, title, \u2026)."},width:{type:"number",description:"Image width in px (default 800, max 4096)."},height:{type:"number",description:"Image height in px (default 600, max 4096)."},output:{type:"string",enum:["svg","png","both"],description:"Which file(s) to write (default 'png')."},filename:{type:"string",description:"Optional file basename (no extension); defaults to chart-<timestamp>."}},required:["spec"]}}]};export{z as chartRenderSkill};
|
package/dist/chat-memory.d.ts
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Chat Memory Skill
|
|
3
|
+
*
|
|
4
|
+
* Persistent memory and task history for the chat agent, backed by Dolt.
|
|
5
|
+
* Adds tables to the existing .zibby/memory/ database (open/closed — does
|
|
6
|
+
* not modify existing test memory tables).
|
|
7
|
+
*
|
|
8
|
+
* Inspired by OpenClaw's 4-layer architecture:
|
|
9
|
+
* Layer 1: Session context (chat history — handled by chat.js)
|
|
10
|
+
* Layer 2: Facts & context (this skill — chat_memory table)
|
|
11
|
+
* Layer 3: Session summaries (this skill — chat_sessions table)
|
|
12
|
+
* Layer 4: Search (this skill — memory_recall with SQL LIKE)
|
|
13
|
+
*
|
|
14
|
+
* Also tracks task history for cross-session persistence.
|
|
15
|
+
*/
|
|
16
|
+
export declare function _resetInitCache(): void;
|
|
17
|
+
export declare function _mem0DbPaths(cwd: any): {
|
|
18
|
+
dir: string;
|
|
19
|
+
vectorDbPath: string;
|
|
20
|
+
historyDbPath: string;
|
|
6
21
|
};
|
|
7
|
-
export function _resolveMem0Config(cwd: any): {
|
|
22
|
+
export declare function _resolveMem0Config(cwd: any): {
|
|
8
23
|
llm: {
|
|
9
24
|
provider: string;
|
|
10
25
|
config: {
|
|
@@ -26,330 +41,11 @@ export function _resolveMem0Config(cwd: any): {
|
|
|
26
41
|
provider: string;
|
|
27
42
|
config: {
|
|
28
43
|
dimension: number;
|
|
29
|
-
dbPath:
|
|
44
|
+
dbPath: string;
|
|
30
45
|
};
|
|
31
46
|
};
|
|
32
|
-
historyDbPath:
|
|
47
|
+
historyDbPath: string;
|
|
33
48
|
};
|
|
34
|
-
export function _resolveMemoryAdapter(cwd: any, context: any): Promise<any>;
|
|
35
|
-
export function _resolveMem0Infer(arg: any, cwd: any): Promise<any>;
|
|
36
|
-
export
|
|
37
|
-
let id: string;
|
|
38
|
-
let description: string;
|
|
39
|
-
let envKeys: any[];
|
|
40
|
-
let promptFragment: string;
|
|
41
|
-
function resolve(): any;
|
|
42
|
-
function buildPromptContext(context: any, args?: {}): Promise<{
|
|
43
|
-
backend: any;
|
|
44
|
-
brief: {
|
|
45
|
-
recentSessions: any;
|
|
46
|
-
topMemories: any;
|
|
47
|
-
taskStats: any;
|
|
48
|
-
ticketFilter: any;
|
|
49
|
-
backend: any;
|
|
50
|
-
error: any;
|
|
51
|
-
};
|
|
52
|
-
promptContext: string;
|
|
53
|
-
debugPreview: {
|
|
54
|
-
backend: any;
|
|
55
|
-
recentSessions: any;
|
|
56
|
-
topMemories: any;
|
|
57
|
-
taskStats: any;
|
|
58
|
-
error: any;
|
|
59
|
-
};
|
|
60
|
-
error: any;
|
|
61
|
-
degradedFrom?: undefined;
|
|
62
|
-
} | {
|
|
63
|
-
backend: string;
|
|
64
|
-
brief: {
|
|
65
|
-
recentSessions: any;
|
|
66
|
-
topMemories: any;
|
|
67
|
-
taskStats: any;
|
|
68
|
-
ticketFilter: any;
|
|
69
|
-
backend: any;
|
|
70
|
-
error: any;
|
|
71
|
-
};
|
|
72
|
-
promptContext: string;
|
|
73
|
-
debugPreview: {
|
|
74
|
-
backend: any;
|
|
75
|
-
recentSessions: any;
|
|
76
|
-
topMemories: any;
|
|
77
|
-
taskStats: any;
|
|
78
|
-
error: any;
|
|
79
|
-
};
|
|
80
|
-
error: any;
|
|
81
|
-
degradedFrom: string;
|
|
82
|
-
}>;
|
|
83
|
-
function handleToolCall(name: any, args: any, context: any): Promise<any>;
|
|
84
|
-
let tools: ({
|
|
85
|
-
name: string;
|
|
86
|
-
description: string;
|
|
87
|
-
input_schema: {
|
|
88
|
-
type: string;
|
|
89
|
-
properties: {
|
|
90
|
-
memoryKey: {
|
|
91
|
-
type: string;
|
|
92
|
-
description: string;
|
|
93
|
-
};
|
|
94
|
-
content: {
|
|
95
|
-
type: string;
|
|
96
|
-
description: string;
|
|
97
|
-
};
|
|
98
|
-
category: {
|
|
99
|
-
type: string;
|
|
100
|
-
enum: string[];
|
|
101
|
-
description: string;
|
|
102
|
-
};
|
|
103
|
-
tier: {
|
|
104
|
-
type: string;
|
|
105
|
-
enum: string[];
|
|
106
|
-
description: string;
|
|
107
|
-
};
|
|
108
|
-
source: {
|
|
109
|
-
type: string;
|
|
110
|
-
description: string;
|
|
111
|
-
};
|
|
112
|
-
ticketKey: {
|
|
113
|
-
type: string;
|
|
114
|
-
description: string;
|
|
115
|
-
};
|
|
116
|
-
infer: {
|
|
117
|
-
type: string;
|
|
118
|
-
description: string;
|
|
119
|
-
default: boolean;
|
|
120
|
-
};
|
|
121
|
-
query?: undefined;
|
|
122
|
-
limit?: undefined;
|
|
123
|
-
summary?: undefined;
|
|
124
|
-
tickets?: undefined;
|
|
125
|
-
tasksRun?: undefined;
|
|
126
|
-
tasksPassed?: undefined;
|
|
127
|
-
tasksFailed?: undefined;
|
|
128
|
-
keyFacts?: undefined;
|
|
129
|
-
title?: undefined;
|
|
130
|
-
type?: undefined;
|
|
131
|
-
status?: undefined;
|
|
132
|
-
specPath?: undefined;
|
|
133
|
-
resultSummary?: undefined;
|
|
134
|
-
};
|
|
135
|
-
required: string[];
|
|
136
|
-
};
|
|
137
|
-
} | {
|
|
138
|
-
name: string;
|
|
139
|
-
description: string;
|
|
140
|
-
input_schema: {
|
|
141
|
-
type: string;
|
|
142
|
-
properties: {
|
|
143
|
-
query: {
|
|
144
|
-
type: string;
|
|
145
|
-
description: string;
|
|
146
|
-
};
|
|
147
|
-
category: {
|
|
148
|
-
type: string;
|
|
149
|
-
description: string;
|
|
150
|
-
enum?: undefined;
|
|
151
|
-
};
|
|
152
|
-
ticketKey: {
|
|
153
|
-
type: string;
|
|
154
|
-
description: string;
|
|
155
|
-
};
|
|
156
|
-
tier: {
|
|
157
|
-
type: string;
|
|
158
|
-
enum: string[];
|
|
159
|
-
description: string;
|
|
160
|
-
};
|
|
161
|
-
limit: {
|
|
162
|
-
type: string;
|
|
163
|
-
description: string;
|
|
164
|
-
};
|
|
165
|
-
memoryKey?: undefined;
|
|
166
|
-
content?: undefined;
|
|
167
|
-
source?: undefined;
|
|
168
|
-
infer?: undefined;
|
|
169
|
-
summary?: undefined;
|
|
170
|
-
tickets?: undefined;
|
|
171
|
-
tasksRun?: undefined;
|
|
172
|
-
tasksPassed?: undefined;
|
|
173
|
-
tasksFailed?: undefined;
|
|
174
|
-
keyFacts?: undefined;
|
|
175
|
-
title?: undefined;
|
|
176
|
-
type?: undefined;
|
|
177
|
-
status?: undefined;
|
|
178
|
-
specPath?: undefined;
|
|
179
|
-
resultSummary?: undefined;
|
|
180
|
-
};
|
|
181
|
-
required?: undefined;
|
|
182
|
-
};
|
|
183
|
-
} | {
|
|
184
|
-
name: string;
|
|
185
|
-
description: string;
|
|
186
|
-
input_schema: {
|
|
187
|
-
type: string;
|
|
188
|
-
properties: {
|
|
189
|
-
ticketKey: {
|
|
190
|
-
type: string;
|
|
191
|
-
description: string;
|
|
192
|
-
};
|
|
193
|
-
memoryKey?: undefined;
|
|
194
|
-
content?: undefined;
|
|
195
|
-
category?: undefined;
|
|
196
|
-
tier?: undefined;
|
|
197
|
-
source?: undefined;
|
|
198
|
-
infer?: undefined;
|
|
199
|
-
query?: undefined;
|
|
200
|
-
limit?: undefined;
|
|
201
|
-
summary?: undefined;
|
|
202
|
-
tickets?: undefined;
|
|
203
|
-
tasksRun?: undefined;
|
|
204
|
-
tasksPassed?: undefined;
|
|
205
|
-
tasksFailed?: undefined;
|
|
206
|
-
keyFacts?: undefined;
|
|
207
|
-
title?: undefined;
|
|
208
|
-
type?: undefined;
|
|
209
|
-
status?: undefined;
|
|
210
|
-
specPath?: undefined;
|
|
211
|
-
resultSummary?: undefined;
|
|
212
|
-
};
|
|
213
|
-
required?: undefined;
|
|
214
|
-
};
|
|
215
|
-
} | {
|
|
216
|
-
name: string;
|
|
217
|
-
description: string;
|
|
218
|
-
input_schema: {
|
|
219
|
-
type: string;
|
|
220
|
-
properties: {
|
|
221
|
-
summary: {
|
|
222
|
-
type: string;
|
|
223
|
-
description: string;
|
|
224
|
-
};
|
|
225
|
-
tickets: {
|
|
226
|
-
type: string;
|
|
227
|
-
description: string;
|
|
228
|
-
};
|
|
229
|
-
tasksRun: {
|
|
230
|
-
type: string;
|
|
231
|
-
description: string;
|
|
232
|
-
};
|
|
233
|
-
tasksPassed: {
|
|
234
|
-
type: string;
|
|
235
|
-
description: string;
|
|
236
|
-
};
|
|
237
|
-
tasksFailed: {
|
|
238
|
-
type: string;
|
|
239
|
-
description: string;
|
|
240
|
-
};
|
|
241
|
-
keyFacts: {
|
|
242
|
-
type: string;
|
|
243
|
-
description: string;
|
|
244
|
-
};
|
|
245
|
-
memoryKey?: undefined;
|
|
246
|
-
content?: undefined;
|
|
247
|
-
category?: undefined;
|
|
248
|
-
tier?: undefined;
|
|
249
|
-
source?: undefined;
|
|
250
|
-
ticketKey?: undefined;
|
|
251
|
-
infer?: undefined;
|
|
252
|
-
query?: undefined;
|
|
253
|
-
limit?: undefined;
|
|
254
|
-
title?: undefined;
|
|
255
|
-
type?: undefined;
|
|
256
|
-
status?: undefined;
|
|
257
|
-
specPath?: undefined;
|
|
258
|
-
resultSummary?: undefined;
|
|
259
|
-
};
|
|
260
|
-
required: string[];
|
|
261
|
-
};
|
|
262
|
-
} | {
|
|
263
|
-
name: string;
|
|
264
|
-
description: string;
|
|
265
|
-
input_schema: {
|
|
266
|
-
type: string;
|
|
267
|
-
properties: {
|
|
268
|
-
title: {
|
|
269
|
-
type: string;
|
|
270
|
-
description: string;
|
|
271
|
-
};
|
|
272
|
-
type: {
|
|
273
|
-
type: string;
|
|
274
|
-
enum: string[];
|
|
275
|
-
description: string;
|
|
276
|
-
};
|
|
277
|
-
status: {
|
|
278
|
-
type: string;
|
|
279
|
-
enum: string[];
|
|
280
|
-
description: string;
|
|
281
|
-
};
|
|
282
|
-
ticketKey: {
|
|
283
|
-
type: string;
|
|
284
|
-
description: string;
|
|
285
|
-
};
|
|
286
|
-
specPath: {
|
|
287
|
-
type: string;
|
|
288
|
-
description: string;
|
|
289
|
-
};
|
|
290
|
-
resultSummary: {
|
|
291
|
-
type: string;
|
|
292
|
-
description: string;
|
|
293
|
-
};
|
|
294
|
-
memoryKey?: undefined;
|
|
295
|
-
content?: undefined;
|
|
296
|
-
category?: undefined;
|
|
297
|
-
tier?: undefined;
|
|
298
|
-
source?: undefined;
|
|
299
|
-
infer?: undefined;
|
|
300
|
-
query?: undefined;
|
|
301
|
-
limit?: undefined;
|
|
302
|
-
summary?: undefined;
|
|
303
|
-
tickets?: undefined;
|
|
304
|
-
tasksRun?: undefined;
|
|
305
|
-
tasksPassed?: undefined;
|
|
306
|
-
tasksFailed?: undefined;
|
|
307
|
-
keyFacts?: undefined;
|
|
308
|
-
};
|
|
309
|
-
required: string[];
|
|
310
|
-
};
|
|
311
|
-
} | {
|
|
312
|
-
name: string;
|
|
313
|
-
description: string;
|
|
314
|
-
input_schema: {
|
|
315
|
-
type: string;
|
|
316
|
-
properties: {
|
|
317
|
-
ticketKey: {
|
|
318
|
-
type: string;
|
|
319
|
-
description: string;
|
|
320
|
-
};
|
|
321
|
-
type: {
|
|
322
|
-
type: string;
|
|
323
|
-
description: string;
|
|
324
|
-
enum?: undefined;
|
|
325
|
-
};
|
|
326
|
-
status: {
|
|
327
|
-
type: string;
|
|
328
|
-
description: string;
|
|
329
|
-
enum?: undefined;
|
|
330
|
-
};
|
|
331
|
-
limit: {
|
|
332
|
-
type: string;
|
|
333
|
-
description: string;
|
|
334
|
-
};
|
|
335
|
-
memoryKey?: undefined;
|
|
336
|
-
content?: undefined;
|
|
337
|
-
category?: undefined;
|
|
338
|
-
tier?: undefined;
|
|
339
|
-
source?: undefined;
|
|
340
|
-
infer?: undefined;
|
|
341
|
-
query?: undefined;
|
|
342
|
-
summary?: undefined;
|
|
343
|
-
tickets?: undefined;
|
|
344
|
-
tasksRun?: undefined;
|
|
345
|
-
tasksPassed?: undefined;
|
|
346
|
-
tasksFailed?: undefined;
|
|
347
|
-
keyFacts?: undefined;
|
|
348
|
-
title?: undefined;
|
|
349
|
-
specPath?: undefined;
|
|
350
|
-
resultSummary?: undefined;
|
|
351
|
-
};
|
|
352
|
-
required?: undefined;
|
|
353
|
-
};
|
|
354
|
-
})[];
|
|
355
|
-
}
|
|
49
|
+
export declare function _resolveMemoryAdapter(cwd: any, context: any): Promise<any>;
|
|
50
|
+
export declare function _resolveMem0Infer(arg: any, cwd: any): Promise<any>;
|
|
51
|
+
export declare const chatMemorySkill: any;
|