@fungi.computer/oyster 0.14.1 → 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.
@@ -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
- export declare const oysterBuildLocationSchema: Schema.Union<readonly [Schema.Struct<{
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
- export declare const oysterBuildSourceSchema: Schema.Struct<{
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
- export type OysterBuildSource = Schema.Schema.Type<typeof oysterBuildSourceSchema>;
82
+ type OysterBuildSource = Schema.Schema.Type<typeof oysterBuildSourceSchema>;
83
83
  /** Installation is a build outcome, never a pending consent/approval record. */
84
- export declare const oysterBuildInstallationSchema: Schema.Union<readonly [Schema.Struct<{
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 declare const oysterBuildStartReasonSchema: Schema.Literals<readonly ["invalid_revision", "no_source", "not_template_seed", "no_backend"]>;
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;
@@ -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
- export const oysterBuildLocationSchema = Schema.Union([
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
- export const oysterBuildSourceSchema = Schema.Struct({
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
- export const oysterBuildInstallationSchema = Schema.Union([
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",