@tangle-network/agent-app 0.43.21 → 0.43.23
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/assistant/index.d.ts +1 -1
- package/dist/{model-catalog-BEAEVDaa.d.ts → catalog/index.d.ts} +1 -1
- package/dist/catalog/index.js +13 -0
- package/dist/catalog/index.js.map +1 -0
- package/dist/{chunk-2A7STBX7.js → chunk-CCRVDLV3.js} +1 -161
- package/dist/chunk-CCRVDLV3.js.map +1 -0
- package/dist/chunk-GUSCYE3S.js +163 -0
- package/dist/chunk-GUSCYE3S.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +37 -35
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.js +7 -5
- package/dist/studio-react/index.d.ts +54 -2
- package/dist/studio-react/index.js +319 -163
- package/dist/studio-react/index.js.map +1 -1
- package/dist/studio-react/studio.css +56 -0
- package/dist/teams/index.js +9 -9
- package/dist/teams/invitations-api.js +3 -3
- package/dist/teams-react/index.js +3 -3
- package/dist/theme/tokens.css +1 -0
- package/dist/web-react/index.d.ts +1 -1
- package/package.json +6 -1
- package/dist/chunk-2A7STBX7.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import "./chunk-UAKFCMWK.js";
|
|
2
|
+
import {
|
|
3
|
+
darkTheme,
|
|
4
|
+
lightTheme,
|
|
5
|
+
themeColor,
|
|
6
|
+
themeToCssVars
|
|
7
|
+
} from "./chunk-47C6PJCW.js";
|
|
8
|
+
import {
|
|
9
|
+
buildFlowTrace,
|
|
10
|
+
childSpanContext,
|
|
11
|
+
createMissionTraceContext,
|
|
12
|
+
renderHistogram,
|
|
13
|
+
renderWaterfall,
|
|
14
|
+
summarize,
|
|
15
|
+
timedEventsFromLines,
|
|
16
|
+
traceEnv
|
|
17
|
+
} from "./chunk-GQRL6VNU.js";
|
|
2
18
|
import {
|
|
3
19
|
ApprovalEventSchema,
|
|
4
20
|
BrandTokensSchema,
|
|
@@ -80,12 +96,6 @@ import {
|
|
|
80
96
|
listTemplateSlots,
|
|
81
97
|
validateBindings
|
|
82
98
|
} from "./chunk-WFMUDX5J.js";
|
|
83
|
-
import {
|
|
84
|
-
darkTheme,
|
|
85
|
-
lightTheme,
|
|
86
|
-
themeColor,
|
|
87
|
-
themeToCssVars
|
|
88
|
-
} from "./chunk-47C6PJCW.js";
|
|
89
99
|
import {
|
|
90
100
|
CHANNEL_PRESETS,
|
|
91
101
|
EXPORT_PRESETS,
|
|
@@ -120,6 +130,12 @@ import {
|
|
|
120
130
|
validateSceneOperations,
|
|
121
131
|
validateSlotValue
|
|
122
132
|
} from "./chunk-M2EBUDZ7.js";
|
|
133
|
+
import {
|
|
134
|
+
composeMissionFlowTrace,
|
|
135
|
+
delegationActivityToFlowSpans,
|
|
136
|
+
loopTraceEventsToFlowSpans,
|
|
137
|
+
stepActivityFlowTrace
|
|
138
|
+
} from "./chunk-2QI7XV2T.js";
|
|
123
139
|
import {
|
|
124
140
|
DEFAULT_REDACTION_PATTERNS,
|
|
125
141
|
buildRedactedDocument,
|
|
@@ -129,21 +145,9 @@ import {
|
|
|
129
145
|
revealSpan
|
|
130
146
|
} from "./chunk-5RMIUJDI.js";
|
|
131
147
|
import {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
renderHistogram,
|
|
136
|
-
renderWaterfall,
|
|
137
|
-
summarize,
|
|
138
|
-
timedEventsFromLines,
|
|
139
|
-
traceEnv
|
|
140
|
-
} from "./chunk-GQRL6VNU.js";
|
|
141
|
-
import {
|
|
142
|
-
composeMissionFlowTrace,
|
|
143
|
-
delegationActivityToFlowSpans,
|
|
144
|
-
loopTraceEventsToFlowSpans,
|
|
145
|
-
stepActivityFlowTrace
|
|
146
|
-
} from "./chunk-2QI7XV2T.js";
|
|
148
|
+
agentAppConfigJsonSchema,
|
|
149
|
+
defineAgentApp
|
|
150
|
+
} from "./chunk-OSMNYPOG.js";
|
|
147
151
|
import {
|
|
148
152
|
PRESET_MIGRATION_SQL,
|
|
149
153
|
PRESET_TABLES,
|
|
@@ -235,6 +239,11 @@ import {
|
|
|
235
239
|
requireString,
|
|
236
240
|
serializeCookie
|
|
237
241
|
} from "./chunk-HFC4BTWJ.js";
|
|
242
|
+
import {
|
|
243
|
+
createKnowledgeLoop,
|
|
244
|
+
createReviewerDecider,
|
|
245
|
+
reviewCandidate
|
|
246
|
+
} from "./chunk-EEPJGZJW.js";
|
|
238
247
|
import {
|
|
239
248
|
DEFAULT_SANDBOX_RESOURCES,
|
|
240
249
|
SandboxRuntimeAuthRefreshError,
|
|
@@ -297,10 +306,6 @@ import {
|
|
|
297
306
|
snapHarnessToModel,
|
|
298
307
|
snapModelToHarness
|
|
299
308
|
} from "./chunk-E7QYOOON.js";
|
|
300
|
-
import {
|
|
301
|
-
agentAppConfigJsonSchema,
|
|
302
|
-
defineAgentApp
|
|
303
|
-
} from "./chunk-OSMNYPOG.js";
|
|
304
309
|
import {
|
|
305
310
|
createCapabilityToken,
|
|
306
311
|
createExpiringCapabilityToken,
|
|
@@ -326,20 +331,16 @@ import {
|
|
|
326
331
|
createBrokerTokenProvider
|
|
327
332
|
} from "./chunk-YGUNTIT5.js";
|
|
328
333
|
import {
|
|
329
|
-
__resetCatalogCache,
|
|
330
|
-
buildCatalog,
|
|
331
334
|
createAgentRuntime,
|
|
332
335
|
createCertifiedDelivery,
|
|
333
336
|
createOpenAICompatStreamTurn,
|
|
334
337
|
createSurfaceRegistry,
|
|
335
338
|
defineSurfaceKind,
|
|
336
|
-
fetchModelCatalog,
|
|
337
339
|
mergeSurfaceOverlay,
|
|
338
|
-
normalizeModelId,
|
|
339
340
|
runToolLoop,
|
|
340
341
|
streamToolLoop,
|
|
341
342
|
toLoopEvents
|
|
342
|
-
} from "./chunk-
|
|
343
|
+
} from "./chunk-CCRVDLV3.js";
|
|
343
344
|
import {
|
|
344
345
|
DEFAULT_TANGLE_BILLING_ENFORCEMENT_ENV_VAR,
|
|
345
346
|
DEFAULT_TANGLE_ROUTER_BASE_URL,
|
|
@@ -367,6 +368,12 @@ import {
|
|
|
367
368
|
isAppToolName,
|
|
368
369
|
outcomeStatus
|
|
369
370
|
} from "./chunk-MFRCM32T.js";
|
|
371
|
+
import {
|
|
372
|
+
__resetCatalogCache,
|
|
373
|
+
buildCatalog,
|
|
374
|
+
fetchModelCatalog,
|
|
375
|
+
normalizeModelId
|
|
376
|
+
} from "./chunk-GUSCYE3S.js";
|
|
370
377
|
import {
|
|
371
378
|
createLlmCorrectnessChecker,
|
|
372
379
|
createTokenRecallChecker,
|
|
@@ -379,11 +386,6 @@ import {
|
|
|
379
386
|
buildKnowledgeRequirements,
|
|
380
387
|
deriveSignals
|
|
381
388
|
} from "./chunk-ZXNXAQAH.js";
|
|
382
|
-
import {
|
|
383
|
-
createKnowledgeLoop,
|
|
384
|
-
createReviewerDecider,
|
|
385
|
-
reviewCandidate
|
|
386
|
-
} from "./chunk-EEPJGZJW.js";
|
|
387
389
|
export {
|
|
388
390
|
APP_TOOL_NAMES,
|
|
389
391
|
ApprovalEventSchema,
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { CatalogModel, ModelCatalog, RouterModel, __resetCatalogCache, buildCatalog, fetchModelCatalog, normalizeModelId } from '../catalog/index.js';
|
|
2
2
|
export { C as CreateTangleRouterModelConfigOptions, D as DEFAULT_TANGLE_BILLING_ENFORCEMENT_ENV_VAR, a as DEFAULT_TANGLE_ROUTER_BASE_URL, R as ResolveModelOptions, b as ResolveTangleDevOrUserKeyOptions, c as ResolveUserTangleExecutionKeyForUserOptions, d as ResolveUserTangleExecutionKeyOptions, e as ResolvedTangleExecutionKey, T as TangleBillingEnforcementOptions, f as TangleExecutionEnvironment, g as TangleExecutionKeyError, h as TangleExecutionKeyErrorCode, i as TangleExecutionKeyHttpError, j as TangleExecutionKeySource, k as TangleModelConfig, l as createTangleRouterModelConfig, m as isTangleBillingEnforcementDisabled, n as isTangleExecutionKeyError, r as resolveTangleDevOrUserKey, o as resolveTangleExecutionEnvironment, p as resolveTangleModelConfig, q as resolveUserTangleExecutionKey, s as resolveUserTangleExecutionKeyForUser, t as tangleExecutionKeyHttpError, u as trimOrNull } from '../model-dF2h4xT9.js';
|
|
3
3
|
import * as _tangle_network_agent_runtime from '@tangle-network/agent-runtime';
|
|
4
4
|
import { ToolLoopMessage, ToolLoopResult, StreamToolLoopYield, ToolLoopCall } from '@tangle-network/agent-runtime';
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
__resetCatalogCache,
|
|
3
|
-
buildCatalog,
|
|
4
2
|
createAgentRuntime,
|
|
5
3
|
createCertifiedDelivery,
|
|
6
4
|
createOpenAICompatStreamTurn,
|
|
7
5
|
createSurfaceRegistry,
|
|
8
6
|
defineSurfaceKind,
|
|
9
|
-
fetchModelCatalog,
|
|
10
7
|
mergeSurfaceOverlay,
|
|
11
|
-
normalizeModelId,
|
|
12
8
|
runToolLoop,
|
|
13
9
|
streamToolLoop,
|
|
14
10
|
toLoopEvents
|
|
15
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-CCRVDLV3.js";
|
|
16
12
|
import {
|
|
17
13
|
DEFAULT_TANGLE_BILLING_ENFORCEMENT_ENV_VAR,
|
|
18
14
|
DEFAULT_TANGLE_ROUTER_BASE_URL,
|
|
@@ -29,6 +25,12 @@ import {
|
|
|
29
25
|
trimOrNull
|
|
30
26
|
} from "../chunk-7W5XSTUF.js";
|
|
31
27
|
import "../chunk-MFRCM32T.js";
|
|
28
|
+
import {
|
|
29
|
+
__resetCatalogCache,
|
|
30
|
+
buildCatalog,
|
|
31
|
+
fetchModelCatalog,
|
|
32
|
+
normalizeModelId
|
|
33
|
+
} from "../chunk-GUSCYE3S.js";
|
|
32
34
|
export {
|
|
33
35
|
DEFAULT_TANGLE_BILLING_ENFORCEMENT_ENV_VAR,
|
|
34
36
|
DEFAULT_TANGLE_ROUTER_BASE_URL,
|
|
@@ -47,10 +47,15 @@ declare function useStudioGenerations(loaderGenerations: Generation[], options?:
|
|
|
47
47
|
onGenerated: (generation: Generation) => void;
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
-
declare function ComposerHero({ workspaceId, integrationsHref, canManageIntegrations, onGenerated, }: {
|
|
50
|
+
declare function ComposerHero({ workspaceId, integrationsHref, canManageIntegrations, align, surfaceClassName, onGenerated, }: {
|
|
51
51
|
workspaceId?: string;
|
|
52
52
|
integrationsHref?: string;
|
|
53
53
|
canManageIntegrations: boolean;
|
|
54
|
+
/** Heading treatment: `center` (focus mode) vs `start` (composer as a left rail). */
|
|
55
|
+
align?: 'center' | 'start';
|
|
56
|
+
/** Background of the composer card. Host apps pass their own surface token so
|
|
57
|
+
* the card can share a tone with the app shell (e.g. the sidebar). */
|
|
58
|
+
surfaceClassName?: string;
|
|
54
59
|
onGenerated: (generation: Generation) => void;
|
|
55
60
|
}): react.JSX.Element;
|
|
56
61
|
|
|
@@ -60,6 +65,12 @@ declare function Field({ label, htmlFor, className, children, }: {
|
|
|
60
65
|
className?: string;
|
|
61
66
|
children: ReactNode;
|
|
62
67
|
}): react.JSX.Element;
|
|
68
|
+
declare function Stepper({ value, min, max, onChange, }: {
|
|
69
|
+
value: number;
|
|
70
|
+
min: number;
|
|
71
|
+
max: number;
|
|
72
|
+
onChange: (value: number) => void;
|
|
73
|
+
}): react.JSX.Element;
|
|
63
74
|
declare function ComposerDisclosure({ summary, children }: {
|
|
64
75
|
summary: ReactNode;
|
|
65
76
|
children: ReactNode;
|
|
@@ -102,6 +113,36 @@ declare function LibraryDrawer({ open, onOpenChange, generations, totalCost, typ
|
|
|
102
113
|
onSelect: (generation: Generation | null) => void;
|
|
103
114
|
}): react.JSX.Element;
|
|
104
115
|
|
|
116
|
+
/**
|
|
117
|
+
* Inline asset gallery — the same filter + stats + card grid as the library
|
|
118
|
+
* drawer's list view, but with no sheet chrome so it can sit on the page beside
|
|
119
|
+
* the composer. In-flight generations need no special handling: they arrive at
|
|
120
|
+
* the front of `generations` (via `useStudioGenerations.mergedGenerations`) and
|
|
121
|
+
* `GenerationCard` renders their `pending`/`running` shimmer.
|
|
122
|
+
*/
|
|
123
|
+
declare function LibraryPanel({ generations, totalCost, typeFilter, onFilterChange, onSelect, }: {
|
|
124
|
+
generations: Generation[];
|
|
125
|
+
totalCost: number;
|
|
126
|
+
typeFilter: string | null;
|
|
127
|
+
onFilterChange: (type: string | null) => void;
|
|
128
|
+
onSelect: (generation: Generation) => void;
|
|
129
|
+
}): react.JSX.Element;
|
|
130
|
+
|
|
131
|
+
/** The visible set for the active type tab (all generations when unfiltered). */
|
|
132
|
+
declare function filterGenerations(generations: Generation[], typeFilter: string | null): Generation[];
|
|
133
|
+
/**
|
|
134
|
+
* Chrome-less asset grid — the `GenerationCard` grid plus its empty state, with
|
|
135
|
+
* no surrounding tabs/stats/sheet chrome. Composed by both the inline
|
|
136
|
+
* `LibraryPanel` and the `LibraryDrawer`'s list view so the grid and its
|
|
137
|
+
* empty-state copy stay in one place. `generations` is the already-filtered
|
|
138
|
+
* visible set; `typeFilter` only tunes the empty-state message.
|
|
139
|
+
*/
|
|
140
|
+
declare function GenerationGrid({ generations, typeFilter, onSelect, }: {
|
|
141
|
+
generations: Generation[];
|
|
142
|
+
typeFilter: string | null;
|
|
143
|
+
onSelect: (generation: Generation) => void;
|
|
144
|
+
}): react.JSX.Element;
|
|
145
|
+
|
|
105
146
|
declare function GenerationCard({ generation, onSelect, }: {
|
|
106
147
|
generation: Generation;
|
|
107
148
|
onSelect: (generation: Generation) => void;
|
|
@@ -117,6 +158,17 @@ declare function GenerationDetail({ generation, vaultHref, onNavigate, }: {
|
|
|
117
158
|
onNavigate?: () => void;
|
|
118
159
|
}): react.JSX.Element;
|
|
119
160
|
|
|
161
|
+
/**
|
|
162
|
+
* Centered detail view for a single generation. Opens when `generation` is set
|
|
163
|
+
* and reports dismissal through `onClose`. GenerationDetail renders the media,
|
|
164
|
+
* type badge, prompt and metadata; the dialog title carries the a11y label.
|
|
165
|
+
*/
|
|
166
|
+
declare function GenerationDetailModal({ generation, vaultHref, onClose, }: {
|
|
167
|
+
generation: Generation | null;
|
|
168
|
+
vaultHref?: (filePath?: string | null) => string;
|
|
169
|
+
onClose: () => void;
|
|
170
|
+
}): react.JSX.Element;
|
|
171
|
+
|
|
120
172
|
declare function PublishPackageComposer({ caption, postDescription, mentions, cadence, selectedDestinations, connections, connectionError, connectionsLoading, integrationsHref, canManageIntegrations, onCaptionChange, onDescriptionChange, onMentionsChange, onCadenceChange, onDestinationToggle, }: {
|
|
121
173
|
caption: string;
|
|
122
174
|
postDescription: string;
|
|
@@ -190,4 +242,4 @@ declare function TranscriptionOptions({ responseFormat, temperature, onResponseF
|
|
|
190
242
|
onTemperatureChange: (value: string) => void;
|
|
191
243
|
}): react.JSX.Element;
|
|
192
244
|
|
|
193
|
-
export { AvatarComposer, ComposerDisclosure, ComposerHero, Field, GenerationCard, GenerationDetail, GenerationStatusBadge, ImageComposer, LibraryDrawer, NativeSelect, PublishPackageComposer, ResultCanvas, SpeechComposer, StudioHeader, type StudioRole, StudioSheet, StudioWorkspace, type StudioWorkspaceProps, TYPE_CONFIG, TranscriptionComposer, TranscriptionOptions, type TypeConfig, VideoComposer, typeConfigFor, useStudioGenerations };
|
|
245
|
+
export { AvatarComposer, ComposerDisclosure, ComposerHero, Field, GenerationCard, GenerationDetail, GenerationDetailModal, GenerationGrid, GenerationStatusBadge, ImageComposer, LibraryDrawer, LibraryPanel, NativeSelect, PublishPackageComposer, ResultCanvas, SpeechComposer, Stepper, StudioHeader, type StudioRole, StudioSheet, StudioWorkspace, type StudioWorkspaceProps, TYPE_CONFIG, TranscriptionComposer, TranscriptionOptions, type TypeConfig, VideoComposer, filterGenerations, typeConfigFor, useStudioGenerations };
|