@inf-monkeys-tech/monkeys-design 1.0.8 → 1.0.9-canary.55.1.dbae3ce
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/components/agent-workbench/index.d.mts +111 -0
- package/dist/components/agent-workbench/index.d.ts +111 -0
- package/dist/components/agent-workbench/index.js +1096 -0
- package/dist/components/agent-workbench/index.js.map +1 -0
- package/dist/components/agent-workbench/index.mjs +1091 -0
- package/dist/components/agent-workbench/index.mjs.map +1 -0
- package/dist/components/base/index.js +77 -0
- package/dist/components/base/index.js.map +1 -1
- package/dist/components/base/index.mjs +77 -0
- package/dist/components/base/index.mjs.map +1 -1
- package/dist/components/data-explorer/index.js +77 -0
- package/dist/components/data-explorer/index.js.map +1 -1
- package/dist/components/data-explorer/index.mjs +77 -0
- package/dist/components/data-explorer/index.mjs.map +1 -1
- package/dist/components/layout/index.js +77 -0
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/index.mjs +77 -0
- package/dist/components/layout/index.mjs.map +1 -1
- package/dist/components/runtime/index.js +77 -0
- package/dist/components/runtime/index.js.map +1 -1
- package/dist/components/runtime/index.mjs +77 -0
- package/dist/components/runtime/index.mjs.map +1 -1
- package/dist/components/toast/index.d.mts +1 -1
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/components/toast/index.js +77 -0
- package/dist/components/toast/index.js.map +1 -1
- package/dist/components/toast/index.mjs +77 -0
- package/dist/components/toast/index.mjs.map +1 -1
- package/dist/components/toolbar/index.js +77 -0
- package/dist/components/toolbar/index.js.map +1 -1
- package/dist/components/toolbar/index.mjs +77 -0
- package/dist/components/toolbar/index.mjs.map +1 -1
- package/dist/components/workbench/index.js +77 -0
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs +77 -0
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2541 -1471
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2538 -1472
- package/dist/index.mjs.map +1 -1
- package/dist/locale/index.d.mts +208 -2
- package/dist/locale/index.d.ts +208 -2
- package/dist/locale/index.js +220 -0
- package/dist/locale/index.js.map +1 -1
- package/dist/locale/index.mjs +220 -0
- package/dist/locale/index.mjs.map +1 -1
- package/dist/provider/index.d.mts +2 -2
- package/dist/provider/index.d.ts +2 -2
- package/dist/provider/index.js +220 -0
- package/dist/provider/index.js.map +1 -1
- package/dist/provider/index.mjs +220 -0
- package/dist/provider/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types-fed4675a38fa.d.mts +278 -0
- package/dist/types-fed4675a38fa.d.ts +278 -0
- package/package.json +8 -3
- package/dist/types-183d24c0fff3.d.mts +0 -158
- package/dist/types-183d24c0fff3.d.ts +0 -158
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { AgentSessionViewModel, AgentSessionEvent } from '@inf-monkeys-tech/monkeys';
|
|
3
|
+
interface AgentWorkbenchApprovalIntent {
|
|
4
|
+
approvalId: string;
|
|
5
|
+
approved: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface AgentWorkbenchArtifactIntent {
|
|
8
|
+
artifactId: string;
|
|
9
|
+
name: string;
|
|
10
|
+
url: string;
|
|
11
|
+
}
|
|
12
|
+
interface AgentWorkbenchActivityClassNames {
|
|
13
|
+
root?: string;
|
|
14
|
+
item?: string;
|
|
15
|
+
trigger?: string;
|
|
16
|
+
content?: string;
|
|
17
|
+
approval?: string;
|
|
18
|
+
artifact?: string;
|
|
19
|
+
usage?: string;
|
|
20
|
+
}
|
|
21
|
+
interface AgentWorkbenchActivityProps {
|
|
22
|
+
viewModel?: AgentSessionViewModel;
|
|
23
|
+
hiddenToolCallIds?: ReadonlySet<string>;
|
|
24
|
+
hideReasoning?: boolean;
|
|
25
|
+
hideStoppedRun?: boolean;
|
|
26
|
+
className?: string;
|
|
27
|
+
classNames?: AgentWorkbenchActivityClassNames;
|
|
28
|
+
onApprovalDecision?: (intent: AgentWorkbenchApprovalIntent) => void;
|
|
29
|
+
onArtifactOpen?: (intent: AgentWorkbenchArtifactIntent) => void;
|
|
30
|
+
}
|
|
31
|
+
declare function AgentWorkbenchActivity({ viewModel, hiddenToolCallIds, hideReasoning, hideStoppedRun, className, classNames, onApprovalDecision, onArtifactOpen, }: AgentWorkbenchActivityProps): null | react_jsx_runtime.JSX.Element;
|
|
32
|
+
type AgentWorkbenchDetailsTab = 'summary' | 'workspace';
|
|
33
|
+
type AgentWorkbenchDetailsState = 'empty' | 'error' | 'loading' | 'ready';
|
|
34
|
+
type AgentWorkbenchDetailsIntent = {
|
|
35
|
+
type: 'close';
|
|
36
|
+
} | {
|
|
37
|
+
type: 'copy-summary';
|
|
38
|
+
summaryId: string;
|
|
39
|
+
text: string;
|
|
40
|
+
} | {
|
|
41
|
+
type: 'resume';
|
|
42
|
+
sessionId: string;
|
|
43
|
+
} | {
|
|
44
|
+
type: 'retry-summary';
|
|
45
|
+
eventId: string;
|
|
46
|
+
} | {
|
|
47
|
+
type: 'retry';
|
|
48
|
+
eventId: string;
|
|
49
|
+
};
|
|
50
|
+
interface AgentWorkbenchTaskDetailsClassNames {
|
|
51
|
+
root?: string;
|
|
52
|
+
header?: string;
|
|
53
|
+
tabs?: string;
|
|
54
|
+
body?: string;
|
|
55
|
+
section?: string;
|
|
56
|
+
code?: string;
|
|
57
|
+
}
|
|
58
|
+
interface AgentWorkbenchTaskDetailsProps {
|
|
59
|
+
viewModel?: AgentSessionViewModel;
|
|
60
|
+
state?: AgentWorkbenchDetailsState;
|
|
61
|
+
activeTab?: AgentWorkbenchDetailsTab;
|
|
62
|
+
className?: string;
|
|
63
|
+
classNames?: AgentWorkbenchTaskDetailsClassNames;
|
|
64
|
+
onActiveTabChange?: (tab: AgentWorkbenchDetailsTab) => void;
|
|
65
|
+
onIntent?: (intent: AgentWorkbenchDetailsIntent) => void;
|
|
66
|
+
}
|
|
67
|
+
declare function AgentWorkbenchTaskDetails({ viewModel, state, activeTab, className, classNames, onActiveTabChange, onIntent, }: AgentWorkbenchTaskDetailsProps): react_jsx_runtime.JSX.Element;
|
|
68
|
+
type SessionEventType = AgentSessionEvent['eventType'];
|
|
69
|
+
type AgentWorkbenchEventOf<Type extends SessionEventType> = Extract<AgentSessionEvent, {
|
|
70
|
+
eventType: Type;
|
|
71
|
+
}>;
|
|
72
|
+
interface AgentWorkbenchActivityModel {
|
|
73
|
+
mode: AgentSessionViewModel['snapshot']['mode'];
|
|
74
|
+
status: AgentSessionViewModel['status'];
|
|
75
|
+
reasoning: AgentWorkbenchEventOf<'reasoning'>[];
|
|
76
|
+
plans: AgentWorkbenchEventOf<'plan'>[];
|
|
77
|
+
tasks: AgentWorkbenchEventOf<'task'>[];
|
|
78
|
+
tools: AgentWorkbenchEventOf<'tool'>[];
|
|
79
|
+
approvals: AgentWorkbenchEventOf<'approval'>[];
|
|
80
|
+
artifacts: AgentWorkbenchEventOf<'artifact'>[];
|
|
81
|
+
usage?: AgentWorkbenchEventOf<'usage'>;
|
|
82
|
+
run?: AgentWorkbenchEventOf<'status'>;
|
|
83
|
+
}
|
|
84
|
+
declare function createAgentWorkbenchActivityModel(viewModel: AgentSessionViewModel): AgentWorkbenchActivityModel;
|
|
85
|
+
interface AgentWorkbenchTerminalModel {
|
|
86
|
+
terminalId: string;
|
|
87
|
+
stdin: string;
|
|
88
|
+
stdout: string;
|
|
89
|
+
stderr: string;
|
|
90
|
+
status: string;
|
|
91
|
+
exitCode?: number;
|
|
92
|
+
sequence: number;
|
|
93
|
+
}
|
|
94
|
+
interface AgentWorkbenchDetailsModel {
|
|
95
|
+
mode: AgentSessionViewModel['snapshot']['mode'];
|
|
96
|
+
status: AgentSessionViewModel['status'];
|
|
97
|
+
sessionId: string;
|
|
98
|
+
resumable: boolean;
|
|
99
|
+
summary?: AgentWorkbenchEventOf<'summary'>;
|
|
100
|
+
error?: AgentWorkbenchEventOf<'error'>;
|
|
101
|
+
run?: AgentWorkbenchEventOf<'status'>;
|
|
102
|
+
workspace: {
|
|
103
|
+
diffs: AgentWorkbenchEventOf<'diff'>[];
|
|
104
|
+
files: AgentWorkbenchEventOf<'workspace-file'>[];
|
|
105
|
+
terminals: AgentWorkbenchTerminalModel[];
|
|
106
|
+
tests: AgentWorkbenchEventOf<'test-result'>[];
|
|
107
|
+
artifacts: AgentWorkbenchEventOf<'artifact'>[];
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
declare function createAgentWorkbenchDetailsModel(viewModel: AgentSessionViewModel): AgentWorkbenchDetailsModel;
|
|
111
|
+
export { AgentWorkbenchActivity, type AgentWorkbenchActivityClassNames, type AgentWorkbenchActivityModel, type AgentWorkbenchActivityProps, type AgentWorkbenchApprovalIntent, type AgentWorkbenchArtifactIntent, type AgentWorkbenchDetailsIntent, type AgentWorkbenchDetailsModel, type AgentWorkbenchDetailsState, type AgentWorkbenchDetailsTab, type AgentWorkbenchEventOf, AgentWorkbenchTaskDetails, type AgentWorkbenchTaskDetailsClassNames, type AgentWorkbenchTaskDetailsProps, type AgentWorkbenchTerminalModel, createAgentWorkbenchActivityModel, createAgentWorkbenchDetailsModel };
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { AgentSessionViewModel, AgentSessionEvent } from '@inf-monkeys-tech/monkeys';
|
|
3
|
+
interface AgentWorkbenchApprovalIntent {
|
|
4
|
+
approvalId: string;
|
|
5
|
+
approved: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface AgentWorkbenchArtifactIntent {
|
|
8
|
+
artifactId: string;
|
|
9
|
+
name: string;
|
|
10
|
+
url: string;
|
|
11
|
+
}
|
|
12
|
+
interface AgentWorkbenchActivityClassNames {
|
|
13
|
+
root?: string;
|
|
14
|
+
item?: string;
|
|
15
|
+
trigger?: string;
|
|
16
|
+
content?: string;
|
|
17
|
+
approval?: string;
|
|
18
|
+
artifact?: string;
|
|
19
|
+
usage?: string;
|
|
20
|
+
}
|
|
21
|
+
interface AgentWorkbenchActivityProps {
|
|
22
|
+
viewModel?: AgentSessionViewModel;
|
|
23
|
+
hiddenToolCallIds?: ReadonlySet<string>;
|
|
24
|
+
hideReasoning?: boolean;
|
|
25
|
+
hideStoppedRun?: boolean;
|
|
26
|
+
className?: string;
|
|
27
|
+
classNames?: AgentWorkbenchActivityClassNames;
|
|
28
|
+
onApprovalDecision?: (intent: AgentWorkbenchApprovalIntent) => void;
|
|
29
|
+
onArtifactOpen?: (intent: AgentWorkbenchArtifactIntent) => void;
|
|
30
|
+
}
|
|
31
|
+
declare function AgentWorkbenchActivity({ viewModel, hiddenToolCallIds, hideReasoning, hideStoppedRun, className, classNames, onApprovalDecision, onArtifactOpen, }: AgentWorkbenchActivityProps): null | react_jsx_runtime.JSX.Element;
|
|
32
|
+
type AgentWorkbenchDetailsTab = 'summary' | 'workspace';
|
|
33
|
+
type AgentWorkbenchDetailsState = 'empty' | 'error' | 'loading' | 'ready';
|
|
34
|
+
type AgentWorkbenchDetailsIntent = {
|
|
35
|
+
type: 'close';
|
|
36
|
+
} | {
|
|
37
|
+
type: 'copy-summary';
|
|
38
|
+
summaryId: string;
|
|
39
|
+
text: string;
|
|
40
|
+
} | {
|
|
41
|
+
type: 'resume';
|
|
42
|
+
sessionId: string;
|
|
43
|
+
} | {
|
|
44
|
+
type: 'retry-summary';
|
|
45
|
+
eventId: string;
|
|
46
|
+
} | {
|
|
47
|
+
type: 'retry';
|
|
48
|
+
eventId: string;
|
|
49
|
+
};
|
|
50
|
+
interface AgentWorkbenchTaskDetailsClassNames {
|
|
51
|
+
root?: string;
|
|
52
|
+
header?: string;
|
|
53
|
+
tabs?: string;
|
|
54
|
+
body?: string;
|
|
55
|
+
section?: string;
|
|
56
|
+
code?: string;
|
|
57
|
+
}
|
|
58
|
+
interface AgentWorkbenchTaskDetailsProps {
|
|
59
|
+
viewModel?: AgentSessionViewModel;
|
|
60
|
+
state?: AgentWorkbenchDetailsState;
|
|
61
|
+
activeTab?: AgentWorkbenchDetailsTab;
|
|
62
|
+
className?: string;
|
|
63
|
+
classNames?: AgentWorkbenchTaskDetailsClassNames;
|
|
64
|
+
onActiveTabChange?: (tab: AgentWorkbenchDetailsTab) => void;
|
|
65
|
+
onIntent?: (intent: AgentWorkbenchDetailsIntent) => void;
|
|
66
|
+
}
|
|
67
|
+
declare function AgentWorkbenchTaskDetails({ viewModel, state, activeTab, className, classNames, onActiveTabChange, onIntent, }: AgentWorkbenchTaskDetailsProps): react_jsx_runtime.JSX.Element;
|
|
68
|
+
type SessionEventType = AgentSessionEvent['eventType'];
|
|
69
|
+
type AgentWorkbenchEventOf<Type extends SessionEventType> = Extract<AgentSessionEvent, {
|
|
70
|
+
eventType: Type;
|
|
71
|
+
}>;
|
|
72
|
+
interface AgentWorkbenchActivityModel {
|
|
73
|
+
mode: AgentSessionViewModel['snapshot']['mode'];
|
|
74
|
+
status: AgentSessionViewModel['status'];
|
|
75
|
+
reasoning: AgentWorkbenchEventOf<'reasoning'>[];
|
|
76
|
+
plans: AgentWorkbenchEventOf<'plan'>[];
|
|
77
|
+
tasks: AgentWorkbenchEventOf<'task'>[];
|
|
78
|
+
tools: AgentWorkbenchEventOf<'tool'>[];
|
|
79
|
+
approvals: AgentWorkbenchEventOf<'approval'>[];
|
|
80
|
+
artifacts: AgentWorkbenchEventOf<'artifact'>[];
|
|
81
|
+
usage?: AgentWorkbenchEventOf<'usage'>;
|
|
82
|
+
run?: AgentWorkbenchEventOf<'status'>;
|
|
83
|
+
}
|
|
84
|
+
declare function createAgentWorkbenchActivityModel(viewModel: AgentSessionViewModel): AgentWorkbenchActivityModel;
|
|
85
|
+
interface AgentWorkbenchTerminalModel {
|
|
86
|
+
terminalId: string;
|
|
87
|
+
stdin: string;
|
|
88
|
+
stdout: string;
|
|
89
|
+
stderr: string;
|
|
90
|
+
status: string;
|
|
91
|
+
exitCode?: number;
|
|
92
|
+
sequence: number;
|
|
93
|
+
}
|
|
94
|
+
interface AgentWorkbenchDetailsModel {
|
|
95
|
+
mode: AgentSessionViewModel['snapshot']['mode'];
|
|
96
|
+
status: AgentSessionViewModel['status'];
|
|
97
|
+
sessionId: string;
|
|
98
|
+
resumable: boolean;
|
|
99
|
+
summary?: AgentWorkbenchEventOf<'summary'>;
|
|
100
|
+
error?: AgentWorkbenchEventOf<'error'>;
|
|
101
|
+
run?: AgentWorkbenchEventOf<'status'>;
|
|
102
|
+
workspace: {
|
|
103
|
+
diffs: AgentWorkbenchEventOf<'diff'>[];
|
|
104
|
+
files: AgentWorkbenchEventOf<'workspace-file'>[];
|
|
105
|
+
terminals: AgentWorkbenchTerminalModel[];
|
|
106
|
+
tests: AgentWorkbenchEventOf<'test-result'>[];
|
|
107
|
+
artifacts: AgentWorkbenchEventOf<'artifact'>[];
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
declare function createAgentWorkbenchDetailsModel(viewModel: AgentSessionViewModel): AgentWorkbenchDetailsModel;
|
|
111
|
+
export { AgentWorkbenchActivity, type AgentWorkbenchActivityClassNames, type AgentWorkbenchActivityModel, type AgentWorkbenchActivityProps, type AgentWorkbenchApprovalIntent, type AgentWorkbenchArtifactIntent, type AgentWorkbenchDetailsIntent, type AgentWorkbenchDetailsModel, type AgentWorkbenchDetailsState, type AgentWorkbenchDetailsTab, type AgentWorkbenchEventOf, AgentWorkbenchTaskDetails, type AgentWorkbenchTaskDetailsClassNames, type AgentWorkbenchTaskDetailsProps, type AgentWorkbenchTerminalModel, createAgentWorkbenchActivityModel, createAgentWorkbenchDetailsModel };
|