@gea-ai/agent-sdk 0.1.261005-alpha.0 → 0.1.261006-alpha.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/agent-session-child-store.d.ts +35 -20
- package/dist/agent-worker.js +1 -1
- package/dist/index.d.ts +2 -6
- package/dist/index.js +5 -9
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
|
@@ -32,13 +32,16 @@ export declare function getChildRun(tx: AgentSessionTransactionStorage, runId: s
|
|
|
32
32
|
packageVersionId: string;
|
|
33
33
|
agentKey: string;
|
|
34
34
|
definitionPath: string[];
|
|
35
|
+
invocationSourceRunId?: string | undefined;
|
|
36
|
+
invocationAgentId?: string | undefined;
|
|
37
|
+
invocationKeyId?: string | undefined;
|
|
38
|
+
invocationAuthority?: "oauth" | "project_key" | undefined;
|
|
39
|
+
invocationInstallationId?: string | undefined;
|
|
40
|
+
environment?: "preview" | "production" | undefined;
|
|
35
41
|
} | {
|
|
36
42
|
type: "remote";
|
|
37
43
|
agentId: string;
|
|
38
|
-
|
|
39
|
-
auth?: {
|
|
40
|
-
bearerTokenEnv: string;
|
|
41
|
-
} | undefined;
|
|
44
|
+
invocationAuthority?: "oauth" | "project_key" | undefined;
|
|
42
45
|
environment: "local" | "preview" | "production";
|
|
43
46
|
};
|
|
44
47
|
message: string | {
|
|
@@ -94,13 +97,16 @@ export declare function getChildSession(tx: AgentSessionTransactionStorage, sess
|
|
|
94
97
|
packageVersionId: string;
|
|
95
98
|
agentKey: string;
|
|
96
99
|
definitionPath: string[];
|
|
100
|
+
invocationSourceRunId?: string | undefined;
|
|
101
|
+
invocationAgentId?: string | undefined;
|
|
102
|
+
invocationKeyId?: string | undefined;
|
|
103
|
+
invocationAuthority?: "oauth" | "project_key" | undefined;
|
|
104
|
+
invocationInstallationId?: string | undefined;
|
|
105
|
+
environment?: "preview" | "production" | undefined;
|
|
97
106
|
} | {
|
|
98
107
|
type: "remote";
|
|
99
108
|
agentId: string;
|
|
100
|
-
|
|
101
|
-
auth?: {
|
|
102
|
-
bearerTokenEnv: string;
|
|
103
|
-
} | undefined;
|
|
109
|
+
invocationAuthority?: "oauth" | "project_key" | undefined;
|
|
104
110
|
environment: "local" | "preview" | "production";
|
|
105
111
|
};
|
|
106
112
|
metadata?: Record<string, z.util.JSONType> | undefined;
|
|
@@ -120,13 +126,16 @@ export declare function readChildRuns(tx: AgentSessionTransactionStorage, refere
|
|
|
120
126
|
packageVersionId: string;
|
|
121
127
|
agentKey: string;
|
|
122
128
|
definitionPath: string[];
|
|
129
|
+
invocationSourceRunId?: string | undefined;
|
|
130
|
+
invocationAgentId?: string | undefined;
|
|
131
|
+
invocationKeyId?: string | undefined;
|
|
132
|
+
invocationAuthority?: "oauth" | "project_key" | undefined;
|
|
133
|
+
invocationInstallationId?: string | undefined;
|
|
134
|
+
environment?: "preview" | "production" | undefined;
|
|
123
135
|
} | {
|
|
124
136
|
type: "remote";
|
|
125
137
|
agentId: string;
|
|
126
|
-
|
|
127
|
-
auth?: {
|
|
128
|
-
bearerTokenEnv: string;
|
|
129
|
-
} | undefined;
|
|
138
|
+
invocationAuthority?: "oauth" | "project_key" | undefined;
|
|
130
139
|
environment: "local" | "preview" | "production";
|
|
131
140
|
};
|
|
132
141
|
message: string | {
|
|
@@ -186,13 +195,16 @@ export declare function listChildRuns(tx: AgentSessionTransactionStorage, after:
|
|
|
186
195
|
packageVersionId: string;
|
|
187
196
|
agentKey: string;
|
|
188
197
|
definitionPath: string[];
|
|
198
|
+
invocationSourceRunId?: string | undefined;
|
|
199
|
+
invocationAgentId?: string | undefined;
|
|
200
|
+
invocationKeyId?: string | undefined;
|
|
201
|
+
invocationAuthority?: "oauth" | "project_key" | undefined;
|
|
202
|
+
invocationInstallationId?: string | undefined;
|
|
203
|
+
environment?: "preview" | "production" | undefined;
|
|
189
204
|
} | {
|
|
190
205
|
type: "remote";
|
|
191
206
|
agentId: string;
|
|
192
|
-
|
|
193
|
-
auth?: {
|
|
194
|
-
bearerTokenEnv: string;
|
|
195
|
-
} | undefined;
|
|
207
|
+
invocationAuthority?: "oauth" | "project_key" | undefined;
|
|
196
208
|
environment: "local" | "preview" | "production";
|
|
197
209
|
};
|
|
198
210
|
message: string | {
|
|
@@ -255,13 +267,16 @@ export declare function listChildRuns(tx: AgentSessionTransactionStorage, after:
|
|
|
255
267
|
packageVersionId: string;
|
|
256
268
|
agentKey: string;
|
|
257
269
|
definitionPath: string[];
|
|
270
|
+
invocationSourceRunId?: string | undefined;
|
|
271
|
+
invocationAgentId?: string | undefined;
|
|
272
|
+
invocationKeyId?: string | undefined;
|
|
273
|
+
invocationAuthority?: "oauth" | "project_key" | undefined;
|
|
274
|
+
invocationInstallationId?: string | undefined;
|
|
275
|
+
environment?: "preview" | "production" | undefined;
|
|
258
276
|
} | {
|
|
259
277
|
type: "remote";
|
|
260
278
|
agentId: string;
|
|
261
|
-
|
|
262
|
-
auth?: {
|
|
263
|
-
bearerTokenEnv: string;
|
|
264
|
-
} | undefined;
|
|
279
|
+
invocationAuthority?: "oauth" | "project_key" | undefined;
|
|
265
280
|
environment: "local" | "preview" | "production";
|
|
266
281
|
};
|
|
267
282
|
message: string | {
|
package/dist/agent-worker.js
CHANGED
|
@@ -3859,7 +3859,7 @@ async function executeAgentWorkerRequest(input, waitUntil, ownComputer, ownSessi
|
|
|
3859
3859
|
},
|
|
3860
3860
|
}));
|
|
3861
3861
|
registerAgentWorkerTool(tools, "getArtifact", tool({
|
|
3862
|
-
description: "Read an exact file or Artifact by id from
|
|
3862
|
+
description: "Read an exact file or Artifact by id within your authorized scope, including outputs from other sessions and explicitly attached inputs. Images are shown for this user turn; small text/JSON includes a bounded preview. All formats return a temporary downloadUrl.",
|
|
3863
3863
|
inputSchema: z.strictObject({ id: z.uuid() }),
|
|
3864
3864
|
execute: async ({ id }, options) => {
|
|
3865
3865
|
const { artifact, downloadUrl } = (await call({
|
package/dist/index.d.ts
CHANGED
|
@@ -449,17 +449,13 @@ export declare function defineAgentReference<const TSlug extends WorkerAgentSlug
|
|
|
449
449
|
slug: TSlug;
|
|
450
450
|
};
|
|
451
451
|
export type DefineRemoteAgentInput = Omit<z.input<typeof remoteAgentDeclarationSchema>, "type">;
|
|
452
|
-
/** Invoke a fixed Agent ID. Omitted
|
|
453
|
-
* auth.bearerTokenEnv names a Host-only credential for explicit remote authority. */
|
|
452
|
+
/** Invoke a fixed Agent ID. Omitted invocationAuthority uses a protected Project key; oauth requires an existing target installation. Environment defaults to the Host environment. */
|
|
454
453
|
export declare function defineRemoteAgent(input: DefineRemoteAgentInput): {
|
|
455
454
|
type: "remote";
|
|
456
455
|
agentId: string;
|
|
457
|
-
|
|
456
|
+
invocationAuthority?: "oauth" | "project_key" | undefined;
|
|
458
457
|
environment?: "local" | "preview" | "production" | undefined;
|
|
459
458
|
description: string;
|
|
460
|
-
auth?: {
|
|
461
|
-
bearerTokenEnv: string;
|
|
462
|
-
} | undefined;
|
|
463
459
|
};
|
|
464
460
|
/** @deprecated Enable defineAgent({ sessionTools: true }) instead. */
|
|
465
461
|
export declare function chatList(): DefinedManagedTool<"chat_list">;
|
package/dist/index.js
CHANGED
|
@@ -347,8 +347,7 @@ export function defineAgentReference(input) {
|
|
|
347
347
|
});
|
|
348
348
|
return { ...reference, slug: input.slug };
|
|
349
349
|
}
|
|
350
|
-
/** Invoke a fixed Agent ID. Omitted
|
|
351
|
-
* auth.bearerTokenEnv names a Host-only credential for explicit remote authority. */
|
|
350
|
+
/** Invoke a fixed Agent ID. Omitted invocationAuthority uses a protected Project key; oauth requires an existing target installation. Environment defaults to the Host environment. */
|
|
352
351
|
export function defineRemoteAgent(input) {
|
|
353
352
|
return remoteAgentDeclarationSchema.parse({ ...input, type: "remote" });
|
|
354
353
|
}
|
|
@@ -1163,13 +1162,10 @@ export function createAgentPackageSnapshot(input) {
|
|
|
1163
1162
|
for (const [name, child] of Object.entries(definition.subagents ?? {})) {
|
|
1164
1163
|
agentSlugSchema.parse(name);
|
|
1165
1164
|
if ("type" in child) {
|
|
1166
|
-
agentReferences[name] =
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
secret: true,
|
|
1171
|
-
};
|
|
1172
|
-
}
|
|
1165
|
+
agentReferences[name] =
|
|
1166
|
+
child.type === "remote"
|
|
1167
|
+
? remoteAgentDeclarationSchema.parse(child)
|
|
1168
|
+
: child;
|
|
1173
1169
|
continue;
|
|
1174
1170
|
}
|
|
1175
1171
|
if (child.slug !== name)
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const agentSdkVersion = "0.1.
|
|
1
|
+
export declare const agentSdkVersion = "0.1.261006-alpha.0";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by scripts/build-sdk-version.mjs from package.json.
|
|
2
|
-
export const agentSdkVersion = "0.1.
|
|
2
|
+
export const agentSdkVersion = "0.1.261006-alpha.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gea-ai/agent-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.261006-alpha.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"homepage": "https://musegea.com/developers",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"@ai-sdk/otel": "1.0.9",
|
|
120
120
|
"@ai-sdk/provider": "4.0.1",
|
|
121
121
|
"@ai-sdk/provider-utils": "5.0.2",
|
|
122
|
-
"@gea-ai/contract": "0.1.
|
|
122
|
+
"@gea-ai/contract": "0.1.261006-alpha.0",
|
|
123
123
|
"@opentelemetry/api": "1.9.1",
|
|
124
124
|
"@opentelemetry/context-async-hooks": "2.10.0",
|
|
125
125
|
"@opentelemetry/core": "2.10.0",
|