Skip to content

Commit 112d82a

Browse files
committed
fix: restore full export surface (telemetry, token-usage, profile-security, sandbox-size)
The initial extraction was taken from a stale develop checkout and dropped telemetry/{content-attributes,spine-attributes,index,token-usage} and the agent-interface profile-security/sandbox-size modules. Re-extracted faithfully from origin/develop. agent-interface 0.11.0->0.11.1, agent-core 0.2.0->0.2.1.
1 parent b1e51ab commit 112d82a

15 files changed

Lines changed: 1607 additions & 3 deletions

packages/agent-core/package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tangle-network/agent-core",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Core transport interfaces, event utilities, auth, SSE parsing, and resilience primitives for talking to Tangle agents",
55
"type": "module",
66
"license": "MIT",
@@ -42,6 +42,10 @@
4242
"./computer-use": {
4343
"import": "./dist/computer-use/index.js",
4444
"types": "./src/computer-use/index.ts"
45+
},
46+
"./telemetry": {
47+
"import": "./dist/telemetry/index.js",
48+
"types": "./src/telemetry/index.ts"
4549
}
4650
},
4751
"typesVersions": {
@@ -145,6 +149,11 @@
145149
"import": "./dist/computer-use/index.js",
146150
"types": "./dist/computer-use/index.d.ts",
147151
"default": "./dist/computer-use/index.js"
152+
},
153+
"./telemetry": {
154+
"import": "./dist/telemetry/index.js",
155+
"types": "./dist/telemetry/index.d.ts",
156+
"default": "./dist/telemetry/index.js"
148157
}
149158
}
150159
},

packages/agent-core/src/index.ts

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,25 @@ export {
169169
type QueuedRequest,
170170
type Storage,
171171
} from "./storage/index.js";
172-
// Telemetry (GenAI semantic-convention attribute vocabulary + tokenUsage fields)
172+
// Telemetry (GenAI + content attribute vocabularies + tokenUsage fields)
173173
export {
174+
addTokenUsage,
175+
asContentField,
176+
asContentString,
177+
CONTENT_COMPLETION_KEY,
178+
CONTENT_KEY_FIELD,
179+
CONTENT_KEYS,
180+
CONTENT_PROMPT_KEY,
181+
CONTENT_TOOL_ARGS_KEY,
182+
CONTENT_TOOL_NAME_KEY,
183+
CONTENT_TOOL_RESULT_KEY,
184+
type ContentField,
185+
classifyAgent,
186+
type DeclaredIntentMatch,
187+
declaredTaskText,
188+
extractContent,
189+
firstTokenCount,
190+
firstUsageCostUsd,
174191
GEN_AI_CONVERSATION_ID,
175192
GEN_AI_INPUT_TOKEN_KEYS,
176193
GEN_AI_MODEL_KEYS,
@@ -182,8 +199,34 @@ export {
182199
GEN_AI_USAGE_OUTPUT_TOKENS,
183200
type GenAiUsage,
184201
genAiUsageAttributes,
202+
hasContent,
203+
logRecordContentBag,
204+
type NormalizedContent,
205+
PARENT_RUN_KEY_ATTRS,
206+
RUN_KEY_ATTRS,
207+
RUN_KIND_ATTRS,
208+
readTokenCostUsd,
209+
readTokenUsage,
210+
resolveDeclaredIntent,
211+
SUBJECT_KEY_ATTRS,
212+
TANGLE_RUN_ID_CAMEL_KEY,
213+
TANGLE_RUN_ID_KEY,
214+
TANGLE_RUN_KIND_KEY,
215+
TANGLE_RUN_PARENT_ID_KEY,
216+
TANGLE_SUBJECT_KEY,
217+
TANGLE_TRIGGER_ID_KEY,
218+
TANGLE_TRIGGER_KIND_KEY,
219+
TANGLE_TRIGGER_SOURCE_KEY,
220+
TANGLE_WORKFLOW_ID_KEY,
221+
TOKEN_USAGE_COST_KEYS,
185222
TOKEN_USAGE_INPUT_KEYS,
186223
TOKEN_USAGE_OUTPUT_KEYS,
224+
type TokenUsageCounts,
225+
TRIGGER_ID_ATTRS,
226+
TRIGGER_SOURCE_ATTRS,
227+
tokenCount,
228+
tokenUsageSource,
229+
WORKFLOW_MARKER_ATTRS,
187230
} from "./telemetry/index.js";
188231
// Transport
189232
export {

0 commit comments

Comments
 (0)