bleam 0.0.10 → 0.0.12
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/ai.cjs +1872 -1182
- package/dist/ai.d.cts +267 -234
- package/dist/ai.d.ts +267 -234
- package/dist/ai.js +1859 -1167
- package/dist/cli.cjs +3 -183
- package/dist/cli.d.cts +3 -47
- package/dist/cli.d.ts +3 -47
- package/dist/cli.js +3 -183
- package/dist/config.d.cts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/{files-Ds1wT8C2.js → files-BXVkPrPN.js} +6 -1
- package/dist/{files-Bo7h9fik.cjs → files-DxaQ-Nv0.cjs} +11 -0
- package/dist/files.cjs +1 -1
- package/dist/files.js +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/platform.cjs +1 -13
- package/dist/platform.d.cts +1 -28
- package/dist/platform.d.ts +1 -28
- package/dist/platform.js +1 -10
- package/dist/schema-B5BfdswF.js +226 -0
- package/dist/schema-BnVZOXfu.cjs +286 -0
- package/dist/schema-D5eImHxu.d.cts +125 -0
- package/dist/schema-SSjokbtw.d.ts +125 -0
- package/dist/schema.cjs +10 -2
- package/dist/schema.d.cts +2 -2
- package/dist/schema.d.ts +2 -2
- package/dist/schema.js +2 -2
- package/dist/state-Dh3HLixb.js +874 -0
- package/dist/state-LssDgpff.cjs +973 -0
- package/dist/state.cjs +16 -12
- package/dist/state.d.cts +144 -140
- package/dist/state.d.ts +145 -140
- package/dist/state.js +3 -3
- package/dist/{ui-Bg11tvlc.d.ts → ui-1WepaMS4.d.cts} +1 -1
- package/dist/{ui-Dd7SXdbg.d.cts → ui-D7bRLYee.d.ts} +7 -7
- package/dist/ui.d.cts +1 -1
- package/dist/ui.d.ts +1 -1
- package/dist/window.d.cts +1 -1
- package/dist/window.d.ts +1 -1
- package/package.json +3 -1
- package/templates/foundation-models/app/index.tsx +77 -15
- package/templates/image-generation/app/index.tsx +4 -2
- package/templates/native/ios/Bleam/AI/Flux2/Configuration/ModelRegistry.swift +1 -1
- package/templates/native/ios/Bleam/AI/Flux2/Pipeline/FluxImageRunner.swift +7 -2
- package/templates/native/ios/Bleam/AI/TextGeneration/Bonsai/BonsaiTextGenerator.swift +46 -0
- package/templates/native/ios/Bleam/AI/TextGeneration/Bonsai/BonsaiTextModel.swift +107 -0
- package/templates/native/ios/Bleam/AI/TextGeneration/Bonsai/BonsaiTextSnapshotValidator.swift +201 -0
- package/templates/native/ios/Bleam/AI/TextGeneration/Core/GenerationTypes.swift +85 -0
- package/templates/native/ios/Bleam/AI/TextGeneration/Core/ModelCapabilities.swift +21 -0
- package/templates/native/ios/Bleam/AI/TextGeneration/Core/TextKVCache.swift +23 -0
- package/templates/native/ios/Bleam/AI/TextGeneration/Core/TokenSampler.swift +79 -0
- package/templates/native/ios/Bleam/AI/TextGeneration/Qwen3/Qwen3CheckpointLoader.swift +161 -0
- package/templates/native/ios/Bleam/AI/TextGeneration/Qwen3/Qwen3Configuration.swift +119 -0
- package/templates/native/ios/Bleam/AI/TextGeneration/Qwen3/Qwen3InferenceSession.swift +84 -0
- package/templates/native/ios/Bleam/AI/TextGeneration/Qwen3/Qwen3Layers.swift +197 -0
- package/templates/native/ios/Bleam/AI/TextGeneration/Qwen3/Qwen3Model.swift +130 -0
- package/templates/native/ios/Bleam/AI/TextGeneration/Qwen35/Qwen35Checkpoint.swift +102 -0
- package/templates/native/ios/Bleam/AI/TextGeneration/Qwen35/Qwen35Configuration.swift +140 -0
- package/templates/native/ios/Bleam/AI/TextGeneration/Qwen35/Qwen35Model.swift +112 -0
- package/templates/native/ios/Bleam/AI/TextGeneration/Qwen35/Qwen35Session.swift +121 -0
- package/templates/native/ios/Bleam/AI/TextGeneration/QwenHybrid/QwenHybridCache.swift +42 -0
- package/templates/native/ios/Bleam/AI/TextGeneration/QwenHybrid/QwenHybridFullAttention.swift +57 -0
- package/templates/native/ios/Bleam/AI/TextGeneration/QwenHybrid/QwenHybridLayers.swift +58 -0
- package/templates/native/ios/Bleam/AI/TextGeneration/QwenHybrid/QwenHybridLinearAttention.swift +111 -0
- package/templates/native/ios/Bleam/AppDelegate.swift +0 -206
- package/templates/native/ios/Bleam.xcodeproj/project.pbxproj +135 -129
- package/templates/native/ios/GenerationService/BonsaiTextGenerationRunner.swift +103 -0
- package/templates/native/ios/GenerationService/ImageGenerationRunner.swift +19 -7
- package/templates/native/ios/GenerationService/main.swift +174 -48
- package/templates/native/ios/Podfile.lock +173 -173
- package/templates/native/ios/Shared/Generation/GenerationServiceProtocol.swift +3 -0
- package/templates/native/ios/Shared/Generation/GenerationWorkerProtocol.swift +44 -0
- package/templates/native/modules/bleam-runtime/ios/AIModule.swift +239 -341
- package/templates/native/modules/bleam-runtime/ios/GenerationContracts.swift +47 -0
- package/templates/native/modules/bleam-runtime/ios/PlatformModule.swift +0 -191
- package/templates/text-generation/app/index.tsx +124 -0
- package/templates/text-generation/app.config.ts +5 -0
- package/templates/updates/README.md +43 -199
- package/templates/updates/src/index.ts +5 -98
- package/templates/updates/src/schema.ts +18 -173
- package/dist/schema-Bo5Jvqus.js +0 -90
- package/dist/schema-DOOjfXvs.d.ts +0 -58
- package/dist/schema-ENSMX_1t.d.cts +0 -58
- package/dist/schema-rQ13mrpD.cjs +0 -102
- package/dist/state-Bx0VlTlO.cjs +0 -852
- package/dist/state-CAwe-Vw1.js +0 -767
- package/templates/native/ios/PlatformHelper/main.swift +0 -726
- /package/dist/{config-Cms0rvqg.d.ts → config-COcRnn5a.d.cts} +0 -0
- /package/dist/{config-CufOVJV3.d.cts → config-Chi-flpJ.d.ts} +0 -0
package/dist/cli.cjs
CHANGED
|
@@ -97,8 +97,6 @@ Commands:
|
|
|
97
97
|
Build and install a standalone macOS app
|
|
98
98
|
publish ota [dir] [--service-url <url>]
|
|
99
99
|
Publish an OTA update to the local update service
|
|
100
|
-
publish platform [dir] [--service-url <url>] [--redeploy]
|
|
101
|
-
Build and publish a platform update locally
|
|
102
100
|
doctor [dir] Check the local Bleam environment
|
|
103
101
|
typecheck [dir] Typecheck project files
|
|
104
102
|
check [dir] [--write] Format, lint, and organize imports
|
|
@@ -133,13 +131,6 @@ function parsePublishOtaOptions(argv) {
|
|
|
133
131
|
serviceUrl: url.origin
|
|
134
132
|
};
|
|
135
133
|
}
|
|
136
|
-
function parsePublishPlatformOptions(argv) {
|
|
137
|
-
const redeploy = argv.includes("--redeploy");
|
|
138
|
-
return {
|
|
139
|
-
...parsePublishOtaOptions(argv.filter((argument) => argument !== "--redeploy")),
|
|
140
|
-
redeploy
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
134
|
function invocationRoot() {
|
|
144
135
|
const pwd = process.env.PWD;
|
|
145
136
|
return pwd && node_path.default.isAbsolute(pwd) ? pwd : process.cwd();
|
|
@@ -198,7 +189,7 @@ function parseDevOptions(argv) {
|
|
|
198
189
|
function parseNewOptions(argv) {
|
|
199
190
|
const root = invocationRoot();
|
|
200
191
|
let projectRoot;
|
|
201
|
-
let template = "
|
|
192
|
+
let template = "text-generation";
|
|
202
193
|
for (let index = 0; index < argv.length; index += 1) {
|
|
203
194
|
const arg = argv[index];
|
|
204
195
|
if (arg === "--help" || arg === "-h") {
|
|
@@ -227,6 +218,7 @@ const projectTemplates = [
|
|
|
227
218
|
"basic",
|
|
228
219
|
"state",
|
|
229
220
|
"foundation-models",
|
|
221
|
+
"text-generation",
|
|
230
222
|
"image-generation"
|
|
231
223
|
];
|
|
232
224
|
function projectTemplate(value) {
|
|
@@ -729,27 +721,6 @@ function prepareNativeIcon(nativeRoot, iconPath) {
|
|
|
729
721
|
}
|
|
730
722
|
}, null, 2)}\n`);
|
|
731
723
|
}
|
|
732
|
-
function platformInputFingerprint(config) {
|
|
733
|
-
const iconSha256 = config.iconPath ? sha256(config.iconPath) : null;
|
|
734
|
-
return (0, node_crypto.createHash)("sha256").update(JSON.stringify({
|
|
735
|
-
schemaVersion: 1,
|
|
736
|
-
bleamPlatformVersion: config.runtimeVersion,
|
|
737
|
-
name: config.name,
|
|
738
|
-
appVersion: config.version ?? "1.0.0",
|
|
739
|
-
buildNumber: config.buildNumber,
|
|
740
|
-
bundleIdentifier: config.bundleIdentifier,
|
|
741
|
-
teamIdentifier: config.teamId,
|
|
742
|
-
appGroups: config.appGroups,
|
|
743
|
-
appearance: config.appearance,
|
|
744
|
-
iconSha256,
|
|
745
|
-
updateServiceUrl: process.env.BLEAM_UPDATE_SERVICE_URL ?? localUpdateServiceUrl,
|
|
746
|
-
target: {
|
|
747
|
-
os: "macos",
|
|
748
|
-
architecture: "arm64",
|
|
749
|
-
minimumMacOSVersion: "14.0"
|
|
750
|
-
}
|
|
751
|
-
})).digest("hex");
|
|
752
|
-
}
|
|
753
724
|
function patchNativeProject(nativeRoot, config) {
|
|
754
725
|
const projectPath = node_path.default.join(nativeRoot, "ios", "Bleam.xcodeproj", "project.pbxproj");
|
|
755
726
|
const infoPlistPath = node_path.default.join(nativeRoot, "ios", "Bleam", "Info.plist");
|
|
@@ -763,7 +734,6 @@ function patchNativeProject(nativeRoot, config) {
|
|
|
763
734
|
const version = xcodeSettingValue(config.version ?? "1.0.0");
|
|
764
735
|
const buildNumber = xcodeSettingValue(config.buildNumber);
|
|
765
736
|
const primaryAppGroup = config.appGroups[0];
|
|
766
|
-
const fingerprint = platformInputFingerprint(config);
|
|
767
737
|
let project = (0, node_fs.readFileSync)(projectPath, "utf8");
|
|
768
738
|
project = project.replace(/PRODUCT_BUNDLE_IDENTIFIER = ([^;]+);/g, (_, current) => {
|
|
769
739
|
return `PRODUCT_BUNDLE_IDENTIFIER = ${current.endsWith(".GenerationService") ? generationBundleIdentifier : bundleIdentifier};`;
|
|
@@ -781,7 +751,6 @@ function patchNativeProject(nativeRoot, config) {
|
|
|
781
751
|
infoPlist = replacePlistString(infoPlist, "CFBundleDisplayName", config.name);
|
|
782
752
|
infoPlist = replacePlistString(infoPlist, "CFBundleShortVersionString", config.version ?? "1.0.0");
|
|
783
753
|
infoPlist = replaceOrInsertPlistString(infoPlist, "BleamRuntimeVersion", config.runtimeVersion);
|
|
784
|
-
infoPlist = replaceOrInsertPlistString(infoPlist, "BleamPlatformFingerprint", fingerprint);
|
|
785
754
|
infoPlist = replaceOrInsertPlistString(infoPlist, "BleamTeamIdentifier", config.teamId ?? "");
|
|
786
755
|
const updateServiceUrl = process.env.BLEAM_UPDATE_SERVICE_URL ?? localUpdateServiceUrl;
|
|
787
756
|
infoPlist = replaceOrInsertPlistString(infoPlist, "BleamUpdateServiceURL", updateServiceUrl);
|
|
@@ -1065,147 +1034,6 @@ async function publishOta(options) {
|
|
|
1065
1034
|
console.log(`Published OTA update ${releaseId}`);
|
|
1066
1035
|
console.log(`${options.serviceUrl}/v1/apps/${encodeURIComponent(config.bundleIdentifier)}/ota/${runtimeVersion}`);
|
|
1067
1036
|
}
|
|
1068
|
-
function compareVersions(left, right) {
|
|
1069
|
-
const parse = (value) => {
|
|
1070
|
-
const match = /^(\d+)\.(\d+)\.(\d+)(?:-([^+]+))?(?:\+.*)?$/.exec(value);
|
|
1071
|
-
if (!match) throw new Error(`Invalid Bleam platform version: ${value}`);
|
|
1072
|
-
return {
|
|
1073
|
-
core: match.slice(1, 4).map(Number),
|
|
1074
|
-
prerelease: match[4]?.split(".")
|
|
1075
|
-
};
|
|
1076
|
-
};
|
|
1077
|
-
const a = parse(left);
|
|
1078
|
-
const b = parse(right);
|
|
1079
|
-
for (let index = 0; index < a.core.length; index += 1) if (a.core[index] !== b.core[index]) return (a.core[index] ?? 0) < (b.core[index] ?? 0) ? -1 : 1;
|
|
1080
|
-
if (!a.prerelease && !b.prerelease) return 0;
|
|
1081
|
-
if (!a.prerelease) return 1;
|
|
1082
|
-
if (!b.prerelease) return -1;
|
|
1083
|
-
const length = Math.max(a.prerelease.length, b.prerelease.length);
|
|
1084
|
-
for (let index = 0; index < length; index += 1) {
|
|
1085
|
-
const aPart = a.prerelease[index];
|
|
1086
|
-
const bPart = b.prerelease[index];
|
|
1087
|
-
if (aPart === void 0) return -1;
|
|
1088
|
-
if (bPart === void 0) return 1;
|
|
1089
|
-
if (aPart === bPart) continue;
|
|
1090
|
-
const aNumber = /^\d+$/.test(aPart) ? Number(aPart) : void 0;
|
|
1091
|
-
const bNumber = /^\d+$/.test(bPart) ? Number(bPart) : void 0;
|
|
1092
|
-
if (aNumber !== void 0 && bNumber !== void 0) return aNumber < bNumber ? -1 : 1;
|
|
1093
|
-
if (aNumber !== void 0) return -1;
|
|
1094
|
-
if (bNumber !== void 0) return 1;
|
|
1095
|
-
return aPart < bPart ? -1 : 1;
|
|
1096
|
-
}
|
|
1097
|
-
return 0;
|
|
1098
|
-
}
|
|
1099
|
-
function platformPublicationReason(active, target, redeploy) {
|
|
1100
|
-
if (active && compareVersions(target.bleamPlatformVersion, active.bleamPlatformVersion) < 0) throw new Error(`Cannot publish older Bleam platform ${target.bleamPlatformVersion} over ${active.bleamPlatformVersion}. Rollback requires a separate release operation.`);
|
|
1101
|
-
const unchanged = active?.platformFingerprint === target.platformFingerprint;
|
|
1102
|
-
if (unchanged && !redeploy) throw new Error("Platform inputs are unchanged. Developer code and ordinary assets must be published with bleam publish ota. Use --redeploy only to intentionally republish identical platform inputs.");
|
|
1103
|
-
if (!unchanged && redeploy) throw new Error("--redeploy requires an existing release with the same platform fingerprint; publish normally because platform inputs changed.");
|
|
1104
|
-
if (unchanged) return "redeploy";
|
|
1105
|
-
if (!active) return "first-release";
|
|
1106
|
-
if (!active.platformFingerprint) return "legacy-migration";
|
|
1107
|
-
if (active.bleamPlatformVersion !== target.bleamPlatformVersion) return "runtime-upgrade";
|
|
1108
|
-
return "signed-input-change";
|
|
1109
|
-
}
|
|
1110
|
-
async function activePlatformRelease(serviceUrl, config) {
|
|
1111
|
-
const response = await fetch(`${serviceUrl}/v1/apps/${encodeURIComponent(config.bundleIdentifier ?? "")}/platform/macos-arm64`, { cache: "no-store" });
|
|
1112
|
-
if (response.status === 404) return void 0;
|
|
1113
|
-
if (!response.ok) throw new Error(`Could not resolve the active platform release: ${response.status} ${await response.text()}`);
|
|
1114
|
-
const release = await response.json();
|
|
1115
|
-
if (release.kind !== "platform" || release.bundleIdentifier !== config.bundleIdentifier || release.teamIdentifier !== config.teamId || typeof release.bleamPlatformVersion !== "string" || release.platformFingerprint !== void 0 && (typeof release.platformFingerprint !== "string" || !/^[a-f0-9]{64}$/.test(release.platformFingerprint))) throw new Error("The active platform release is invalid for this app");
|
|
1116
|
-
return {
|
|
1117
|
-
bleamPlatformVersion: release.bleamPlatformVersion,
|
|
1118
|
-
platformFingerprint: release.platformFingerprint
|
|
1119
|
-
};
|
|
1120
|
-
}
|
|
1121
|
-
async function publishPlatform(options) {
|
|
1122
|
-
const config = readProjectConfig(options);
|
|
1123
|
-
if (!config.bundleIdentifier) throw missingBuildFieldError("bundleIdentifier");
|
|
1124
|
-
if (!config.teamId) throw missingBuildFieldError("teamId");
|
|
1125
|
-
const fingerprint = platformInputFingerprint(config);
|
|
1126
|
-
const active = await activePlatformRelease(options.serviceUrl, config);
|
|
1127
|
-
console.log(`Bleam platform: ${active?.bleamPlatformVersion ?? "none"} -> ${config.runtimeVersion}`);
|
|
1128
|
-
console.log(`Platform fingerprint: ${active?.platformFingerprint ?? "none"} -> ${fingerprint}`);
|
|
1129
|
-
const reason = platformPublicationReason(active, {
|
|
1130
|
-
bleamPlatformVersion: config.runtimeVersion,
|
|
1131
|
-
platformFingerprint: fingerprint
|
|
1132
|
-
}, options.redeploy);
|
|
1133
|
-
if (reason === "redeploy") console.log("Redeploying unchanged platform inputs by explicit request");
|
|
1134
|
-
else if (reason === "first-release") console.log("Publishing the first platform release for this app");
|
|
1135
|
-
else if (reason === "legacy-migration") console.log("Migrating the active legacy release to platform fingerprints");
|
|
1136
|
-
else if (reason === "runtime-upgrade") console.log("Publishing a Bleam platform runtime upgrade");
|
|
1137
|
-
else console.log("Publishing changed signed app metadata or resources");
|
|
1138
|
-
const archivePath = await buildNativeArchives({
|
|
1139
|
-
projectRoot: options.projectRoot,
|
|
1140
|
-
output: node_path.default.join(options.projectRoot, "dist"),
|
|
1141
|
-
configuration: "Release",
|
|
1142
|
-
clean: false
|
|
1143
|
-
});
|
|
1144
|
-
const products = node_path.default.join(archivePath, "Products", "Applications");
|
|
1145
|
-
const appName = (0, node_fs.readdirSync)(products).find((name) => name.endsWith(".app"));
|
|
1146
|
-
if (!appName) throw new Error(`Archive does not contain a macOS app: ${archivePath}`);
|
|
1147
|
-
const outputRoot = node_path.default.join(options.projectRoot, ".bleam", "publish", "platform");
|
|
1148
|
-
const stagingRoot = node_path.default.join(outputRoot, "app");
|
|
1149
|
-
const artifactPath = node_path.default.join(outputRoot, "platform.zip");
|
|
1150
|
-
(0, node_fs.rmSync)(outputRoot, {
|
|
1151
|
-
recursive: true,
|
|
1152
|
-
force: true
|
|
1153
|
-
});
|
|
1154
|
-
(0, node_fs.mkdirSync)(stagingRoot, { recursive: true });
|
|
1155
|
-
(0, node_child_process.execFileSync)("ditto", [node_path.default.join(products, appName), node_path.default.join(stagingRoot, appName)]);
|
|
1156
|
-
runInheritedCommand("zip", [
|
|
1157
|
-
"-q",
|
|
1158
|
-
"-r",
|
|
1159
|
-
"-y",
|
|
1160
|
-
artifactPath,
|
|
1161
|
-
"app"
|
|
1162
|
-
], outputRoot);
|
|
1163
|
-
const sizeBytes = (0, node_fs.readFileSync)(artifactPath).byteLength;
|
|
1164
|
-
const digest = sha256(artifactPath);
|
|
1165
|
-
const releaseId = `platform_${Date.now().toString(36)}_${digest.slice(0, 12)}`;
|
|
1166
|
-
const release = platformRelease(config, releaseId, sizeBytes, digest, options.redeploy);
|
|
1167
|
-
const response = await fetch(`${options.serviceUrl}/v1/local/releases/platform`, {
|
|
1168
|
-
method: "POST",
|
|
1169
|
-
headers: { "content-type": "application/json" },
|
|
1170
|
-
body: JSON.stringify({
|
|
1171
|
-
release,
|
|
1172
|
-
artifactBase64: (0, node_fs.readFileSync)(artifactPath).toString("base64")
|
|
1173
|
-
})
|
|
1174
|
-
});
|
|
1175
|
-
if (!response.ok) throw new Error(`Local platform publication failed: ${response.status} ${await response.text()}`);
|
|
1176
|
-
console.log(`Published platform update ${releaseId}`);
|
|
1177
|
-
console.log(`${options.serviceUrl}/v1/apps/${encodeURIComponent(config.bundleIdentifier)}/platform/macos-arm64`);
|
|
1178
|
-
}
|
|
1179
|
-
function platformRelease(config, releaseId, sizeBytes, digest, redeploy = false) {
|
|
1180
|
-
if (!config.bundleIdentifier) throw missingBuildFieldError("bundleIdentifier");
|
|
1181
|
-
if (!config.teamId) throw missingBuildFieldError("teamId");
|
|
1182
|
-
return {
|
|
1183
|
-
schemaVersion: 1,
|
|
1184
|
-
kind: "platform",
|
|
1185
|
-
bundleIdentifier: config.bundleIdentifier,
|
|
1186
|
-
teamIdentifier: config.teamId,
|
|
1187
|
-
channel: "stable",
|
|
1188
|
-
releaseId,
|
|
1189
|
-
appVersion: config.version ?? "1.0.0",
|
|
1190
|
-
buildNumber: config.buildNumber,
|
|
1191
|
-
bleamPlatformVersion: config.runtimeVersion,
|
|
1192
|
-
platformFingerprint: platformInputFingerprint(config),
|
|
1193
|
-
redeploy,
|
|
1194
|
-
target: {
|
|
1195
|
-
os: "macos",
|
|
1196
|
-
architecture: "arm64",
|
|
1197
|
-
installLocation: "user-applications",
|
|
1198
|
-
minimumMacOSVersion: "14.0"
|
|
1199
|
-
},
|
|
1200
|
-
artifact: {
|
|
1201
|
-
format: "bleam-macos-app-zip-v1",
|
|
1202
|
-
downloadId: releaseId,
|
|
1203
|
-
sizeBytes,
|
|
1204
|
-
sha256: digest
|
|
1205
|
-
},
|
|
1206
|
-
publishedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
1207
|
-
};
|
|
1208
|
-
}
|
|
1209
1037
|
function runtimeCacheRoot() {
|
|
1210
1038
|
return node_path.default.join(node_os.default.homedir(), "Library", "Caches", "bleam", "runtimes", runtimeVersion, artifactPlatform());
|
|
1211
1039
|
}
|
|
@@ -2082,11 +1910,7 @@ async function main(argv = process.argv.slice(2)) {
|
|
|
2082
1910
|
await publishOta(parsePublishOtaOptions(publishArgs));
|
|
2083
1911
|
return;
|
|
2084
1912
|
}
|
|
2085
|
-
|
|
2086
|
-
await publishPlatform(parsePublishPlatformOptions(publishArgs));
|
|
2087
|
-
return;
|
|
2088
|
-
}
|
|
2089
|
-
throw new Error("Usage: bleam publish <ota|platform> [dir] [--service-url <url>] [--redeploy]");
|
|
1913
|
+
throw new Error("Usage: bleam publish ota [dir] [--service-url <url>]");
|
|
2090
1914
|
}
|
|
2091
1915
|
if (command === "doctor") {
|
|
2092
1916
|
runDoctor(parseDoctorOptions(args));
|
|
@@ -2131,10 +1955,6 @@ const __test = {
|
|
|
2131
1955
|
parseBuildOptions,
|
|
2132
1956
|
parseNewOptions,
|
|
2133
1957
|
parsePublishOtaOptions,
|
|
2134
|
-
parsePublishPlatformOptions,
|
|
2135
|
-
platformInputFingerprint,
|
|
2136
|
-
platformPublicationReason,
|
|
2137
|
-
platformRelease,
|
|
2138
1958
|
podInstallInputStamp,
|
|
2139
1959
|
replaceOrInsertPlistString
|
|
2140
1960
|
};
|
package/dist/cli.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as BleamAppearance } from "./config-
|
|
2
|
+
import { t as BleamAppearance } from "./config-COcRnn5a.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/cli.d.ts
|
|
5
5
|
interface BuildOptions {
|
|
@@ -13,9 +13,6 @@ interface PublishOtaOptions {
|
|
|
13
13
|
projectRoot: string;
|
|
14
14
|
serviceUrl: string;
|
|
15
15
|
}
|
|
16
|
-
interface PublishPlatformOptions extends PublishOtaOptions {
|
|
17
|
-
redeploy: boolean;
|
|
18
|
-
}
|
|
19
16
|
interface ProjectConfig {
|
|
20
17
|
name: string;
|
|
21
18
|
version?: string;
|
|
@@ -29,12 +26,11 @@ interface ProjectConfig {
|
|
|
29
26
|
iconPath?: string;
|
|
30
27
|
}
|
|
31
28
|
declare function parsePublishOtaOptions(argv: string[]): PublishOtaOptions;
|
|
32
|
-
declare function parsePublishPlatformOptions(argv: string[]): PublishPlatformOptions;
|
|
33
29
|
declare function parseNewOptions(argv: string[]): {
|
|
34
30
|
projectRoot: string;
|
|
35
|
-
template: "state" | "basic" | "foundation-models" | "image-generation";
|
|
31
|
+
template: "state" | "basic" | "foundation-models" | "text-generation" | "image-generation";
|
|
36
32
|
};
|
|
37
|
-
declare const projectTemplates: readonly ["basic", "state", "foundation-models", "image-generation"];
|
|
33
|
+
declare const projectTemplates: readonly ["basic", "state", "foundation-models", "text-generation", "image-generation"];
|
|
38
34
|
type ProjectTemplate = (typeof projectTemplates)[number];
|
|
39
35
|
declare function parseBuildOptions(argv: string[]): BuildOptions;
|
|
40
36
|
declare function createProject(options: {
|
|
@@ -49,7 +45,6 @@ declare function localUpdateServicePaths(home?: string): {
|
|
|
49
45
|
log: string;
|
|
50
46
|
};
|
|
51
47
|
declare function replaceOrInsertPlistString(plist: string, key: string, value: string): string;
|
|
52
|
-
declare function platformInputFingerprint(config: ProjectConfig): string;
|
|
53
48
|
declare function createBuildNativeWorkspace(options: BuildOptions, config: ProjectConfig): string;
|
|
54
49
|
declare function podInstallInputStamp(iosRoot: string): string;
|
|
55
50
|
declare function hasCurrentPodInstall(iosRoot: string, expectedStamp: string): boolean;
|
|
@@ -60,41 +55,6 @@ declare function nativeArchiveArgs(options: {
|
|
|
60
55
|
}): string[];
|
|
61
56
|
declare function installArchivedApp(archivePath: string, applications?: string): string;
|
|
62
57
|
declare function installedAppPath(appName: string): string;
|
|
63
|
-
interface ActivePlatformRelease {
|
|
64
|
-
bleamPlatformVersion: string;
|
|
65
|
-
platformFingerprint?: string;
|
|
66
|
-
}
|
|
67
|
-
type PlatformPublicationReason = 'first-release' | 'legacy-migration' | 'runtime-upgrade' | 'signed-input-change' | 'redeploy';
|
|
68
|
-
declare function platformPublicationReason(active: ActivePlatformRelease | undefined, target: {
|
|
69
|
-
bleamPlatformVersion: string;
|
|
70
|
-
platformFingerprint: string;
|
|
71
|
-
}, redeploy: boolean): PlatformPublicationReason;
|
|
72
|
-
declare function platformRelease(config: ProjectConfig, releaseId: string, sizeBytes: number, digest: string, redeploy?: boolean): {
|
|
73
|
-
schemaVersion: number;
|
|
74
|
-
kind: string;
|
|
75
|
-
bundleIdentifier: string;
|
|
76
|
-
teamIdentifier: string;
|
|
77
|
-
channel: string;
|
|
78
|
-
releaseId: string;
|
|
79
|
-
appVersion: string;
|
|
80
|
-
buildNumber: string;
|
|
81
|
-
bleamPlatformVersion: string;
|
|
82
|
-
platformFingerprint: string;
|
|
83
|
-
redeploy: boolean;
|
|
84
|
-
target: {
|
|
85
|
-
os: string;
|
|
86
|
-
architecture: string;
|
|
87
|
-
installLocation: string;
|
|
88
|
-
minimumMacOSVersion: string;
|
|
89
|
-
};
|
|
90
|
-
artifact: {
|
|
91
|
-
format: string;
|
|
92
|
-
downloadId: string;
|
|
93
|
-
sizeBytes: number;
|
|
94
|
-
sha256: string;
|
|
95
|
-
};
|
|
96
|
-
publishedAt: string;
|
|
97
|
-
};
|
|
98
58
|
declare const __test: {
|
|
99
59
|
createProject: typeof createProject;
|
|
100
60
|
createBuildNativeWorkspace: typeof createBuildNativeWorkspace;
|
|
@@ -108,10 +68,6 @@ declare const __test: {
|
|
|
108
68
|
parseBuildOptions: typeof parseBuildOptions;
|
|
109
69
|
parseNewOptions: typeof parseNewOptions;
|
|
110
70
|
parsePublishOtaOptions: typeof parsePublishOtaOptions;
|
|
111
|
-
parsePublishPlatformOptions: typeof parsePublishPlatformOptions;
|
|
112
|
-
platformInputFingerprint: typeof platformInputFingerprint;
|
|
113
|
-
platformPublicationReason: typeof platformPublicationReason;
|
|
114
|
-
platformRelease: typeof platformRelease;
|
|
115
71
|
podInstallInputStamp: typeof podInstallInputStamp;
|
|
116
72
|
replaceOrInsertPlistString: typeof replaceOrInsertPlistString;
|
|
117
73
|
};
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as BleamAppearance } from "./config-
|
|
2
|
+
import { t as BleamAppearance } from "./config-Chi-flpJ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/cli.d.ts
|
|
5
5
|
interface BuildOptions {
|
|
@@ -13,9 +13,6 @@ interface PublishOtaOptions {
|
|
|
13
13
|
projectRoot: string;
|
|
14
14
|
serviceUrl: string;
|
|
15
15
|
}
|
|
16
|
-
interface PublishPlatformOptions extends PublishOtaOptions {
|
|
17
|
-
redeploy: boolean;
|
|
18
|
-
}
|
|
19
16
|
interface ProjectConfig {
|
|
20
17
|
name: string;
|
|
21
18
|
version?: string;
|
|
@@ -29,12 +26,11 @@ interface ProjectConfig {
|
|
|
29
26
|
iconPath?: string;
|
|
30
27
|
}
|
|
31
28
|
declare function parsePublishOtaOptions(argv: string[]): PublishOtaOptions;
|
|
32
|
-
declare function parsePublishPlatformOptions(argv: string[]): PublishPlatformOptions;
|
|
33
29
|
declare function parseNewOptions(argv: string[]): {
|
|
34
30
|
projectRoot: string;
|
|
35
|
-
template: "state" | "basic" | "foundation-models" | "image-generation";
|
|
31
|
+
template: "state" | "basic" | "foundation-models" | "text-generation" | "image-generation";
|
|
36
32
|
};
|
|
37
|
-
declare const projectTemplates: readonly ["basic", "state", "foundation-models", "image-generation"];
|
|
33
|
+
declare const projectTemplates: readonly ["basic", "state", "foundation-models", "text-generation", "image-generation"];
|
|
38
34
|
type ProjectTemplate = (typeof projectTemplates)[number];
|
|
39
35
|
declare function parseBuildOptions(argv: string[]): BuildOptions;
|
|
40
36
|
declare function createProject(options: {
|
|
@@ -49,7 +45,6 @@ declare function localUpdateServicePaths(home?: string): {
|
|
|
49
45
|
log: string;
|
|
50
46
|
};
|
|
51
47
|
declare function replaceOrInsertPlistString(plist: string, key: string, value: string): string;
|
|
52
|
-
declare function platformInputFingerprint(config: ProjectConfig): string;
|
|
53
48
|
declare function createBuildNativeWorkspace(options: BuildOptions, config: ProjectConfig): string;
|
|
54
49
|
declare function podInstallInputStamp(iosRoot: string): string;
|
|
55
50
|
declare function hasCurrentPodInstall(iosRoot: string, expectedStamp: string): boolean;
|
|
@@ -60,41 +55,6 @@ declare function nativeArchiveArgs(options: {
|
|
|
60
55
|
}): string[];
|
|
61
56
|
declare function installArchivedApp(archivePath: string, applications?: string): string;
|
|
62
57
|
declare function installedAppPath(appName: string): string;
|
|
63
|
-
interface ActivePlatformRelease {
|
|
64
|
-
bleamPlatformVersion: string;
|
|
65
|
-
platformFingerprint?: string;
|
|
66
|
-
}
|
|
67
|
-
type PlatformPublicationReason = 'first-release' | 'legacy-migration' | 'runtime-upgrade' | 'signed-input-change' | 'redeploy';
|
|
68
|
-
declare function platformPublicationReason(active: ActivePlatformRelease | undefined, target: {
|
|
69
|
-
bleamPlatformVersion: string;
|
|
70
|
-
platformFingerprint: string;
|
|
71
|
-
}, redeploy: boolean): PlatformPublicationReason;
|
|
72
|
-
declare function platformRelease(config: ProjectConfig, releaseId: string, sizeBytes: number, digest: string, redeploy?: boolean): {
|
|
73
|
-
schemaVersion: number;
|
|
74
|
-
kind: string;
|
|
75
|
-
bundleIdentifier: string;
|
|
76
|
-
teamIdentifier: string;
|
|
77
|
-
channel: string;
|
|
78
|
-
releaseId: string;
|
|
79
|
-
appVersion: string;
|
|
80
|
-
buildNumber: string;
|
|
81
|
-
bleamPlatformVersion: string;
|
|
82
|
-
platformFingerprint: string;
|
|
83
|
-
redeploy: boolean;
|
|
84
|
-
target: {
|
|
85
|
-
os: string;
|
|
86
|
-
architecture: string;
|
|
87
|
-
installLocation: string;
|
|
88
|
-
minimumMacOSVersion: string;
|
|
89
|
-
};
|
|
90
|
-
artifact: {
|
|
91
|
-
format: string;
|
|
92
|
-
downloadId: string;
|
|
93
|
-
sizeBytes: number;
|
|
94
|
-
sha256: string;
|
|
95
|
-
};
|
|
96
|
-
publishedAt: string;
|
|
97
|
-
};
|
|
98
58
|
declare const __test: {
|
|
99
59
|
createProject: typeof createProject;
|
|
100
60
|
createBuildNativeWorkspace: typeof createBuildNativeWorkspace;
|
|
@@ -108,10 +68,6 @@ declare const __test: {
|
|
|
108
68
|
parseBuildOptions: typeof parseBuildOptions;
|
|
109
69
|
parseNewOptions: typeof parseNewOptions;
|
|
110
70
|
parsePublishOtaOptions: typeof parsePublishOtaOptions;
|
|
111
|
-
parsePublishPlatformOptions: typeof parsePublishPlatformOptions;
|
|
112
|
-
platformInputFingerprint: typeof platformInputFingerprint;
|
|
113
|
-
platformPublicationReason: typeof platformPublicationReason;
|
|
114
|
-
platformRelease: typeof platformRelease;
|
|
115
71
|
podInstallInputStamp: typeof podInstallInputStamp;
|
|
116
72
|
replaceOrInsertPlistString: typeof replaceOrInsertPlistString;
|
|
117
73
|
};
|