@wix/ditto-codegen-public 1.0.323 → 1.0.325
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,23 @@
|
|
|
1
|
+
import { tool } from "@opencode-ai/plugin";
|
|
2
|
+
|
|
3
|
+
export default tool({
|
|
4
|
+
description:
|
|
5
|
+
"Set the commit message for this codegen run. The message becomes the " +
|
|
6
|
+
"subject of a real `git commit -m` for the run, visible to " +
|
|
7
|
+
"non-technical users in their checkpoint history. Call this once, as " +
|
|
8
|
+
"the first thing you do, before writing any code.",
|
|
9
|
+
args: {
|
|
10
|
+
commitMessage: tool.schema
|
|
11
|
+
.string()
|
|
12
|
+
.min(1)
|
|
13
|
+
.describe(
|
|
14
|
+
"One-line summary of the user's request. " +
|
|
15
|
+
'Imperative mood (e.g. "Add", "Fix", "Update"). ' +
|
|
16
|
+
"No trailing period, no quotes, no prefix. " +
|
|
17
|
+
"Ideally under 150 characters.",
|
|
18
|
+
),
|
|
19
|
+
},
|
|
20
|
+
async execute(args) {
|
|
21
|
+
return `Commit message set: ${args.commitMessage}`;
|
|
22
|
+
},
|
|
23
|
+
});
|
package/dist/out.js
CHANGED
|
@@ -12921,7 +12921,7 @@ var require_config = __commonJS({
|
|
|
12921
12921
|
"dist/opencode-integration/config.js"(exports2) {
|
|
12922
12922
|
"use strict";
|
|
12923
12923
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12924
|
-
exports2.DEFAULT_MODEL = exports2.DEFAULT_TIMEOUT_MS = void 0;
|
|
12924
|
+
exports2.DEFAULT_SMALL_MODEL = exports2.DEFAULT_MODEL = exports2.DEFAULT_TIMEOUT_MS = void 0;
|
|
12925
12925
|
exports2.getAnthropicBaseUrl = getAnthropicBaseUrl;
|
|
12926
12926
|
exports2.setCurrentAccessToken = setCurrentAccessToken;
|
|
12927
12927
|
exports2.getOpenCodeEnv = getOpenCodeEnv;
|
|
@@ -12932,6 +12932,7 @@ var require_config = __commonJS({
|
|
|
12932
12932
|
var environments_12 = require_environments();
|
|
12933
12933
|
exports2.DEFAULT_TIMEOUT_MS = 20 * 60 * 1e3;
|
|
12934
12934
|
exports2.DEFAULT_MODEL = "anthropic/claude-sonnet-4-6";
|
|
12935
|
+
exports2.DEFAULT_SMALL_MODEL = "anthropic/claude-haiku-4-5-20251001";
|
|
12935
12936
|
var AI_PROXY_BASE_URL = process.env.CODEGEN_AI_PROXY_BASE_URL || "http://localhost:3001";
|
|
12936
12937
|
function getAnthropicBaseUrl(projectId) {
|
|
12937
12938
|
if ((0, experiments_1.isUseWixAiGatewayEnabled)()) {
|
|
@@ -12972,6 +12973,7 @@ var require_config = __commonJS({
|
|
|
12972
12973
|
function getOpenCodeConfig(instructionPaths) {
|
|
12973
12974
|
return {
|
|
12974
12975
|
model: exports2.DEFAULT_MODEL,
|
|
12976
|
+
small_model: exports2.DEFAULT_SMALL_MODEL,
|
|
12975
12977
|
provider: getProviderConfig(),
|
|
12976
12978
|
permission: {
|
|
12977
12979
|
[
|
|
@@ -13007,6 +13009,7 @@ var require_config = __commonJS({
|
|
|
13007
13009
|
function getOpenCodeAskConfig(instructionPaths) {
|
|
13008
13010
|
return {
|
|
13009
13011
|
model: exports2.DEFAULT_MODEL,
|
|
13012
|
+
small_model: exports2.DEFAULT_SMALL_MODEL,
|
|
13010
13013
|
provider: getProviderConfig(),
|
|
13011
13014
|
permission: {
|
|
13012
13015
|
[
|
|
@@ -19996,15 +19999,15 @@ var require_tools_writer = __commonJS({
|
|
|
19996
19999
|
var logger_12 = require_logger();
|
|
19997
20000
|
var environments_12 = require_environments();
|
|
19998
20001
|
var GLOBAL_TOOLS_DIR = (0, path_1.join)((0, os_1.homedir)(), ".config", "opencode", "tools");
|
|
19999
|
-
var
|
|
20000
|
-
var ENV_TOOLS_DIR = (0, path_1.join)(
|
|
20002
|
+
var OPENCODE_TOOLS_DIR = (0, path_1.join)(__dirname, "opencode-tools");
|
|
20003
|
+
var ENV_TOOLS_DIR = (0, path_1.join)(OPENCODE_TOOLS_DIR, "env-tools");
|
|
20001
20004
|
async function writeToolFiles() {
|
|
20002
20005
|
await (0, promises_1.mkdir)(GLOBAL_TOOLS_DIR, { recursive: true });
|
|
20003
|
-
const
|
|
20004
|
-
const alwaysOnTools =
|
|
20006
|
+
const entries = await (0, promises_1.readdir)(OPENCODE_TOOLS_DIR);
|
|
20007
|
+
const alwaysOnTools = entries.filter((f) => f.endsWith(".ts"));
|
|
20005
20008
|
const envTools = (0, environments_12.getCodegenEnvironmentConfig)().tools ?? [];
|
|
20006
20009
|
await Promise.all([
|
|
20007
|
-
...alwaysOnTools.map((file) => (0, promises_1.copyFile)((0, path_1.join)(
|
|
20010
|
+
...alwaysOnTools.map((file) => (0, promises_1.copyFile)((0, path_1.join)(OPENCODE_TOOLS_DIR, file), (0, path_1.join)(GLOBAL_TOOLS_DIR, file))),
|
|
20008
20011
|
...envTools.map((file) => (0, promises_1.copyFile)((0, path_1.join)(ENV_TOOLS_DIR, file), (0, path_1.join)(GLOBAL_TOOLS_DIR, file)))
|
|
20009
20012
|
]);
|
|
20010
20013
|
logger_12.logger.info("[OpenCode] Wrote global tool files", {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/ditto-codegen-public",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.325",
|
|
4
4
|
"description": "AI-powered Wix CLI app generator - standalone executable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node build.mjs",
|
|
7
|
-
"test": "
|
|
7
|
+
"test": "vitest run"
|
|
8
8
|
},
|
|
9
9
|
"bin": "dist/out.js",
|
|
10
10
|
"files": [
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@wix/ditto-codegen": "1.0.0",
|
|
28
|
-
"esbuild": "^0.27.2"
|
|
28
|
+
"esbuild": "^0.27.2",
|
|
29
|
+
"vitest": "^4.0.16"
|
|
29
30
|
},
|
|
30
|
-
"falconPackageHash": "
|
|
31
|
+
"falconPackageHash": "e5cf9022c8fca9f0c34286a173e1ccf25d64d96a83950243bd739fa5"
|
|
31
32
|
}
|