poad 2.72.0 → 2.72.1
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/package.json +1 -1
- package/project/logs.js +3 -0
- package/utils/help-details.js +3 -1
- package/utils/logline.js +2 -2
package/package.json
CHANGED
package/project/logs.js
CHANGED
|
@@ -31,6 +31,9 @@
|
|
|
31
31
|
// et le navigateur (source=server|browser) ; page=<id> pour une page
|
|
32
32
|
// poad logs storage upload=<id> un envoi en morceaux (storage 0.6+) : début, interruption,
|
|
33
33
|
// reprise, fin, annulation, abandon ; bucket=<id> pour un bucket
|
|
34
|
+
// poad logs flows bucket=depots object=<chemin> un objet du Stockage lu par une étape (GET …/object) ou
|
|
35
|
+
// qui a lancé un flow (engine 0.70.1+) ; trigger=storage les lancements par un
|
|
36
|
+
// envoi, event=storage.object.created
|
|
34
37
|
// poad logs data event=sync_pull device=<id> synchronisation d'une table synchronisée (engine 0.70+) :
|
|
35
38
|
// sync_pull, sync_push (data), sync_purge (meta), avec table= et device=
|
|
36
39
|
// poad logs limit=500 nombre de lignes (100 par défaut)
|
package/utils/help-details.js
CHANGED
|
@@ -118,7 +118,9 @@ const sheets = {
|
|
|
118
118
|
['channel=<name>', 'a realtime channel (engine 0.32+): joins, leaves, subscriptions, deliveries'],
|
|
119
119
|
['source=<name>', 'a source of poad/sources (engine 0.64+): each synchronisation (received, added, updated, removed) and its failures'],
|
|
120
120
|
['upload=<id>', 'a chunked storage upload (storage 0.6+): started, interrupted, resumed, finished, cancelled or abandoned'],
|
|
121
|
-
['bucket=<id>', 'the lines about a storage bucket: uploads, upload rules'],
|
|
121
|
+
['bucket=<id>', 'the lines about a storage bucket: uploads, upload rules, objects read by a flow step or that started a flow (engine 0.70.1+)'],
|
|
122
|
+
['object=<path>', 'an object of a bucket: read by a flow step (GET …/object), or that started a flow (engine 0.70.1+)'],
|
|
123
|
+
['trigger=<kind>', 'runs started by a kind of trigger: webhook, client, cron, storage (engine 0.70.1+)'],
|
|
122
124
|
['limit=100', 'number of lines, from 1 to 10000'],
|
|
123
125
|
['-f, --follow', 'follow live'],
|
|
124
126
|
['--json', 'one JSON line per entry (for jq)'],
|
package/utils/logline.js
CHANGED
|
@@ -5,8 +5,8 @@ const LEVELS = ['debug', 'info', 'warn', 'error', 'fatal'];
|
|
|
5
5
|
|
|
6
6
|
// Options de filtre → attribut de la ligne (attrs). Mêmes noms et même sens
|
|
7
7
|
// que les paramètres de /logs/v1 (services/logs/src/api.ts de l'infra).
|
|
8
|
-
const ATTR_OPTIONS = { flow: 'flow', step: 'step', function: 'function', tool: 'tool', outcome: 'outcome', provider: 'provider', model: 'model', event: 'event', table: 'table', channel: 'channel', front: 'front', page: 'page', source: 'source_name', upload: 'upload_id', bucket: 'bucket', connection: 'connection', host: 'host', user: 'user_id', device: 'device' };
|
|
9
|
-
const EXAMPLES = { flow: 'demo-flux', step: 'appel', function: 'demo-stats', tool: 'select_rows', outcome: 'refused', provider: 'anthropic', model: 'claude-opus-5-5', event: 'ai_default_model_changed', table: 'notes', channel: 'notes', front: 'k3x9q2m7a1bc', page: 'accueil', source: 'communes', upload: '0b8e8f7e-1b2c-4d5e-8f90-123456789abc', bucket: 'documents', connection: 'sncf', host: 'api.sncf.com', user: '4dbcaf19-7549-4c48-a3ad-f6bc173d3c48', device: 'alice-tel' };
|
|
8
|
+
const ATTR_OPTIONS = { flow: 'flow', step: 'step', function: 'function', tool: 'tool', outcome: 'outcome', provider: 'provider', model: 'model', event: 'event', table: 'table', channel: 'channel', front: 'front', page: 'page', source: 'source_name', upload: 'upload_id', bucket: 'bucket', object: 'object', trigger: 'trigger_kind', connection: 'connection', host: 'host', user: 'user_id', device: 'device' };
|
|
9
|
+
const EXAMPLES = { flow: 'demo-flux', step: 'appel', function: 'demo-stats', tool: 'select_rows', outcome: 'refused', provider: 'anthropic', model: 'claude-opus-5-5', event: 'ai_default_model_changed', table: 'notes', channel: 'notes', front: 'k3x9q2m7a1bc', page: 'accueil', source: 'communes', upload: '0b8e8f7e-1b2c-4d5e-8f90-123456789abc', bucket: 'documents', object: 'releves/mars.csv', trigger: 'storage', connection: 'sncf', host: 'api.sncf.com', user: '4dbcaf19-7549-4c48-a3ad-f6bc173d3c48', device: 'alice-tel' };
|
|
10
10
|
// Identifiant d'exécution (UUID) entier, ou son début : 8 caractères au moins
|
|
11
11
|
const RUN_RE = /^[0-9a-f-]{8,36}$/;
|
|
12
12
|
|