@agimon-ai/po-git 0.0.0-alpha.93 → 0.0.0-alpha.95
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/extensions/native.mjs +9 -1
- package/dist/extensions/native.mjs.map +1 -1
- package/dist/extensions/server.cjs +11 -3
- package/dist/extensions/server.cjs.map +1 -1
- package/dist/extensions/server.mjs +11 -3
- package/dist/extensions/server.mjs.map +1 -1
- package/dist/extensions/web.mjs +22 -5
- package/dist/extensions/web.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{worktreeOperations-CD7s0YnO.cjs → worktreeOperations-0Jrjcbg7.cjs} +2 -1
- package/dist/worktreeOperations-0Jrjcbg7.cjs.map +1 -0
- package/dist/{worktreeOperations-B3E4JY4H.mjs → worktreeOperations-DA_dbDv8.mjs} +2 -1
- package/dist/worktreeOperations-DA_dbDv8.mjs.map +1 -0
- package/package.json +8 -8
- package/dist/worktreeOperations-B3E4JY4H.mjs.map +0 -1
- package/dist/worktreeOperations-CD7s0YnO.cjs.map +0 -1
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_worktreeOperations = require("../worktreeOperations-
|
|
5
|
+
const require_worktreeOperations = require("../worktreeOperations-0Jrjcbg7.cjs");
|
|
6
6
|
let node_fs_promises = require("node:fs/promises");
|
|
7
7
|
node_fs_promises = require_worktreeOperations.__toESM(node_fs_promises, 1);
|
|
8
8
|
let node_path = require("node:path");
|
|
@@ -16,6 +16,7 @@ let _agimon_ai_po_session = require("@agimon-ai/po-session");
|
|
|
16
16
|
let typebox = require("typebox");
|
|
17
17
|
let _agimon_ai_po_core_platform = require("@agimon-ai/po-core/platform");
|
|
18
18
|
let _agimon_ai_po_core_packageApi = require("@agimon-ai/po-core/packageApi");
|
|
19
|
+
let _agimon_ai_po_core_hubChannel = require("@agimon-ai/po-core/hubChannel");
|
|
19
20
|
//#region src/schemas/runWorktreeTool.ts
|
|
20
21
|
/**
|
|
21
22
|
* The tool's action vocabulary.
|
|
@@ -1248,7 +1249,13 @@ function newSessionRequest(body) {
|
|
|
1248
1249
|
if (branch === void 0 || branch === false || !require_worktreeOperations.validRefName(branch)) return { error: "A valid branch name is required." };
|
|
1249
1250
|
const name = optionalText(record.name);
|
|
1250
1251
|
if (name === false || name !== void 0 && name.length > MAX_NAME_LENGTH) return { error: `The session name must be text of up to ${String(MAX_NAME_LENGTH)} characters.` };
|
|
1251
|
-
const
|
|
1252
|
+
const chosen = record.selection === void 0 ? {} : (0, _agimon_ai_po_core_hubChannel.parseLaunchSelection)(record.selection);
|
|
1253
|
+
if ("error" in chosen) return chosen;
|
|
1254
|
+
const profile = chosen.selection?.profile;
|
|
1255
|
+
const named = {
|
|
1256
|
+
...name === void 0 ? {} : { name },
|
|
1257
|
+
...profile === void 0 ? {} : { selection: { profile } }
|
|
1258
|
+
};
|
|
1252
1259
|
if (record.mode === "existing-branch") {
|
|
1253
1260
|
const remote = optionalText(record.remote);
|
|
1254
1261
|
if (remote === false || remote !== void 0 && !require_worktreeOperations.validRefName(remote)) return { error: "That remote name is not valid." };
|
|
@@ -1371,7 +1378,8 @@ function createGitApi(openDirectory) {
|
|
|
1371
1378
|
checkout: parsed.mode === "existing-branch" ? "existing" : "new",
|
|
1372
1379
|
...parsed.mode === "existing-branch" && parsed.remote !== void 0 ? { remote: parsed.remote } : {},
|
|
1373
1380
|
...parsed.mode === "new-branch" && parsed.baseRef !== void 0 ? { baseRef: parsed.baseRef } : {},
|
|
1374
|
-
...parsed.name === void 0 ? {} : { name: parsed.name }
|
|
1381
|
+
...parsed.name === void 0 ? {} : { name: parsed.name },
|
|
1382
|
+
...parsed.selection === void 0 ? {} : { selection: parsed.selection }
|
|
1375
1383
|
});
|
|
1376
1384
|
publishLifecycle(record.sessionId, record.repositoryRoot);
|
|
1377
1385
|
const created = {
|