@wix/ditto-codegen-public 1.0.372 → 1.0.374
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/out.js +14 -1
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -10705,6 +10705,8 @@ var require_environment = __commonJS({
|
|
|
10705
10705
|
"../codegen-types/dist/types/environment.js"(exports2) {
|
|
10706
10706
|
"use strict";
|
|
10707
10707
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10708
|
+
exports2.CODEGEN_ENVIRONMENT_HEADER = void 0;
|
|
10709
|
+
exports2.CODEGEN_ENVIRONMENT_HEADER = "x-codegen-environment";
|
|
10708
10710
|
}
|
|
10709
10711
|
});
|
|
10710
10712
|
|
|
@@ -14599,6 +14601,7 @@ var require_config = __commonJS({
|
|
|
14599
14601
|
exports2.getCurrentAccessToken = getCurrentAccessToken;
|
|
14600
14602
|
exports2.getOpenCodeEnv = getOpenCodeEnv;
|
|
14601
14603
|
var os_1 = require("os");
|
|
14604
|
+
var ditto_codegen_types_12 = require_dist4();
|
|
14602
14605
|
var constants_1 = require_constants5();
|
|
14603
14606
|
var experiments_1 = require_experiments();
|
|
14604
14607
|
var rules_writer_12 = require_rules_writer();
|
|
@@ -14623,7 +14626,14 @@ var require_config = __commonJS({
|
|
|
14623
14626
|
return currentAccessToken;
|
|
14624
14627
|
}
|
|
14625
14628
|
function getProviderConfig() {
|
|
14626
|
-
const
|
|
14629
|
+
const environment = process.env.CODEGEN_ENVIRONMENT;
|
|
14630
|
+
const headers = {
|
|
14631
|
+
// Tell the proxy which environment this request belongs to so it can
|
|
14632
|
+
// select the matching upstream API key. Forwarded verbatim — the proxy
|
|
14633
|
+
// owns validation and the default.
|
|
14634
|
+
...environment ? { [ditto_codegen_types_12.CODEGEN_ENVIRONMENT_HEADER]: environment } : {},
|
|
14635
|
+
...currentAccessToken ? { Authorization: `Bearer ${currentAccessToken}` } : {}
|
|
14636
|
+
};
|
|
14627
14637
|
return {
|
|
14628
14638
|
anthropic: {
|
|
14629
14639
|
options: {
|
|
@@ -14654,6 +14664,8 @@ var require_config = __commonJS({
|
|
|
14654
14664
|
model: exports2.DEFAULT_MODEL,
|
|
14655
14665
|
small_model: exports2.DEFAULT_SMALL_MODEL,
|
|
14656
14666
|
provider: getProviderConfig(),
|
|
14667
|
+
compaction: { prune: true },
|
|
14668
|
+
// drop old tool outputs so --continue replays stay bounded
|
|
14657
14669
|
permission: {
|
|
14658
14670
|
[
|
|
14659
14671
|
"skill"
|
|
@@ -14693,6 +14705,7 @@ var require_config = __commonJS({
|
|
|
14693
14705
|
model: exports2.DEFAULT_MODEL,
|
|
14694
14706
|
small_model: exports2.DEFAULT_SMALL_MODEL,
|
|
14695
14707
|
provider: getProviderConfig(),
|
|
14708
|
+
compaction: { prune: true },
|
|
14696
14709
|
permission: {
|
|
14697
14710
|
[
|
|
14698
14711
|
"edit"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/ditto-codegen-public",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.374",
|
|
4
4
|
"description": "AI-powered Wix CLI app generator - standalone executable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node build.mjs",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"esbuild": "^0.27.2",
|
|
30
30
|
"vitest": "^4.0.16"
|
|
31
31
|
},
|
|
32
|
-
"falconPackageHash": "
|
|
32
|
+
"falconPackageHash": "e64c67184f947e91b2434814c730c1af8a4fe43738a3fb278e120bf0"
|
|
33
33
|
}
|