@bolloon/bolloon-agent 0.5.5 → 0.6.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/dist/agents/parse-tool-call.js +6 -1
- package/dist/agents/pi-sdk-session-factory.js +36 -3
- package/dist/agents/pi-sdk.js +349 -199
- package/dist/agents/run-context.js +20 -0
- package/dist/agents/runner-resolver.js +2 -1
- package/dist/electron-build/agents/parse-tool-call.js +6 -1
- package/dist/electron-build/agents/parse-tool-call.js.map +1 -1
- package/dist/electron-build/agents/pi-sdk-session-factory.js +36 -3
- package/dist/electron-build/agents/pi-sdk-session-factory.js.map +1 -1
- package/dist/electron-build/agents/pi-sdk-types.js.map +1 -1
- package/dist/electron-build/agents/pi-sdk.js +349 -199
- package/dist/electron-build/agents/pi-sdk.js.map +1 -1
- package/dist/electron-build/agents/run-context.js +24 -0
- package/dist/electron-build/agents/run-context.js.map +1 -0
- package/dist/electron-build/agents/runner-resolver.js +2 -1
- package/dist/electron-build/agents/runner-resolver.js.map +1 -1
- package/dist/electron-build/kernel/channel-actor.js +314 -0
- package/dist/electron-build/kernel/channel-actor.js.map +1 -0
- package/dist/index.js +24 -19
- package/dist/kernel/channel-actor.js +297 -0
- package/dist/kernel/control.js +95 -0
- package/dist/kernel/gate-scan.js +1036 -0
- package/dist/kernel/model-runtime.js +472 -0
- package/dist/kernel/plan-channel-actor.js +298 -0
- package/dist/kernel/plan-constraint.js +165 -0
- package/dist/kernel/plan-deletion.js +32 -0
- package/dist/kernel/plan-modelruntime.js +60 -0
- package/dist/kernel/plan-runcontext.js +163 -0
- package/dist/kernel/plan.js +153 -0
- package/dist/kernel/roster.js +242 -0
- package/dist/web/bolloon-web.json +3 -3
- package/dist/web/client.js +3 -2
- package/dist/web/routes-tasks.js +5 -1
- package/dist/web/server.js +58 -18
- package/dist/web/sw.js +1 -1
- package/dist/web/ui/message-renderer.js +473 -29
- package/dist/web/ui/step-timeline.js +13 -12
- package/package.json +1 -1
- package/scripts/build-web.ts +74 -1
- package/dist/constraint-runtime/_archive_helper.d.ts +0 -1
- package/dist/constraint-runtime/_archive_helper.js +0 -9
- package/dist/constraint-runtime/assistant/index.d.ts +0 -11
- package/dist/constraint-runtime/assistant/index.js +0 -12
- package/dist/constraint-runtime/bootstrap/index.d.ts +0 -11
- package/dist/constraint-runtime/bootstrap/index.js +0 -12
- package/dist/constraint-runtime/bridge/index.d.ts +0 -11
- package/dist/constraint-runtime/bridge/index.js +0 -12
- package/dist/constraint-runtime/buddy/index.d.ts +0 -11
- package/dist/constraint-runtime/buddy/index.js +0 -12
- package/dist/constraint-runtime/cli/index.d.ts +0 -11
- package/dist/constraint-runtime/cli/index.js +0 -12
- package/dist/constraint-runtime/components/index.d.ts +0 -11
- package/dist/constraint-runtime/components/index.js +0 -12
- package/dist/constraint-runtime/constants/index.d.ts +0 -11
- package/dist/constraint-runtime/constants/index.js +0 -12
- package/dist/constraint-runtime/coordinator/index.d.ts +0 -11
- package/dist/constraint-runtime/coordinator/index.js +0 -12
- package/dist/constraint-runtime/cost_hook.d.ts +0 -2
- package/dist/constraint-runtime/cost_hook.js +0 -4
- package/dist/constraint-runtime/entrypoints/index.d.ts +0 -11
- package/dist/constraint-runtime/entrypoints/index.js +0 -12
- package/dist/constraint-runtime/execution_registry.d.ts +0 -20
- package/dist/constraint-runtime/execution_registry.js +0 -44
- package/dist/constraint-runtime/hooks/index.d.ts +0 -11
- package/dist/constraint-runtime/hooks/index.js +0 -12
- package/dist/constraint-runtime/ink.d.ts +0 -1
- package/dist/constraint-runtime/ink.js +0 -4
- package/dist/constraint-runtime/keybindings/index.d.ts +0 -11
- package/dist/constraint-runtime/keybindings/index.js +0 -12
- package/dist/constraint-runtime/memdir/index.d.ts +0 -11
- package/dist/constraint-runtime/memdir/index.js +0 -12
- package/dist/constraint-runtime/migrations/index.d.ts +0 -11
- package/dist/constraint-runtime/migrations/index.js +0 -12
- package/dist/constraint-runtime/moreright/index.d.ts +0 -11
- package/dist/constraint-runtime/moreright/index.js +0 -12
- package/dist/constraint-runtime/native_ts/index.d.ts +0 -11
- package/dist/constraint-runtime/native_ts/index.js +0 -12
- package/dist/constraint-runtime/output_styles/index.d.ts +0 -11
- package/dist/constraint-runtime/output_styles/index.js +0 -12
- package/dist/constraint-runtime/plugins/index.d.ts +0 -11
- package/dist/constraint-runtime/plugins/index.js +0 -12
- package/dist/constraint-runtime/port_manifest.d.ts +0 -7
- package/dist/constraint-runtime/port_manifest.js +0 -11
- package/dist/constraint-runtime/query.d.ts +0 -6
- package/dist/constraint-runtime/query.js +0 -1
- package/dist/constraint-runtime/remote/index.d.ts +0 -11
- package/dist/constraint-runtime/remote/index.js +0 -12
- package/dist/constraint-runtime/schemas/index.d.ts +0 -11
- package/dist/constraint-runtime/schemas/index.js +0 -12
- package/dist/constraint-runtime/screens/index.d.ts +0 -11
- package/dist/constraint-runtime/screens/index.js +0 -12
- package/dist/constraint-runtime/server/index.d.ts +0 -11
- package/dist/constraint-runtime/server/index.js +0 -12
- package/dist/constraint-runtime/services/index.d.ts +0 -11
- package/dist/constraint-runtime/services/index.js +0 -12
- package/dist/constraint-runtime/state/index.d.ts +0 -11
- package/dist/constraint-runtime/state/index.js +0 -12
- package/dist/constraint-runtime/system_init.d.ts +0 -1
- package/dist/constraint-runtime/system_init.js +0 -20
- package/dist/constraint-runtime/types/index.d.ts +0 -11
- package/dist/constraint-runtime/types/index.js +0 -12
- package/dist/constraint-runtime/upstream_proxy/index.d.ts +0 -11
- package/dist/constraint-runtime/upstream_proxy/index.js +0 -12
- package/dist/constraint-runtime/utils/index.d.ts +0 -11
- package/dist/constraint-runtime/utils/index.js +0 -12
- package/dist/constraint-runtime/vim/index.d.ts +0 -11
- package/dist/constraint-runtime/vim/index.js +0 -12
- package/dist/constraint-runtime/voice/index.d.ts +0 -11
- package/dist/constraint-runtime/voice/index.js +0 -12
package/scripts/build-web.ts
CHANGED
|
@@ -53,6 +53,11 @@ async function main() {
|
|
|
53
53
|
|
|
54
54
|
// 2026-06-15: 编译 message-renderer.ts (对话显示 UI 模块)
|
|
55
55
|
// esbuild 编译 .ts → dist/web/ui/message-renderer.js (ESM, 浏览器侧 <script type="module"> 加载)
|
|
56
|
+
// 2026-10-02: 开 bundle:true — 该模块 import "../../agents/chat-segmenter.js" (跨树!)。
|
|
57
|
+
// 桌面端靠 dist/agents/** 恰好也被服务而侥幸能跑, 但**手机端只打包 dist/web/**
|
|
58
|
+
// ⇒ 手机上 404 ⇒ 模块加载失败是静默的 ⇒ window.MR 不挂载 ⇒ 界面不渲染 (真事故)。
|
|
59
|
+
// 把跨树依赖内联进来 = 这个文件自洽 (dist/web 内部可解析), 手机/桌面同一个产物。
|
|
60
|
+
// step-timeline.js 必须 external: 它由 index.html 单独加载, 内联会变成**两份模块状态**。
|
|
56
61
|
console.log('[build-web] 编译 message-renderer.ts...');
|
|
57
62
|
await fs.mkdir(path.join(DIST_WEB, 'ui'), { recursive: true });
|
|
58
63
|
await esbuild.build({
|
|
@@ -62,9 +67,13 @@ async function main() {
|
|
|
62
67
|
target: 'es2022',
|
|
63
68
|
platform: 'browser',
|
|
64
69
|
minify: false,
|
|
70
|
+
bundle: true,
|
|
71
|
+
external: ['./step-timeline.js'],
|
|
72
|
+
charset: 'utf8',
|
|
65
73
|
});
|
|
66
74
|
|
|
67
75
|
// 2026-06-15: 编译 step-timeline.ts (气泡内 4 状态步骤条)
|
|
76
|
+
// 2026-10-02: bundle:true 同上 (自洽); 它目前不 import 任何跨树模块, 但开着可防将来又踩。
|
|
68
77
|
console.log('[build-web] 编译 step-timeline.ts...');
|
|
69
78
|
await esbuild.build({
|
|
70
79
|
entryPoints: [path.join(ROOT, 'src/web/ui/step-timeline.ts')],
|
|
@@ -73,6 +82,8 @@ async function main() {
|
|
|
73
82
|
target: 'es2022',
|
|
74
83
|
platform: 'browser',
|
|
75
84
|
minify: false,
|
|
85
|
+
bundle: true,
|
|
86
|
+
charset: 'utf8',
|
|
76
87
|
});
|
|
77
88
|
|
|
78
89
|
// 编译主客户端入口 (classic script, 非 module; 由 index.html 以 /client.js 加载)
|
|
@@ -218,4 +229,66 @@ async function main() {
|
|
|
218
229
|
console.log('[build-web] 完成!');
|
|
219
230
|
}
|
|
220
231
|
|
|
221
|
-
|
|
232
|
+
/**
|
|
233
|
+
* 自洽性门 (2026-10-02): **浏览器真会取的那些文件**里, 任何相对 import 都必须能在 dist/web 内解析。
|
|
234
|
+
*
|
|
235
|
+
* 为什么: 手机端 web 层只打包 `dist/web/**` (Capacitor webDir + scripts/build-mobile-web-bundle.ts),
|
|
236
|
+
* 跨树引用 (如 ui/message-renderer.js → ../../agents/chat-segmenter.js) 在桌面端因为 dist/agents/**
|
|
237
|
+
* 恰好也被服务而侥幸能跑, 到手机上就是 404 —— **模块加载失败是静默的** (整条渲染链变 no-op, 界面空白)。
|
|
238
|
+
* 真事故: 手机端/桌面端回复不渲染的根因之一就是这个跨树引用 (与 process.env 那条并列)。
|
|
239
|
+
*
|
|
240
|
+
* 范围 = 从 HTML 入口出发的可达闭包 (dist/web/server.js 等 build:main 的**服务端**产物不在其中,
|
|
241
|
+
* 它们引用 ../agents/** 是合法的 Node 侧依赖)。
|
|
242
|
+
*/
|
|
243
|
+
async function assertSelfContained(distWeb: string): Promise<void> {
|
|
244
|
+
const htmls = ['index.html', 'mobile.html', 'explorer.html', 'api-config.html'];
|
|
245
|
+
const queue: string[] = [];
|
|
246
|
+
for (const h of htmls) {
|
|
247
|
+
const p = path.join(distWeb, h);
|
|
248
|
+
try { await fs.access(p); } catch { continue; }
|
|
249
|
+
queue.push(p);
|
|
250
|
+
}
|
|
251
|
+
const seen = new Set<string>();
|
|
252
|
+
const missing: string[] = [];
|
|
253
|
+
while (queue.length > 0) {
|
|
254
|
+
const abs = queue.shift()!;
|
|
255
|
+
if (seen.has(abs)) continue;
|
|
256
|
+
seen.add(abs);
|
|
257
|
+
const src = await fs.readFile(abs, 'utf8').catch(() => '');
|
|
258
|
+
const specs: string[] = [];
|
|
259
|
+
if (abs.endsWith('.html')) {
|
|
260
|
+
for (const m of src.matchAll(/<script[^>]*\ssrc="([^"]+)"/g)) specs.push(m[1]);
|
|
261
|
+
for (const m of src.matchAll(/<link[^>]*\shref="([^"]+)"/g)) specs.push(m[1]);
|
|
262
|
+
} else {
|
|
263
|
+
for (const m of src.matchAll(/(?:from|import)\s*\(?\s*["']([^"']+)["']/g)) specs.push(m[1]);
|
|
264
|
+
}
|
|
265
|
+
for (const spec of specs) {
|
|
266
|
+
if (!spec.startsWith('.')) continue; // CDN / 绝对路径不在本门范围
|
|
267
|
+
const clean = spec.split('?')[0];
|
|
268
|
+
// HTML 的 src/href 不要求扩展名; JS 的 ESM 说明符**必须**带扩展名 (浏览器规范),
|
|
269
|
+
// 不带扩展名的一律是代码里的字符串/示例文本 (如 a2ui 文档串 './MyComponent'), 不是真 import。
|
|
270
|
+
if (!abs.endsWith('.html') && !/\.(js|mjs|json|css)$/.test(clean)) continue;
|
|
271
|
+
const target = path.resolve(path.dirname(abs), clean);
|
|
272
|
+
const rel = path.relative(distWeb, abs);
|
|
273
|
+
if (!(target === distWeb || target.startsWith(distWeb + path.sep))) {
|
|
274
|
+
missing.push(`${rel} → ${spec} ⚠ 逃出 dist/web (手机上必 404)`);
|
|
275
|
+
continue;
|
|
276
|
+
}
|
|
277
|
+
const exists = await fs.access(target).then(() => true).catch(() => false);
|
|
278
|
+
if (!exists) { missing.push(`${rel} → ${spec}`); continue; }
|
|
279
|
+
if (/\.(js|mjs)$/.test(target)) queue.push(target);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
if (missing.length > 0) {
|
|
283
|
+
console.error(`[build-web] ✗ 浏览器资源不自洽 —— ${missing.length} 处相对引用在 dist/web 里找不到:`);
|
|
284
|
+
for (const b of missing) console.error(' ' + b);
|
|
285
|
+
console.error('[build-web] 这些引用在手机端 (只打包 dist/web/**) 会 404, 且**模块加载失败是静默的**');
|
|
286
|
+
console.error('[build-web] (整条渲染链变 no-op, 界面空白)。修法: 该入口 esbuild 开 bundle:true 内联依赖。');
|
|
287
|
+
process.exit(1);
|
|
288
|
+
}
|
|
289
|
+
console.log(`[build-web] ✓ 自洽性: 浏览器可达 ${seen.size} 个文件, 所有相对引用都在 dist/web 内`);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
main().then(async () => {
|
|
293
|
+
await assertSelfContained(DIST_WEB);
|
|
294
|
+
}).catch((e) => { console.error(e); process.exit(1); });
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function loadArchiveMetadata(packageName: string): Record<string, unknown>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as fs from 'fs';
|
|
2
|
-
import * as path from 'path';
|
|
3
|
-
import { fileURLToPath } from 'url';
|
|
4
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
5
|
-
const __dirname = path.dirname(__filename);
|
|
6
|
-
export function loadArchiveMetadata(packageName) {
|
|
7
|
-
const snapshotPath = path.join(__dirname, 'reference_data', 'subsystems', `${packageName}.json`);
|
|
8
|
-
return JSON.parse(fs.readFileSync(snapshotPath, 'utf-8'));
|
|
9
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const ARCHIVE_NAME: string;
|
|
2
|
-
export declare const MODULE_COUNT: number;
|
|
3
|
-
export declare const SAMPLE_FILES: string[];
|
|
4
|
-
export declare const PORTING_NOTE: string;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
ARCHIVE_NAME: string;
|
|
7
|
-
MODULE_COUNT: number;
|
|
8
|
-
PORTING_NOTE: string;
|
|
9
|
-
SAMPLE_FILES: string[];
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('assistant');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const ARCHIVE_NAME: string;
|
|
2
|
-
export declare const MODULE_COUNT: number;
|
|
3
|
-
export declare const SAMPLE_FILES: string[];
|
|
4
|
-
export declare const PORTING_NOTE: string;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
ARCHIVE_NAME: string;
|
|
7
|
-
MODULE_COUNT: number;
|
|
8
|
-
PORTING_NOTE: string;
|
|
9
|
-
SAMPLE_FILES: string[];
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('bootstrap');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const ARCHIVE_NAME: string;
|
|
2
|
-
export declare const MODULE_COUNT: number;
|
|
3
|
-
export declare const SAMPLE_FILES: string[];
|
|
4
|
-
export declare const PORTING_NOTE: string;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
ARCHIVE_NAME: string;
|
|
7
|
-
MODULE_COUNT: number;
|
|
8
|
-
PORTING_NOTE: string;
|
|
9
|
-
SAMPLE_FILES: string[];
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('bridge');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const ARCHIVE_NAME: string;
|
|
2
|
-
export declare const MODULE_COUNT: number;
|
|
3
|
-
export declare const SAMPLE_FILES: string[];
|
|
4
|
-
export declare const PORTING_NOTE: string;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
ARCHIVE_NAME: string;
|
|
7
|
-
MODULE_COUNT: number;
|
|
8
|
-
PORTING_NOTE: string;
|
|
9
|
-
SAMPLE_FILES: string[];
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('buddy');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const ARCHIVE_NAME: string;
|
|
2
|
-
export declare const MODULE_COUNT: number;
|
|
3
|
-
export declare const SAMPLE_FILES: string[];
|
|
4
|
-
export declare const PORTING_NOTE: string;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
ARCHIVE_NAME: string;
|
|
7
|
-
MODULE_COUNT: number;
|
|
8
|
-
PORTING_NOTE: string;
|
|
9
|
-
SAMPLE_FILES: string[];
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('cli');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const ARCHIVE_NAME: string;
|
|
2
|
-
export declare const MODULE_COUNT: number;
|
|
3
|
-
export declare const SAMPLE_FILES: string[];
|
|
4
|
-
export declare const PORTING_NOTE: string;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
ARCHIVE_NAME: string;
|
|
7
|
-
MODULE_COUNT: number;
|
|
8
|
-
PORTING_NOTE: string;
|
|
9
|
-
SAMPLE_FILES: string[];
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('components');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const ARCHIVE_NAME: string;
|
|
2
|
-
export declare const MODULE_COUNT: number;
|
|
3
|
-
export declare const SAMPLE_FILES: string[];
|
|
4
|
-
export declare const PORTING_NOTE: string;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
ARCHIVE_NAME: string;
|
|
7
|
-
MODULE_COUNT: number;
|
|
8
|
-
PORTING_NOTE: string;
|
|
9
|
-
SAMPLE_FILES: string[];
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('constants');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const ARCHIVE_NAME: string;
|
|
2
|
-
export declare const MODULE_COUNT: number;
|
|
3
|
-
export declare const SAMPLE_FILES: string[];
|
|
4
|
-
export declare const PORTING_NOTE: string;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
ARCHIVE_NAME: string;
|
|
7
|
-
MODULE_COUNT: number;
|
|
8
|
-
PORTING_NOTE: string;
|
|
9
|
-
SAMPLE_FILES: string[];
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('coordinator');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const ARCHIVE_NAME: string;
|
|
2
|
-
export declare const MODULE_COUNT: number;
|
|
3
|
-
export declare const SAMPLE_FILES: string[];
|
|
4
|
-
export declare const PORTING_NOTE: string;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
ARCHIVE_NAME: string;
|
|
7
|
-
MODULE_COUNT: number;
|
|
8
|
-
PORTING_NOTE: string;
|
|
9
|
-
SAMPLE_FILES: string[];
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('entrypoints');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare class MirroredCommand {
|
|
2
|
-
name: string;
|
|
3
|
-
sourceHint: string;
|
|
4
|
-
constructor(name: string, sourceHint: string);
|
|
5
|
-
execute(prompt: string): string;
|
|
6
|
-
}
|
|
7
|
-
export declare class MirroredTool {
|
|
8
|
-
name: string;
|
|
9
|
-
sourceHint: string;
|
|
10
|
-
constructor(name: string, sourceHint: string);
|
|
11
|
-
execute(payload: string): Promise<string>;
|
|
12
|
-
}
|
|
13
|
-
export declare class ExecutionRegistry {
|
|
14
|
-
commands: MirroredCommand[];
|
|
15
|
-
tools: MirroredTool[];
|
|
16
|
-
constructor(commands: MirroredCommand[], tools: MirroredTool[]);
|
|
17
|
-
command(name: string): MirroredCommand | undefined;
|
|
18
|
-
tool(name: string): MirroredTool | undefined;
|
|
19
|
-
}
|
|
20
|
-
export declare function buildExecutionRegistry(): ExecutionRegistry;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { PORTED_COMMANDS, executeCommand } from './commands.js';
|
|
2
|
-
import { PORTED_TOOLS, executeTool } from './tools.js';
|
|
3
|
-
export class MirroredCommand {
|
|
4
|
-
name;
|
|
5
|
-
sourceHint;
|
|
6
|
-
constructor(name, sourceHint) {
|
|
7
|
-
this.name = name;
|
|
8
|
-
this.sourceHint = sourceHint;
|
|
9
|
-
}
|
|
10
|
-
execute(prompt) {
|
|
11
|
-
return executeCommand(this.name, prompt).message;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export class MirroredTool {
|
|
15
|
-
name;
|
|
16
|
-
sourceHint;
|
|
17
|
-
constructor(name, sourceHint) {
|
|
18
|
-
this.name = name;
|
|
19
|
-
this.sourceHint = sourceHint;
|
|
20
|
-
}
|
|
21
|
-
async execute(payload) {
|
|
22
|
-
const result = await executeTool(this.name, payload);
|
|
23
|
-
return result.message;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export class ExecutionRegistry {
|
|
27
|
-
commands;
|
|
28
|
-
tools;
|
|
29
|
-
constructor(commands, tools) {
|
|
30
|
-
this.commands = commands;
|
|
31
|
-
this.tools = tools;
|
|
32
|
-
}
|
|
33
|
-
command(name) {
|
|
34
|
-
const lowered = name.toLowerCase();
|
|
35
|
-
return this.commands.find(c => c.name.toLowerCase() === lowered);
|
|
36
|
-
}
|
|
37
|
-
tool(name) {
|
|
38
|
-
const lowered = name.toLowerCase();
|
|
39
|
-
return this.tools.find(t => t.name.toLowerCase() === lowered);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
export function buildExecutionRegistry() {
|
|
43
|
-
return new ExecutionRegistry(PORTED_COMMANDS.map(m => new MirroredCommand(m.name, m.sourceHint)), PORTED_TOOLS.map(m => new MirroredTool(m.name, m.sourceHint)));
|
|
44
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const ARCHIVE_NAME: string;
|
|
2
|
-
export declare const MODULE_COUNT: number;
|
|
3
|
-
export declare const SAMPLE_FILES: string[];
|
|
4
|
-
export declare const PORTING_NOTE: string;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
ARCHIVE_NAME: string;
|
|
7
|
-
MODULE_COUNT: number;
|
|
8
|
-
PORTING_NOTE: string;
|
|
9
|
-
SAMPLE_FILES: string[];
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('hooks');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function renderMarkdownPanel(text: string): string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const ARCHIVE_NAME: string;
|
|
2
|
-
export declare const MODULE_COUNT: number;
|
|
3
|
-
export declare const SAMPLE_FILES: string[];
|
|
4
|
-
export declare const PORTING_NOTE: string;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
ARCHIVE_NAME: string;
|
|
7
|
-
MODULE_COUNT: number;
|
|
8
|
-
PORTING_NOTE: string;
|
|
9
|
-
SAMPLE_FILES: string[];
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('keybindings');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const ARCHIVE_NAME: string;
|
|
2
|
-
export declare const MODULE_COUNT: number;
|
|
3
|
-
export declare const SAMPLE_FILES: string[];
|
|
4
|
-
export declare const PORTING_NOTE: string;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
ARCHIVE_NAME: string;
|
|
7
|
-
MODULE_COUNT: number;
|
|
8
|
-
PORTING_NOTE: string;
|
|
9
|
-
SAMPLE_FILES: string[];
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('memdir');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const ARCHIVE_NAME: string;
|
|
2
|
-
export declare const MODULE_COUNT: number;
|
|
3
|
-
export declare const SAMPLE_FILES: string[];
|
|
4
|
-
export declare const PORTING_NOTE: string;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
ARCHIVE_NAME: string;
|
|
7
|
-
MODULE_COUNT: number;
|
|
8
|
-
PORTING_NOTE: string;
|
|
9
|
-
SAMPLE_FILES: string[];
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('migrations');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const ARCHIVE_NAME: string;
|
|
2
|
-
export declare const MODULE_COUNT: number;
|
|
3
|
-
export declare const SAMPLE_FILES: string[];
|
|
4
|
-
export declare const PORTING_NOTE: string;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
ARCHIVE_NAME: string;
|
|
7
|
-
MODULE_COUNT: number;
|
|
8
|
-
PORTING_NOTE: string;
|
|
9
|
-
SAMPLE_FILES: string[];
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('moreright');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const ARCHIVE_NAME: string;
|
|
2
|
-
export declare const MODULE_COUNT: number;
|
|
3
|
-
export declare const SAMPLE_FILES: string[];
|
|
4
|
-
export declare const PORTING_NOTE: string;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
ARCHIVE_NAME: string;
|
|
7
|
-
MODULE_COUNT: number;
|
|
8
|
-
PORTING_NOTE: string;
|
|
9
|
-
SAMPLE_FILES: string[];
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('native_ts');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const ARCHIVE_NAME: string;
|
|
2
|
-
export declare const MODULE_COUNT: number;
|
|
3
|
-
export declare const SAMPLE_FILES: string[];
|
|
4
|
-
export declare const PORTING_NOTE: string;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
ARCHIVE_NAME: string;
|
|
7
|
-
MODULE_COUNT: number;
|
|
8
|
-
PORTING_NOTE: string;
|
|
9
|
-
SAMPLE_FILES: string[];
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('outputstyles');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const ARCHIVE_NAME: string;
|
|
2
|
-
export declare const MODULE_COUNT: number;
|
|
3
|
-
export declare const SAMPLE_FILES: string[];
|
|
4
|
-
export declare const PORTING_NOTE: string;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
ARCHIVE_NAME: string;
|
|
7
|
-
MODULE_COUNT: number;
|
|
8
|
-
PORTING_NOTE: string;
|
|
9
|
-
SAMPLE_FILES: string[];
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|