@fungi.computer/oyster 0.14.0 → 0.15.0
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/README.md +178 -1552
- package/dist/app-builds.d.ts +5 -6
- package/dist/app-builds.js +3 -10
- package/dist/boot-host-script.js +1 -1
- package/dist/catalog-frame.d.ts +0 -1
- package/dist/embed-metafiles.js +2 -2
- package/dist/embed-scripts.js +3 -3
- package/dist/hello-app-script.js +1 -1
- package/dist/page/app-permissions.js +165 -50
- package/dist/page-script.js +3 -3
- package/dist/standalone/app-set.d.ts +9 -0
- package/dist/standalone/app-set.js +43 -0
- package/dist/standalone/app-source.js +16 -1
- package/dist/standalone/builds.d.ts +2 -2
- package/dist/standalone/builds.js +4 -0
- package/dist/standalone/computer.d.ts +6 -1
- package/dist/standalone/computer.js +10 -2
- package/dist/standalone/install-apps-cli.js +1 -1
- package/dist/standalone/local-desktop.d.ts +19 -2
- package/dist/standalone/local-desktop.js +38 -15
- package/dist/standalone/registry.d.ts +4 -1
- package/dist/standalone/registry.js +6 -0
- package/dist/standalone/try-cli.d.ts +7 -0
- package/dist/standalone/try-cli.js +88 -8
- package/docs/api/README.md +744 -88
- package/docs/site/agent-quickstart.mdx +1 -1
- package/package.json +29 -49
package/dist/app-builds.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare const oysterAppBuildTimeoutMs = 900000;
|
|
|
31
31
|
export declare const oysterBuildGitHost = "git.team.internal";
|
|
32
32
|
export declare const oysterBuildReportHost = "build.team.internal";
|
|
33
33
|
/** Where an App's source is cloned from. */
|
|
34
|
-
|
|
34
|
+
declare const oysterBuildLocationSchema: Schema.Union<readonly [Schema.Struct<{
|
|
35
35
|
readonly kind: Schema.Literal<"installation">;
|
|
36
36
|
/** The installation whose Git holds the repository (Bonsai for a fork). */
|
|
37
37
|
readonly installationId: Schema.String;
|
|
@@ -41,7 +41,7 @@ export declare const oysterBuildLocationSchema: Schema.Union<readonly [Schema.St
|
|
|
41
41
|
}>]>;
|
|
42
42
|
export type OysterBuildLocation = Schema.Schema.Type<typeof oysterBuildLocationSchema>;
|
|
43
43
|
/** An App's registered build source: where it is cloned and its pinned recipe. */
|
|
44
|
-
|
|
44
|
+
declare const oysterBuildSourceSchema: Schema.Struct<{
|
|
45
45
|
readonly appId: Schema.refine<import("@fungi.computer/puffball").AppId, Schema.String>;
|
|
46
46
|
readonly location: Schema.Union<readonly [Schema.Struct<{
|
|
47
47
|
readonly kind: Schema.Literal<"installation">;
|
|
@@ -79,9 +79,9 @@ export declare const oysterBuildSourceSchema: Schema.Struct<{
|
|
|
79
79
|
}>;
|
|
80
80
|
readonly buildRecipeDigest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
81
81
|
}>;
|
|
82
|
-
|
|
82
|
+
type OysterBuildSource = Schema.Schema.Type<typeof oysterBuildSourceSchema>;
|
|
83
83
|
/** Installation is a build outcome, never a pending consent/approval record. */
|
|
84
|
-
|
|
84
|
+
declare const oysterBuildInstallationSchema: Schema.Union<readonly [Schema.Struct<{
|
|
85
85
|
readonly kind: Schema.Literal<"pending">;
|
|
86
86
|
readonly installationId: Schema.String;
|
|
87
87
|
}>, Schema.Struct<{
|
|
@@ -105,8 +105,7 @@ export type OysterBuildView = Readonly<{
|
|
|
105
105
|
installation: OysterBuildInstallation | null;
|
|
106
106
|
}>;
|
|
107
107
|
/** Known preflight refusals, before a job or Computer run exists. */
|
|
108
|
-
export
|
|
109
|
-
export type OysterBuildStartReason = Schema.Schema.Type<typeof oysterBuildStartReasonSchema>;
|
|
108
|
+
export type OysterBuildStartReason = "invalid_revision" | "no_source" | "not_template_seed" | "no_backend";
|
|
110
109
|
export declare const oysterBuildStartMessages: {
|
|
111
110
|
invalid_revision: string;
|
|
112
111
|
no_source: string;
|
package/dist/app-builds.js
CHANGED
|
@@ -40,7 +40,7 @@ const jobTtlMs = oysterAppBuildTimeoutMs + 5 * 60_000;
|
|
|
40
40
|
export const oysterBuildGitHost = "git.team.internal";
|
|
41
41
|
export const oysterBuildReportHost = "build.team.internal";
|
|
42
42
|
/** Where an App's source is cloned from. */
|
|
43
|
-
|
|
43
|
+
const oysterBuildLocationSchema = Schema.Union([
|
|
44
44
|
Schema.Struct({
|
|
45
45
|
kind: Schema.Literal("installation"),
|
|
46
46
|
/** The installation whose Git holds the repository (Bonsai for a fork). */
|
|
@@ -51,14 +51,14 @@ export const oysterBuildLocationSchema = Schema.Union([
|
|
|
51
51
|
Schema.Struct({ kind: Schema.Literal("template") }),
|
|
52
52
|
]);
|
|
53
53
|
/** An App's registered build source: where it is cloned and its pinned recipe. */
|
|
54
|
-
|
|
54
|
+
const oysterBuildSourceSchema = Schema.Struct({
|
|
55
55
|
appId: appIdSchema,
|
|
56
56
|
location: oysterBuildLocationSchema,
|
|
57
57
|
recipe: capturedPinnedRecipeSchema,
|
|
58
58
|
buildRecipeDigest: sha256DigestSchema,
|
|
59
59
|
});
|
|
60
60
|
/** Installation is a build outcome, never a pending consent/approval record. */
|
|
61
|
-
|
|
61
|
+
const oysterBuildInstallationSchema = Schema.Union([
|
|
62
62
|
Schema.Struct({
|
|
63
63
|
kind: Schema.Literal("pending"),
|
|
64
64
|
installationId: Schema.String,
|
|
@@ -74,13 +74,6 @@ export const oysterBuildInstallationSchema = Schema.Union([
|
|
|
74
74
|
}),
|
|
75
75
|
]);
|
|
76
76
|
const installationCodec = Schema.fromJsonString(oysterBuildInstallationSchema);
|
|
77
|
-
/** Known preflight refusals, before a job or Computer run exists. */
|
|
78
|
-
export const oysterBuildStartReasonSchema = Schema.Literals([
|
|
79
|
-
"invalid_revision",
|
|
80
|
-
"no_source",
|
|
81
|
-
"not_template_seed",
|
|
82
|
-
"no_backend",
|
|
83
|
-
]);
|
|
84
77
|
export const oysterBuildStartMessages = {
|
|
85
78
|
invalid_revision: "Source revision must be git: followed by a full commit hash",
|
|
86
79
|
no_source: "App has no build source",
|