@octonodes/cli 0.2.3 → 0.2.4
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/package.json +2 -2
- package/runtime/plugin-lifecycle.cjs +83 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octonodes/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Octonode API and plugin development CLI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"prepack": "tsc -b"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@octonodes/sdk": "0.2.
|
|
24
|
+
"@octonodes/sdk": "0.2.4",
|
|
25
25
|
"@supabase/supabase-js": "2.107.0",
|
|
26
26
|
"esbuild": "0.28.1",
|
|
27
27
|
"tar": "7.5.22",
|
|
@@ -11541,7 +11541,7 @@ var require_plugin_publishing = __commonJS({
|
|
|
11541
11541
|
"packages/schema/dist/plugin-publishing.js"(exports2) {
|
|
11542
11542
|
"use strict";
|
|
11543
11543
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11544
|
-
exports2.PluginPublisherConnections = exports2.PluginPublisherConnection = exports2.PluginPublisherPreview = exports2.PluginPublisherConsent = exports2.PluginPublisherAutomatic = exports2.PluginPublisherRepository = exports2.PluginPublisherInput = exports2.pluginReleaseScope = exports2.PluginReleaseConfig = exports2.PluginConfigPath = void 0;
|
|
11544
|
+
exports2.PluginCloudBuild = exports2.PluginPublisherBuildDetail = exports2.PluginPublisherBuilds = exports2.PluginPublisherBuildQuery = exports2.PluginPublisherApplied = exports2.PluginPublisherApply = exports2.PluginPublisherReview = exports2.PluginPublisherReviewItem = exports2.PluginPublisherOperation = exports2.PluginPublisherConnections = exports2.PluginPublisherConnection = exports2.PluginPublisherPreview = exports2.PluginPublisherConsent = exports2.PluginPublisherAutomatic = exports2.PluginPublisherRepository = exports2.PluginPublisherInput = exports2.pluginReleaseScope = exports2.PluginReleaseConfig = exports2.PluginConfigPath = void 0;
|
|
11545
11545
|
var zod_1 = require("zod");
|
|
11546
11546
|
var plugin_version_1 = require_plugin_version();
|
|
11547
11547
|
exports2.PluginConfigPath = zod_1.z.string().max(512).refine((path) => /^(?:[a-zA-Z0-9_.-]+\/)*(?:plugin\.octonode\.(?:json|ya?ml)|octonode\.plugin\.json)$/.test(path) && !path.split("/").some((part) => [".", "..", ".git", "node_modules"].includes(part)), "Select a repository-relative octonode.plugin.json file (older plugin.octonode release files also work)");
|
|
@@ -11585,6 +11585,88 @@ var require_plugin_publishing = __commonJS({
|
|
|
11585
11585
|
lastPublishedAt: zod_1.z.number().nullable()
|
|
11586
11586
|
});
|
|
11587
11587
|
exports2.PluginPublisherConnections = zod_1.z.object({ items: zod_1.z.array(exports2.PluginPublisherConnection) });
|
|
11588
|
+
exports2.PluginPublisherOperation = zod_1.z.enum(["create", "update", "delete"]);
|
|
11589
|
+
exports2.PluginPublisherReviewItem = zod_1.z.object({
|
|
11590
|
+
configPath: exports2.PluginConfigPath,
|
|
11591
|
+
config: exports2.PluginReleaseConfig,
|
|
11592
|
+
sha256: zod_1.z.string(),
|
|
11593
|
+
connectionId: zod_1.z.string().nullable(),
|
|
11594
|
+
missing: zod_1.z.boolean()
|
|
11595
|
+
});
|
|
11596
|
+
exports2.PluginPublisherReview = zod_1.z.object({
|
|
11597
|
+
repositoryId: zod_1.z.number(),
|
|
11598
|
+
repository: zod_1.z.string(),
|
|
11599
|
+
branch: zod_1.z.string(),
|
|
11600
|
+
headSha: zod_1.z.string(),
|
|
11601
|
+
revision: zod_1.z.string(),
|
|
11602
|
+
items: zod_1.z.array(exports2.PluginPublisherReviewItem)
|
|
11603
|
+
});
|
|
11604
|
+
exports2.PluginPublisherApply = zod_1.z.object({
|
|
11605
|
+
repositoryId: zod_1.z.number().int().positive(),
|
|
11606
|
+
revision: zod_1.z.string().regex(/^[a-f0-9]{64}$/),
|
|
11607
|
+
operations: zod_1.z.array(zod_1.z.object({ configPath: exports2.PluginConfigPath, operation: exports2.PluginPublisherOperation }).strict()).min(1).max(100)
|
|
11608
|
+
}).strict();
|
|
11609
|
+
exports2.PluginPublisherApplied = zod_1.z.object({
|
|
11610
|
+
ok: zod_1.z.boolean(),
|
|
11611
|
+
sha: zod_1.z.string(),
|
|
11612
|
+
repositoryId: zod_1.z.number(),
|
|
11613
|
+
buildId: zod_1.z.number()
|
|
11614
|
+
});
|
|
11615
|
+
exports2.PluginPublisherBuildQuery = zod_1.z.object({
|
|
11616
|
+
repositoryId: zod_1.z.coerce.number().int().positive().optional(),
|
|
11617
|
+
page: zod_1.z.coerce.number().int().min(1).max(1e3).default(1),
|
|
11618
|
+
search: zod_1.z.string().max(200).default(""),
|
|
11619
|
+
status: zod_1.z.enum(["", "queued", "in_progress", "success", "failure"]).default(""),
|
|
11620
|
+
sort: zod_1.z.enum(["newest", "oldest", "name"]).default("newest")
|
|
11621
|
+
});
|
|
11622
|
+
exports2.PluginPublisherBuilds = zod_1.z.object({
|
|
11623
|
+
total: zod_1.z.number(),
|
|
11624
|
+
page: zod_1.z.number(),
|
|
11625
|
+
hasMore: zod_1.z.boolean(),
|
|
11626
|
+
items: zod_1.z.array(zod_1.z.object({
|
|
11627
|
+
id: zod_1.z.number(),
|
|
11628
|
+
repositoryId: zod_1.z.number(),
|
|
11629
|
+
number: zod_1.z.number(),
|
|
11630
|
+
attempt: zod_1.z.number(),
|
|
11631
|
+
title: zod_1.z.string(),
|
|
11632
|
+
sha: zod_1.z.string(),
|
|
11633
|
+
branch: zod_1.z.string(),
|
|
11634
|
+
status: zod_1.z.string(),
|
|
11635
|
+
conclusion: zod_1.z.string().nullable(),
|
|
11636
|
+
url: zod_1.z.string(),
|
|
11637
|
+
createdAt: zod_1.z.string(),
|
|
11638
|
+
updatedAt: zod_1.z.string()
|
|
11639
|
+
}))
|
|
11640
|
+
});
|
|
11641
|
+
exports2.PluginPublisherBuildDetail = zod_1.z.object({
|
|
11642
|
+
repository: zod_1.z.string(),
|
|
11643
|
+
sha: zod_1.z.string(),
|
|
11644
|
+
branch: zod_1.z.string(),
|
|
11645
|
+
status: zod_1.z.string(),
|
|
11646
|
+
createdAt: zod_1.z.string(),
|
|
11647
|
+
items: zod_1.z.array(zod_1.z.object({
|
|
11648
|
+
configPath: exports2.PluginConfigPath,
|
|
11649
|
+
name: zod_1.z.string(),
|
|
11650
|
+
version: zod_1.z.string(),
|
|
11651
|
+
scope: zod_1.z.enum(["user", "team", "organization", "public"]),
|
|
11652
|
+
operation: exports2.PluginPublisherOperation,
|
|
11653
|
+
status: zod_1.z.string(),
|
|
11654
|
+
url: zod_1.z.string().nullable(),
|
|
11655
|
+
error: zod_1.z.string().nullable()
|
|
11656
|
+
})),
|
|
11657
|
+
log: zod_1.z.string()
|
|
11658
|
+
});
|
|
11659
|
+
exports2.PluginCloudBuild = zod_1.z.object({
|
|
11660
|
+
id: zod_1.z.number().int().positive(),
|
|
11661
|
+
sha: zod_1.z.string().regex(/^[a-f0-9]{40}$/),
|
|
11662
|
+
active: zod_1.z.boolean(),
|
|
11663
|
+
items: zod_1.z.array(zod_1.z.object({
|
|
11664
|
+
configPath: exports2.PluginConfigPath,
|
|
11665
|
+
config: exports2.PluginReleaseConfig,
|
|
11666
|
+
operation: exports2.PluginPublisherOperation,
|
|
11667
|
+
status: zod_1.z.string()
|
|
11668
|
+
})).max(100)
|
|
11669
|
+
});
|
|
11588
11670
|
}
|
|
11589
11671
|
});
|
|
11590
11672
|
|