openpond 0.0.57 → 0.0.58
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/chunks/{actions-command-YY7UH37B.js → actions-command-BNVIILSL.js} +40 -1
- package/dist/chunks/{app-layer-EZQWXB3S.js → app-layer-RNQXXM6L.js} +5 -4
- package/dist/chunks/{app-server-runtime-JMEHVOFO.js → app-server-runtime-WYIRC5LV.js} +6 -6
- package/dist/chunks/{apps-HHQF6TNR.js → apps-LV3CSMLT.js} +5 -4
- package/dist/chunks/{chunk-OJ34YA7E.js → chunk-2J3LG4U7.js} +2 -2
- package/dist/chunks/{chunk-3HW6OSHP.js → chunk-63N6442Q.js} +1 -1
- package/dist/chunks/{chunk-42GGG3W4.js → chunk-7QLVLGDM.js} +1 -1
- package/dist/chunks/{chunk-XX6KALN2.js → chunk-AD6KZWHL.js} +136 -65
- package/dist/chunks/{chunk-5Y7Q6ZSH.js → chunk-BFR6VZ2A.js} +1 -1
- package/dist/chunks/{chunk-KHNHUA2H.js → chunk-DXSHQ6TO.js} +111 -1
- package/dist/chunks/{chunk-FCVVOMIP.js → chunk-FHP7OMEI.js} +3 -31
- package/dist/chunks/{chunk-MIZHCABO.js → chunk-I23UKEYS.js} +1 -1
- package/dist/chunks/{chunk-UBHCG2NE.js → chunk-LMQ4MPQI.js} +2 -2
- package/dist/chunks/{chunk-XHTO6KF2.js → chunk-OI65U2B5.js} +1 -1
- package/dist/chunks/{chunk-5ZLFZZLS.js → chunk-PVGJXCAK.js} +1 -1
- package/dist/chunks/{chunk-7JUIWABV.js → chunk-QIB27QOT.js} +2 -2
- package/dist/chunks/{chunk-5QJGC2QI.js → chunk-RC3N77IV.js} +39 -33
- package/dist/chunks/chunk-SKUS4NPW.js +633 -0
- package/dist/chunks/{cli-EUZHWEJR.js → cli-EPVMUYQT.js} +5 -5
- package/dist/chunks/{core-commands-RI4B7TYM.js → core-commands-H2UC3LHG.js} +6 -5
- package/dist/chunks/{desktop-test-DRTCQWDV.js → desktop-test-TV64EY5A.js} +5 -4
- package/dist/chunks/{help-UILXBPHG.js → help-NEYFMHWQ.js} +1 -1
- package/dist/chunks/{opchat-SSK54JSR.js → opchat-ZL5JJQ5L.js} +5 -4
- package/dist/chunks/{organizations-G5S2HJLT.js → organizations-4IEC35QB.js} +7 -6
- package/dist/chunks/{profile-YD7NYL3U.js → profile-EVASCDIN.js} +6 -5
- package/dist/chunks/{project-agent-75PAFL6B.js → project-agent-DMN64RZJ.js} +6 -5
- package/dist/chunks/{sandbox-command-FGUJDDXR.js → sandbox-command-WKGVO32R.js} +6 -5
- package/dist/chunks/{sandbox-template-PBSIPCVO.js → sandbox-template-BJUS4KJM.js} +7 -6
- package/dist/chunks/{src-P7YLMEEK.js → src-NJYDLJ2M.js} +133 -59
- package/dist/chunks/{src-FTG6DVBK.js → src-SR3UHNV4.js} +3 -3
- package/dist/chunks/{teams-bot-NSYWELB6.js → teams-bot-HUXYJ6XA.js} +5 -4
- package/dist/chunks/{workspaces-R3EVRSWA.js → workspaces-N2WWI77O.js} +2 -2
- package/dist/cli.js +13 -13
- package/docs/command-reference.md +7 -1
- package/package.json +1 -1
|
@@ -4,6 +4,10 @@ import {
|
|
|
4
4
|
createLocalActionRunner,
|
|
5
5
|
loadProjectActionConfiguration
|
|
6
6
|
} from "./chunk-QETF6ILG.js";
|
|
7
|
+
import {
|
|
8
|
+
createOpenPondClient
|
|
9
|
+
} from "./chunk-SKUS4NPW.js";
|
|
10
|
+
import "./chunk-DXSHQ6TO.js";
|
|
7
11
|
import {
|
|
8
12
|
parseBooleanOption
|
|
9
13
|
} from "./chunk-MUMPWI4O.js";
|
|
@@ -12,6 +16,9 @@ import "./chunk-UACZUFIA.js";
|
|
|
12
16
|
// src/cli/actions-command.ts
|
|
13
17
|
import { promises as fs, watch } from "node:fs";
|
|
14
18
|
import path from "node:path";
|
|
19
|
+
import { execFile } from "node:child_process";
|
|
20
|
+
import { promisify } from "node:util";
|
|
21
|
+
var execFileAsync = promisify(execFile);
|
|
15
22
|
async function runProjectActionsCommand(options, rest) {
|
|
16
23
|
const subcommand = rest[0] ?? "check";
|
|
17
24
|
const projectRoot = path.resolve(stringOption(options, "cwd") ?? process.cwd());
|
|
@@ -58,7 +65,28 @@ async function runProjectActionsCommand(options, rest) {
|
|
|
58
65
|
await runDev({ projectRoot, sourceDirectory, outputDirectory, actionId, options, json });
|
|
59
66
|
return;
|
|
60
67
|
}
|
|
61
|
-
|
|
68
|
+
if (subcommand === "publish") {
|
|
69
|
+
const projectId = requiredOption(options, "projectId");
|
|
70
|
+
const teamId = requiredOption(options, "teamId");
|
|
71
|
+
const apiKey = stringOption(options, "apiKey") ?? process.env.OPENPOND_API_KEY?.trim();
|
|
72
|
+
if (!apiKey) throw new Error("OpenPond API key is required. Set OPENPOND_API_KEY or pass --api-key.");
|
|
73
|
+
const build = await buildProjectActions({ projectRoot, sourceDirectory, outputDirectory });
|
|
74
|
+
const sourceCommitSha = stringOption(options, "sourceCommitSha") ?? await gitValue(projectRoot, ["rev-parse", "HEAD"]);
|
|
75
|
+
const sourceRef = stringOption(options, "sourceRef") ?? await gitValue(projectRoot, ["rev-parse", "--abbrev-ref", "HEAD"]);
|
|
76
|
+
const release = await createOpenPondClient({
|
|
77
|
+
apiKey,
|
|
78
|
+
baseUrl: stringOption(options, "baseUrl") ?? process.env.OPENPOND_API_URL
|
|
79
|
+
}).actions.publish({
|
|
80
|
+
projectId,
|
|
81
|
+
teamId,
|
|
82
|
+
sourceRef,
|
|
83
|
+
sourceCommitSha,
|
|
84
|
+
build
|
|
85
|
+
});
|
|
86
|
+
console.log(json ? JSON.stringify({ release }, null, 2) : `Published Project Actions release ${release.id} from ${release.sourceCommitSha}.`);
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
throw new Error("usage: openpond actions <check|build|run|dev|publish> [action-id]");
|
|
62
90
|
}
|
|
63
91
|
async function runDev(input) {
|
|
64
92
|
let running = false;
|
|
@@ -133,6 +161,17 @@ function stringOption(options, name) {
|
|
|
133
161
|
const value = options[name];
|
|
134
162
|
return typeof value === "string" && value.trim() ? value.trim() : void 0;
|
|
135
163
|
}
|
|
164
|
+
function requiredOption(options, name) {
|
|
165
|
+
const value = stringOption(options, name);
|
|
166
|
+
if (!value) throw new Error(`--${name.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`)} is required.`);
|
|
167
|
+
return value;
|
|
168
|
+
}
|
|
169
|
+
async function gitValue(projectRoot, args) {
|
|
170
|
+
const { stdout } = await execFileAsync("git", args, { cwd: projectRoot });
|
|
171
|
+
const value = stdout.trim();
|
|
172
|
+
if (!value) throw new Error(`git ${args.join(" ")} returned no value.`);
|
|
173
|
+
return value;
|
|
174
|
+
}
|
|
136
175
|
function integerOption(options, name) {
|
|
137
176
|
const value = stringOption(options, name);
|
|
138
177
|
if (value === void 0) return void 0;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
runProcessCommand
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-KHNHUA2H.js";
|
|
4
|
+
} from "./chunk-FHP7OMEI.js";
|
|
6
5
|
import {
|
|
7
6
|
CliUsageError
|
|
8
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7QLVLGDM.js";
|
|
9
8
|
import "./chunk-SMNFI2FU.js";
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-RC3N77IV.js";
|
|
10
|
+
import "./chunk-SKUS4NPW.js";
|
|
11
|
+
import "./chunk-DXSHQ6TO.js";
|
|
11
12
|
import "./chunk-DBHSOTYZ.js";
|
|
12
13
|
import "./chunk-KSRWKXRB.js";
|
|
13
14
|
import "./chunk-MUMPWI4O.js";
|
|
@@ -2,15 +2,15 @@ import { createRequire as __openpondCreateRequire } from "node:module"; var requ
|
|
|
2
2
|
import {
|
|
3
3
|
APP_SERVER_COMPOSITION,
|
|
4
4
|
createOpenPondAppServer
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-AD6KZWHL.js";
|
|
6
|
+
import "./chunk-BFR6VZ2A.js";
|
|
7
7
|
import "./chunk-NFNEENNR.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-OI65U2B5.js";
|
|
9
|
+
import "./chunk-LMQ4MPQI.js";
|
|
10
|
+
import "./chunk-PVGJXCAK.js";
|
|
11
11
|
import "./chunk-VG4H4TQG.js";
|
|
12
12
|
import "./chunk-WYDVQOBL.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-DXSHQ6TO.js";
|
|
14
14
|
import "./chunk-UACZUFIA.js";
|
|
15
15
|
export {
|
|
16
16
|
APP_SERVER_COMPOSITION,
|
|
@@ -10,14 +10,15 @@ import {
|
|
|
10
10
|
normalizeRepoName,
|
|
11
11
|
pollDeploymentLogs,
|
|
12
12
|
resolveAppTarget
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-42GGG3W4.js";
|
|
13
|
+
} from "./chunk-FHP7OMEI.js";
|
|
14
|
+
import "./chunk-7QLVLGDM.js";
|
|
16
15
|
import {
|
|
17
16
|
resolveBaseUrl,
|
|
18
17
|
resolvePublicApiBaseUrl
|
|
19
18
|
} from "./chunk-SMNFI2FU.js";
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-RC3N77IV.js";
|
|
20
|
+
import "./chunk-SKUS4NPW.js";
|
|
21
|
+
import "./chunk-DXSHQ6TO.js";
|
|
21
22
|
import {
|
|
22
23
|
createAgentFromPrompt,
|
|
23
24
|
deployApp,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
resolveRepoUrl,
|
|
16
16
|
runCommand,
|
|
17
17
|
warnOnRepoHostMismatch
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FHP7OMEI.js";
|
|
19
19
|
import {
|
|
20
20
|
normalizeTemplateRepoUrl,
|
|
21
21
|
resolveApiBaseUrlOption,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
compareSemver,
|
|
29
29
|
fetchLatestNpmVersion,
|
|
30
30
|
getInstalledCliVersion
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-RC3N77IV.js";
|
|
32
32
|
import {
|
|
33
33
|
checkOpenPondApiHealth,
|
|
34
34
|
createHeadlessApps,
|