avantgate 1.0.0 → 1.1.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.
@@ -0,0 +1,16 @@
1
+ type FinancialJurisdictionCode = "FR" | "US" | "UK" | "CH" | "INTERNATIONAL";
2
+ type AccountingStandard = "PCG" | "US_GAAP" | "IFRS" | "SWISS_CO" | "OTHER";
3
+ type FinancialCurrency = "EUR" | "USD" | "GBP" | "CHF";
4
+ interface IAccountingStrategy {
5
+ readonly jurisdictionCode: FinancialJurisdictionCode;
6
+ readonly standard: AccountingStandard;
7
+ readonly defaultCurrency: FinancialCurrency;
8
+ /** Normalise les formats de nombres et symboles propres au pays */
9
+ cleanNumber(value: string | number): number;
10
+ /** Assainit et répare la syntaxe JSON selon les spécificités du pays */
11
+ cleanJSON(rawText: string): string;
12
+ /** Heuristique de détection automatique à partir du texte brut */
13
+ detect(text: string): boolean;
14
+ }
15
+
16
+ export type { AccountingStandard as A, FinancialJurisdictionCode as F, IAccountingStrategy as I, FinancialCurrency as a };
@@ -0,0 +1,16 @@
1
+ type FinancialJurisdictionCode = "FR" | "US" | "UK" | "CH" | "INTERNATIONAL";
2
+ type AccountingStandard = "PCG" | "US_GAAP" | "IFRS" | "SWISS_CO" | "OTHER";
3
+ type FinancialCurrency = "EUR" | "USD" | "GBP" | "CHF";
4
+ interface IAccountingStrategy {
5
+ readonly jurisdictionCode: FinancialJurisdictionCode;
6
+ readonly standard: AccountingStandard;
7
+ readonly defaultCurrency: FinancialCurrency;
8
+ /** Normalise les formats de nombres et symboles propres au pays */
9
+ cleanNumber(value: string | number): number;
10
+ /** Assainit et répare la syntaxe JSON selon les spécificités du pays */
11
+ cleanJSON(rawText: string): string;
12
+ /** Heuristique de détection automatique à partir du texte brut */
13
+ detect(text: string): boolean;
14
+ }
15
+
16
+ export type { AccountingStandard as A, FinancialJurisdictionCode as F, IAccountingStrategy as I, FinancialCurrency as a };
package/package.json CHANGED
@@ -1,55 +1,82 @@
1
- {
2
- "name": "avantgate",
3
- "version": "1.0.0",
4
- "description": "Zero-infrastructure, in-process LLM control plane: real-time cost control, token budgets, PII redaction, prompt guardrails, and multi-model failover without hosting servers.",
5
- "author": "Antigravity & LexTalk Team",
6
- "license": "MIT",
7
- "keywords": [
8
- "avantgate",
9
- "llm",
10
- "ai",
11
- "cost-control",
12
- "token-budget",
13
- "guardrails",
14
- "langfuse-alternative",
15
- "failover",
16
- "pii-redaction",
17
- "deepseek",
18
- "mistral",
19
- "openai",
20
- "zod"
21
- ],
22
- "main": "./dist/index.js",
23
- "module": "./dist/index.mjs",
24
- "types": "./dist/index.d.ts",
25
- "exports": {
26
- ".": {
27
- "types": "./dist/index.d.ts",
28
- "import": "./dist/index.mjs",
29
- "require": "./dist/index.js"
30
- },
31
- "./package.json": "./package.json"
32
- },
33
- "files": [
34
- "dist",
35
- "README.md",
36
- "LICENSE"
37
- ],
38
- "scripts": {
39
- "build": "tsup src/index.ts --format cjs,esm --dts --clean",
40
- "test": "tsx tests/avantgate.test.ts",
41
- "lint": "tsc --noEmit",
42
- "prepublishOnly": "npm run build && npm test"
43
- },
44
- "dependencies": {
45
- "zod": "^3.23.0 || ^4.0.0"
46
- },
47
- "devDependencies": {
48
- "tsup": "^8.3.5",
49
- "tsx": "^4.19.0",
50
- "typescript": "^5.4.0"
51
- },
52
- "publishConfig": {
53
- "access": "public"
54
- }
55
- }
1
+ {
2
+ "name": "avantgate",
3
+ "version": "1.1.1",
4
+ "description": "Zero-infrastructure, in-process LLM control plane & SaaS observability bridge: real-time cost control, token budgets, PII redaction, prompt guardrails, multi-model failover, durable agent workflow harness, and HTTP telemetry without hosting heavy servers.",
5
+ "author": "Antigravity & LexTalk Team",
6
+ "license": "MIT",
7
+ "keywords": [
8
+ "avantgate",
9
+ "llm",
10
+ "ai",
11
+ "agent",
12
+ "observability",
13
+ "telemetry",
14
+ "session-replay",
15
+ "helicone-alternative",
16
+ "agentops-alternative",
17
+ "durable-execution",
18
+ "human-in-the-loop",
19
+ "dual-channel",
20
+ "cost-control",
21
+ "token-budget",
22
+ "guardrails",
23
+ "langfuse-alternative",
24
+ "failover",
25
+ "pii-redaction",
26
+ "finance",
27
+ "accounting",
28
+ "prompt-builder",
29
+ "prompt-template",
30
+ "deepseek",
31
+ "mistral",
32
+ "openai",
33
+ "zod"
34
+ ],
35
+ "main": "./dist/index.js",
36
+ "module": "./dist/index.mjs",
37
+ "types": "./dist/index.d.ts",
38
+ "exports": {
39
+ ".": {
40
+ "types": "./dist/index.d.ts",
41
+ "import": "./dist/index.mjs",
42
+ "require": "./dist/index.js"
43
+ },
44
+ "./finance": {
45
+ "types": "./dist/finance/index.d.ts",
46
+ "import": "./dist/finance/index.mjs",
47
+ "require": "./dist/finance/index.js"
48
+ },
49
+ "./agent": {
50
+ "types": "./dist/agent/index.d.ts",
51
+ "import": "./dist/agent/index.mjs",
52
+ "require": "./dist/agent/index.js"
53
+ },
54
+ "./package.json": "./package.json"
55
+ },
56
+ "files": [
57
+ "dist",
58
+ "README.md",
59
+ "LICENSE"
60
+ ],
61
+ "scripts": {
62
+ "build": "tsup src/index.ts src/finance/index.ts src/agent/index.ts --format cjs --format esm --dts --clean",
63
+ "test": "tsx tests/avantgate.test.ts && tsx tests/preflight-budget.test.ts && tsx tests/financial-normalizer.test.ts && tsx tests/prompt-builder.test.ts && tsx tests/pii-extended.test.ts && npm run test:agent",
64
+ "test:finance": "tsx tests/financial-normalizer.test.ts",
65
+ "test:prompts": "tsx tests/prompt-builder.test.ts",
66
+ "test:pii": "tsx tests/pii-extended.test.ts",
67
+ "test:agent": "tsx tests/agent/step-runner.test.ts && tsx tests/agent/isolated-tool.test.ts && tsx tests/agent/tool-patterns.test.ts && tsx tests/agent/storage-adapters.test.ts && tsx tests/agent/tool-aliasing.test.ts && tsx tests/agent/tool-chaining.test.ts && tsx tests/agent/tool-storage.test.ts && tsx tests/agent/telemetry-exporter.test.ts && tsx tests/agent/platform-adapter.test.ts",
68
+ "lint": "tsc --noEmit",
69
+ "prepublishOnly": "npm run build && npm test"
70
+ },
71
+ "dependencies": {
72
+ "zod": "^3.23.0 || ^4.0.0"
73
+ },
74
+ "devDependencies": {
75
+ "tsup": "^8.3.5",
76
+ "tsx": "^4.19.0",
77
+ "typescript": "^5.4.0"
78
+ },
79
+ "publishConfig": {
80
+ "access": "public"
81
+ }
82
+ }