@tricoteuses/tisseuse 0.22.0 → 0.22.2
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/README.md +18 -0
- package/dist/scripts/assemblee_install.integration.test.d.ts +1 -0
- package/dist/scripts/fixtures/assemblee-collation.d.ts +1 -0
- package/dist/scripts/fixtures/assemblee-empty-snapshot.d.ts +1 -0
- package/dist/scripts/installation-sandbox-locks.test.d.ts +1 -0
- package/dist/scripts/shared/assemblee_enqueue.d.ts +6 -0
- package/dist/scripts/sync_assemblee_queue.integration.test.d.ts +1 -0
- package/package.json +18 -14
package/README.md
CHANGED
|
@@ -25,6 +25,24 @@ la liste `referenceParsingModes` sont exportés par le point d’entrée public.
|
|
|
25
25
|
|
|
26
26
|
Voir le [contrat et les limites de validation](../../fonctionnalités/references-autonomes-tisseuse-moulineuse.md).
|
|
27
27
|
|
|
28
|
+
## Avertissements et décisions de résolution
|
|
29
|
+
|
|
30
|
+
`addLinksToHtml` peut signaler, dans le HTML produit, une référence indécidable
|
|
31
|
+
(ancre sans `href`, `class="reference_article_indecidable"` ou
|
|
32
|
+
`reference_texte_indecidable`) ou une consultation avertie (`data-tisseuse-warning`,
|
|
33
|
+
`data-tisseuse-candidates`). Ces attributs sont déjà présents sans option ; les
|
|
34
|
+
applications doivent les valider avec `@tricoteuses/tisseuse/link-decision-metadata`
|
|
35
|
+
avant de les rendre interactifs.
|
|
36
|
+
|
|
37
|
+
Pour obtenir les décisions structurées (statut, candidats, motifs, avertissements),
|
|
38
|
+
fournir `linkDecisionDocumentId` ; la sortie expose alors `linkDecisions`. L’option
|
|
39
|
+
`renderLinkDecisions` va plus loin et rend la décision dans chaque lien externe.
|
|
40
|
+
Sans identifiant de document, aucune décision structurée n’est renvoyée.
|
|
41
|
+
|
|
42
|
+
**Le Markdown ne transporte ni attributs ni avertissements** : `addLinksToMarkdown`
|
|
43
|
+
ne modifie pas son rendu pour signaler une incertitude. Un consommateur qui a besoin
|
|
44
|
+
de ces informations doit utiliser la sortie HTML ou demander les décisions.
|
|
45
|
+
|
|
28
46
|
## Installation
|
|
29
47
|
|
|
30
48
|
### Create database
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SupportedAssembleeLegislature } from './assemblee_legislature.js';
|
|
2
|
+
type Queue = "content" | "search";
|
|
3
|
+
export declare function enqueueSelectedAssembleeDocuments(documentUids: string[], queue: Queue): Promise<void>;
|
|
4
|
+
/** Le balayage est borné en mémoire et reprenable, mais non atomique. */
|
|
5
|
+
export declare function enqueueAllAssembleeDocuments(queue: Queue, legislature?: SupportedAssembleeLegislature, afterInitialCapture?: () => Promise<void>): Promise<number>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tricoteuses/tisseuse",
|
|
3
3
|
"description": "Find links in/to French legislative documents",
|
|
4
|
-
"version": "0.22.
|
|
4
|
+
"version": "0.22.2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Assemblée nationale",
|
|
7
7
|
"France",
|
|
@@ -64,38 +64,42 @@
|
|
|
64
64
|
"associate:jorf:commissions": "tsx src/scripts/associate_jorf_textes_with_assemblee_commissions.ts",
|
|
65
65
|
"associate:jorf:dossiers": "tsx src/scripts/associate_jorf_textes_with_dossiers_legislatifs_assemblee.ts",
|
|
66
66
|
"audit:doctrinal-references": "tsx src/scripts/audit_doctrinal_references.ts",
|
|
67
|
-
"jurisprudence:pilote": "tsx src/scripts/alimenter_jurisprudence_pilote.ts",
|
|
68
67
|
"audit:doctrinal-references:check": "tsx src/scripts/audit_doctrinal_references.ts --output /tmp/tisseuse-doctrinal-references-audit.json --baseline audits/doctrinal-references-baseline.json --fail-on-regression",
|
|
69
68
|
"build": "vite build",
|
|
70
69
|
"check": "tsc --noEmit",
|
|
70
|
+
"compare:legi-bills": "tsx src/scripts/compare_legi_bills.ts",
|
|
71
71
|
"configure": "tsx src/scripts/configure.ts",
|
|
72
72
|
"configure:postgres:assemblee-triggers": "tsx src/scripts/configure_postgres_assemblee_document_triggers.ts",
|
|
73
|
-
"configure:postgres:senat-triggers": "tsx src/scripts/configure_postgres_senat_document_triggers.ts",
|
|
74
73
|
"configure:postgres:legi-resolver": "tsx src/scripts/configure_postgres_legi_resolver.ts",
|
|
75
74
|
"configure:postgres:legi-root-cid-index": "tsx src/scripts/configure_postgres_root_cid_index.ts",
|
|
76
|
-
"
|
|
77
|
-
"warm:postgres:legi-titles": "tsx src/scripts/warm_canutes_text_titles_cache.ts",
|
|
78
|
-
"test:postgres:legi-cache": "tsx src/scripts/test_canutes_titles_cache.ts",
|
|
79
|
-
"profile:canutes-bill": "tsx src/scripts/profile_canutes_bill.ts",
|
|
80
|
-
"profile:legi-bill": "tsx src/scripts/profile_canutes_bill.ts",
|
|
81
|
-
"compare:legi-bills": "tsx src/scripts/compare_legi_bills.ts",
|
|
75
|
+
"configure:postgres:senat-triggers": "tsx src/scripts/configure_postgres_senat_document_triggers.ts",
|
|
82
76
|
"format": "prettier --write \"src/**/*.ts\" \"*.md\"",
|
|
83
77
|
"index:jos": "tsx src/scripts/extract_jos_infos.ts",
|
|
84
78
|
"index:postgres:assemblee": "tsx src/scripts/index_postgres_assemblee_texts.ts",
|
|
85
79
|
"index:postgres:assemblee-amendments": "tsx src/scripts/index_postgres_assemblee_amendments.ts",
|
|
80
|
+
"index:postgres:judilibre": "tsx src/scripts/index_postgres_judilibre.ts",
|
|
86
81
|
"index:postgres:legifrance": "tsx src/scripts/index_postgres_legifrance_articles.ts",
|
|
87
82
|
"index:postgres:legifrance-jurisprudence": "tsx src/scripts/index_postgres_legifrance_jurisprudence.ts",
|
|
88
|
-
"index:postgres:judilibre": "tsx src/scripts/index_postgres_judilibre.ts",
|
|
89
83
|
"index:postgres:senat": "tsx src/scripts/index_postgres_senat_texts.ts",
|
|
90
84
|
"index:postgres:senat-amendments": "tsx src/scripts/index_postgres_senat_amendments.ts",
|
|
91
|
-
"profile:assemblee-document": "tsx src/scripts/profile_assemblee_document_parsing.ts",
|
|
92
|
-
"sync:postgres:assemblee-content": "tsx src/scripts/sync_postgres_assemblee_document_content.ts",
|
|
93
|
-
"sync:postgres:senat-content": "tsx src/scripts/sync_postgres_senat_document_content.ts",
|
|
94
85
|
"index:typesense": "tsx src/scripts/index_typesense.ts",
|
|
86
|
+
"jurisprudence:pilote": "tsx src/scripts/alimenter_jurisprudence_pilote.ts",
|
|
95
87
|
"lint": "eslint .",
|
|
96
88
|
"prepack": "npm run build",
|
|
89
|
+
"profile:assemblee-document": "tsx src/scripts/profile_assemblee_document_parsing.ts",
|
|
90
|
+
"profile:canutes-bill": "tsx src/scripts/profile_canutes_bill.ts",
|
|
91
|
+
"profile:legi-bill": "tsx src/scripts/profile_canutes_bill.ts",
|
|
92
|
+
"sandbox:install": "tsx installation-sandbox/launch.ts",
|
|
93
|
+
"sandbox:install:context": "tsx installation-sandbox/prepare-context.ts",
|
|
94
|
+
"sandbox:sync": "tsx installation-sandbox/qualification-queue.variant.ts",
|
|
95
|
+
"sandbox:sync:context": "tsx installation-sandbox/prepare-context-queue.ts",
|
|
96
|
+
"sync:postgres:assemblee-content": "tsx src/scripts/sync_postgres_assemblee_document_content.ts",
|
|
97
|
+
"sync:postgres:senat-content": "tsx src/scripts/sync_postgres_senat_document_content.ts",
|
|
97
98
|
"test": "npm run test:unit -- --run",
|
|
98
|
-
"test:
|
|
99
|
+
"test:postgres:legi-cache": "tsx src/scripts/test_canutes_titles_cache.ts",
|
|
100
|
+
"test:postgres:legi-root-cid-index": "vitest run src/lib/legi/canutes_root_cid_index.integration.test.ts",
|
|
101
|
+
"test:unit": "vitest",
|
|
102
|
+
"warm:postgres:legi-titles": "tsx src/scripts/warm_canutes_text_titles_cache.ts"
|
|
99
103
|
},
|
|
100
104
|
"devDependencies": {
|
|
101
105
|
"@eslint/js": "^10.0.1",
|