zerochat 7.3.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.
- zerochat-7.3.0.dist-info/METADATA +70 -0
- zerochat-7.3.0.dist-info/RECORD +130 -0
- zerochat-7.3.0.dist-info/WHEEL +5 -0
- zerochat-7.3.0.dist-info/entry_points.txt +2 -0
- zerochat-7.3.0.dist-info/licenses/LICENSE +34 -0
- zerochat-7.3.0.dist-info/top_level.txt +2 -0
- zerochat.py +2004 -0
- zerochat_runtime/__init__.py +1 -0
- zerochat_runtime/assets/css/base.css +199 -0
- zerochat_runtime/assets/css/components/composer.css +1258 -0
- zerochat_runtime/assets/css/components/debug.css +777 -0
- zerochat_runtime/assets/css/components/header.css +97 -0
- zerochat_runtime/assets/css/components/icons.css +39 -0
- zerochat_runtime/assets/css/components/markdown.css +685 -0
- zerochat_runtime/assets/css/components/messages.css +473 -0
- zerochat_runtime/assets/css/components/modals.css +1319 -0
- zerochat_runtime/assets/css/components/sidebar.css +622 -0
- zerochat_runtime/assets/css/components/tools.css +1223 -0
- zerochat_runtime/assets/css/layout.css +171 -0
- zerochat_runtime/assets/css/print.css +120 -0
- zerochat_runtime/assets/css/styles.css +18 -0
- zerochat_runtime/assets/css/theme-overrides.css +555 -0
- zerochat_runtime/assets/css/tokens.css +165 -0
- zerochat_runtime/assets/help/architecture.html +247 -0
- zerochat_runtime/assets/help/composer.html +134 -0
- zerochat_runtime/assets/help/conversations.html +105 -0
- zerochat_runtime/assets/help/debug.html +108 -0
- zerochat_runtime/assets/help/en/architecture.html +247 -0
- zerochat_runtime/assets/help/en/composer.html +134 -0
- zerochat_runtime/assets/help/en/conversations.html +104 -0
- zerochat_runtime/assets/help/en/debug.html +105 -0
- zerochat_runtime/assets/help/en/gemini-free.html +39 -0
- zerochat_runtime/assets/help/en/index.html +191 -0
- zerochat_runtime/assets/help/en/learning.html +71 -0
- zerochat_runtime/assets/help/en/mcp.html +143 -0
- zerochat_runtime/assets/help/en/openrouter-free.html +39 -0
- zerochat_runtime/assets/help/en/profiles.html +173 -0
- zerochat_runtime/assets/help/en/rag.html +130 -0
- zerochat_runtime/assets/help/en/reasoning-telemetry.html +108 -0
- zerochat_runtime/assets/help/en/tools-agent.html +133 -0
- zerochat_runtime/assets/help/en/webllm.html +355 -0
- zerochat_runtime/assets/help/gemini-free.html +39 -0
- zerochat_runtime/assets/help/help.css +604 -0
- zerochat_runtime/assets/help/help.js +51 -0
- zerochat_runtime/assets/help/index.html +194 -0
- zerochat_runtime/assets/help/learning.html +71 -0
- zerochat_runtime/assets/help/mcp.html +143 -0
- zerochat_runtime/assets/help/openrouter-free.html +39 -0
- zerochat_runtime/assets/help/profiles.html +174 -0
- zerochat_runtime/assets/help/rag.html +130 -0
- zerochat_runtime/assets/help/reasoning-telemetry.html +111 -0
- zerochat_runtime/assets/help/tools-agent.html +133 -0
- zerochat_runtime/assets/help/webllm.html +359 -0
- zerochat_runtime/assets/js/agent-core.js +1553 -0
- zerochat_runtime/assets/js/api.js +844 -0
- zerochat_runtime/assets/js/app.js +2558 -0
- zerochat_runtime/assets/js/attachments.js +220 -0
- zerochat_runtime/assets/js/charts.js +338 -0
- zerochat_runtime/assets/js/chat-engine.js +566 -0
- zerochat_runtime/assets/js/config-store.js +207 -0
- zerochat_runtime/assets/js/context-manager.js +584 -0
- zerochat_runtime/assets/js/conversation-service.js +484 -0
- zerochat_runtime/assets/js/cookies.js +688 -0
- zerochat_runtime/assets/js/data-reset-service.js +136 -0
- zerochat_runtime/assets/js/debug.js +508 -0
- zerochat_runtime/assets/js/defaults.js +16 -0
- zerochat_runtime/assets/js/export.js +179 -0
- zerochat_runtime/assets/js/file-parser.js +2088 -0
- zerochat_runtime/assets/js/generation-controller.js +417 -0
- zerochat_runtime/assets/js/i18n.js +1483 -0
- zerochat_runtime/assets/js/icons.js +156 -0
- zerochat_runtime/assets/js/ingestionEngine.js +436 -0
- zerochat_runtime/assets/js/markdown.js +588 -0
- zerochat_runtime/assets/js/mcp.js +1271 -0
- zerochat_runtime/assets/js/message-turns.js +62 -0
- zerochat_runtime/assets/js/profile-backup.js +118 -0
- zerochat_runtime/assets/js/profile-export-bundle.js +481 -0
- zerochat_runtime/assets/js/profile-repository.js +213 -0
- zerochat_runtime/assets/js/providers-webllm.js +486 -0
- zerochat_runtime/assets/js/providers.js +1560 -0
- zerochat_runtime/assets/js/rag-index.js +295 -0
- zerochat_runtime/assets/js/rag-service.js +530 -0
- zerochat_runtime/assets/js/rag-ui.js +997 -0
- zerochat_runtime/assets/js/ragStorage.js +676 -0
- zerochat_runtime/assets/js/sandbox.js +449 -0
- zerochat_runtime/assets/js/state.js +704 -0
- zerochat_runtime/assets/js/storage-db.js +144 -0
- zerochat_runtime/assets/js/tool-cards.js +330 -0
- zerochat_runtime/assets/js/tool-security.js +653 -0
- zerochat_runtime/assets/js/tools/README.md +50 -0
- zerochat_runtime/assets/js/tools/builtin/agent-checkpoint.tool.js +212 -0
- zerochat_runtime/assets/js/tools/builtin/download-pdf.tool.js +111 -0
- zerochat_runtime/assets/js/tools/builtin/execute-javascript.tool.js +219 -0
- zerochat_runtime/assets/js/tools/builtin/fetch-web-page.tool.js +112 -0
- zerochat_runtime/assets/js/tools/builtin/list-documents.tool.js +117 -0
- zerochat_runtime/assets/js/tools/builtin/read-knowledge-chunk.tool.js +129 -0
- zerochat_runtime/assets/js/tools/builtin/read-knowledge-image.tool.js +95 -0
- zerochat_runtime/assets/js/tools/builtin/render-chart.tool.js +90 -0
- zerochat_runtime/assets/js/tools/builtin/search-knowledge-base.tool.js +124 -0
- zerochat_runtime/assets/js/tools/builtin/search-web.tool.js +125 -0
- zerochat_runtime/assets/js/tools/tool-manifest.js +53 -0
- zerochat_runtime/assets/js/tools/tool-runtime.js +77 -0
- zerochat_runtime/assets/js/ui-composer.js +319 -0
- zerochat_runtime/assets/js/ui-conversation.js +655 -0
- zerochat_runtime/assets/js/ui-dialogs.js +132 -0
- zerochat_runtime/assets/js/ui-generation-status.js +119 -0
- zerochat_runtime/assets/js/ui-inspector.js +804 -0
- zerochat_runtime/assets/js/ui-mcp.js +604 -0
- zerochat_runtime/assets/js/ui-profiles.js +824 -0
- zerochat_runtime/assets/js/ui-reasoning.js +146 -0
- zerochat_runtime/assets/js/ui-settings.js +825 -0
- zerochat_runtime/assets/js/ui-shell.js +215 -0
- zerochat_runtime/assets/js/ui-sidebar.js +429 -0
- zerochat_runtime/assets/js/ui-telemetry.js +404 -0
- zerochat_runtime/assets/js/ui-transfer.js +262 -0
- zerochat_runtime/assets/js/utils.js +216 -0
- zerochat_runtime/assets/js/vendor/orama.browser.js +11 -0
- zerochat_runtime/assets/js/web-browser.js +569 -0
- zerochat_runtime/assets/js/web-search.js +519 -0
- zerochat_runtime/assets/manifest.webmanifest +20 -0
- zerochat_runtime/assets/services/dummy_mcp/dummy_mcp_server.py +47 -0
- zerochat_runtime/assets/services/dummy_mcp/service.json +22 -0
- zerochat_runtime/assets/services/lsp/installer.json +9 -0
- zerochat_runtime/assets/services/lsp/service.json +22 -0
- zerochat_runtime/assets/services/memory/installer.json +9 -0
- zerochat_runtime/assets/services/memory/service.json +24 -0
- zerochat_runtime/assets/services/playwright/installer.json +10 -0
- zerochat_runtime/assets/services/playwright/service.json +39 -0
- zerochat_runtime/assets/sw.js +164 -0
- zerochat_runtime/assets/zerochat.html +671 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "playwright",
|
|
4
|
+
"displayName": {
|
|
5
|
+
"es": "Playwright MCP",
|
|
6
|
+
"en": "Playwright MCP"
|
|
7
|
+
},
|
|
8
|
+
"description": {
|
|
9
|
+
"es": "Automatización de navegador mediante el servidor MCP oficial de Playwright.",
|
|
10
|
+
"en": "Browser automation through the official Playwright MCP server."
|
|
11
|
+
},
|
|
12
|
+
"enabledByDefault": false,
|
|
13
|
+
"transport": "stdio",
|
|
14
|
+
"launch": {
|
|
15
|
+
"executable": "${nodeExecutable}",
|
|
16
|
+
"args": ["${serviceDir}/node_modules/@playwright/mcp/cli.js", "--browser=chromium"],
|
|
17
|
+
"cwd": "${serviceDir}",
|
|
18
|
+
"env": {},
|
|
19
|
+
"handshakeTimeoutSeconds": 30
|
|
20
|
+
},
|
|
21
|
+
"options": [
|
|
22
|
+
{
|
|
23
|
+
"id": "headless",
|
|
24
|
+
"type": "boolean",
|
|
25
|
+
"label": {
|
|
26
|
+
"es": "Navegación en segundo plano (Headless)",
|
|
27
|
+
"en": "Headless background mode"
|
|
28
|
+
},
|
|
29
|
+
"description": {
|
|
30
|
+
"es": "Desactívalo para ver la ventana del navegador durante la automatización",
|
|
31
|
+
"en": "Disable to display the browser window during automation"
|
|
32
|
+
},
|
|
33
|
+
"default": true,
|
|
34
|
+
"argsWhenTrue": ["--headless"],
|
|
35
|
+
"argsWhenFalse": []
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZeroChat Service Worker (PWA & Offline Fast-Startup)
|
|
3
|
+
* Proporciona carga instantánea desde almacenamiento local (0 ms de latencia)
|
|
4
|
+
* y actualización en segundo plano (Stale-While-Revalidate).
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
const CACHE_NAME = 'zerochat-v7.3.0';
|
|
8
|
+
|
|
9
|
+
const PRECACHE_ASSETS = [
|
|
10
|
+
'./',
|
|
11
|
+
'./zerochat.html',
|
|
12
|
+
'./manifest.webmanifest',
|
|
13
|
+
'./css/tokens.css',
|
|
14
|
+
'./css/base.css',
|
|
15
|
+
'./css/layout.css',
|
|
16
|
+
'./css/components/icons.css',
|
|
17
|
+
'./css/components/header.css',
|
|
18
|
+
'./css/components/sidebar.css',
|
|
19
|
+
'./css/components/messages.css',
|
|
20
|
+
'./css/components/markdown.css',
|
|
21
|
+
'./css/components/composer.css',
|
|
22
|
+
'./css/components/modals.css',
|
|
23
|
+
'./css/components/tools.css',
|
|
24
|
+
'./css/components/debug.css',
|
|
25
|
+
'./css/theme-overrides.css',
|
|
26
|
+
'./css/print.css',
|
|
27
|
+
'./css/styles.css',
|
|
28
|
+
'./js/vendor/orama.browser.js',
|
|
29
|
+
'./js/utils.js',
|
|
30
|
+
'./js/storage-db.js',
|
|
31
|
+
'./js/message-turns.js',
|
|
32
|
+
'./js/state.js',
|
|
33
|
+
'./js/cookies.js',
|
|
34
|
+
'./js/ragStorage.js',
|
|
35
|
+
'./js/rag-index.js',
|
|
36
|
+
'./js/ingestionEngine.js',
|
|
37
|
+
'./js/rag-service.js',
|
|
38
|
+
'./js/rag-ui.js',
|
|
39
|
+
'./js/i18n.js',
|
|
40
|
+
'./js/icons.js',
|
|
41
|
+
'./js/ui-dialogs.js',
|
|
42
|
+
'./js/ui-generation-status.js',
|
|
43
|
+
'./js/sandbox.js',
|
|
44
|
+
'./js/charts.js',
|
|
45
|
+
'./js/web-browser.js',
|
|
46
|
+
'./js/web-search.js',
|
|
47
|
+
'./js/markdown.js',
|
|
48
|
+
'./js/providers.js',
|
|
49
|
+
'./js/providers-webllm.js',
|
|
50
|
+
'./js/api.js',
|
|
51
|
+
'./js/file-parser.js',
|
|
52
|
+
'./js/tools/tool-runtime.js',
|
|
53
|
+
'./js/tools/tool-manifest.js',
|
|
54
|
+
'./js/tools/builtin/execute-javascript.tool.js',
|
|
55
|
+
'./js/tools/builtin/search-web.tool.js',
|
|
56
|
+
'./js/tools/builtin/fetch-web-page.tool.js',
|
|
57
|
+
'./js/tools/builtin/download-pdf.tool.js',
|
|
58
|
+
'./js/tools/builtin/render-chart.tool.js',
|
|
59
|
+
'./js/tools/builtin/list-documents.tool.js',
|
|
60
|
+
'./js/tools/builtin/search-knowledge-base.tool.js',
|
|
61
|
+
'./js/tools/builtin/read-knowledge-chunk.tool.js',
|
|
62
|
+
'./js/tools/builtin/read-knowledge-image.tool.js',
|
|
63
|
+
'./js/tools/builtin/agent-checkpoint.tool.js',
|
|
64
|
+
'./js/tool-security.js',
|
|
65
|
+
'./js/agent-core.js',
|
|
66
|
+
'./js/mcp.js',
|
|
67
|
+
'./js/debug.js',
|
|
68
|
+
'./js/tool-cards.js',
|
|
69
|
+
'./js/attachments.js',
|
|
70
|
+
'./js/export.js',
|
|
71
|
+
'./js/profile-backup.js',
|
|
72
|
+
'./js/profile-repository.js',
|
|
73
|
+
'./js/config-store.js',
|
|
74
|
+
'./js/context-manager.js',
|
|
75
|
+
'./js/chat-engine.js',
|
|
76
|
+
'./js/ui-reasoning.js',
|
|
77
|
+
'./js/ui-inspector.js',
|
|
78
|
+
'./js/ui-sidebar.js',
|
|
79
|
+
'./js/ui-settings.js',
|
|
80
|
+
'./js/ui-telemetry.js',
|
|
81
|
+
'./js/ui-mcp.js',
|
|
82
|
+
'./js/ui-shell.js',
|
|
83
|
+
'./js/data-reset-service.js',
|
|
84
|
+
'./js/ui-transfer.js',
|
|
85
|
+
'./js/ui-profiles.js',
|
|
86
|
+
'./js/ui-composer.js',
|
|
87
|
+
'./js/conversation-service.js',
|
|
88
|
+
'./js/ui-conversation.js',
|
|
89
|
+
'./js/generation-controller.js',
|
|
90
|
+
'./js/app.js'
|
|
91
|
+
];
|
|
92
|
+
|
|
93
|
+
self.addEventListener('install', event => {
|
|
94
|
+
event.waitUntil(
|
|
95
|
+
caches.open(CACHE_NAME).then(cache => {
|
|
96
|
+
return Promise.allSettled(
|
|
97
|
+
PRECACHE_ASSETS.map(asset =>
|
|
98
|
+
fetch(asset, { cache: 'no-cache' })
|
|
99
|
+
.then(res => {
|
|
100
|
+
if (res.ok) return cache.put(asset, res);
|
|
101
|
+
})
|
|
102
|
+
.catch(() => {})
|
|
103
|
+
)
|
|
104
|
+
);
|
|
105
|
+
}).then(() => self.skipWaiting())
|
|
106
|
+
);
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
self.addEventListener('activate', event => {
|
|
110
|
+
event.waitUntil(
|
|
111
|
+
caches.keys().then(keys => {
|
|
112
|
+
return Promise.all(
|
|
113
|
+
keys.map(key => {
|
|
114
|
+
if (key.startsWith('zerochat-') && key !== CACHE_NAME) {
|
|
115
|
+
return caches.delete(key);
|
|
116
|
+
}
|
|
117
|
+
})
|
|
118
|
+
);
|
|
119
|
+
}).then(() => self.clients.claim())
|
|
120
|
+
);
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
self.addEventListener('fetch', event => {
|
|
124
|
+
const req = event.request;
|
|
125
|
+
if (req.method !== 'GET') {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
const url = new URL(req.url);
|
|
130
|
+
|
|
131
|
+
// Exclusivamente para peticiones del mismo origen
|
|
132
|
+
if (url.origin !== self.location.origin) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// Ignorar endpoints de API, túneles o llamadas dinámicas
|
|
137
|
+
if (url.pathname.startsWith('/api') ||
|
|
138
|
+
url.pathname.startsWith('/mcp') ||
|
|
139
|
+
url.pathname.startsWith('/zerochat') ||
|
|
140
|
+
url.pathname.startsWith('/sse') ||
|
|
141
|
+
url.pathname.startsWith('/v1') ||
|
|
142
|
+
url.pathname.startsWith('/ws')) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Estrategia Stale-While-Revalidate
|
|
147
|
+
event.respondWith(
|
|
148
|
+
caches.open(CACHE_NAME).then(cache => {
|
|
149
|
+
return cache.match(req).then(cachedResponse => {
|
|
150
|
+
const fetchPromise = fetch(req).then(networkResponse => {
|
|
151
|
+
if (networkResponse && networkResponse.status === 200 && networkResponse.type === 'basic') {
|
|
152
|
+
cache.put(req, networkResponse.clone());
|
|
153
|
+
}
|
|
154
|
+
return networkResponse;
|
|
155
|
+
}).catch(() => {
|
|
156
|
+
return cachedResponse;
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
return cachedResponse || fetchPromise;
|
|
160
|
+
});
|
|
161
|
+
})
|
|
162
|
+
);
|
|
163
|
+
});
|
|
164
|
+
|