create-cogenta 0.4.0 → 0.5.0
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/dist/llm-setup.d.ts +10 -1
- package/dist/llm-setup.d.ts.map +1 -1
- package/dist/llm-setup.js +12 -2
- package/dist/llm-setup.js.map +1 -1
- package/package.json +12 -12
package/dist/llm-setup.d.ts
CHANGED
|
@@ -27,7 +27,16 @@ export interface CreateProviderClientOptions {
|
|
|
27
27
|
/** Test seam only — lets a test stand in for the network without mocking a shared module. */
|
|
28
28
|
readonly fetchImpl?: typeof fetch;
|
|
29
29
|
}
|
|
30
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* The same adapter construction `validateApiKey` uses, exported so a later
|
|
32
|
+
* real call (skin generation, L9 task 7) does not duplicate it.
|
|
33
|
+
*
|
|
34
|
+
* `staticProviderTuningDefaults()` — never a live `assistant.*` site
|
|
35
|
+
* setting — because no site exists yet at this point in the wizard: there is
|
|
36
|
+
* no database to read an admin override from, only the registry's own
|
|
37
|
+
* declared default (the same one a fresh site's first boot would see before
|
|
38
|
+
* anyone ever touches the "Réglages" screen).
|
|
39
|
+
*/
|
|
31
40
|
export declare function createProviderClient(options: CreateProviderClientOptions): ProviderClient;
|
|
32
41
|
/**
|
|
33
42
|
* "Modèle et clé API si un fournisseur est choisi ; validation immédiate de
|
package/dist/llm-setup.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-setup.d.ts","sourceRoot":"","sources":["../src/llm-setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"llm-setup.d.ts","sourceRoot":"","sources":["../src/llm-setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,cAAc,EAEpB,MAAM,iBAAiB,CAAA;AAExB,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,CAAA;A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Client, createOpenAiClient, } from '@cogenta/agents';
|
|
1
|
+
import { createAnthropicClient, createGoogleClient, createOpenAiClient, staticProviderTuningDefaults, } from '@cogenta/agents';
|
|
2
2
|
/** "aucun pour l'instant" is listed first, not hidden at the bottom — the CMS works without AI (R2), and the wizard's own layout must not suggest otherwise. */
|
|
3
3
|
export const LLM_PROVIDERS = [
|
|
4
4
|
{ id: 'none', label: 'None for now — the CMS works fully without one' },
|
|
@@ -6,12 +6,22 @@ export const LLM_PROVIDERS = [
|
|
|
6
6
|
{ id: 'openai', label: 'OpenAI', defaultModel: 'gpt-5' },
|
|
7
7
|
{ id: 'google', label: 'Google', defaultModel: 'gemini-2.5-pro' },
|
|
8
8
|
];
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* The same adapter construction `validateApiKey` uses, exported so a later
|
|
11
|
+
* real call (skin generation, L9 task 7) does not duplicate it.
|
|
12
|
+
*
|
|
13
|
+
* `staticProviderTuningDefaults()` — never a live `assistant.*` site
|
|
14
|
+
* setting — because no site exists yet at this point in the wizard: there is
|
|
15
|
+
* no database to read an admin override from, only the registry's own
|
|
16
|
+
* declared default (the same one a fresh site's first boot would see before
|
|
17
|
+
* anyone ever touches the "Réglages" screen).
|
|
18
|
+
*/
|
|
10
19
|
export function createProviderClient(options) {
|
|
11
20
|
const config = {
|
|
12
21
|
apiKey: options.apiKey,
|
|
13
22
|
model: options.model,
|
|
14
23
|
...(options.fetchImpl === undefined ? {} : { fetchImpl: options.fetchImpl }),
|
|
24
|
+
defaults: staticProviderTuningDefaults(),
|
|
15
25
|
};
|
|
16
26
|
if (options.provider === 'anthropic')
|
|
17
27
|
return createAnthropicClient(config);
|
package/dist/llm-setup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-setup.js","sourceRoot":"","sources":["../src/llm-setup.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,
|
|
1
|
+
{"version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AAM,CAAC,KAAK,UAAU,cAAc,CAAC,OAA2B;IAC9D,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,CAAA;IACjC,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,KAAK,CAAA;IAC5C,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAA;IACxC,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,EAAE,SAAS,CAAC,CAAA;IAE7D,IAAI,CAAC;QACH,MAAM,MAAM,CAAC,IAAI,CACf,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,EACrF,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,CAC9B,CAAA;QACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAA;IACxB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAA;IACzF,CAAC;YAAS,CAAC;QACT,YAAY,CAAC,KAAK,CAAC,CAAA;IACrB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cogenta",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "The Cogenta installer wizard — npm create cogenta.",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -30,21 +30,21 @@
|
|
|
30
30
|
"directory": "packages/create-cogenta"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@cogenta/agents": "0.
|
|
34
|
-
"@cogenta/
|
|
35
|
-
"@cogenta/
|
|
36
|
-
"@cogenta/
|
|
37
|
-
"@cogenta/cli": "0.
|
|
38
|
-
"@cogenta/core": "0.
|
|
39
|
-
"@cogenta/
|
|
40
|
-
"@cogenta/
|
|
41
|
-
"@cogenta/
|
|
42
|
-
"@cogenta/
|
|
33
|
+
"@cogenta/agents": "0.5.0",
|
|
34
|
+
"@cogenta/api": "2.2.0",
|
|
35
|
+
"@cogenta/blocks": "1.0.2",
|
|
36
|
+
"@cogenta/auth": "0.5.1",
|
|
37
|
+
"@cogenta/cli": "0.7.0",
|
|
38
|
+
"@cogenta/core": "0.7.0",
|
|
39
|
+
"@cogenta/render": "0.2.2",
|
|
40
|
+
"@cogenta/theme-canonical": "1.1.1",
|
|
41
|
+
"@cogenta/comments": "0.2.2",
|
|
42
|
+
"@cogenta/schema": "0.5.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^7.0.2",
|
|
46
46
|
"vitest": "^4.1.10",
|
|
47
|
-
"@cogenta/theme-restaurant": "0.3.
|
|
47
|
+
"@cogenta/theme-restaurant": "0.3.1"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "tsc -p tsconfig.json && node -e \"require('node:fs').cpSync('src/blueprints/assets','dist/blueprints/assets',{recursive:true})\"",
|