@poco-ai/agentero-dsh-host 0.0.0-stage → 0.1.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/lib/bookmarks-write.d.ts +24 -0
- package/lib/bookmarks-write.js +181 -0
- package/lib/bookmarks-write.js.map +1 -0
- package/lib/catalog.d.ts +28 -0
- package/lib/catalog.js +58 -0
- package/lib/catalog.js.map +1 -0
- package/lib/cli-run.d.ts +15 -0
- package/lib/cli-run.js +102 -0
- package/lib/cli-run.js.map +1 -0
- package/lib/client/index.d.ts +71 -0
- package/lib/client/settings-model.d.ts +28 -0
- package/lib/client/settings.d.ts +27 -0
- package/lib/client/ui/button.d.ts +10 -0
- package/lib/client/ui/input.d.ts +2 -0
- package/lib/client/utils.d.ts +2 -0
- package/lib/client.js +4071 -0
- package/lib/index.d.ts +55 -0
- package/lib/index.js +1103 -0
- package/lib/index.js.map +1 -0
- package/lib/marks-store.d.ts +80 -0
- package/lib/marks-store.js +393 -0
- package/lib/marks-store.js.map +1 -0
- package/lib/notes-files.d.ts +47 -0
- package/lib/notes-files.js +427 -0
- package/lib/notes-files.js.map +1 -0
- package/lib/pdf-file.d.ts +23 -0
- package/lib/pdf-file.js +84 -0
- package/lib/pdf-file.js.map +1 -0
- package/lib/recommend.d.ts +61 -0
- package/lib/recommend.js +864 -0
- package/lib/recommend.js.map +1 -0
- package/lib/tools.d.ts +8 -0
- package/lib/tools.js +204 -0
- package/lib/tools.js.map +1 -0
- package/lib/translate.d.ts +70 -0
- package/lib/translate.js +80 -0
- package/lib/translate.js.map +1 -0
- package/lib/translation/batches.d.ts +21 -0
- package/lib/translation/batches.js +88 -0
- package/lib/translation/batches.js.map +1 -0
- package/lib/translation/chunks.d.ts +2 -0
- package/lib/translation/chunks.js +36 -0
- package/lib/translation/chunks.js.map +1 -0
- package/lib/translation/mask.d.ts +22 -0
- package/lib/translation/mask.js +69 -0
- package/lib/translation/mask.js.map +1 -0
- package/lib/translation/pipeline.d.ts +3 -0
- package/lib/translation/pipeline.js +119 -0
- package/lib/translation/pipeline.js.map +1 -0
- package/lib/translation/preserved-links.d.ts +26 -0
- package/lib/translation/preserved-links.js +127 -0
- package/lib/translation/preserved-links.js.map +1 -0
- package/lib/translation/prompt.d.ts +99 -0
- package/lib/translation/prompt.js +224 -0
- package/lib/translation/prompt.js.map +1 -0
- package/lib/translation/retry.d.ts +3 -0
- package/lib/translation/retry.js +30 -0
- package/lib/translation/retry.js.map +1 -0
- package/lib/translation/sentences.d.ts +5 -0
- package/lib/translation/sentences.js +77 -0
- package/lib/translation/sentences.js.map +1 -0
- package/lib/vault.d.ts +21 -0
- package/lib/vault.js +69 -0
- package/lib/vault.js.map +1 -0
- package/package.json +44 -3
- package/src/translation/MOTIF-LICENSE.txt +21 -0
- package/README.md +0 -3
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { Context, Volatile } from '@deepseek-ai/cordis';
|
|
2
|
+
import z from '@deepseek-ai/schemastery';
|
|
3
|
+
/** Cordis plugin name. The loader row id matches this name. */
|
|
4
|
+
export declare const name = "agentero-host";
|
|
5
|
+
/** HTTP routes are registered on the composition web server. `agents` cites into a session. `tools` exposes the vault to the model. */
|
|
6
|
+
export declare const inject: string[];
|
|
7
|
+
/**
|
|
8
|
+
* Optional host settings. Omitted fields use the defaults below. The three
|
|
9
|
+
* live fields arrive as references so the Plugins page can edit them without
|
|
10
|
+
* remounting this plugin.
|
|
11
|
+
*/
|
|
12
|
+
export interface Config {
|
|
13
|
+
/** Vault directory. Empty until a later step opens it. */
|
|
14
|
+
vault: Volatile<string>;
|
|
15
|
+
/** Executable name used to reach the Agentero CLI. */
|
|
16
|
+
agenteroBin: Volatile<string>;
|
|
17
|
+
/** Agentero desktop settings file. Empty resolves `$XDG_CONFIG_HOME/agentero/settings.json`. */
|
|
18
|
+
agenteroSettings: string;
|
|
19
|
+
/** Last selected knowledge bases in this DSH profile. */
|
|
20
|
+
recentVaults: Volatile<string[]>;
|
|
21
|
+
/** Optional registered Harness route; both fields must be supplied together. */
|
|
22
|
+
translationProvider: string;
|
|
23
|
+
translationModel: string;
|
|
24
|
+
translationSystemPrompt: string;
|
|
25
|
+
translationUserPrompt: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const Config: z<Schemastery.ObjectS<NoInfer<{
|
|
28
|
+
vault: z<string, string, "volatile-defined">;
|
|
29
|
+
agenteroBin: z<string, string, "volatile-defined">;
|
|
30
|
+
agenteroSettings: z<string, string, "defined">;
|
|
31
|
+
recentVaults: z<NoInfer<string[]>, NoInfer<string[]>, "volatile-defined">;
|
|
32
|
+
translationProvider: z<string, string, "defined">;
|
|
33
|
+
translationModel: z<string, string, "defined">;
|
|
34
|
+
translationSystemPrompt: z<string, string, "defined">;
|
|
35
|
+
translationUserPrompt: z<string, string, "defined">;
|
|
36
|
+
}>>, Schemastery.ObjectT<NoInfer<{
|
|
37
|
+
vault: z<string, string, "volatile-defined">;
|
|
38
|
+
agenteroBin: z<string, string, "volatile-defined">;
|
|
39
|
+
agenteroSettings: z<string, string, "defined">;
|
|
40
|
+
recentVaults: z<NoInfer<string[]>, NoInfer<string[]>, "volatile-defined">;
|
|
41
|
+
translationProvider: z<string, string, "defined">;
|
|
42
|
+
translationModel: z<string, string, "defined">;
|
|
43
|
+
translationSystemPrompt: z<string, string, "defined">;
|
|
44
|
+
translationUserPrompt: z<string, string, "defined">;
|
|
45
|
+
}>>, "plain">;
|
|
46
|
+
/**
|
|
47
|
+
* Read `vault` and `agenteroBin`. Serve paper list, PDF bytes, marks, and
|
|
48
|
+
* note files under `/agentero/api`. `POST /agentero/api/context` queues a
|
|
49
|
+
* citation on the named session without waking its driver.
|
|
50
|
+
* `vault`, `agenteroBin`, and `recentVaults` are volatile, so the Plugins page
|
|
51
|
+
* writes them through DSH's settings service while this instance keeps running.
|
|
52
|
+
* @param ctx - Host plugin context.
|
|
53
|
+
* @param config - Loader config with live references. Missing fields use the defaults.
|
|
54
|
+
*/
|
|
55
|
+
export declare function apply(ctx: Context, config?: Config): void;
|