@j-o-r/hello-dave 0.0.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/LICENSE +73 -0
- package/README.md +207 -0
- package/bin/hdAsk.js +103 -0
- package/bin/hdClear.js +13 -0
- package/bin/hdCode.js +110 -0
- package/bin/hdConnect.js +230 -0
- package/bin/hdInspect.js +28 -0
- package/bin/hdNpm.js +114 -0
- package/bin/hdPrompt.js +108 -0
- package/examples/claude-test.js +89 -0
- package/examples/claude.js +143 -0
- package/examples/gpt.js +127 -0
- package/examples/gpt_code.js +125 -0
- package/examples/gpt_note_keeping.js +117 -0
- package/examples/grok.js +119 -0
- package/examples/grok_code.js +114 -0
- package/examples/grok_note_keeping.js +111 -0
- package/lib/API/anthropic.com/text.js +402 -0
- package/lib/API/brave.com/search.js +239 -0
- package/lib/API/openai.com/README.md +1 -0
- package/lib/API/openai.com/reponses/MESSAGES.md +69 -0
- package/lib/API/openai.com/reponses/text.js +416 -0
- package/lib/API/x.ai/text.js +415 -0
- package/lib/AgentClient.js +197 -0
- package/lib/AgentManager.js +144 -0
- package/lib/AgentServer.js +336 -0
- package/lib/Cli.js +256 -0
- package/lib/Prompt.js +728 -0
- package/lib/Session.js +231 -0
- package/lib/ToolSet.js +186 -0
- package/lib/fafs.js +93 -0
- package/lib/genericToolset.js +170 -0
- package/lib/index.js +34 -0
- package/lib/promptHelpers.js +132 -0
- package/lib/testToolset.js +42 -0
- package/module.md +189 -0
- package/package.json +49 -0
- package/types/API/anthropic.com/text.d.ts +207 -0
- package/types/API/brave.com/search.d.ts +156 -0
- package/types/API/openai.com/reponses/text.d.ts +225 -0
- package/types/API/x.ai/text.d.ts +286 -0
- package/types/AgentClient.d.ts +70 -0
- package/types/AgentManager.d.ts +112 -0
- package/types/AgentServer.d.ts +38 -0
- package/types/Cli.d.ts +52 -0
- package/types/Prompt.d.ts +298 -0
- package/types/Session.d.ts +31 -0
- package/types/ToolSet.d.ts +95 -0
- package/types/fafs.d.ts +47 -0
- package/types/genericToolset.d.ts +3 -0
- package/types/index.d.ts +23 -0
- package/types/promptHelpers.d.ts +1 -0
- package/types/testToolset.d.ts +3 -0
package/types/fafs.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type EnvironmentInfo = {
|
|
2
|
+
/**
|
|
3
|
+
* - User's name
|
|
4
|
+
*/
|
|
5
|
+
name: string;
|
|
6
|
+
/**
|
|
7
|
+
* - Linux OS / PROC
|
|
8
|
+
*/
|
|
9
|
+
system: string;
|
|
10
|
+
city: string;
|
|
11
|
+
region: string;
|
|
12
|
+
country: string;
|
|
13
|
+
timezone: string;
|
|
14
|
+
external_ip: string;
|
|
15
|
+
/**
|
|
16
|
+
* - current working folder
|
|
17
|
+
*/
|
|
18
|
+
cwd: string;
|
|
19
|
+
};
|
|
20
|
+
import { jsType } from '@j-o-r/sh';
|
|
21
|
+
export namespace GLOBAL {
|
|
22
|
+
export let max_recursive_requests: number;
|
|
23
|
+
export { APP_CACHE as default_cache };
|
|
24
|
+
export let secret: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Gather information about this environment
|
|
28
|
+
* @returns {Promise<EnvironmentInfo>}
|
|
29
|
+
*/
|
|
30
|
+
export function env(): Promise<EnvironmentInfo>;
|
|
31
|
+
/**
|
|
32
|
+
* @typedef {Object} EnvironmentInfo
|
|
33
|
+
* @property {string} name - User's name
|
|
34
|
+
* @property {string} system - Linux OS / PROC
|
|
35
|
+
* @property {string} city
|
|
36
|
+
* @property {string} region
|
|
37
|
+
* @property {string} country
|
|
38
|
+
* @property {string} timezone
|
|
39
|
+
* @property {string} external_ip
|
|
40
|
+
* @property {string} cwd - current working folder
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* @returns {Promise<string>}
|
|
44
|
+
*/
|
|
45
|
+
export function systemInfo(): Promise<string>;
|
|
46
|
+
declare const APP_CACHE: any;
|
|
47
|
+
export { jsType };
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import AgentServer from './AgentServer.js';
|
|
2
|
+
import AgentClient from './AgentClient.js';
|
|
3
|
+
import Prompt from './Prompt.js';
|
|
4
|
+
import ToolSet from './ToolSet.js';
|
|
5
|
+
import Session from './Session.js';
|
|
6
|
+
export namespace API {
|
|
7
|
+
namespace text {
|
|
8
|
+
export { gpt };
|
|
9
|
+
export { grok };
|
|
10
|
+
export { claude };
|
|
11
|
+
}
|
|
12
|
+
namespace search {
|
|
13
|
+
export { brave };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
import Cli from './Cli.js';
|
|
17
|
+
import { env } from './fafs.js';
|
|
18
|
+
import { GLOBAL } from './fafs.js';
|
|
19
|
+
import { request as gpt } from './API/openai.com/reponses/text.js';
|
|
20
|
+
import { request as grok } from './API/x.ai/text.js';
|
|
21
|
+
import { request as claude } from './API/anthropic.com/text.js';
|
|
22
|
+
import { request as brave } from './API/brave.com/search.js';
|
|
23
|
+
export { AgentServer, AgentClient, Prompt, ToolSet, Session, Cli, env, GLOBAL };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function pruneResolvedToolIOByCallIdExceptLast(messages: any, keepMode?: string): boolean;
|