@dxtmisha/scripts 1.1.5 → 1.1.6
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/library.d.ts +8 -0
- package/dist/library.js +10 -4
- package/package.json +1 -1
package/dist/library.d.ts
CHANGED
|
@@ -224,6 +224,14 @@ export declare class AiAntigravityCli extends AiAntigravityCliLite {
|
|
|
224
224
|
export declare class AiAntigravityCliLite extends AiAbstract<{}> {
|
|
225
225
|
/** Temporary prompt file manager / Менеджер временных файлов промпта */
|
|
226
226
|
protected readonly tmp: ApiTmp;
|
|
227
|
+
/**
|
|
228
|
+
* Resolves the effort level for Antigravity CLI execution.
|
|
229
|
+
*
|
|
230
|
+
* Определяет уровень усилий (effort) для выполнения Antigravity CLI.
|
|
231
|
+
* @param model model identifier / идентификатор модели
|
|
232
|
+
* @returns effort level or undefined / уровень усилий или undefined
|
|
233
|
+
*/
|
|
234
|
+
protected getEffort(model?: string): string | undefined;
|
|
227
235
|
/**
|
|
228
236
|
* Initializes the client instance.
|
|
229
237
|
*
|
package/dist/library.js
CHANGED
|
@@ -26,6 +26,10 @@ var Se = "./ai-tmp", V = class e {
|
|
|
26
26
|
}
|
|
27
27
|
}, H = class extends l {
|
|
28
28
|
tmp = new V();
|
|
29
|
+
getEffort(e) {
|
|
30
|
+
if (this.config?.effort) return this.config.effort;
|
|
31
|
+
if (e && /gemini/i.test(e) && !e.includes("(")) return "high";
|
|
32
|
+
}
|
|
29
33
|
async init() {
|
|
30
34
|
this.ai = {};
|
|
31
35
|
}
|
|
@@ -37,13 +41,15 @@ var Se = "./ai-tmp", V = class e {
|
|
|
37
41
|
}
|
|
38
42
|
async response(e, t) {
|
|
39
43
|
return new Promise((n) => {
|
|
40
|
-
let r = [
|
|
41
|
-
|
|
44
|
+
let r = [...this.toContents(), this.tmp.createFile(t)].join("\n\n##################\n\n"), i = this.getEffort(e), a = [
|
|
45
|
+
"-p",
|
|
46
|
+
`${r} -- Output strictly the code/answer. No preamble, no chatter, no reasoning`,
|
|
42
47
|
...e ? ["--model", e] : [],
|
|
43
|
-
"--
|
|
48
|
+
...i ? ["--effort", i] : [],
|
|
49
|
+
"--dangerously-skip-permissions"
|
|
44
50
|
];
|
|
45
51
|
try {
|
|
46
|
-
L("agy",
|
|
52
|
+
L("agy", a, {
|
|
47
53
|
encoding: "utf8",
|
|
48
54
|
env: { ...process.env }
|
|
49
55
|
}, (e, t, r) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxtmisha/scripts",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "CLI tools, AI integration scripts, and automation utilities for DXT UI — automated component scaffolding, Figma layout generation, library packaging, documentation building, screenshot captures, and AI prompt processing.",
|
|
7
7
|
"keywords": [
|