auto-sync-1810

This commit is contained in:
opus
2026-04-19 18:10:02 +02:00
parent 1aedd5ad17
commit 5c170de483
13 changed files with 216 additions and 5 deletions

View File

@@ -0,0 +1,3 @@
#!/bin/bash
# Sponsors depuis PostgreSQL
sudo -u postgres psql -d adx_clients -c "SELECT name, country, status FROM sponsors LIMIT 20;" 2>/dev/null || echo "No sponsors table"

10
api/v76-scripts/uptime-info.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
# Server uptime + time running
echo "Uptime serveur:"
uptime
echo
echo "Date:"
date
echo
echo "Load average ~ heures actives:"
w | head -1

View File

@@ -0,0 +1,16 @@
#!/bin/bash
# WEVIA version info
python3 -c "
import json
d = json.load(open('/var/www/html/api/wevia-truth-registry.json'))
print(f\"WEVIA Master — version truth-registry\")
print(f\" Agents: {d['agents']['count_unique']}\")
print(f\" Skills: {d['skills']['count'] if 'count' in d.get('skills',{}) else '?'}\")
print(f\" Intents: {d.get('intents',{}).get('count','?')}\")
print(f\" Doctrines: {d.get('doctrines',{}).get('count','?')}\")
print(f\" Dashboards: {d.get('dashboards',{}).get('count','?')}\")
print(f\" Built at: {d.get('built_at','?')}\")"
echo
echo "Sessions récentes:"
ls -1t /var/www/html/wiki/session-opus-19avr-*.md 2>/dev/null | head -5 | sed 's|.*/||'

View File

@@ -1,7 +1,7 @@
{
"ok": true,
"version": "V83-business-kpi",
"ts": "2026-04-19T16:05:25+00:00",
"ts": "2026-04-19T16:09:46+00:00",
"summary": {
"total_categories": 7,
"total_kpis": 56,

View File

@@ -3057,5 +3057,89 @@
"status": "PENDING_APPROVAL",
"created_at": "2026-04-19T16:01:53+00:00",
"source": "opus4-autowire-early-v2"
},
"243": {
"name": "ollama_list",
"triggers": [
"ollama list",
"ollama models",
"models local"
],
"cmd": "curl -sk http:\/\/127.0.0.1:11434\/api\/tags",
"status": "PENDING_APPROVAL",
"created_at": "2026-04-19T16:09:43+00:00",
"source": "opus4-autowire-early-v2"
},
"244": {
"name": "ollama_status",
"triggers": [
"ollama status",
"ollama service",
"ollama running"
],
"cmd": "curl -sk http:\/\/127.0.0.1:11434\/api\/version",
"status": "PENDING_APPROVAL",
"created_at": "2026-04-19T16:09:44+00:00",
"source": "opus4-autowire-early-v2"
},
"245": {
"name": "wevia_version_info",
"triggers": [
"quelle version de wevia",
"version wevia",
"wevia version info"
],
"cmd": "bash \/var\/www\/html\/api\/v76-scripts\/wevia-version.sh",
"status": "PENDING_APPROVAL",
"created_at": "2026-04-19T16:09:44+00:00",
"source": "opus4-autowire-early-v2"
},
"246": {
"name": "disk_space_free",
"triggers": [
"disk space free",
"free space",
"disk available"
],
"cmd": "curl -sk http:\/\/127.0.0.1\/api\/infra-live.php",
"status": "PENDING_APPROVAL",
"created_at": "2026-04-19T16:09:44+00:00",
"source": "opus4-autowire-early-v2"
},
"247": {
"name": "sponsors_list",
"triggers": [
"liste les sponsors",
"sponsors list",
"quels sponsors"
],
"cmd": "bash \/var\/www\/html\/api\/v76-scripts\/sponsors-list.sh",
"status": "PENDING_APPROVAL",
"created_at": "2026-04-19T16:09:45+00:00",
"source": "opus4-autowire-early-v2"
},
"248": {
"name": "uptime_server",
"triggers": [
"combien heure restante",
"uptime serveur",
"depuis quand le serveur"
],
"cmd": "bash \/var\/www\/html\/api\/v76-scripts\/uptime-info.sh",
"status": "PENDING_APPROVAL",
"created_at": "2026-04-19T16:09:46+00:00",
"source": "opus4-autowire-early-v2"
},
"249": {
"name": "ollama_ps",
"triggers": [
"ollama ps",
"ollama running",
"models loaded"
],
"cmd": "curl -sk http:\/\/127.0.0.1:11434\/api\/ps",
"status": "PENDING_APPROVAL",
"created_at": "2026-04-19T16:09:57+00:00",
"source": "opus4-autowire-early-v2"
}
}

View File

@@ -0,0 +1,14 @@
<?php
return array (
'name' => 'disk_space_free',
'triggers' =>
array (
0 => 'disk space free',
1 => 'free space',
2 => 'disk available',
),
'cmd' => 'curl -sk http://127.0.0.1/api/infra-live.php',
'status' => 'PENDING_APPROVAL',
'created_at' => '2026-04-19T16:09:44+00:00',
'source' => 'opus4-autowire-early-v2',
);

View File

@@ -0,0 +1,14 @@
<?php
return array (
'name' => 'ollama_list',
'triggers' =>
array (
0 => 'ollama list',
1 => 'ollama models',
2 => 'models local',
),
'cmd' => 'curl -sk http://127.0.0.1:11434/api/tags',
'status' => 'PENDING_APPROVAL',
'created_at' => '2026-04-19T16:09:43+00:00',
'source' => 'opus4-autowire-early-v2',
);

View File

@@ -0,0 +1,14 @@
<?php
return array (
'name' => 'ollama_ps',
'triggers' =>
array (
0 => 'ollama ps',
1 => 'ollama running',
2 => 'models loaded',
),
'cmd' => 'curl -sk http://127.0.0.1:11434/api/ps',
'status' => 'PENDING_APPROVAL',
'created_at' => '2026-04-19T16:09:57+00:00',
'source' => 'opus4-autowire-early-v2',
);

View File

@@ -0,0 +1,14 @@
<?php
return array (
'name' => 'ollama_status',
'triggers' =>
array (
0 => 'ollama status',
1 => 'ollama service',
2 => 'ollama running',
),
'cmd' => 'curl -sk http://127.0.0.1:11434/api/version',
'status' => 'PENDING_APPROVAL',
'created_at' => '2026-04-19T16:09:44+00:00',
'source' => 'opus4-autowire-early-v2',
);

View File

@@ -0,0 +1,14 @@
<?php
return array (
'name' => 'sponsors_list',
'triggers' =>
array (
0 => 'liste les sponsors',
1 => 'sponsors list',
2 => 'quels sponsors',
),
'cmd' => 'bash /var/www/html/api/v76-scripts/sponsors-list.sh',
'status' => 'PENDING_APPROVAL',
'created_at' => '2026-04-19T16:09:45+00:00',
'source' => 'opus4-autowire-early-v2',
);

View File

@@ -0,0 +1,14 @@
<?php
return array (
'name' => 'uptime_server',
'triggers' =>
array (
0 => 'combien heure restante',
1 => 'uptime serveur',
2 => 'depuis quand le serveur',
),
'cmd' => 'bash /var/www/html/api/v76-scripts/uptime-info.sh',
'status' => 'PENDING_APPROVAL',
'created_at' => '2026-04-19T16:09:46+00:00',
'source' => 'opus4-autowire-early-v2',
);

View File

@@ -6,11 +6,11 @@ return array (
0 => 'salut',
1 => 'bonjour',
2 => 'hello',
3 => 'hi',
4 => 'coucou',
5 => 'ca va',
6 => 'ça va',
7 => 'hey',
8 => 'yo wevia',
),
'cmd' => 'echo salut yacine ! wevia opérationnelle - nr 153/153 - l99 322/322 - 7 sigma 150/150 - 1236 intents wired - 1528 stubs executed - autonomie 92 pourcent - tout live - tu veux quoi maintenant',

View File

@@ -0,0 +1,14 @@
<?php
return array (
'name' => 'wevia_version_info',
'triggers' =>
array (
0 => 'quelle version de wevia',
1 => 'version wevia',
2 => 'wevia version info',
),
'cmd' => 'bash /var/www/html/api/v76-scripts/wevia-version.sh',
'status' => 'PENDING_APPROVAL',
'created_at' => '2026-04-19T16:09:44+00:00',
'source' => 'opus4-autowire-early-v2',
);