mindroot 8.6.0__py3-none-any.whl → 8.8.0__py3-none-any.whl
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.
Potentially problematic release.
This version of mindroot might be problematic. Click here for more details.
- mindroot/coreplugins/admin/static/js/agent-editor.js +11 -76
- mindroot/coreplugins/admin/static/js/agent-form.js +374 -262
- mindroot/coreplugins/admin/static/js/backup/agent-editor.js +186 -0
- mindroot/coreplugins/admin/static/js/backup/agent-form.js +1133 -0
- mindroot/coreplugins/admin/static/js/backup/agent-list.js +94 -0
- mindroot/lib/plugins/default_plugin_manifest.json +4 -0
- {mindroot-8.6.0.dist-info → mindroot-8.8.0.dist-info}/METADATA +1 -1
- {mindroot-8.6.0.dist-info → mindroot-8.8.0.dist-info}/RECORD +12 -9
- {mindroot-8.6.0.dist-info → mindroot-8.8.0.dist-info}/WHEEL +0 -0
- {mindroot-8.6.0.dist-info → mindroot-8.8.0.dist-info}/entry_points.txt +0 -0
- {mindroot-8.6.0.dist-info → mindroot-8.8.0.dist-info}/licenses/LICENSE +0 -0
- {mindroot-8.6.0.dist-info → mindroot-8.8.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { LitElement, html, css } from './lit-core.min.js';
|
|
2
|
+
import { BaseEl } from './base.js';
|
|
3
|
+
|
|
4
|
+
class AgentList extends BaseEl {
|
|
5
|
+
static properties = {
|
|
6
|
+
agents: { type: Array },
|
|
7
|
+
selectedAgent: { type: Object }
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
static styles = css`
|
|
11
|
+
:host {
|
|
12
|
+
display: block;
|
|
13
|
+
margin-bottom: 20px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.agent-selector {
|
|
17
|
+
display: flex;
|
|
18
|
+
gap: 10px;
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
select {
|
|
23
|
+
flex: 1;
|
|
24
|
+
padding: 8px;
|
|
25
|
+
background: rgba(255, 255, 255, 0.05);
|
|
26
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
27
|
+
border-radius: 4px;
|
|
28
|
+
color: #f0f0f0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.btn {
|
|
32
|
+
padding: 8px 16px;
|
|
33
|
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
34
|
+
border-radius: 4px;
|
|
35
|
+
background: rgba(255, 255, 255, 0.05);
|
|
36
|
+
color: #f0f0f0;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
transition: all 0.2s;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.btn:hover {
|
|
42
|
+
background: rgba(255, 255, 255, 0.1);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.btn-secondary {
|
|
46
|
+
border-color: #2196F3;
|
|
47
|
+
color: #2196F3;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.btn-secondary:hover {
|
|
51
|
+
background: rgba(33, 150, 243, 0.1);
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
|
|
55
|
+
async handleAgentChange(event) {
|
|
56
|
+
if (event.target.value) {
|
|
57
|
+
try {
|
|
58
|
+
const response = await fetch(`/agents/local/${event.target.value}`);
|
|
59
|
+
if (!response.ok) throw new Error('Failed to fetch agent');
|
|
60
|
+
const agent = await response.json();
|
|
61
|
+
this.dispatchEvent(new CustomEvent('agent-selected', {
|
|
62
|
+
detail: agent
|
|
63
|
+
}));
|
|
64
|
+
} catch (error) {
|
|
65
|
+
this.dispatchEvent(new CustomEvent('error', {
|
|
66
|
+
detail: `Error loading agent: ${error.message}`
|
|
67
|
+
}));
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
handleNewAgent() {
|
|
73
|
+
this.dispatchEvent(new CustomEvent('new-agent'));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
_render() {
|
|
77
|
+
return html`
|
|
78
|
+
<div class="agent-selector">
|
|
79
|
+
<select @change=${this.handleAgentChange}
|
|
80
|
+
.value=${this.selectedAgent?.name || ''}>
|
|
81
|
+
<option value="">Select an agent</option>
|
|
82
|
+
${this.agents.map(agent => html`
|
|
83
|
+
<option value=${agent.name}>${agent.name}</option>
|
|
84
|
+
`)}
|
|
85
|
+
</select>
|
|
86
|
+
<button class="btn btn-secondary" @click=${this.handleNewAgent}>
|
|
87
|
+
New Agent
|
|
88
|
+
</button>
|
|
89
|
+
</div>
|
|
90
|
+
`;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
customElements.define('agent-list', AgentList);
|
|
@@ -37,8 +37,8 @@ mindroot/coreplugins/admin/static/favicon/favicon_io (1)/favicon-16x16.png,sha25
|
|
|
37
37
|
mindroot/coreplugins/admin/static/favicon/favicon_io (1)/favicon-32x32.png,sha256=KTX1C9IlO3g3zgK-UlugpLhwwgVbl-q89m4_ZU-RAL8,1055
|
|
38
38
|
mindroot/coreplugins/admin/static/favicon/favicon_io (1)/favicon.ico,sha256=5tNfs1TPDqu8ltrcvAKXw_n7tpkRNXP7rlpdtAqyitk,15406
|
|
39
39
|
mindroot/coreplugins/admin/static/favicon/favicon_io (1)/site.webmanifest,sha256=ep4Hzh9zhmiZF2At3Fp1dQrYQuYF_3ZPZxc1KcGBvwQ,263
|
|
40
|
-
mindroot/coreplugins/admin/static/js/agent-editor.js,sha256=
|
|
41
|
-
mindroot/coreplugins/admin/static/js/agent-form.js,sha256=
|
|
40
|
+
mindroot/coreplugins/admin/static/js/agent-editor.js,sha256=ZCJBNQ-l4kJj-ZufYuzEg45ZpqxwliNmxuqUa2GNiqY,2825
|
|
41
|
+
mindroot/coreplugins/admin/static/js/agent-form.js,sha256=76d2VmiyMcUiVraBCq6Pk9NkFQbkcRRlG5gtfamGDko,37376
|
|
42
42
|
mindroot/coreplugins/admin/static/js/agent-list.js,sha256=86mqFyHspx9EnzJpgUDyeAgEq-jcqQ4v96CrgfUXoGM,2239
|
|
43
43
|
mindroot/coreplugins/admin/static/js/base.js,sha256=xGCA6ngMapQ_jqMgHXg__CS3R46qprycOjkKTFDCMlA,1307
|
|
44
44
|
mindroot/coreplugins/admin/static/js/github-import.js,sha256=iP-O2WrbKumyDetDjK7EQdi9yivFe6IlvHZLd2qo1dA,3658
|
|
@@ -60,6 +60,9 @@ mindroot/coreplugins/admin/static/js/plugin-manager.js,sha256=RDBCnYQxH7Xbftwgg3
|
|
|
60
60
|
mindroot/coreplugins/admin/static/js/plugin-toggle.js,sha256=9A4rM1lavLLUU8oaqPW8-K_JR8epgmPVBV-fjOabY7s,3862
|
|
61
61
|
mindroot/coreplugins/admin/static/js/server-control.js,sha256=Bctd20gnf5rqwI7eqIR7GrXPpUbjxhk0jLi5sbS5a40,7097
|
|
62
62
|
mindroot/coreplugins/admin/static/js/toggle-switch.js,sha256=wLmzsngpNCjtGvFZ-eUIUO4APHa_cplWvZ7uBUqqYRg,2312
|
|
63
|
+
mindroot/coreplugins/admin/static/js/backup/agent-editor.js,sha256=cfVTNtqkQo_LiOqGkoxUZNJSxR-j9qHqZQ2NK6p9oO4,4931
|
|
64
|
+
mindroot/coreplugins/admin/static/js/backup/agent-form.js,sha256=VmqlmIfm6D2CP2SemrgPLPfrYJ0DqZkXf4rSiqJZY4Q,35678
|
|
65
|
+
mindroot/coreplugins/admin/static/js/backup/agent-list.js,sha256=86mqFyHspx9EnzJpgUDyeAgEq-jcqQ4v96CrgfUXoGM,2239
|
|
63
66
|
mindroot/coreplugins/admin/static/js/lit-html/LICENSE,sha256=K2b5OQr94p7f5DFNr_k_AfsYLhF4BT4igSAXiYfl23U,1518
|
|
64
67
|
mindroot/coreplugins/admin/static/js/lit-html/README.md,sha256=w-8qs6ZWte8yzeZ3g2-LlFDRWQQMtrQFAVjRFvb7z-4,3225
|
|
65
68
|
mindroot/coreplugins/admin/static/js/lit-html/async-directive.d.ts,sha256=LRdnQJUGZMSmlvedLZqaHG7_DqfB3Aj25liy4LenoB4,7908
|
|
@@ -1792,7 +1795,7 @@ mindroot/lib/logging/logfiles_prev.py,sha256=Dqya4VlqXh5Wx7HC6uydkwkb5SLpcl6HQ46
|
|
|
1792
1795
|
mindroot/lib/pipelines/pipe.py,sha256=zlVI8BTjDaI87UZO61uVvXyZIbs_pPipi-zGVgDoCwk,527
|
|
1793
1796
|
mindroot/lib/pipelines/pipelines.py,sha256=Uv83Xvnpt34u6J0h0f1mef4M53ifgFco65nMECBJeMM,2654
|
|
1794
1797
|
mindroot/lib/plugins/__init__.py,sha256=ZpIgOKsGjyvAe9KenqZ_5ppxaQ7br9EmU7RBI_VXaBw,1318
|
|
1795
|
-
mindroot/lib/plugins/default_plugin_manifest.json,sha256=
|
|
1798
|
+
mindroot/lib/plugins/default_plugin_manifest.json,sha256=vVgFY_vIn5NFsj2dbERg9m_iiaSOOfLdSRlgNfAI5H0,1405
|
|
1796
1799
|
mindroot/lib/plugins/installation.py,sha256=Ju3gD3cv9I5qIY0hrL7-4t5xYeivEtEgUveWIiE1oqM,15360
|
|
1797
1800
|
mindroot/lib/plugins/loader.py,sha256=OhBzfzHuZCwxVtloVrgkHUJCaLG3_n4k9lDLMIuuZsg,9541
|
|
1798
1801
|
mindroot/lib/plugins/manifest.py,sha256=DOCpwZRFCbk4fAhXlh67uDunYGMBD-OK6_W4E9tf-_k,3955
|
|
@@ -1817,9 +1820,9 @@ mindroot/protocols/services/stream_chat.py,sha256=fMnPfwaB5fdNMBLTEg8BXKAGvrELKH
|
|
|
1817
1820
|
mindroot/registry/__init__.py,sha256=40Xy9bmPHsgdIrOzbtBGzf4XMqXVi9P8oZTJhn0r654,151
|
|
1818
1821
|
mindroot/registry/component_manager.py,sha256=WZFNPg4SNvpqsM5NFiC2DpgmrJQCyR9cNhrCBpp30Qk,995
|
|
1819
1822
|
mindroot/registry/data_access.py,sha256=NgNMamxIjaKeYxzxnVaQz1Y-Rm0AI51si3788_JHUTM,5316
|
|
1820
|
-
mindroot-8.
|
|
1821
|
-
mindroot-8.
|
|
1822
|
-
mindroot-8.
|
|
1823
|
-
mindroot-8.
|
|
1824
|
-
mindroot-8.
|
|
1825
|
-
mindroot-8.
|
|
1823
|
+
mindroot-8.8.0.dist-info/licenses/LICENSE,sha256=8plAmZh8y9ccuuqFFz4kp7G-cO_qsPgAOoHNvabSB4U,1070
|
|
1824
|
+
mindroot-8.8.0.dist-info/METADATA,sha256=rLdkd-0bi6EYoltbj4FBPv5xnoCziteqvJIzFeSCBEM,792
|
|
1825
|
+
mindroot-8.8.0.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
|
1826
|
+
mindroot-8.8.0.dist-info/entry_points.txt,sha256=0bpyjMccLttx6VcjDp6zfJPN0Kk0rffor6IdIbP0j4c,50
|
|
1827
|
+
mindroot-8.8.0.dist-info/top_level.txt,sha256=gwKm7DmNjhdrCJTYCrxa9Szne4lLpCtrEBltfsX-Mm8,9
|
|
1828
|
+
mindroot-8.8.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|