@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.
Files changed (53) hide show
  1. package/LICENSE +73 -0
  2. package/README.md +207 -0
  3. package/bin/hdAsk.js +103 -0
  4. package/bin/hdClear.js +13 -0
  5. package/bin/hdCode.js +110 -0
  6. package/bin/hdConnect.js +230 -0
  7. package/bin/hdInspect.js +28 -0
  8. package/bin/hdNpm.js +114 -0
  9. package/bin/hdPrompt.js +108 -0
  10. package/examples/claude-test.js +89 -0
  11. package/examples/claude.js +143 -0
  12. package/examples/gpt.js +127 -0
  13. package/examples/gpt_code.js +125 -0
  14. package/examples/gpt_note_keeping.js +117 -0
  15. package/examples/grok.js +119 -0
  16. package/examples/grok_code.js +114 -0
  17. package/examples/grok_note_keeping.js +111 -0
  18. package/lib/API/anthropic.com/text.js +402 -0
  19. package/lib/API/brave.com/search.js +239 -0
  20. package/lib/API/openai.com/README.md +1 -0
  21. package/lib/API/openai.com/reponses/MESSAGES.md +69 -0
  22. package/lib/API/openai.com/reponses/text.js +416 -0
  23. package/lib/API/x.ai/text.js +415 -0
  24. package/lib/AgentClient.js +197 -0
  25. package/lib/AgentManager.js +144 -0
  26. package/lib/AgentServer.js +336 -0
  27. package/lib/Cli.js +256 -0
  28. package/lib/Prompt.js +728 -0
  29. package/lib/Session.js +231 -0
  30. package/lib/ToolSet.js +186 -0
  31. package/lib/fafs.js +93 -0
  32. package/lib/genericToolset.js +170 -0
  33. package/lib/index.js +34 -0
  34. package/lib/promptHelpers.js +132 -0
  35. package/lib/testToolset.js +42 -0
  36. package/module.md +189 -0
  37. package/package.json +49 -0
  38. package/types/API/anthropic.com/text.d.ts +207 -0
  39. package/types/API/brave.com/search.d.ts +156 -0
  40. package/types/API/openai.com/reponses/text.d.ts +225 -0
  41. package/types/API/x.ai/text.d.ts +286 -0
  42. package/types/AgentClient.d.ts +70 -0
  43. package/types/AgentManager.d.ts +112 -0
  44. package/types/AgentServer.d.ts +38 -0
  45. package/types/Cli.d.ts +52 -0
  46. package/types/Prompt.d.ts +298 -0
  47. package/types/Session.d.ts +31 -0
  48. package/types/ToolSet.d.ts +95 -0
  49. package/types/fafs.d.ts +47 -0
  50. package/types/genericToolset.d.ts +3 -0
  51. package/types/index.d.ts +23 -0
  52. package/types/promptHelpers.d.ts +1 -0
  53. package/types/testToolset.d.ts +3 -0
@@ -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 };
@@ -0,0 +1,3 @@
1
+ export default tools;
2
+ declare const tools: ToolSet;
3
+ import { ToolSet } from './index.js';
@@ -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;
@@ -0,0 +1,3 @@
1
+ export default tools;
2
+ declare const tools: ToolSet;
3
+ import ToolSet from '../lib/ToolSet.js';