@bizagent/dsh 0.0.0-stage → 1.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.
- package/CHANGELOG.md +124 -0
- package/LICENSE +21 -0
- package/README.md +61 -2
- package/cordis.patch.yml +14 -0
- package/docs/README.md +23 -0
- package/docs/architecture.md +154 -0
- package/docs/concepts.md +192 -0
- package/docs/configuration.md +154 -0
- package/docs/quickstart.md +103 -0
- package/docs/quickstart.zh-CN.md +86 -0
- package/docs/tools.md +607 -0
- package/docs/user-guide.zh-CN.md +132 -0
- package/docs/verification.md +69 -0
- package/examples/README.md +64 -0
- package/examples/demo-runtime.mjs +71 -0
- package/examples/learning-lab.mjs +263 -0
- package/examples/scenarios.mjs +45 -0
- package/lib/agent-preset.d.ts +20 -0
- package/lib/agent-preset.js +46 -0
- package/lib/agent-session-address.d.ts +14 -0
- package/lib/agent-session-address.js +15 -0
- package/lib/agent-session-coordinator.d.ts +24 -0
- package/lib/agent-session-coordinator.js +101 -0
- package/lib/cli.d.ts +3 -0
- package/lib/cli.js +142 -0
- package/lib/client-types/agent-session-address.d.ts +13 -0
- package/lib/client-types/client/agent-mentions.d.ts +3 -0
- package/lib/client-types/client/api.d.ts +180 -0
- package/lib/client-types/client/components.d.ts +22 -0
- package/lib/client-types/client/controller.d.ts +23 -0
- package/lib/client-types/client/frame-participants.d.ts +5 -0
- package/lib/client-types/client/home-name.d.ts +9 -0
- package/lib/client-types/client/human-inbox.d.ts +8 -0
- package/lib/client-types/client/index.d.ts +13 -0
- package/lib/client-types/client/locales.d.ts +796 -0
- package/lib/client-types/client/markdown.d.ts +12 -0
- package/lib/client-types/client/project-artifact-link.d.ts +10 -0
- package/lib/client-types/client/project-outcome-review-inbox.d.ts +13 -0
- package/lib/client-types/client/projects.d.ts +11 -0
- package/lib/client-types/client/sample-guide.d.ts +9 -0
- package/lib/client-types/client/session-resource.d.ts +34 -0
- package/lib/client-types/client/session-surfaces.d.ts +24 -0
- package/lib/client-types/client/styles.d.ts +1 -0
- package/lib/client-types/config.d.ts +55 -0
- package/lib/client-types/cron.d.ts +8 -0
- package/lib/client-types/domain.d.ts +818 -0
- package/lib/client-types/frame-reference.d.ts +4 -0
- package/lib/client-types/home-directory.d.ts +5 -0
- package/lib/client-types/home-space.d.ts +49 -0
- package/lib/client-types/home-store.d.ts +125 -0
- package/lib/client-types/inbox-stalled-topic.d.ts +15 -0
- package/lib/client-types/inbox-wake-policy.d.ts +18 -0
- package/lib/client-types/known-format.d.ts +2 -0
- package/lib/client-types/learning-scheduler.d.ts +36 -0
- package/lib/client-types/learning-session-runner.d.ts +49 -0
- package/lib/client-types/learning-trigger.d.ts +17 -0
- package/lib/client-types/learning-usage.d.ts +17 -0
- package/lib/client-types/ledger.d.ts +190 -0
- package/lib/client-types/local-owner.d.ts +7 -0
- package/lib/client-types/message-source.d.ts +9 -0
- package/lib/client-types/organization-location.d.ts +19 -0
- package/lib/client-types/project-ledger.d.ts +182 -0
- package/lib/client-types/project-seat-context.d.ts +17 -0
- package/lib/client-types/safe-file.d.ts +23 -0
- package/lib/client-types/sample-organization.d.ts +9 -0
- package/lib/client-types/service.d.ts +596 -0
- package/lib/client-types/shared-knowledge.d.ts +116 -0
- package/lib/client-types/ui-contract.d.ts +276 -0
- package/lib/client-types/untrusted-text.d.ts +15 -0
- package/lib/client-types/work-ledger.d.ts +108 -0
- package/lib/client-types/work-output-eval.d.ts +15 -0
- package/lib/client-types/worklog-ledger.d.ts +88 -0
- package/lib/client-types/worklog-snapshot.d.ts +33 -0
- package/lib/client.js +5463 -0
- package/lib/config.d.ts +56 -0
- package/lib/config.js +115 -0
- package/lib/cron.d.ts +9 -0
- package/lib/cron.js +127 -0
- package/lib/domain.d.ts +819 -0
- package/lib/domain.js +662 -0
- package/lib/frame-admission.d.ts +6 -0
- package/lib/frame-admission.js +39 -0
- package/lib/frame-reference.d.ts +5 -0
- package/lib/frame-reference.js +12 -0
- package/lib/home-archive.d.ts +17 -0
- package/lib/home-archive.js +177 -0
- package/lib/home-directory.d.ts +6 -0
- package/lib/home-directory.js +38 -0
- package/lib/home-space.d.ts +50 -0
- package/lib/home-space.js +120 -0
- package/lib/home-store.d.ts +126 -0
- package/lib/home-store.js +837 -0
- package/lib/host.d.ts +22 -0
- package/lib/host.js +15 -0
- package/lib/human-inbox-transport.d.ts +23 -0
- package/lib/human-inbox-transport.js +105 -0
- package/lib/human-notification-runner.d.ts +83 -0
- package/lib/human-notification-runner.js +138 -0
- package/lib/human-notification-webhook.d.ts +18 -0
- package/lib/human-notification-webhook.js +102 -0
- package/lib/human-turn-completion.d.ts +61 -0
- package/lib/human-turn-completion.js +157 -0
- package/lib/inbox-return-notifier.d.ts +46 -0
- package/lib/inbox-return-notifier.js +279 -0
- package/lib/inbox-stalled-escalation-runner.d.ts +31 -0
- package/lib/inbox-stalled-escalation-runner.js +68 -0
- package/lib/inbox-stalled-topic.d.ts +16 -0
- package/lib/inbox-stalled-topic.js +44 -0
- package/lib/inbox-wake-policy.d.ts +19 -0
- package/lib/inbox-wake-policy.js +28 -0
- package/lib/inbox-wake-runner.d.ts +45 -0
- package/lib/inbox-wake-runner.js +481 -0
- package/lib/index.d.ts +29 -0
- package/lib/index.js +480 -0
- package/lib/known-format.d.ts +3 -0
- package/lib/known-format.js +8 -0
- package/lib/learning-scheduler.d.ts +37 -0
- package/lib/learning-scheduler.js +182 -0
- package/lib/learning-session-runner.d.ts +50 -0
- package/lib/learning-session-runner.js +435 -0
- package/lib/learning-trigger.d.ts +18 -0
- package/lib/learning-trigger.js +92 -0
- package/lib/learning-usage.d.ts +18 -0
- package/lib/learning-usage.js +49 -0
- package/lib/ledger.d.ts +191 -0
- package/lib/ledger.js +752 -0
- package/lib/local-human-host.d.ts +11 -0
- package/lib/local-human-host.js +191 -0
- package/lib/local-human-token.d.ts +9 -0
- package/lib/local-human-token.js +32 -0
- package/lib/local-owner.d.ts +8 -0
- package/lib/local-owner.js +26 -0
- package/lib/message-source.d.ts +10 -0
- package/lib/message-source.js +2 -0
- package/lib/organization-location.d.ts +20 -0
- package/lib/organization-location.js +80 -0
- package/lib/organization-workspace.d.ts +22 -0
- package/lib/organization-workspace.js +32 -0
- package/lib/project-ledger.d.ts +183 -0
- package/lib/project-ledger.js +189 -0
- package/lib/project-review-transport.d.ts +23 -0
- package/lib/project-review-transport.js +155 -0
- package/lib/project-seat-context.d.ts +18 -0
- package/lib/project-seat-context.js +34 -0
- package/lib/proposal-review-transport.d.ts +26 -0
- package/lib/proposal-review-transport.js +104 -0
- package/lib/route-guard.d.ts +31 -0
- package/lib/route-guard.js +80 -0
- package/lib/safe-file.d.ts +24 -0
- package/lib/safe-file.js +93 -0
- package/lib/sample-organization.d.ts +10 -0
- package/lib/sample-organization.js +46 -0
- package/lib/service.d.ts +597 -0
- package/lib/service.js +4076 -0
- package/lib/session-surface.d.ts +11 -0
- package/lib/session-surface.js +109 -0
- package/lib/shared-knowledge-review-transport.d.ts +28 -0
- package/lib/shared-knowledge-review-transport.js +85 -0
- package/lib/shared-knowledge.d.ts +117 -0
- package/lib/shared-knowledge.js +240 -0
- package/lib/tools.d.ts +7 -0
- package/lib/tools.js +955 -0
- package/lib/ui-contract.d.ts +277 -0
- package/lib/ui-contract.js +12 -0
- package/lib/ui-host.d.ts +24 -0
- package/lib/ui-host.js +471 -0
- package/lib/untrusted-text.d.ts +16 -0
- package/lib/untrusted-text.js +50 -0
- package/lib/work-ledger.d.ts +109 -0
- package/lib/work-ledger.js +107 -0
- package/lib/work-output-eval.d.ts +16 -0
- package/lib/work-output-eval.js +58 -0
- package/lib/work-runner.d.ts +47 -0
- package/lib/work-runner.js +352 -0
- package/lib/worklog-ledger.d.ts +89 -0
- package/lib/worklog-ledger.js +91 -0
- package/lib/worklog-snapshot.d.ts +34 -0
- package/lib/worklog-snapshot.js +100 -0
- package/lib/writer-guard.d.ts +11 -0
- package/lib/writer-guard.js +207 -0
- package/package.json +172 -4
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import type { AgentHome, AssetKind, AssetStatus, EvidenceRef, FitnessSignal, FrameMode, HomeAddress, HomeType, InboxMessage, InboxDelivery, InboxHumanNotification, HumanNotificationPreference, MemoryProposal, Organization } from './domain.js';
|
|
2
|
+
import type { FormalProject } from './project-ledger.js';
|
|
3
|
+
import type { FormalWork } from './work-ledger.js';
|
|
4
|
+
import type { MemoryUseOutcomePage } from './service.js';
|
|
5
|
+
import type { LearningScheduleStatus } from './learning-scheduler.js';
|
|
6
|
+
import type { HomeDirectoryEntry } from './home-directory.js';
|
|
7
|
+
export declare const BIZAGENT_UI_API = "/api/bizagent/v1";
|
|
8
|
+
/** Organization id of the one-click sample team; the UI shows a getting-started guide for it. */
|
|
9
|
+
export declare const BIZAGENT_SAMPLE_ORGANIZATION_ID = "sample-shop";
|
|
10
|
+
export declare const BIZAGENT_AGENT_DIRECTORY_API = "/api/bizagent/v1/agents";
|
|
11
|
+
export declare const BIZAGENT_PROJECT_REVIEW_API = "/api/bizagent/project-review";
|
|
12
|
+
export declare const BIZAGENT_LOCAL_HUMAN_STATUS_API = "/api/bizagent/local-human/status";
|
|
13
|
+
export declare const BIZAGENT_AGENT_SESSION_API = "/api/bizagent/agent-session";
|
|
14
|
+
export interface UiProjectReviewAccess {
|
|
15
|
+
canReview: boolean;
|
|
16
|
+
revision: number;
|
|
17
|
+
claimId: string | null;
|
|
18
|
+
outcomeReworkNotification?: {
|
|
19
|
+
claimId: string;
|
|
20
|
+
state: 'pending' | 'delivered';
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface UiProjectOutcomeReviewInbox {
|
|
24
|
+
items: Array<{
|
|
25
|
+
projectId: string;
|
|
26
|
+
projectTitle: string;
|
|
27
|
+
lead: string;
|
|
28
|
+
goal: string;
|
|
29
|
+
doneWhen: string;
|
|
30
|
+
revision: number;
|
|
31
|
+
claimId: string;
|
|
32
|
+
submittedAt: string;
|
|
33
|
+
summary: string;
|
|
34
|
+
body: string;
|
|
35
|
+
doneWhenAssessment: string;
|
|
36
|
+
work: Array<{
|
|
37
|
+
id: string;
|
|
38
|
+
status: 'completed' | 'cancelled';
|
|
39
|
+
resultSubject?: string;
|
|
40
|
+
resultBody?: string;
|
|
41
|
+
resultArtifacts?: Array<{
|
|
42
|
+
path: string;
|
|
43
|
+
sha256: string;
|
|
44
|
+
bytes: number;
|
|
45
|
+
}>;
|
|
46
|
+
}>;
|
|
47
|
+
artifacts: Array<{
|
|
48
|
+
path: string;
|
|
49
|
+
sha256: string;
|
|
50
|
+
bytes: number;
|
|
51
|
+
}>;
|
|
52
|
+
}>;
|
|
53
|
+
nextOffset?: number;
|
|
54
|
+
}
|
|
55
|
+
export declare const BIZAGENT_FRAME_STATUS_API = "/api/bizagent/v1/frames";
|
|
56
|
+
export declare const BIZAGENT_HUMAN_INBOX_API = "/api/bizagent/human-inbox";
|
|
57
|
+
export declare const BIZAGENT_SESSION_CONTEXT_API = "/api/bizagent/v1/session-context";
|
|
58
|
+
export declare const BIZAGENT_SESSION_CATALOG_API = "/api/bizagent/v1/sessions";
|
|
59
|
+
export type UiSessionKind = 'conversation' | 'principal' | 'project-main' | 'work' | 'learning' | 'inbox';
|
|
60
|
+
export type UiAgentRuntime = 'running' | 'idle' | 'unloaded';
|
|
61
|
+
export interface UiSessionSummary {
|
|
62
|
+
sessionId: string;
|
|
63
|
+
home: UiFrameParticipation['primaryHome'];
|
|
64
|
+
kind: UiSessionKind;
|
|
65
|
+
runtime: UiAgentRuntime;
|
|
66
|
+
projectId?: string;
|
|
67
|
+
projectTitle?: string;
|
|
68
|
+
workId?: string;
|
|
69
|
+
workGoal?: string;
|
|
70
|
+
workStatus?: FormalWork['status'];
|
|
71
|
+
}
|
|
72
|
+
export interface UiSessionActivity {
|
|
73
|
+
id: string;
|
|
74
|
+
turn: number;
|
|
75
|
+
seq: number;
|
|
76
|
+
kind: 'memory' | 'proposal' | 'work' | 'project' | 'frame' | 'learning';
|
|
77
|
+
action: string;
|
|
78
|
+
title: string;
|
|
79
|
+
status?: string;
|
|
80
|
+
entityId?: string;
|
|
81
|
+
}
|
|
82
|
+
export interface UiSessionContext {
|
|
83
|
+
summary: UiSessionSummary;
|
|
84
|
+
frames: UiFrameParticipation['frames'];
|
|
85
|
+
home: {
|
|
86
|
+
activeAssets: number;
|
|
87
|
+
candidates: number;
|
|
88
|
+
pendingProposals: number;
|
|
89
|
+
};
|
|
90
|
+
work: Array<Pick<FormalWork, 'id' | 'goal' | 'requester' | 'assignee' | 'status' | 'updatedAt' | 'workerSessionId' | 'returnToSessionId' | 'projectId' | 'resultSubject' | 'resultBody' | 'resultArtifacts'> & {
|
|
91
|
+
runtime: UiAgentRuntime;
|
|
92
|
+
requesterName: string;
|
|
93
|
+
assigneeName: string;
|
|
94
|
+
}>;
|
|
95
|
+
projects: Array<Pick<FormalProject, 'id' | 'title' | 'status' | 'goal'>>;
|
|
96
|
+
activity: UiSessionActivity[];
|
|
97
|
+
moreWork: boolean;
|
|
98
|
+
}
|
|
99
|
+
export type UiHumanInboxSummary = Pick<InboxMessage, 'id' | 'fromAddress' | 'to' | 'cc' | 'subject' | 'kind' | 'priority' | 'due' | 'replyTo' | 'humanAction' | 'sentAt'> & {
|
|
100
|
+
delivery?: InboxDelivery;
|
|
101
|
+
notification?: InboxHumanNotification;
|
|
102
|
+
};
|
|
103
|
+
export interface UiHumanInboxList {
|
|
104
|
+
address: string;
|
|
105
|
+
notificationPreference: Pick<HumanNotificationPreference, 'recipient' | 'enabled' | 'revision'> & {
|
|
106
|
+
updatedAt?: string;
|
|
107
|
+
};
|
|
108
|
+
messages: UiHumanInboxSummary[];
|
|
109
|
+
nextBeforeMessageId?: string;
|
|
110
|
+
}
|
|
111
|
+
export interface UiHumanInboxDetail {
|
|
112
|
+
message: InboxMessage;
|
|
113
|
+
delivery?: InboxDelivery;
|
|
114
|
+
notification?: InboxHumanNotification;
|
|
115
|
+
}
|
|
116
|
+
export type LearningKind = Exclude<AssetKind, 'identity'>;
|
|
117
|
+
export type UiLearningSchedule = LearningScheduleStatus;
|
|
118
|
+
export type UiMemoryUseOutcomes = MemoryUseOutcomePage;
|
|
119
|
+
export type UiAgentDirectory = {
|
|
120
|
+
count: number;
|
|
121
|
+
homes: HomeDirectoryEntry[];
|
|
122
|
+
};
|
|
123
|
+
export type UiAgentTarget = HomeDirectoryEntry;
|
|
124
|
+
export interface UiFrameParticipation {
|
|
125
|
+
sessionId: string;
|
|
126
|
+
primaryHome: {
|
|
127
|
+
address: HomeAddress;
|
|
128
|
+
displayName: string;
|
|
129
|
+
scope: UiHomeSummary['scope'];
|
|
130
|
+
};
|
|
131
|
+
frames: Array<{
|
|
132
|
+
address: HomeAddress;
|
|
133
|
+
displayName: string;
|
|
134
|
+
mode: FrameMode;
|
|
135
|
+
focused: boolean;
|
|
136
|
+
refreshRequired: boolean;
|
|
137
|
+
}>;
|
|
138
|
+
}
|
|
139
|
+
export interface UiAssetCounts {
|
|
140
|
+
memory: number;
|
|
141
|
+
insight: number;
|
|
142
|
+
knowledge: number;
|
|
143
|
+
method: number;
|
|
144
|
+
}
|
|
145
|
+
export interface UiHomeSummary {
|
|
146
|
+
address: HomeAddress;
|
|
147
|
+
/** Host-known Workspace for an explicitly bound Business Home chat. */
|
|
148
|
+
chatWorkspacePath?: string;
|
|
149
|
+
/** `personal` for the person's own Homes in the data root, outside any organization. */
|
|
150
|
+
scope: 'personal' | 'organization';
|
|
151
|
+
type: HomeType;
|
|
152
|
+
displayName: string;
|
|
153
|
+
revision: number;
|
|
154
|
+
status: AgentHome['status'];
|
|
155
|
+
updatedAt: string;
|
|
156
|
+
assetCount: number;
|
|
157
|
+
activeAssetCount: number;
|
|
158
|
+
counts: UiAssetCounts;
|
|
159
|
+
incomingPending: number;
|
|
160
|
+
outgoingPending: number;
|
|
161
|
+
episodes: number;
|
|
162
|
+
}
|
|
163
|
+
export interface UiAsset {
|
|
164
|
+
id: string;
|
|
165
|
+
ownerAddress: HomeAddress;
|
|
166
|
+
kind: LearningKind;
|
|
167
|
+
title?: string;
|
|
168
|
+
description: string;
|
|
169
|
+
body: string;
|
|
170
|
+
tags: string[];
|
|
171
|
+
sourceRefs: EvidenceRef[];
|
|
172
|
+
confidence: number;
|
|
173
|
+
fitness: number;
|
|
174
|
+
status: AssetStatus;
|
|
175
|
+
revision: number;
|
|
176
|
+
proposalId?: string;
|
|
177
|
+
proposalApplications?: Array<{
|
|
178
|
+
proposalId: string;
|
|
179
|
+
revision: number;
|
|
180
|
+
bodySha256: string;
|
|
181
|
+
}>;
|
|
182
|
+
createdAt: string;
|
|
183
|
+
updatedAt: string;
|
|
184
|
+
receiptCount: number;
|
|
185
|
+
lastSignal?: FitnessSignal;
|
|
186
|
+
}
|
|
187
|
+
export interface UiHomeDetail {
|
|
188
|
+
home: AgentHome;
|
|
189
|
+
identity: string;
|
|
190
|
+
assets: UiAsset[];
|
|
191
|
+
proposals: MemoryProposal[];
|
|
192
|
+
episodes: number;
|
|
193
|
+
worklogCount: number;
|
|
194
|
+
worklogs: Array<{
|
|
195
|
+
id: string;
|
|
196
|
+
sessionId: string;
|
|
197
|
+
revision: number;
|
|
198
|
+
description: string;
|
|
199
|
+
body: string;
|
|
200
|
+
status: 'ongoing' | 'completed' | 'blocked' | 'failed';
|
|
201
|
+
origin?: 'agent' | 'work-result' | 'session-activity';
|
|
202
|
+
recordedAt: string;
|
|
203
|
+
files: string[];
|
|
204
|
+
workId?: string;
|
|
205
|
+
projectId?: string;
|
|
206
|
+
}>;
|
|
207
|
+
}
|
|
208
|
+
export interface UiOverview {
|
|
209
|
+
generatedAt: string;
|
|
210
|
+
/** BizAgent data root: the personal space, with organizations under `orgs/`. */
|
|
211
|
+
homeRoot: string;
|
|
212
|
+
organizationLocation?: {
|
|
213
|
+
organizationId: string;
|
|
214
|
+
organizationRoot: string;
|
|
215
|
+
/** Set for an organization still at its pre-1.0 place, `<workspace>/bizagent/<id>`. */
|
|
216
|
+
legacyWorkspacePath?: string;
|
|
217
|
+
};
|
|
218
|
+
organization?: Organization;
|
|
219
|
+
homes: UiHomeSummary[];
|
|
220
|
+
proposals: MemoryProposal[];
|
|
221
|
+
totals: {
|
|
222
|
+
homes: number;
|
|
223
|
+
assets: number;
|
|
224
|
+
activeAssets: number;
|
|
225
|
+
pendingProposals: number;
|
|
226
|
+
episodes: number;
|
|
227
|
+
};
|
|
228
|
+
health: {
|
|
229
|
+
ok: boolean;
|
|
230
|
+
issues: string[];
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
export interface UiCreateHomeRequest {
|
|
234
|
+
address: string;
|
|
235
|
+
displayName?: string;
|
|
236
|
+
owner?: string;
|
|
237
|
+
identity?: string;
|
|
238
|
+
}
|
|
239
|
+
export interface UiCreateOrganizationRequest {
|
|
240
|
+
id: string;
|
|
241
|
+
name: string;
|
|
242
|
+
mission: string;
|
|
243
|
+
members: Array<{
|
|
244
|
+
id: string;
|
|
245
|
+
displayName: string;
|
|
246
|
+
roleId: string;
|
|
247
|
+
roleName: string;
|
|
248
|
+
responsibility: string;
|
|
249
|
+
}>;
|
|
250
|
+
capabilities: Array<{
|
|
251
|
+
id: string;
|
|
252
|
+
displayName: string;
|
|
253
|
+
responsibility: string;
|
|
254
|
+
}>;
|
|
255
|
+
}
|
|
256
|
+
export interface UiProposalDecisionRequest {
|
|
257
|
+
ownerAddress: string;
|
|
258
|
+
proposalId: string;
|
|
259
|
+
action: 'accept' | 'reject';
|
|
260
|
+
decision: string;
|
|
261
|
+
}
|
|
262
|
+
export interface UiApiError {
|
|
263
|
+
error: {
|
|
264
|
+
code: string;
|
|
265
|
+
message: string;
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
export interface UiProjectList {
|
|
269
|
+
homeAddress: HomeAddress;
|
|
270
|
+
projects: FormalProject[];
|
|
271
|
+
nextBeforeProjectId?: string;
|
|
272
|
+
}
|
|
273
|
+
export interface UiProjectDetail {
|
|
274
|
+
project: FormalProject;
|
|
275
|
+
work: FormalWork[];
|
|
276
|
+
}
|
|
277
|
+
//# sourceMappingURL=ui-contract.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const BIZAGENT_UI_API = '/api/bizagent/v1';
|
|
2
|
+
/** Organization id of the one-click sample team; the UI shows a getting-started guide for it. */
|
|
3
|
+
export const BIZAGENT_SAMPLE_ORGANIZATION_ID = 'sample-shop';
|
|
4
|
+
export const BIZAGENT_AGENT_DIRECTORY_API = `${BIZAGENT_UI_API}/agents`;
|
|
5
|
+
export const BIZAGENT_PROJECT_REVIEW_API = '/api/bizagent/project-review';
|
|
6
|
+
export const BIZAGENT_LOCAL_HUMAN_STATUS_API = '/api/bizagent/local-human/status';
|
|
7
|
+
export const BIZAGENT_AGENT_SESSION_API = '/api/bizagent/agent-session';
|
|
8
|
+
export const BIZAGENT_FRAME_STATUS_API = `${BIZAGENT_UI_API}/frames`;
|
|
9
|
+
export const BIZAGENT_HUMAN_INBOX_API = '/api/bizagent/human-inbox';
|
|
10
|
+
export const BIZAGENT_SESSION_CONTEXT_API = `${BIZAGENT_UI_API}/session-context`;
|
|
11
|
+
export const BIZAGENT_SESSION_CATALOG_API = `${BIZAGENT_UI_API}/sessions`;
|
|
12
|
+
//# sourceMappingURL=ui-contract.js.map
|
package/lib/ui-host.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
2
|
+
import type { SessionEvent } from '@deepseek-ai/dsh-session';
|
|
3
|
+
import Schema from '@deepseek-ai/schemastery';
|
|
4
|
+
import { type BizAgentService } from './service.js';
|
|
5
|
+
import { type UiCreateHomeRequest, type UiCreateOrganizationRequest, type UiFrameParticipation, type UiHomeDetail, type UiOverview } from './ui-contract.js';
|
|
6
|
+
export declare const name = "bizagent-ui-host";
|
|
7
|
+
export declare const inject: string[];
|
|
8
|
+
export interface Config {
|
|
9
|
+
}
|
|
10
|
+
export declare const Config: Schema<Config>;
|
|
11
|
+
export declare class BizAgentUiFacade {
|
|
12
|
+
readonly service: BizAgentService;
|
|
13
|
+
constructor(service: BizAgentService);
|
|
14
|
+
frameParticipation(sessionId: string, cwd: string | undefined, events: readonly SessionEvent[]): Promise<UiFrameParticipation>;
|
|
15
|
+
overview(): Promise<UiOverview>;
|
|
16
|
+
home(addressInput: string): UiHomeDetail;
|
|
17
|
+
createHome(request: UiCreateHomeRequest): Promise<UiHomeDetail>;
|
|
18
|
+
createSampleOrganization(): Promise<UiOverview>;
|
|
19
|
+
createOrganization(request: UiCreateOrganizationRequest): Promise<UiOverview>;
|
|
20
|
+
private homeSummary;
|
|
21
|
+
}
|
|
22
|
+
export declare function apply(ctx: Context, _config?: Config): void;
|
|
23
|
+
export declare const UI_HOME_TYPES: readonly ["personal", "line", "business", "role", "capability"];
|
|
24
|
+
//# sourceMappingURL=ui-host.d.ts.map
|