@0gfoundation/0g-agentdna 0.2.1 → 0.2.3

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 (86) hide show
  1. package/GUIDE.md +67 -18
  2. package/MIGRATION.md +8 -0
  3. package/MIGRATION.zh.md +5 -0
  4. package/PROVIDERS.md +6 -4
  5. package/PROVIDERS.zh.md +4 -3
  6. package/README.md +20 -4
  7. package/dist/AgentClient.d.ts +175 -2
  8. package/dist/AgentClient.d.ts.map +1 -1
  9. package/dist/AgentClient.js +166 -7
  10. package/dist/AgentClient.js.map +1 -1
  11. package/dist/AgenticID.d.ts +47 -7
  12. package/dist/AgenticID.d.ts.map +1 -1
  13. package/dist/AgenticID.js +44 -13
  14. package/dist/AgenticID.js.map +1 -1
  15. package/dist/AgenticIDClient.d.ts +1 -1
  16. package/dist/AgenticIDClient.js +1 -1
  17. package/dist/AttestorClient.d.ts +67 -2
  18. package/dist/AttestorClient.d.ts.map +1 -1
  19. package/dist/AttestorClient.js +162 -33
  20. package/dist/AttestorClient.js.map +1 -1
  21. package/dist/ReputationClient.d.ts +1 -1
  22. package/dist/ReputationClient.js +1 -1
  23. package/dist/SandboxClient.d.ts +1 -1
  24. package/dist/SandboxClient.js +1 -1
  25. package/dist/cli/commands/doctor.d.ts.map +1 -1
  26. package/dist/cli/commands/doctor.js +8 -2
  27. package/dist/cli/commands/doctor.js.map +1 -1
  28. package/dist/cli/commands/interactive.d.ts +71 -2
  29. package/dist/cli/commands/interactive.d.ts.map +1 -1
  30. package/dist/cli/commands/interactive.js +423 -46
  31. package/dist/cli/commands/interactive.js.map +1 -1
  32. package/dist/cli/commands/settings.d.ts.map +1 -1
  33. package/dist/cli/commands/settings.js +23 -0
  34. package/dist/cli/commands/settings.js.map +1 -1
  35. package/dist/cli/config.d.ts +10 -0
  36. package/dist/cli/config.d.ts.map +1 -1
  37. package/dist/cli/config.js +38 -0
  38. package/dist/cli/config.js.map +1 -1
  39. package/dist/cli/env.js +1 -1
  40. package/dist/cli/env.js.map +1 -1
  41. package/dist/cli/inference.d.ts +25 -0
  42. package/dist/cli/inference.d.ts.map +1 -1
  43. package/dist/cli/inference.js +67 -6
  44. package/dist/cli/inference.js.map +1 -1
  45. package/dist/cli/main.js +12 -2
  46. package/dist/cli/main.js.map +1 -1
  47. package/dist/cli/sdk.d.ts +1 -1
  48. package/dist/cli/sdk.js +1 -1
  49. package/dist/cli/settings.d.ts +20 -0
  50. package/dist/cli/settings.d.ts.map +1 -1
  51. package/dist/cli/settings.js +40 -1
  52. package/dist/cli/settings.js.map +1 -1
  53. package/dist/constants.d.ts +3 -3
  54. package/dist/constants.js +2 -2
  55. package/dist/context.d.ts +2 -2
  56. package/dist/context.d.ts.map +1 -1
  57. package/dist/context.js +1 -1
  58. package/dist/index.d.ts +4 -3
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +6 -2
  61. package/dist/index.js.map +1 -1
  62. package/dist/secretEnv.js +1 -1
  63. package/dist/secretEnv.js.map +1 -1
  64. package/dist/types.d.ts +1 -1
  65. package/dist/types.js +1 -1
  66. package/package.json +1 -1
  67. package/src/AgentClient.ts +326 -9
  68. package/src/AgenticID.ts +66 -11
  69. package/src/AgenticIDClient.ts +1 -1
  70. package/src/AttestorClient.ts +207 -51
  71. package/src/ReputationClient.ts +1 -1
  72. package/src/SandboxClient.ts +1 -1
  73. package/src/cli/commands/doctor.ts +8 -2
  74. package/src/cli/commands/interactive.ts +405 -51
  75. package/src/cli/commands/settings.ts +22 -1
  76. package/src/cli/config.ts +36 -0
  77. package/src/cli/env.ts +1 -1
  78. package/src/cli/inference.ts +82 -5
  79. package/src/cli/main.ts +13 -3
  80. package/src/cli/sdk.ts +1 -1
  81. package/src/cli/settings.ts +41 -0
  82. package/src/constants.ts +3 -3
  83. package/src/context.ts +2 -2
  84. package/src/index.ts +7 -3
  85. package/src/secretEnv.ts +1 -1
  86. package/src/types.ts +1 -1
@@ -24,7 +24,7 @@ import { buildClient } from '../sdk';
24
24
  import { CliError } from '../errors';
25
25
  import { emitOk, note, print } from '../envelope';
26
26
  import { parseAgentRef, type AgentRef } from '../ref';
27
- import { applyAssignments, assertModelPresent, parseAssignments, renderSettings } from '../settings';
27
+ import { applyAssignments, assertModelPresent, assertOthersFitFramework, parseAssignments, renderSettings } from '../settings';
28
28
  import { SettingsConflictError } from '../../Settings';
29
29
  import type { CommandContext } from '../types';
30
30
  import { changesProvider } from '../../Providers';
@@ -89,6 +89,11 @@ export async function run(ctx: CommandContext): Promise<void> {
89
89
  return;
90
90
  }
91
91
 
92
+ // Before anything is signed: a 0g-harness switch in others= for an agent that runs
93
+ // another framework does nothing there, or worse (cli/settings.ts).
94
+ if (assignments.some((a) => a.key === 'others' && a.value !== undefined)) {
95
+ assertOthersFitFramework(assignments, await frameworkOf(ctx.env.attestorUrl, sealId));
96
+ }
92
97
  const next = applyAssignments(current, assignments);
93
98
  // Before anything is signed: a document with no model is the one state the
94
99
  // container cannot boot from and last-known-good cannot cover.
@@ -171,6 +176,22 @@ export async function run(ctx: CommandContext): Promise<void> {
171
176
  );
172
177
  }
173
178
 
179
+ /**
180
+ * The framework the deployment row records, or undefined when it cannot be
181
+ * read (a legacy row, an unreachable attestor): the check it feeds then lets
182
+ * the write through.
183
+ */
184
+ async function frameworkOf(attestorUrl: string | undefined, sealId: string): Promise<string | undefined> {
185
+ if (!attestorUrl) return undefined;
186
+ try {
187
+ const r = await fetch(`${attestorUrl}/deployment/${sealId}`, { signal: AbortSignal.timeout(5000) });
188
+ if (!r.ok) return undefined;
189
+ return ((await r.json()) as { framework?: string | null }).framework ?? undefined;
190
+ } catch {
191
+ return undefined;
192
+ }
193
+ }
194
+
174
195
  /**
175
196
  * The running container's serve base, or undefined when there is nothing live
176
197
  * to push to.
package/src/cli/config.ts CHANGED
@@ -106,6 +106,42 @@ export function saveConfig(patch: FileConfig, env: NodeJS.ProcessEnv = process.e
106
106
  writeFileSync(config, `${JSON.stringify(next, null, 2)}\n`, { mode: 0o644 });
107
107
  }
108
108
 
109
+ /** Earlier addresses of the public attestors → their current ones. Each pair
110
+ * is one attestor (same machine, same attested TLS key) answering under both
111
+ * names, so a saved earlier address keeps working; moving it lets the old
112
+ * name retire. */
113
+ const RENAMED_ATTESTORS = new Map<string, string>([
114
+ ['https://agenticid.0g.ai', 'https://agentdna.0g.ai'],
115
+ ['https://agenticid-testnet.0g.ai', 'https://agentdna-testnet.0g.ai'],
116
+ ]);
117
+
118
+ /** The current address of a renamed public attestor, or undefined. */
119
+ export function renamedAttestor(url: string): string | undefined {
120
+ return RENAMED_ATTESTORS.get(url.replace(/\/$/, '').toLowerCase());
121
+ }
122
+
123
+ /** Move a saved earlier attestor address to the current one. Its secret-env
124
+ * pin moves along: without it the next contact would count as a first one.
125
+ * Returns the move, or null when there is nothing to move or the files can't
126
+ * be written (the earlier address still answers, so nothing breaks). */
127
+ export function moveRenamedAttestor(env: NodeJS.ProcessEnv = process.env): { from: string; to: string } | null {
128
+ const from = loadConfig(env).attestorUrl;
129
+ const to = from ? renamedAttestor(from) : undefined;
130
+ if (!from || !to) return null;
131
+ // Pin first: a failed write then leaves the earlier address saved, never
132
+ // the current one without its pin.
133
+ if (loadSecretEnvPins(env)[from]) {
134
+ recordSecretEnvPin(to, env);
135
+ if (!loadSecretEnvPins(env)[to]) return null;
136
+ }
137
+ try {
138
+ saveConfig({ attestorUrl: to }, env);
139
+ } catch {
140
+ return null;
141
+ }
142
+ return { from, to };
143
+ }
144
+
109
145
  /** Owner key and provider-scoped inference keys, stored at 0600. */
110
146
  export interface Credentials {
111
147
  privateKey?: `0x${string}`;
package/src/cli/env.ts CHANGED
@@ -56,7 +56,7 @@ export function readEnv(env: NodeJS.ProcessEnv = process.env): CliEnv {
56
56
  export function requireAttestorUrl(env: CliEnv): string {
57
57
  if (!env.attestorUrl) {
58
58
  throw new CliError('MISSING_ATTESTOR_URL', 'AGENTIC_ATTESTOR_URL is not set — the CLI cannot reach an environment without it', {
59
- remedy: 'export AGENTIC_ATTESTOR_URL=https://agenticid.0g.ai # or your own attestor',
59
+ remedy: 'export AGENTIC_ATTESTOR_URL=https://agentdna.0g.ai # or your own attestor',
60
60
  });
61
61
  }
62
62
  return env.attestorUrl;
@@ -3,6 +3,10 @@ import type { Hash } from 'viem';
3
3
  import { inferenceKeyFromEnv, loadApiKey } from './config';
4
4
  import { CliError } from './errors';
5
5
  import { requiresMintFirst } from '../Providers';
6
+ import {
7
+ DEFAULT_PERSONA_INFERENCE, deploymentFactsOf, needsDefaultSettings, storeDefaultSettings,
8
+ type DeploymentFacts,
9
+ } from '../AttestorClient';
6
10
 
7
11
  /** Deploy using the current registry's routing requirements. Called after
8
12
  * the wizard's prompts/preflight so an edited compute route is rechecked. */
@@ -22,12 +26,15 @@ export async function deployWithInference(ag: AgenticID, params: {
22
26
  ...(params.provision && !mintFirst ? { sandbox: { apiKey: params.apiKey! } } : {}),
23
27
  });
24
28
  const mint = await ag.agent.waitForMint(deployment.sealId, { timeoutMs: 180000 });
25
- if (mintFirst) {
29
+ // A mint-only agent also keeps the chosen pin as its settings document, so
30
+ // the container a later reset starts boots on it whatever happens to the
31
+ // copy in the minted persona.
32
+ if (mintFirst || !params.provision) {
26
33
  await ag.agent.setSettings(deployment.sealId, { provider: params.provider, model: params.model }, { baseVersion: 0 });
27
- if (params.provision) await ag.agent.start(deployment.sealId, {
28
- provider: params.provider, framework: params.framework, apiKey: params.apiKey, secretEnv: 'sealed',
29
- });
30
34
  }
35
+ if (mintFirst && params.provision) await ag.agent.start(deployment.sealId, {
36
+ provider: params.provider, framework: params.framework, apiKey: params.apiKey, secretEnv: 'sealed',
37
+ });
31
38
  return { deployment, agentId: String((mint as { agentId?: unknown }).agentId ?? mint) };
32
39
  }
33
40
 
@@ -47,7 +54,77 @@ export function requireConfiguredInferenceKey(provider: string, env: NodeJS.Proc
47
54
  /** A failed owner settings read must not select a different provider or key. */
48
55
  export async function agentInferenceProvider(ag: AgenticID, sealId: Hash): Promise<string> {
49
56
  const { settings } = await ag.agent.getSettings(sealId);
50
- const provider = settings?.provider ?? '0g-compute';
57
+ return checkedProvider(settings?.provider ?? '0g-compute');
58
+ }
59
+
60
+ export type { DeploymentFacts };
61
+
62
+ /** Read {@link DeploymentFacts} from the public `/deployment/:sealId`. */
63
+ export async function readDeploymentFacts(attestorUrl: string, sealId: Hash): Promise<DeploymentFacts> {
64
+ let row: Record<string, unknown>;
65
+ try {
66
+ const r = await fetch(`${attestorUrl.replace(/\/$/, '')}/deployment/${sealId}`, { signal: AbortSignal.timeout(10_000) });
67
+ if (!r.ok) throw new Error(`HTTP ${r.status}`);
68
+ row = (await r.json()) as typeof row;
69
+ } catch (e) {
70
+ throw new CliError('UNKNOWN', `cannot read /deployment/${sealId}: ${e instanceof Error ? e.message : String(e)}`, {
71
+ remedy: 'check the attestor is reachable, then repeat the command',
72
+ });
73
+ }
74
+ return deploymentFactsOf(row);
75
+ }
76
+
77
+ /** The provider a reset uses, and the settings document it stores first. */
78
+ export interface ResetInferencePlan {
79
+ provider: string;
80
+ /** Stored as the agent's first settings document before the reset. */
81
+ seed?: { provider: string; model: string };
82
+ /** Said to the owner when the agent has no settings document and keeps none. */
83
+ note?: string;
84
+ }
85
+
86
+ /**
87
+ * The provider a reset uses, and whether the default model is stored first:
88
+ * the SDK's rule ({@link needsDefaultSettings}, which `start` and `reset`
89
+ * also apply). Nothing is written here; {@link applyResetInference} stores the
90
+ * document once the owner has passed the reset's prompts, so a reset
91
+ * cancelled at a prompt writes nothing.
92
+ */
93
+ export async function resetInferencePlan(ag: AgenticID, sealId: Hash, facts: DeploymentFacts): Promise<ResetInferencePlan> {
94
+ const { settings, version } = await ag.agent.getSettings(sealId);
95
+ if (settings === null && version === 0) {
96
+ if (needsDefaultSettings(facts, version)) {
97
+ const seed = { ...DEFAULT_PERSONA_INFERENCE };
98
+ return { provider: seed.provider, seed };
99
+ }
100
+ return {
101
+ provider: '0g-compute',
102
+ note: 'no settings yet: the container uses the model chosen at mint (change it with settings)\n',
103
+ };
104
+ }
105
+ return { provider: checkedProvider(settings?.provider ?? '0g-compute') };
106
+ }
107
+
108
+ /** Store a plan's settings document (see {@link resetInferencePlan}). */
109
+ export async function applyResetInference(
110
+ ag: AgenticID,
111
+ sealId: Hash,
112
+ plan: ResetInferencePlan,
113
+ note: (line: string) => void,
114
+ ): Promise<void> {
115
+ if (plan.seed) {
116
+ // A document written since the plan was made is kept, not replaced.
117
+ if (await storeDefaultSettings(ag.agent, sealId)) {
118
+ note(`no settings yet: set provider=${plan.seed.provider} model=${plan.seed.model} (change them with settings)\n`);
119
+ } else {
120
+ note('settings were written meanwhile: kept\n');
121
+ }
122
+ } else if (plan.note) {
123
+ note(plan.note);
124
+ }
125
+ }
126
+
127
+ function checkedProvider(provider: string): string {
51
128
  if (!/^[a-z0-9][a-z0-9-]{0,63}$/.test(provider)) throw new CliError('BAD_FLAG', 'invalid inference provider ID');
52
129
  return provider;
53
130
  }
package/src/cli/main.ts CHANGED
@@ -15,8 +15,9 @@ import { parseArgs } from 'node:util';
15
15
  import { readFileSync } from 'node:fs';
16
16
  import { join } from 'node:path';
17
17
  import { CliError, toCliError, EXIT } from './errors';
18
- import { emitError, print } from './envelope';
18
+ import { emitError, note, print } from './envelope';
19
19
  import { readEnv } from './env';
20
+ import { moveRenamedAttestor } from './config';
20
21
  import type { CommandContext, CommandRun } from './types';
21
22
  import { run as doctor } from './commands/doctor';
22
23
  import { run as status } from './commands/status';
@@ -133,8 +134,12 @@ ENVIRONMENT
133
134
  AGENTIC_PRIVATE_KEY optional. Owner key (0x… hex). Env only — there is
134
135
  deliberately no flag for it.
135
136
  AGENTIC_RPC_URL optional. Overrides the RPC the attestor advertises.
136
- AGENTIC_API_KEY optional. Inference key for deploy/reset; overrides
137
- the one stored by login.
137
+ AGENTDNA_API_KEY_PROVIDER / AGENTDNA_API_KEY
138
+ optional, set together. Inference key for deploy/
139
+ reset with that provider (e.g. openai); overrides the
140
+ one stored by login. A key without its provider is
141
+ refused.
142
+ AGENTIC_API_KEY optional. Legacy override for the 0g-compute key only.
138
143
  AGENTIC_VERIFIED_FEEDBACK_ADDR / AGENTIC_FEEDBACK_BATCHER_ADDR
139
144
  optional. Reputation-pair address overrides for
140
145
  attestors whose /config doesn't advertise them yet.
@@ -196,6 +201,11 @@ async function main(): Promise<number> {
196
201
  const isCommand = !!first && first in COMMANDS;
197
202
  const run = isCommand ? COMMANDS[first] : interactive;
198
203
 
204
+ // The public attestors were renamed: a saved earlier address moves to the
205
+ // current one before the environment is read.
206
+ const moved = moveRenamedAttestor();
207
+ if (moved) note(`saved attestor address updated: ${moved.from} → ${moved.to} (same attestor, new name)`);
208
+
199
209
  const ctx: CommandContext = {
200
210
  env: readEnv(),
201
211
  json: values.json,
package/src/cli/sdk.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @file sdk.ts
3
- * @description Shared bootstrap: CliEnv → AgenticID facade. The single place
3
+ * @description Shared bootstrap: CliEnv → AgentDNA facade. The single place
4
4
  * the CLI constructs the SDK client — doctor/status/list all reuse it, so the
5
5
  * env→client semantics can never drift between commands (this is the shared
6
6
  * artifact that made B/C/D "parallel with a hidden shared piece"; it lands in
@@ -90,6 +90,47 @@ export function parseAssignments(args: string[]): Assignment[] {
90
90
  return out;
91
91
  }
92
92
 
93
+ /** `others` keys only the 0g-harness adapter reads (sealed `harness/settings.go`). */
94
+ export const HARNESS_ONLY_KEYS = ['toolJobs', 'subagents', 'schedule', 'maxParallelToolCalls'] as const;
95
+
96
+ /**
97
+ * Whether `framework` names the 0g-harness adapter. `dsh` is its name before
98
+ * AgentDNA 1.4, and an attestor not yet upgraded still reports it in
99
+ * deployment rows and `/config` (sealed reads the old name the same way,
100
+ * `legacyFrameworkName`). The 1.3 `dsh` adapter reads `toolJobs` and
101
+ * `maxParallelToolCalls` and ignores `others` keys it does not know.
102
+ */
103
+ export function isHarnessFramework(framework: string | null | undefined): boolean {
104
+ return framework === '0g-harness' || framework === 'dsh';
105
+ }
106
+
107
+ /**
108
+ * Refuse 0g-harness switches in `others=` for an agent known to run another
109
+ * framework, before anything is signed. There `others` is that framework's
110
+ * own configuration, so the switch does nothing, and openclaw goes further:
111
+ * it refuses a key it does not know, and the adapter then drops the whole
112
+ * `others` section, the owner's other keys with it. An unknown framework (a
113
+ * legacy row) is not refused: nothing says the write is wrong, and neither is
114
+ * `dsh`, the harness's name on a network that still runs AgentDNA 1.3.
115
+ */
116
+ export function assertOthersFitFramework(assignments: Assignment[], framework: string | null | undefined): void {
117
+ if (!framework || isHarnessFramework(framework)) return;
118
+ const others = assignments.find((a) => a.key === 'others')?.value;
119
+ if (!others || typeof others !== 'object' || Array.isArray(others)) return;
120
+ const hits = HARNESS_ONLY_KEYS.filter((k) => Object.prototype.hasOwnProperty.call(others, k));
121
+ if (!hits.length) return;
122
+ const named = hits.map((k) => `"${k}"`).join(', ');
123
+ const plural = hits.length > 1;
124
+ throw new CliError(
125
+ 'BAD_FLAG',
126
+ `${named} ${plural ? 'are 0g-harness switches' : 'is a 0g-harness switch'}; this agent runs ${framework}, which does not read ${plural ? 'them' : 'it'}` +
127
+ (framework === 'openclaw'
128
+ ? ' (openclaw refuses keys it does not know, and the whole others section is then dropped)'
129
+ : ''),
130
+ { remedy: `leave ${plural ? 'them' : 'it'} out of others=: background jobs, subagents and reminders are 0g-harness features` },
131
+ );
132
+ }
133
+
93
134
  /** Merge assignments onto the stored document, producing the document to write. */
94
135
  export function applyAssignments(base: SettingsDoc | null, assignments: Assignment[]): SettingsDoc {
95
136
  const doc: SettingsDoc = { ...(base ?? {}) };
package/src/constants.ts CHANGED
@@ -37,7 +37,7 @@ export const ZERO_G_MAINNET = {
37
37
  } as const;
38
38
 
39
39
  /**
40
- * Contract address set — pass one explicitly to `new AgenticID({ addresses })`.
40
+ * Contract address set — pass one explicitly to `new AgentDNA({ addresses })`.
41
41
  *
42
42
  * Addresses are a deployment artifact, NOT baked into the SDK: an RPC + these
43
43
  * addresses fully determine the target contracts, and keeping them out of the
@@ -67,7 +67,7 @@ export interface ContractAddresses {
67
67
  }
68
68
 
69
69
  /**
70
- * Default RPC URL for the 0G Galileo Testnet (override via `AgenticID({ rpcUrl })`).
70
+ * Default RPC URL for the 0G Galileo Testnet (override via `new AgentDNA({ rpcUrl })`).
71
71
  */
72
72
  export const RPC_URL = 'https://evmrpc-testnet.0g.ai';
73
73
 
@@ -103,4 +103,4 @@ export const RECEIPT_WAIT = {
103
103
 
104
104
  /** This SDK's own version. Kept in lockstep with package.json by a test —
105
105
  * a runtime package.json read would break browser bundles, so a constant. */
106
- export const SDK_VERSION = '0.2.1';
106
+ export const SDK_VERSION = '0.2.3';
package/src/context.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @file context.ts
3
- * @description Shared config + runtime context for the AgenticID facade and its
3
+ * @description Shared config + runtime context for the AgentDNA facade and its
4
4
  * internal per-contract clients. Constructed once; passed to each sub-client.
5
5
  */
6
6
 
@@ -16,7 +16,7 @@ import {
16
16
  import { privateKeyToAccount } from 'viem/accounts';
17
17
  import { ZERO_G_TESTNET, RPC_URL, type ContractAddresses } from './constants';
18
18
 
19
- /** Public config for `new AgenticID(config)`. */
19
+ /** Public config for `new AgentDNA(config)` (exported as `AgentDNAConfig`). */
20
20
  export interface AgenticIDConfig {
21
21
  /** RPC endpoint. Defaults to the 0G Galileo testnet RPC. */
22
22
  rpcUrl?: string;
package/src/index.ts CHANGED
@@ -27,11 +27,15 @@ if (typeof (globalThis as { fetch?: unknown }).fetch !== 'function') {
27
27
 
28
28
  // ── Facade + namespaces ──
29
29
  export { AgenticID as AgentDNA, AgenticID, AgentApi, AdminApi, ReputationApi } from './AgenticID';
30
- export type { DeployAccepted, WaitLevel } from './AgenticID';
30
+ export type { ContainerStatus, DeployAccepted, WaitLevel } from './AgenticID';
31
31
  export { makeAgentClient } from './AgentClient';
32
- export type { AgentClient, AgentServiceEntry, AgentRoute, ChatMessage, ChatCompletion, AgentTask } from './AgentClient';
32
+ export type {
33
+ AgentClient, AgentServiceEntry, AgentRoute, ChatMessage, ChatCompletion, AgentTask,
34
+ AgentTaskInfo, AgentTaskStop, AgentInbox, AgentInboxMessage, AgentSchedule, AgentEvent,
35
+ } from './AgentClient';
33
36
  export { mcpServices } from './AgentClient';
34
- export { defaultIData } from './AttestorClient';
37
+ export { defaultIData, DEFAULT_PERSONA_INFERENCE, deploymentFactsOf, needsDefaultSettings, storeDefaultSettings } from './AttestorClient';
38
+ export type { DeploymentFacts } from './AttestorClient';
35
39
  export type { DefaultIDataParams } from './AttestorClient';
36
40
  export type { AgenticIDConfig as AgentDNAConfig, AgenticIDConfig } from './context';
37
41
 
package/src/secretEnv.ts CHANGED
@@ -118,7 +118,7 @@ export function randomBytes(n: number): Uint8Array {
118
118
  cryptoObj = (require('crypto') as { webcrypto?: WebCrypto }).webcrypto;
119
119
  }
120
120
  if (!cryptoObj?.getRandomValues) {
121
- throw new Error('AgenticID SDK: no WebCrypto available (need a browser or Node >= 18 with crypto.webcrypto)');
121
+ throw new Error('AgentDNA SDK: no WebCrypto available (need a browser or Node >= 18 with crypto.webcrypto)');
122
122
  }
123
123
  cryptoObj.getRandomValues(a);
124
124
  return a;
package/src/types.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @file types.ts
3
- * @description All TypeScript types for the 0G AgenticID SDK, mirroring the Solidity structs and enums.
3
+ * @description All TypeScript types for the 0G AgentDNA SDK, mirroring the Solidity structs and enums.
4
4
  */
5
5
 
6
6
  /**