@gishubperu/ghp 0.0.2 β 0.0.3
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/index.js
CHANGED
|
@@ -18,7 +18,7 @@ const args = process.argv.slice(2);
|
|
|
18
18
|
|
|
19
19
|
if (args.includes('--help') || args.includes('-h')) {
|
|
20
20
|
console.log(`
|
|
21
|
-
π§
|
|
21
|
+
π§ GHP β Multi-Agent System
|
|
22
22
|
|
|
23
23
|
USO:
|
|
24
24
|
ghp Inicia la interfaz interactiva
|
|
@@ -27,15 +27,18 @@ if (args.includes('--help') || args.includes('-h')) {
|
|
|
27
27
|
ghp --version VersiΓ³n
|
|
28
28
|
|
|
29
29
|
ATAJOS EN LA INTERFAZ:
|
|
30
|
-
Tab Cambiar
|
|
31
|
-
ctrl+k Selector de modelo
|
|
30
|
+
Tab Cambiar modelo de IA
|
|
31
|
+
ctrl+k Selector de modelo (tambiΓ©n /model)
|
|
32
32
|
/model Selector de modelo
|
|
33
33
|
/auto Modo automΓ‘tico
|
|
34
34
|
/clear Borrar memoria de sesiΓ³n
|
|
35
35
|
/history Γltimas conversaciones
|
|
36
|
+
/help Mostrar ayuda
|
|
36
37
|
Esc Cancelar / Salir
|
|
37
38
|
/exit Salir
|
|
38
|
-
|
|
39
|
+
|
|
40
|
+
Desarrollado por Gishub S.A.C β gishub.pe
|
|
41
|
+
`);
|
|
39
42
|
process.exit(0);
|
|
40
43
|
}
|
|
41
44
|
|
|
@@ -28,7 +28,7 @@ export const AgentConfig = Object.freeze({
|
|
|
28
28
|
[AgentType.DEFORESTATION]: {
|
|
29
29
|
id: AgentType.DEFORESTATION,
|
|
30
30
|
label: 'DeforestaciΓ³n',
|
|
31
|
-
description: 'PermitirΓ‘ crear reportes de deforestaciΓ³n de las Γ‘reas de cultivo (PPA) con la plataforma de OpenForis',
|
|
31
|
+
description: 'PermitirΓ‘ crear reportes de deforestaciΓ³n de las Γ‘reas de cultivo (PPA) con la plataforma Whisp de OpenForis',
|
|
32
32
|
color: 'magenta',
|
|
33
33
|
taskType: 'gis',
|
|
34
34
|
},
|
package/package.json
CHANGED
|
@@ -54,15 +54,15 @@ function Spinner({ label }) {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
// ββ Logo ASCII ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
58
|
-
const LOGO = [
|
|
59
|
-
' βββββββ βββ ββββββββββ ββββββββββ βββ',
|
|
60
|
-
'ββββββββ βββ βββββββββββ βββββββββββ βββ',
|
|
61
|
-
'βββ ββββββββββββββββββββ βββ βββ βββ',
|
|
62
|
-
'βββ ββββββββββββββββββ βββ βββ βββ',
|
|
63
|
-
'ββββββββββββ ββββββ βββββββββββββββββββ',
|
|
64
|
-
' βββββββ βββ ββββββ ββββββββββββββββββ',
|
|
65
|
-
];
|
|
57
|
+
// ββ Logo ASCII ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
58
|
+
const LOGO = [
|
|
59
|
+
' βββββββ βββ ββββββββββ ββββββββββ βββ',
|
|
60
|
+
'ββββββββ βββ βββββββββββ βββββββββββ βββ',
|
|
61
|
+
'βββ ββββββββββββββββββββ βββ βββ βββ',
|
|
62
|
+
'βββ ββββββββββββββββββ βββ βββ βββ',
|
|
63
|
+
'ββββββββββββ ββββββ βββββββββββββββββββ',
|
|
64
|
+
' βββββββ βββ ββββββ ββββββββββββββββββ',
|
|
65
|
+
];
|
|
66
66
|
|
|
67
67
|
// ββ Mensaje βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
68
68
|
function Msg({ msg }) {
|
|
@@ -261,16 +261,19 @@ export function App({ orchestrator, router, memory }) {
|
|
|
261
261
|
es.forEach(e => addMsg({ role: 'system', text: `[${e.timestamp.slice(0,16).replace('T',' ')}] ${e.input.slice(0,70)}` }));
|
|
262
262
|
return;
|
|
263
263
|
}
|
|
264
|
-
if (text === '/help') {
|
|
265
|
-
addMsg({ role: 'system', text:
|
|
266
|
-
'
|
|
267
|
-
'
|
|
268
|
-
'/
|
|
269
|
-
'/
|
|
270
|
-
'/
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
264
|
+
if (text === '/help') {
|
|
265
|
+
addMsg({ role: 'system', text:
|
|
266
|
+
'ATAJOS:\n' +
|
|
267
|
+
' Tab β Cambiar modelo de IA\n' +
|
|
268
|
+
' /model β Selector de modelo\n' +
|
|
269
|
+
' /auto β Modo automΓ‘tico\n' +
|
|
270
|
+
' /clear β Borrar memoria\n' +
|
|
271
|
+
' /history β Γltimas conversaciones\n' +
|
|
272
|
+
' /exit β Salir\n\n' +
|
|
273
|
+
'Desarrollado por Gishub S.A.C β gishub.pe'
|
|
274
|
+
});
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
274
277
|
|
|
275
278
|
addMsg({ role: 'user', text });
|
|
276
279
|
setMode('thinking');
|
|
@@ -373,8 +376,8 @@ export function App({ orchestrator, router, memory }) {
|
|
|
373
376
|
React.createElement(Text, { color: 'green', bold: true }, `${freeModelCount} free models `),
|
|
374
377
|
React.createElement(Text, { color: 'gray' }, `${availableModels.length} total GHP Gateway ${APP_NAME} v${APP_VERSION}`)
|
|
375
378
|
),
|
|
376
|
-
//
|
|
377
|
-
React.createElement(Box, { marginTop: 2, gap: 1 },
|
|
379
|
+
// Model pills β Tab para cambiar
|
|
380
|
+
React.createElement(Box, { marginTop: 2, gap: 1 },
|
|
378
381
|
...AGENT_LIST.map((a, i) =>
|
|
379
382
|
React.createElement(Text, {
|
|
380
383
|
key: a.id,
|
|
@@ -389,10 +392,16 @@ export function App({ orchestrator, router, memory }) {
|
|
|
389
392
|
React.createElement(Text, { color: 'gray', italic: true },
|
|
390
393
|
AGENT_LIST[agentIndex].description)
|
|
391
394
|
),
|
|
392
|
-
React.createElement(Box, { marginTop: 0 },
|
|
393
|
-
React.createElement(Text, { color: 'gray', dimColor: true },
|
|
394
|
-
'tab para cambiar
|
|
395
|
-
)
|
|
395
|
+
React.createElement(Box, { marginTop: 0 },
|
|
396
|
+
React.createElement(Text, { color: 'gray', dimColor: true },
|
|
397
|
+
'tab para cambiar modelo | /model para ver todos | /help para ayuda')
|
|
398
|
+
),
|
|
399
|
+
React.createElement(Box, { marginTop: 2 },
|
|
400
|
+
React.createElement(Text, { color: 'cyan' }, 'Desarrollado por Gishub S.A.C ')
|
|
401
|
+
),
|
|
402
|
+
React.createElement(Box, { marginTop: 0 },
|
|
403
|
+
React.createElement(Text, { color: 'gray', bold: true }, 'https://gishub.pe')
|
|
404
|
+
)
|
|
396
405
|
),
|
|
397
406
|
|
|
398
407
|
// Mensajes
|