@project-ava-supernova/core 0.2.175 → 0.2.177
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/dist/agent/agent.d.ts +3 -0
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.js +78 -52
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/system-prompt.d.ts +3 -2
- package/dist/agent/system-prompt.d.ts.map +1 -1
- package/dist/agent/system-prompt.js +1356 -1308
- package/dist/agent/system-prompt.js.map +1 -1
- package/dist/auto/aurora-router.d.ts +1 -1
- package/dist/auto/aurora-router.d.ts.map +1 -1
- package/dist/auto/aurora-router.js +4 -1
- package/dist/auto/aurora-router.js.map +1 -1
- package/dist/auto/auto-coordinator.d.ts.map +1 -1
- package/dist/auto/auto-coordinator.js +2 -1
- package/dist/auto/auto-coordinator.js.map +1 -1
- package/dist/auto/longxiang-router.d.ts.map +1 -1
- package/dist/auto/longxiang-router.js +1 -0
- package/dist/auto/longxiang-router.js.map +1 -1
- package/dist/auto/model-router.d.ts.map +1 -1
- package/dist/auto/model-router.js +1 -0
- package/dist/auto/model-router.js.map +1 -1
- package/dist/auto/supernova-router.d.ts.map +1 -1
- package/dist/auto/supernova-router.js +3 -0
- package/dist/auto/supernova-router.js.map +1 -1
- package/dist/auto/task-classifier.d.ts.map +1 -1
- package/dist/auto/task-classifier.js +8 -1
- package/dist/auto/task-classifier.js.map +1 -1
- package/dist/auto/types.d.ts +1 -1
- package/dist/auto/types.d.ts.map +1 -1
- package/dist/brand/brand-kits.d.ts +217 -0
- package/dist/brand/brand-kits.d.ts.map +1 -0
- package/dist/brand/brand-kits.js +681 -0
- package/dist/brand/brand-kits.js.map +1 -0
- package/dist/brand/kit-py.d.ts +7 -0
- package/dist/brand/kit-py.d.ts.map +1 -0
- package/dist/brand/kit-py.js +45 -0
- package/dist/brand/kit-py.js.map +1 -0
- package/dist/config/schema.d.ts +5 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js.map +1 -1
- package/dist/docs/data/tools.d.ts.map +1 -1
- package/dist/docs/data/tools.js +15 -0
- package/dist/docs/data/tools.js.map +1 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/memory/config.d.ts +12 -0
- package/dist/memory/config.d.ts.map +1 -1
- package/dist/memory/config.js +12 -0
- package/dist/memory/config.js.map +1 -1
- package/dist/memory/memory-manager.d.ts +11 -0
- package/dist/memory/memory-manager.d.ts.map +1 -1
- package/dist/memory/memory-manager.js +90 -2
- package/dist/memory/memory-manager.js.map +1 -1
- package/dist/memory/project-brain.d.ts.map +1 -1
- package/dist/memory/project-brain.js +2 -1
- package/dist/memory/project-brain.js.map +1 -1
- package/dist/memory/tfidf.d.ts +10 -0
- package/dist/memory/tfidf.d.ts.map +1 -1
- package/dist/memory/tfidf.js +27 -0
- package/dist/memory/tfidf.js.map +1 -1
- package/dist/social/index.d.ts +48 -0
- package/dist/social/index.d.ts.map +1 -1
- package/dist/social/index.js +19 -0
- package/dist/social/index.js.map +1 -1
- package/dist/tools/blender/build-model.d.ts +52 -0
- package/dist/tools/blender/build-model.d.ts.map +1 -0
- package/dist/tools/blender/build-model.js +426 -0
- package/dist/tools/blender/build-model.js.map +1 -0
- package/dist/tools/blender/find-blender.d.ts +43 -0
- package/dist/tools/blender/find-blender.d.ts.map +1 -0
- package/dist/tools/blender/find-blender.js +154 -0
- package/dist/tools/blender/find-blender.js.map +1 -0
- package/dist/tools/blender/model-brief.d.ts +61 -0
- package/dist/tools/blender/model-brief.d.ts.map +1 -0
- package/dist/tools/blender/model-brief.js +117 -0
- package/dist/tools/blender/model-brief.js.map +1 -0
- package/dist/tools/blender/paths.d.ts +20 -0
- package/dist/tools/blender/paths.d.ts.map +1 -0
- package/dist/tools/blender/paths.js +37 -0
- package/dist/tools/blender/paths.js.map +1 -0
- package/dist/tools/blender/runner-py.d.ts +2 -0
- package/dist/tools/blender/runner-py.d.ts.map +1 -0
- package/dist/tools/blender/runner-py.js +442 -0
- package/dist/tools/blender/runner-py.js.map +1 -0
- package/dist/tools/brief-store.d.ts +25 -0
- package/dist/tools/brief-store.d.ts.map +1 -0
- package/dist/tools/brief-store.js +59 -0
- package/dist/tools/brief-store.js.map +1 -0
- package/dist/tools/check-posts.d.ts.map +1 -1
- package/dist/tools/check-posts.js +21 -3
- package/dist/tools/check-posts.js.map +1 -1
- package/dist/tools/design-checkin.d.ts +28 -0
- package/dist/tools/design-checkin.d.ts.map +1 -0
- package/dist/tools/design-checkin.js +74 -0
- package/dist/tools/design-checkin.js.map +1 -0
- package/dist/tools/design-docs.d.ts +37 -0
- package/dist/tools/design-docs.d.ts.map +1 -0
- package/dist/tools/design-docs.js +367 -0
- package/dist/tools/design-docs.js.map +1 -0
- package/dist/tools/design-fonts.d.ts +54 -0
- package/dist/tools/design-fonts.d.ts.map +1 -0
- package/dist/tools/design-fonts.js +312 -0
- package/dist/tools/design-fonts.js.map +1 -0
- package/dist/tools/design-studio-tools.d.ts +16 -0
- package/dist/tools/design-studio-tools.d.ts.map +1 -1
- package/dist/tools/design-studio-tools.js +288 -43
- package/dist/tools/design-studio-tools.js.map +1 -1
- package/dist/tools/generation-manager.d.ts +1 -1
- package/dist/tools/generation-manager.d.ts.map +1 -1
- package/dist/tools/gimp/build-image.d.ts +152 -0
- package/dist/tools/gimp/build-image.d.ts.map +1 -0
- package/dist/tools/gimp/build-image.js +809 -0
- package/dist/tools/gimp/build-image.js.map +1 -0
- package/dist/tools/gimp/find-gimp.d.ts +32 -0
- package/dist/tools/gimp/find-gimp.d.ts.map +1 -0
- package/dist/tools/gimp/find-gimp.js +149 -0
- package/dist/tools/gimp/find-gimp.js.map +1 -0
- package/dist/tools/gimp/runner-py.d.ts +2 -0
- package/dist/tools/gimp/runner-py.d.ts.map +1 -0
- package/dist/tools/gimp/runner-py.js +723 -0
- package/dist/tools/gimp/runner-py.js.map +1 -0
- package/dist/tools/propose-brief.d.ts.map +1 -1
- package/dist/tools/propose-brief.js +6 -1
- package/dist/tools/propose-brief.js.map +1 -1
- package/dist/tools/review-post.d.ts +25 -0
- package/dist/tools/review-post.d.ts.map +1 -0
- package/dist/tools/review-post.js +63 -0
- package/dist/tools/review-post.js.map +1 -0
- package/dist/tools/tool-registry.d.ts.map +1 -1
- package/dist/tools/tool-registry.js +39 -1
- package/dist/tools/tool-registry.js.map +1 -1
- package/dist/tools/tool-request-words.d.ts +7 -0
- package/dist/tools/tool-request-words.d.ts.map +1 -0
- package/dist/tools/tool-request-words.js +39 -0
- package/dist/tools/tool-request-words.js.map +1 -0
- package/dist/tools/write-post.d.ts.map +1 -1
- package/dist/tools/write-post.js +5 -1
- package/dist/tools/write-post.js.map +1 -1
- package/dist/tools/write-video-post.d.ts.map +1 -1
- package/dist/tools/write-video-post.js +6 -1
- package/dist/tools/write-video-post.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* When Ava has to stop and talk.
|
|
3
|
+
*
|
|
4
|
+
* The making rooms are powerful because she iterates: build, look, judge, fix.
|
|
5
|
+
* Left alone she grinds: the first barrel took 15 runs, a title logo 12, with
|
|
6
|
+
* nobody asked. She can't know what they think until they say, and they can't
|
|
7
|
+
* steer what they aren't shown.
|
|
8
|
+
*
|
|
9
|
+
* This began as a nudge after six runs (4 Nov 2026), and she carried on past it.
|
|
10
|
+
* His call, 7 Nov: a real stop. After three good runs since they last spoke, the
|
|
11
|
+
* next run is refused until they answer, so this can't be argued with. Saying
|
|
12
|
+
* anything starts the count again. Each person's message is a new turn, and so
|
|
13
|
+
* is an answer to ask_user. "Keep going" gives her a longer stretch.
|
|
14
|
+
*/
|
|
15
|
+
/** Good runs since they last spoke before she has to stop and show them. */
|
|
16
|
+
export const RUNS_BEFORE_CHECK_IN = 3;
|
|
17
|
+
/** The same, when they've told her to carry on without them. */
|
|
18
|
+
export const RUNS_WHEN_TOLD_TO_KEEP_GOING = 10;
|
|
19
|
+
/** Failures in a row before she has to stop and say what's wrong. */
|
|
20
|
+
export const FAILS_BEFORE_STOP = 3;
|
|
21
|
+
const KEEP_GOING = /\b(keep going|carry on|don'?t stop|until (it'?s |they'?re |you'?re )?(done|finished)|finish (it|them|the \w+) off)\b/i;
|
|
22
|
+
/** Did they tell her to carry on? Only their words count, not the room's prefix. */
|
|
23
|
+
export function toldToKeepGoing(message) {
|
|
24
|
+
const marker = message.lastIndexOf('## Their request');
|
|
25
|
+
return KEEP_GOING.test(marker >= 0 ? message.slice(marker) : message);
|
|
26
|
+
}
|
|
27
|
+
// One tally per conversation, across every piece: a new name is not a way round it.
|
|
28
|
+
const tallies = new WeakMap();
|
|
29
|
+
function tallyFor(context) {
|
|
30
|
+
const shared = context.sharedState;
|
|
31
|
+
if (!shared?.designTurnId)
|
|
32
|
+
return null;
|
|
33
|
+
let tally = tallies.get(shared);
|
|
34
|
+
if (!tally || tally.turn !== shared.designTurnId) {
|
|
35
|
+
tally = { turn: shared.designTurnId, good: 0, failsInARow: 0 };
|
|
36
|
+
tallies.set(shared, tally);
|
|
37
|
+
}
|
|
38
|
+
return tally;
|
|
39
|
+
}
|
|
40
|
+
const limitFor = (context) => context.sharedState?.designKeepGoing ? RUNS_WHEN_TOLD_TO_KEEP_GOING : RUNS_BEFORE_CHECK_IN;
|
|
41
|
+
/** Before a run: why it can't happen yet, or null. */
|
|
42
|
+
export function designRunRefusal(context) {
|
|
43
|
+
const tally = tallyFor(context);
|
|
44
|
+
if (!tally)
|
|
45
|
+
return null;
|
|
46
|
+
if (tally.failsInARow >= FAILS_BEFORE_STOP) {
|
|
47
|
+
return `Not run: that was ${tally.failsInARow} failures in a row. Stop and tell them plainly what you're stuck on and what you've tried, then wait for them.`;
|
|
48
|
+
}
|
|
49
|
+
if (tally.good >= limitFor(context)) {
|
|
50
|
+
return `Not run: you've done ${tally.good} runs since they last said anything. They can't steer what you don't stop to show them. Stop now: say where it stands and what you think, ask what they'd change, and end your turn. You can carry on once they answer.`;
|
|
51
|
+
}
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
/** After a run that really happened. Returns a line for the report, or null. */
|
|
55
|
+
export function recordDesignRun(context, ok) {
|
|
56
|
+
const tally = tallyFor(context);
|
|
57
|
+
if (!tally)
|
|
58
|
+
return null;
|
|
59
|
+
if (ok) {
|
|
60
|
+
tally.good += 1;
|
|
61
|
+
tally.failsInARow = 0;
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
tally.failsInARow += 1;
|
|
65
|
+
}
|
|
66
|
+
if (tally.failsInARow >= FAILS_BEFORE_STOP) {
|
|
67
|
+
return `STOP: that is ${tally.failsInARow} failed runs in a row. Don't try again. Tell them plainly what you're stuck on and what you've tried, then wait.`;
|
|
68
|
+
}
|
|
69
|
+
if (ok && tally.good >= limitFor(context)) {
|
|
70
|
+
return `STOP: that is ${tally.good} runs since they last said anything, and the next one will be refused. Show them where it stands, say what you think, ask what they'd change, and end your turn.`;
|
|
71
|
+
}
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=design-checkin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design-checkin.js","sourceRoot":"","sources":["../../src/tools/design-checkin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,4EAA4E;AAC5E,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC;AACtC,gEAAgE;AAChE,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAC/C,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAEnC,MAAM,UAAU,GAAG,uHAAuH,CAAC;AAE3I,oFAAoF;AACpF,MAAM,UAAU,eAAe,CAAC,OAAe;IAC7C,MAAM,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IACvD,OAAO,UAAU,CAAC,IAA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,CAAC,IAAI,yNAAyN,CAAC;IACrQ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,gFAAgF;AAChF,MAAM,UAAU,eAAe,CAAC,OAA6B,EAAE,EAAW;IACxE,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;IAChC,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IACxB,IAAI,EAAE,EAAE,CAAC;QAAC,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC;QAAC,KAAK,CAAC,WAAW,GAAG,CAAC,CAAC;IAAC,CAAC;SAAM,CAAC;QAAC,KAAK,CAAC,WAAW,IAAI,CAAC,CAAC;IAAC,CAAC;IAEpF,IAAI,KAAK,CAAC,WAAW,IAAI,iBAAiB,EAAE,CAAC;QAC3C,OAAO,iBAAiB,KAAK,CAAC,WAAW,kHAAkH,CAAC;IAC9J,CAAC;IACD,IAAI,EAAE,IAAI,KAAK,CAAC,IAAI,IAAI,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1C,OAAO,iBAAiB,KAAK,CAAC,IAAI,kKAAkK,CAAC;IACvM,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ava's sources of truth for Blender and GIMP (his ask, 4 Nov 2026).
|
|
3
|
+
*
|
|
4
|
+
* She had web search snippets and her memory, which is how a whole logo run
|
|
5
|
+
* went to GIMP 2 calls. Two tools, because they answer different questions:
|
|
6
|
+
*
|
|
7
|
+
* - design_api_lookup asks the INSTALLED program. It cannot be out of date: it
|
|
8
|
+
* is the exact version on this machine. Free, offline, needs no brief and
|
|
9
|
+
* touches no work. For exact calls, arguments and settings.
|
|
10
|
+
* - design_read_docs opens the OFFICIAL docs, and only those. For how a
|
|
11
|
+
* feature is meant to be used: techniques and concepts.
|
|
12
|
+
*
|
|
13
|
+
* The query is DATA here, never code. It is handed to a fixed script that only
|
|
14
|
+
* walks names with getattr, so this is not a way to run anything.
|
|
15
|
+
*/
|
|
16
|
+
import type { Tool, ToolResult, ToolExecutionContext, ToolRiskLevel, ToolOutputTrust } from './types.js';
|
|
17
|
+
import type { FunctionSchema } from '../providers/types.js';
|
|
18
|
+
export declare class DesignApiLookupTool implements Tool {
|
|
19
|
+
readonly name = "design_api_lookup";
|
|
20
|
+
readonly description = "Ask the installed Blender or GIMP exactly how a call, node or filter works. It is the real version on this computer, so it cannot be out of date. Free, instant, and it touches no work.";
|
|
21
|
+
readonly riskLevel: ToolRiskLevel;
|
|
22
|
+
readonly requiresConfirmation = false;
|
|
23
|
+
readonly schema: FunctionSchema;
|
|
24
|
+
execute(args: Record<string, unknown>, context: ToolExecutionContext): Promise<ToolResult>;
|
|
25
|
+
}
|
|
26
|
+
export declare function isOfficialDocsUrl(raw: string): boolean;
|
|
27
|
+
export declare function docsHtmlToText(html: string): string;
|
|
28
|
+
export declare class DesignReadDocsTool implements Tool {
|
|
29
|
+
readonly name = "design_read_docs";
|
|
30
|
+
readonly description = "Read a page of the official Blender, GIMP or GEGL documentation. Official sites only.";
|
|
31
|
+
readonly riskLevel: ToolRiskLevel;
|
|
32
|
+
readonly requiresConfirmation = false;
|
|
33
|
+
readonly outputTrust: ToolOutputTrust;
|
|
34
|
+
readonly schema: FunctionSchema;
|
|
35
|
+
execute(args: Record<string, unknown>, context: ToolExecutionContext): Promise<ToolResult>;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=design-docs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design-docs.d.ts","sourceRoot":"","sources":["../../src/tools/design-docs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,oBAAoB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACzG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAuN5D,qBAAa,mBAAoB,YAAW,IAAI;IAC9C,QAAQ,CAAC,IAAI,uBAAuB;IACpC,QAAQ,CAAC,WAAW,8LAA8L;IAClN,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAU;IAC3C,QAAQ,CAAC,oBAAoB,SAAS;IAEtC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAe7B;IAEI,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;CAgCjG;AAOD,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAOtD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAWnD;AAED,qBAAa,kBAAmB,YAAW,IAAI;IAC7C,QAAQ,CAAC,IAAI,sBAAsB;IACnC,QAAQ,CAAC,WAAW,2FAA2F;IAC/G,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAU;IAC3C,QAAQ,CAAC,oBAAoB,SAAS;IACtC,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAe;IAEpD,QAAQ,CAAC,MAAM,EAAE,cAAc,CAgB7B;IAEI,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;CA4BjG"}
|
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ava's sources of truth for Blender and GIMP (his ask, 4 Nov 2026).
|
|
3
|
+
*
|
|
4
|
+
* She had web search snippets and her memory, which is how a whole logo run
|
|
5
|
+
* went to GIMP 2 calls. Two tools, because they answer different questions:
|
|
6
|
+
*
|
|
7
|
+
* - design_api_lookup asks the INSTALLED program. It cannot be out of date: it
|
|
8
|
+
* is the exact version on this machine. Free, offline, needs no brief and
|
|
9
|
+
* touches no work. For exact calls, arguments and settings.
|
|
10
|
+
* - design_read_docs opens the OFFICIAL docs, and only those. For how a
|
|
11
|
+
* feature is meant to be used: techniques and concepts.
|
|
12
|
+
*
|
|
13
|
+
* The query is DATA here, never code. It is handed to a fixed script that only
|
|
14
|
+
* walks names with getattr, so this is not a way to run anything.
|
|
15
|
+
*/
|
|
16
|
+
import { spawn } from 'node:child_process';
|
|
17
|
+
import { writeFile, rm } from 'node:fs/promises';
|
|
18
|
+
import { join } from 'node:path';
|
|
19
|
+
import { tmpdir } from 'node:os';
|
|
20
|
+
import { randomUUID } from 'node:crypto';
|
|
21
|
+
import { findBlender, BLENDER_DOWNLOAD_URL } from './blender/find-blender.js';
|
|
22
|
+
import { findGimp, GIMP_DOWNLOAD_URL } from './gimp/find-gimp.js';
|
|
23
|
+
const MAX_LOOKUP = 8_000;
|
|
24
|
+
const MAX_PAGE = 14_000;
|
|
25
|
+
const START = '@@AVA_LOOKUP_START@@';
|
|
26
|
+
const END = '@@AVA_LOOKUP_END@@';
|
|
27
|
+
// prettier-ignore
|
|
28
|
+
const BLENDER_LOOKUP_PY = String.raw `
|
|
29
|
+
import sys, json
|
|
30
|
+
import bpy
|
|
31
|
+
q = json.loads(sys.argv[sys.argv.index('--') + 1])
|
|
32
|
+
out = []
|
|
33
|
+
def props(rna, limit=70):
|
|
34
|
+
n = 0
|
|
35
|
+
for p in rna.properties:
|
|
36
|
+
if p.identifier in ('rna_type',) or n >= limit:
|
|
37
|
+
continue
|
|
38
|
+
n += 1
|
|
39
|
+
line = f' {p.identifier} ({p.type.lower()})'
|
|
40
|
+
if p.type == 'ENUM':
|
|
41
|
+
line += ' one of ' + ', '.join(i.identifier for i in p.enum_items)[:240]
|
|
42
|
+
elif getattr(p, 'default', None) not in (None, ''):
|
|
43
|
+
line += f' default {p.default}'
|
|
44
|
+
if p.description:
|
|
45
|
+
line += ' — ' + p.description[:90]
|
|
46
|
+
out.append(line)
|
|
47
|
+
def node(name):
|
|
48
|
+
m = bpy.data.materials.new('AvaLookup'); m.use_nodes = True
|
|
49
|
+
n = m.node_tree.nodes.new(name)
|
|
50
|
+
out.append(f'{name}: {n.bl_label}')
|
|
51
|
+
out.append('Inputs: ' + ', '.join(f'[{i}] {s.name} ({s.type.lower()})' for i, s in enumerate(n.inputs)))
|
|
52
|
+
out.append('Outputs: ' + ', '.join(f'[{i}] {s.name} ({s.type.lower()})' for i, s in enumerate(n.outputs)))
|
|
53
|
+
out.append('Settings:'); props(n.bl_rna, 30)
|
|
54
|
+
def run():
|
|
55
|
+
if q.startswith('bpy.ops.'):
|
|
56
|
+
parts = q.split('.')
|
|
57
|
+
mod = getattr(bpy.ops, parts[2], None)
|
|
58
|
+
if mod is None:
|
|
59
|
+
return False
|
|
60
|
+
if len(parts) == 3:
|
|
61
|
+
out.append(f'{q}: ' + ', '.join(n for n in dir(mod) if not n.startswith('_')))
|
|
62
|
+
return True
|
|
63
|
+
op = getattr(mod, parts[3], None)
|
|
64
|
+
if op is None:
|
|
65
|
+
return False
|
|
66
|
+
rna = op.get_rna_type()
|
|
67
|
+
out.append(f'{q}: {rna.description}')
|
|
68
|
+
props(rna)
|
|
69
|
+
return True
|
|
70
|
+
bare = q.split('.')[-1]
|
|
71
|
+
if bare.startswith(('ShaderNode', 'GeometryNode')) or (bare.endswith('Node') and hasattr(bpy.types, bare)):
|
|
72
|
+
if hasattr(bpy.types, bare):
|
|
73
|
+
try:
|
|
74
|
+
node(bare)
|
|
75
|
+
return True
|
|
76
|
+
except Exception:
|
|
77
|
+
pass
|
|
78
|
+
if hasattr(bpy.types, bare):
|
|
79
|
+
c = getattr(bpy.types, bare)
|
|
80
|
+
out.append(f'bpy.types.{bare}: {(c.__doc__ or "").strip()[:200]}')
|
|
81
|
+
if hasattr(c, 'bl_rna'):
|
|
82
|
+
props(c.bl_rna)
|
|
83
|
+
return True
|
|
84
|
+
o = bpy
|
|
85
|
+
parts = q.split('.')
|
|
86
|
+
if parts[0] != 'bpy':
|
|
87
|
+
return False
|
|
88
|
+
for p in parts[1:]:
|
|
89
|
+
if not hasattr(o, p):
|
|
90
|
+
return False
|
|
91
|
+
o = getattr(o, p)
|
|
92
|
+
out.append(f'{q}: {(getattr(o, "__doc__", "") or "").strip()[:400]}')
|
|
93
|
+
out.append(', '.join(n for n in dir(o) if not n.startswith('_'))[:1500])
|
|
94
|
+
return True
|
|
95
|
+
found = False
|
|
96
|
+
try:
|
|
97
|
+
found = run()
|
|
98
|
+
except Exception as e:
|
|
99
|
+
out.append(f'Lookup failed: {e}')
|
|
100
|
+
found = True
|
|
101
|
+
if not found:
|
|
102
|
+
low = q.lower()
|
|
103
|
+
hits = [f'bpy.types.{n}' for n in dir(bpy.types) if low in n.lower()][:30]
|
|
104
|
+
for m in dir(bpy.ops):
|
|
105
|
+
if m.startswith('_'):
|
|
106
|
+
continue
|
|
107
|
+
try:
|
|
108
|
+
hits += [f'bpy.ops.{m}.{n}' for n in dir(getattr(bpy.ops, m)) if low in n.lower()]
|
|
109
|
+
except Exception:
|
|
110
|
+
pass
|
|
111
|
+
out.append(f'Nothing exact for "{q}". Names containing it: ' + (', '.join(hits[:60]) or 'none'))
|
|
112
|
+
print('@@AVA_LOOKUP_START@@\n' + '\n'.join(out) + '\n@@AVA_LOOKUP_END@@')
|
|
113
|
+
`;
|
|
114
|
+
// prettier-ignore
|
|
115
|
+
const GIMP_LOOKUP_PY = String.raw `
|
|
116
|
+
import os, json
|
|
117
|
+
import gi
|
|
118
|
+
gi.require_version('Gimp', '3.0'); gi.require_version('Gegl', '0.4')
|
|
119
|
+
from gi.repository import Gimp, Gegl, Gio
|
|
120
|
+
q = json.loads(os.environ['AVA_GIMP_QUERY'])
|
|
121
|
+
out = []
|
|
122
|
+
def doc(f):
|
|
123
|
+
d = getattr(f, '__doc__', '') or ''
|
|
124
|
+
return d.strip().splitlines()[0][:170] if d.strip() else ''
|
|
125
|
+
CLASSES = [('Gimp.Image', Gimp.Image), ('Gimp.Layer', Gimp.Layer), ('Gimp.Drawable', Gimp.Drawable), ('Gimp.Item', Gimp.Item),
|
|
126
|
+
('Gimp.TextLayer', Gimp.TextLayer), ('Gimp.Selection', Gimp.Selection), ('Gimp.Path', Gimp.Path), ('Gimp', Gimp)]
|
|
127
|
+
# GObject signatures give types only: set_opacity(opacity:float) cannot tell you
|
|
128
|
+
# the scale is 0-100, and that one fact cost her about 12 runs. GIMP's procedure
|
|
129
|
+
# database has the description and the real range of every argument.
|
|
130
|
+
def pdb_info(query):
|
|
131
|
+
parts = query.split('.')
|
|
132
|
+
name = parts[-1].replace('_', '-')
|
|
133
|
+
owner = parts[-2].lower().replace('textlayer', 'text-layer') if len(parts) > 2 else ''
|
|
134
|
+
tries = [f'gimp-{owner}-{name}'] if owner else []
|
|
135
|
+
tries += [f'gimp-{name}'] + [f'gimp-{p}-{name}' for p in ('layer', 'drawable', 'item', 'image', 'selection', 'text-layer', 'context', 'drawable-edit')]
|
|
136
|
+
pdb = Gimp.get_pdb()
|
|
137
|
+
for t in tries:
|
|
138
|
+
if not pdb.procedure_exists(t):
|
|
139
|
+
continue
|
|
140
|
+
p = pdb.lookup_procedure(t)
|
|
141
|
+
out.append(f'GIMP says ({t}): {p.get_blurb()}')
|
|
142
|
+
h = (p.get_help() or '').strip()
|
|
143
|
+
if h:
|
|
144
|
+
out.append(h[:320])
|
|
145
|
+
for a in p.get_arguments():
|
|
146
|
+
lo, hi = getattr(a, 'minimum', None), getattr(a, 'maximum', None)
|
|
147
|
+
rng = f' range {lo:g} to {hi:g}' if lo is not None and hi is not None and abs(lo) < 1e9 and abs(hi) < 1e9 else ''
|
|
148
|
+
out.append(f' {a.name}{rng}: {a.get_blurb()}'[:200])
|
|
149
|
+
return True
|
|
150
|
+
return False
|
|
151
|
+
def op_props(name):
|
|
152
|
+
img = Gimp.Image.new(8, 8, Gimp.ImageBaseType.RGB)
|
|
153
|
+
lay = Gimp.Layer.new(img, 'x', 8, 8, Gimp.ImageType.RGBA_IMAGE, 100, Gimp.LayerMode.NORMAL)
|
|
154
|
+
img.insert_layer(lay, None, 0)
|
|
155
|
+
f = Gimp.DrawableFilter.new(lay, name, '')
|
|
156
|
+
cfg = f.get_config()
|
|
157
|
+
out.append(f'{name} settings (dashes become underscores in ava_filter):')
|
|
158
|
+
for p in cfg.list_properties():
|
|
159
|
+
try:
|
|
160
|
+
d = p.get_default_value()
|
|
161
|
+
except Exception:
|
|
162
|
+
d = ''
|
|
163
|
+
lo, hi = getattr(p, 'minimum', None), getattr(p, 'maximum', None)
|
|
164
|
+
rng = f' range {lo:g} to {hi:g}' if lo is not None and hi is not None and abs(lo) < 1e9 and abs(hi) < 1e9 else ''
|
|
165
|
+
out.append(f' {p.get_name()} ({p.value_type.name}) default {d}{rng} — {p.get_blurb() or ""}'[:180])
|
|
166
|
+
img.delete()
|
|
167
|
+
def run():
|
|
168
|
+
if q.startswith(('gegl:', 'gimp:', 'svg:')):
|
|
169
|
+
op_props(q)
|
|
170
|
+
return True
|
|
171
|
+
parts = q.split('.')
|
|
172
|
+
if parts[0] == 'Gimp' and len(parts) > 1:
|
|
173
|
+
o = Gimp
|
|
174
|
+
for p in parts[1:]:
|
|
175
|
+
if not hasattr(o, p):
|
|
176
|
+
return False
|
|
177
|
+
o = getattr(o, p)
|
|
178
|
+
if callable(o) and not isinstance(o, type):
|
|
179
|
+
out.append(doc(o) or q)
|
|
180
|
+
try:
|
|
181
|
+
pdb_info(q)
|
|
182
|
+
except Exception:
|
|
183
|
+
pass
|
|
184
|
+
else:
|
|
185
|
+
out.append(f'{q}: {doc(o)}')
|
|
186
|
+
names = [n for n in dir(o) if not n.startswith('_')]
|
|
187
|
+
caps = [n for n in names if n.isupper()]
|
|
188
|
+
if caps:
|
|
189
|
+
out.append('Values: ' + ', '.join(caps))
|
|
190
|
+
else:
|
|
191
|
+
out.append('Members: ' + ', '.join(n for n in names if n.islower())[:1500])
|
|
192
|
+
return True
|
|
193
|
+
return False
|
|
194
|
+
found = False
|
|
195
|
+
try:
|
|
196
|
+
found = run()
|
|
197
|
+
except Exception as e:
|
|
198
|
+
out.append(f'Lookup failed: {e}')
|
|
199
|
+
found = True
|
|
200
|
+
if not found:
|
|
201
|
+
low = q.lower().split('.')[-1]
|
|
202
|
+
hits = []
|
|
203
|
+
seen = set()
|
|
204
|
+
for label, c in CLASSES:
|
|
205
|
+
for n in dir(c):
|
|
206
|
+
if low in n.lower() and not n.startswith('_') and n not in seen:
|
|
207
|
+
seen.add(n)
|
|
208
|
+
hits.append(f'{label}.{n}: {doc(getattr(c, n))}')
|
|
209
|
+
out.append(f'Names containing "{low}":' if hits else f'Nothing found for "{q}".')
|
|
210
|
+
out += hits[:30]
|
|
211
|
+
try:
|
|
212
|
+
pdb_info(q)
|
|
213
|
+
except Exception:
|
|
214
|
+
pass
|
|
215
|
+
print('@@AVA_LOOKUP_START@@\n' + '\n'.join(out) + '\n@@AVA_LOOKUP_END@@')
|
|
216
|
+
`;
|
|
217
|
+
function runLookup(exe, args, env, signal) {
|
|
218
|
+
return new Promise((resolve) => {
|
|
219
|
+
const child = spawn(exe, args, { env, windowsHide: true });
|
|
220
|
+
let out = '';
|
|
221
|
+
child.stdout.on('data', (d) => { out += d; });
|
|
222
|
+
child.stderr.on('data', (d) => { out += d; });
|
|
223
|
+
const timer = setTimeout(() => child.kill(), 90_000);
|
|
224
|
+
signal?.addEventListener('abort', () => child.kill(), { once: true });
|
|
225
|
+
const done = () => { clearTimeout(timer); resolve(out); };
|
|
226
|
+
child.on('close', done);
|
|
227
|
+
child.on('error', done);
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
export class DesignApiLookupTool {
|
|
231
|
+
name = 'design_api_lookup';
|
|
232
|
+
description = 'Ask the installed Blender or GIMP exactly how a call, node or filter works. It is the real version on this computer, so it cannot be out of date. Free, instant, and it touches no work.';
|
|
233
|
+
riskLevel = 'safe';
|
|
234
|
+
requiresConfirmation = false;
|
|
235
|
+
schema = {
|
|
236
|
+
name: 'design_api_lookup',
|
|
237
|
+
description: 'Look up the REAL API in the installed Blender or GIMP before you write a script: no guessing from memory. Needs no brief and changes nothing. ' +
|
|
238
|
+
'Blender: "bpy.ops.object.bake" (an operator and its options), "bpy.ops.uv" (a module\'s operators), "ShaderNodeMix" (a node\'s exact inputs and outputs), "bpy.types.Material" (properties). ' +
|
|
239
|
+
'GIMP: "Gimp.Image.select_ellipse" (the exact signature), "Gimp.ChannelOps" (values), "Gimp.TextLayer" (members), "gegl:dropshadow" (a filter\'s settings). ' +
|
|
240
|
+
'Any plain word searches the names, e.g. "bake" or "gradient". Use it BEFORE writing a call you are not certain of; use design_read_docs for how a technique is done.',
|
|
241
|
+
parameters: {
|
|
242
|
+
type: 'object',
|
|
243
|
+
properties: {
|
|
244
|
+
tool: { type: 'string', enum: ['blender', 'gimp'], description: 'Which program to ask.' },
|
|
245
|
+
query: { type: 'string', description: 'The name to look up, or a word to search for.' },
|
|
246
|
+
},
|
|
247
|
+
required: ['tool', 'query'],
|
|
248
|
+
},
|
|
249
|
+
};
|
|
250
|
+
async execute(args, context) {
|
|
251
|
+
const tool = args.tool === 'gimp' ? 'gimp' : 'blender';
|
|
252
|
+
const query = String(args.query ?? '').trim();
|
|
253
|
+
if (!/^[\w.:-]{1,120}$/.test(query)) {
|
|
254
|
+
return { success: false, output: 'Give one name or word to look up, e.g. "bpy.ops.object.bake", "gegl:dropshadow" or "bake".' };
|
|
255
|
+
}
|
|
256
|
+
const id = randomUUID();
|
|
257
|
+
const scriptPath = join(tmpdir(), `ava-lookup-${id}.py`);
|
|
258
|
+
let out = '';
|
|
259
|
+
let version = '';
|
|
260
|
+
try {
|
|
261
|
+
if (tool === 'blender') {
|
|
262
|
+
const b = await findBlender();
|
|
263
|
+
if (!b)
|
|
264
|
+
return { success: false, output: `Blender isn't installed here, or I can't find it. It's free from ${BLENDER_DOWNLOAD_URL}.` };
|
|
265
|
+
version = `Blender ${b.version}`;
|
|
266
|
+
await writeFile(scriptPath, BLENDER_LOOKUP_PY, 'utf-8');
|
|
267
|
+
out = await runLookup(b.path, ['-b', '--factory-startup', '--disable-autoexec', '--python', scriptPath, '--', JSON.stringify(query)], process.env, context.signal);
|
|
268
|
+
}
|
|
269
|
+
else {
|
|
270
|
+
const g = await findGimp();
|
|
271
|
+
if (!g)
|
|
272
|
+
return { success: false, output: `GIMP 3 isn't installed here, or I can't find it. It's free from ${GIMP_DOWNLOAD_URL}.` };
|
|
273
|
+
version = `GIMP ${g.version}`;
|
|
274
|
+
await writeFile(scriptPath, GIMP_LOOKUP_PY, 'utf-8');
|
|
275
|
+
out = await runLookup(g.path, ['-n', '-i', '--batch-interpreter', 'python-fu-eval', '-b', `exec(open(${JSON.stringify(scriptPath)}, encoding='utf-8').read())`, '--quit'], { ...process.env, AVA_GIMP_QUERY: JSON.stringify(query) }, context.signal);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
finally {
|
|
279
|
+
await rm(scriptPath, { force: true }).catch(() => { });
|
|
280
|
+
}
|
|
281
|
+
const a = out.indexOf(START);
|
|
282
|
+
const b = out.indexOf(END);
|
|
283
|
+
if (a < 0 || b < 0)
|
|
284
|
+
return { success: false, output: `The lookup did not finish in ${version}. Its last output:\n${out.split(/\r?\n/).slice(-10).join('\n')}` };
|
|
285
|
+
return { success: true, output: `From the installed ${version}:\n${out.slice(a + START.length, b).trim().slice(0, MAX_LOOKUP)}` };
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
// ── design_read_docs ─────────────────────────────────────────────────────────
|
|
289
|
+
/** Official documentation only. Anything else is refused, redirects included. */
|
|
290
|
+
const OFFICIAL_HOSTS = ['docs.blender.org', 'developer.gimp.org', 'docs.gimp.org', 'gegl.org', 'www.gegl.org'];
|
|
291
|
+
export function isOfficialDocsUrl(raw) {
|
|
292
|
+
try {
|
|
293
|
+
const u = new URL(raw);
|
|
294
|
+
return u.protocol === 'https:' && OFFICIAL_HOSTS.includes(u.hostname);
|
|
295
|
+
}
|
|
296
|
+
catch {
|
|
297
|
+
return false;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
export function docsHtmlToText(html) {
|
|
301
|
+
// The page's own content when it marks it: otherwise the site menu fills the
|
|
302
|
+
// first screenful and she reads navigation instead of the docs.
|
|
303
|
+
const main = /<(article|main)\b[\s\S]*<\/\1>/i.exec(html);
|
|
304
|
+
return (main ? main[0] : html)
|
|
305
|
+
.replace(/<(script|style|nav|header|footer|aside|svg)\b[\s\S]*?<\/\1>/gi, ' ')
|
|
306
|
+
.replace(/<(br|\/p|\/div|\/li|\/tr|\/h[1-6]|\/pre|\/dd|\/dt)\b[^>]*>/gi, '\n')
|
|
307
|
+
.replace(/<a\b[^>]*href="([^"#]+)"[^>]*>([\s\S]*?)<\/a>/gi, '$2')
|
|
308
|
+
.replace(/<[^>]+>/g, ' ')
|
|
309
|
+
.replace(/ /g, ' ').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, "'").replace(/&/g, '&')
|
|
310
|
+
.replace(/[ \t]+/g, ' ').replace(/ ?\n ?/g, '\n').replace(/\n{3,}/g, '\n\n').trim();
|
|
311
|
+
}
|
|
312
|
+
export class DesignReadDocsTool {
|
|
313
|
+
name = 'design_read_docs';
|
|
314
|
+
description = 'Read a page of the official Blender, GIMP or GEGL documentation. Official sites only.';
|
|
315
|
+
riskLevel = 'safe';
|
|
316
|
+
requiresConfirmation = false;
|
|
317
|
+
outputTrust = 'untrusted';
|
|
318
|
+
schema = {
|
|
319
|
+
name: 'design_read_docs',
|
|
320
|
+
description: 'Open a page of the OFFICIAL documentation and read it: for how a feature is meant to be used, a technique, or what a setting really does. Only these sites work: ' +
|
|
321
|
+
'docs.blender.org (manual: /manual/en/latest/ ; Python API: /api/current/ , e.g. /api/current/bpy.ops.object.html), ' +
|
|
322
|
+
'docs.gimp.org (manual: /3.2/en/), developer.gimp.org (plug-in writing: /resource/about-plugins/ ; API: /api/3.0/libgimp/), ' +
|
|
323
|
+
'gegl.org (every filter: /operations/ , e.g. /operations/gegl-dropshadow.html). ' +
|
|
324
|
+
'Find the page with web_search restricted by naming the site, or go straight to a URL you know. For exact arguments use design_api_lookup, which asks the installed version.',
|
|
325
|
+
parameters: {
|
|
326
|
+
type: 'object',
|
|
327
|
+
properties: {
|
|
328
|
+
url: { type: 'string', description: 'The https:// address of the page, on one of the official sites.' },
|
|
329
|
+
offset: { type: 'number', description: 'Character to start from, to read further into a long page. Default 0.' },
|
|
330
|
+
},
|
|
331
|
+
required: ['url'],
|
|
332
|
+
},
|
|
333
|
+
};
|
|
334
|
+
async execute(args, context) {
|
|
335
|
+
let url = String(args.url ?? '').trim();
|
|
336
|
+
if (!isOfficialDocsUrl(url)) {
|
|
337
|
+
return { success: false, output: `That isn't one of the official docs sites. Only ${OFFICIAL_HOSTS.join(', ')} (https) can be read here.` };
|
|
338
|
+
}
|
|
339
|
+
try {
|
|
340
|
+
// Follow redirects by hand, so one cannot walk off the official sites.
|
|
341
|
+
let res;
|
|
342
|
+
for (let hop = 0; hop < 5; hop++) {
|
|
343
|
+
res = await fetch(url, { redirect: 'manual', signal: context.signal ?? AbortSignal.timeout(20_000), headers: { 'user-agent': 'AvaSupernova-Docs' } });
|
|
344
|
+
const next = res.status >= 300 && res.status < 400 ? res.headers.get('location') : null;
|
|
345
|
+
if (!next)
|
|
346
|
+
break;
|
|
347
|
+
url = new URL(next, url).toString();
|
|
348
|
+
if (!isOfficialDocsUrl(url))
|
|
349
|
+
return { success: false, output: 'That page redirects away from the official docs, so it was not opened.' };
|
|
350
|
+
}
|
|
351
|
+
if (!res || !res.ok)
|
|
352
|
+
return { success: false, output: `The docs site answered ${res?.status ?? 'nothing'} for ${url}. Check the address, or find the page with web_search.` };
|
|
353
|
+
const text = docsHtmlToText(await res.text());
|
|
354
|
+
const offset = Math.max(0, Number(args.offset) || 0);
|
|
355
|
+
const slice = text.slice(offset, offset + MAX_PAGE);
|
|
356
|
+
const more = offset + MAX_PAGE < text.length;
|
|
357
|
+
return {
|
|
358
|
+
success: true,
|
|
359
|
+
output: `${url}\n\n${slice}${more ? `\n\n[The page goes on: ${text.length} characters in all. Read on with offset ${offset + MAX_PAGE}.]` : ''}`,
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
catch (err) {
|
|
363
|
+
return { success: false, output: `Could not open that page: ${err instanceof Error ? err.message : String(err)}` };
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
//# sourceMappingURL=design-docs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design-docs.js","sourceRoot":"","sources":["../../src/tools/design-docs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAElE,MAAM,UAAU,GAAG,KAAK,CAAC;AACzB,MAAM,QAAQ,GAAG,MAAM,CAAC;AACxB,MAAM,KAAK,GAAG,sBAAsB,CAAC;AACrC,MAAM,GAAG,GAAG,oBAAoB,CAAC;AAEjC,kBAAkB;AAClB,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqFnC,CAAC;AAEF,kBAAkB;AAClB,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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IAAI,CAAC,GAAG,CAAC,EAAE;gBAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,0BAA0B,GAAG,EAAE,MAAM,IAAI,SAAS,QAAQ,GAAG,wDAAwD,EAAE,CAAC;YAC9K,MAAM,IAAI,GAAG,cAAc,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;YAC9C,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;YACrD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC;YACpD,MAAM,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC;YAC7C,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,MAAM,EAAE,GAAG,GAAG,OAAO,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,0BAA0B,IAAI,CAAC,MAAM,2CAA2C,MAAM,GAAG,QAAQ,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;aACjJ,CAAC;QACJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,6BAA6B,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;QACrH,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fonts on their computer. Ava can name any font, but GIMP can only use what is
|
|
3
|
+
* installed, and she has no other way to tell: the Logo room loads its web fonts
|
|
4
|
+
* itself, so a font can look present there and be missing here.
|
|
5
|
+
*
|
|
6
|
+
* design_fonts checks. design_install_font installs, for this user only and with
|
|
7
|
+
* no admin rights, and always asks first: the registry prompts for it by name,
|
|
8
|
+
* whatever their permission settings. Only Google Fonts, all of which are openly
|
|
9
|
+
* licensed, so nothing she installs carries a licence for them to worry about.
|
|
10
|
+
* GIMP sees a font in that folder on its next run, with no restart (tested on
|
|
11
|
+
* GIMP 3.2.6 on Windows, 6 Nov 2026).
|
|
12
|
+
*/
|
|
13
|
+
import type { FunctionSchema } from '../providers/types.js';
|
|
14
|
+
import type { Tool, ToolExecutionContext, ToolResult, ToolRiskLevel } from './types.js';
|
|
15
|
+
/** Their per-user font folder. No admin rights needed on any platform. */
|
|
16
|
+
export declare function userFontsFolder(): string;
|
|
17
|
+
/** Every font GIMP can use, or null when GIMP isn't here to ask. */
|
|
18
|
+
export declare function installedFonts(): Promise<string[] | null>;
|
|
19
|
+
/** "Sora" is there if "Sora" or any "Sora Bold" is. */
|
|
20
|
+
export declare function fontIsIn(name: string, fonts: string[]): boolean;
|
|
21
|
+
/** Which of these aren't installed. Empty when GIMP can't be asked. */
|
|
22
|
+
export declare function missingFonts(names: string[]): Promise<string[]>;
|
|
23
|
+
/** The size-and-style sentence she adds to a proposal that names a missing font. */
|
|
24
|
+
export declare function missingFontsNote(missing: string[]): string;
|
|
25
|
+
/** GIMP lists every style. A person chooses a family: "Arial Bold Italic" is Arial. */
|
|
26
|
+
export declare function fontFamilies(fonts: string[]): string[];
|
|
27
|
+
/** For a font dropdown. `installed` is null when GIMP can't be asked. */
|
|
28
|
+
export declare function fontChoices(): Promise<{
|
|
29
|
+
installed: string[] | null;
|
|
30
|
+
google: string[];
|
|
31
|
+
}>;
|
|
32
|
+
/** They clicked Install, which is their yes. Every weight it has, so a thin or
|
|
33
|
+
* heavy design doesn't send them back here. */
|
|
34
|
+
export declare function installFontTheyChose(family: string): Promise<{
|
|
35
|
+
ok: boolean;
|
|
36
|
+
message: string;
|
|
37
|
+
}>;
|
|
38
|
+
export declare class DesignFontsTool implements Tool {
|
|
39
|
+
readonly name = "design_fonts";
|
|
40
|
+
readonly description = "Check which fonts are really installed on their computer.";
|
|
41
|
+
readonly riskLevel: ToolRiskLevel;
|
|
42
|
+
readonly requiresConfirmation = false;
|
|
43
|
+
readonly schema: FunctionSchema;
|
|
44
|
+
execute(args: Record<string, unknown>): Promise<ToolResult>;
|
|
45
|
+
}
|
|
46
|
+
export declare class DesignInstallFontTool implements Tool {
|
|
47
|
+
readonly name = "design_install_font";
|
|
48
|
+
readonly description = "Install an openly licensed font from Google Fonts, for this user, after they approve it.";
|
|
49
|
+
readonly riskLevel: ToolRiskLevel;
|
|
50
|
+
readonly requiresConfirmation = true;
|
|
51
|
+
readonly schema: FunctionSchema;
|
|
52
|
+
execute(args: Record<string, unknown>, context?: ToolExecutionContext): Promise<ToolResult>;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=design-fonts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design-fonts.d.ts","sourceRoot":"","sources":["../../src/tools/design-fonts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAQH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAUxF,0EAA0E;AAC1E,wBAAgB,eAAe,IAAI,MAAM,CAMxC;AAED,oEAAoE;AACpE,wBAAsB,cAAc,IAAI,OAAO,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CA4B/D;AAED,uDAAuD;AACvD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAG/D;AAED,uEAAuE;AACvE,wBAAsB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAKrE;AAED,oFAAoF;AACpF,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAG1D;A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