@isomorph.ai/cli 0.3.4-rc.1 → 0.4.0-rc.1
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 +12 -14
- package/dist/packages/harbour-cli/src/agent-setup.js +25 -125
- package/dist/packages/harbour-cli/src/auth.js +1 -1
- package/dist/packages/harbour-cli/src/check.js +7 -34
- package/dist/packages/harbour-cli/src/cli.js +46 -100
- package/dist/packages/harbour-cli/src/config.js +51 -3
- package/dist/packages/harbour-cli/src/{productionise.js → deploy.js} +130 -183
- package/dist/packages/harbour-cli/src/dev.js +81 -2
- package/dist/packages/harbour-cli/src/guide.js +31 -45
- package/dist/packages/harbour-cli/src/integrations.js +47 -74
- package/dist/packages/harbour-cli/src/kit-bundle.js +0 -3
- package/dist/packages/harbour-cli/src/kit-bundle.manifest.js +9 -9
- package/dist/packages/harbour-cli/src/kit.js +43 -16
- package/dist/packages/harbour-cli/src/local-runtime.js +23 -1
- package/dist/packages/harbour-cli/src/operations.js +11 -90
- package/dist/packages/harbour-cli/src/output.js +24 -41
- package/dist/packages/harbour-cli/src/remote-mcp-client.js +4 -4
- package/dist/packages/harbour-cli/src/starter.js +21 -201
- package/dist/packages/harbour-cli/src/upload.js +1 -1
- package/dist/packages/harbour-cli/src/version.js +1 -1
- package/dist/src/analyzer.js +1 -1
- package/dist/src/secret-paths.js +1 -1
- package/package.json +2 -2
|
@@ -27,7 +27,7 @@ export async function archiveForManifest(root, manifest) {
|
|
|
27
27
|
throw new Error("The app changed while it was being packaged.");
|
|
28
28
|
const content = new Uint8Array(await readFile(absolute));
|
|
29
29
|
if (content.byteLength !== entry.bytes || await sha256Bytes(content) !== entry.sha256)
|
|
30
|
-
throw new Error(`The app changed while it was being packaged (${entry.path}). Run the same
|
|
30
|
+
throw new Error(`The app changed while it was being packaged (${entry.path}). Run the same deploy command again: it continues the saved operation and packages the app as it is now.`);
|
|
31
31
|
files.push({ path: relative(rootAbsolute, absolute).split(sep).join("/"), content });
|
|
32
32
|
}
|
|
33
33
|
const body = new Uint8Array(deterministicZip(files.sort((left, right) => left.path.localeCompare(right.path))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const CLI_VERSION = "0.
|
|
1
|
+
export const CLI_VERSION = "0.4.0-rc.1";
|
package/dist/src/analyzer.js
CHANGED
|
@@ -15,7 +15,7 @@ const MAX_FILE_BYTES = 256_000;
|
|
|
15
15
|
const IGNORED_DIRS = new Set([".git", ".harbour", ".isomorph", ".next", ".nuxt", ".svelte-kit", ".turbo", "coverage", "dist", "build", "node_modules", "vendor"]);
|
|
16
16
|
/** The development kit's directory. It commits its declaration, lock, governed-AI inventory and journey checks there (see `isKitCommittedPath`); everything else in it (local state, checks evidence, generated control files) stays out of the package. The inventory is what the pipeline plans a kit app's AI over (data plane 0.78.2.0): the gate writes it under `isomorph check`, the lane refuses an app whose source calls governed AI without it. */
|
|
17
17
|
const KIT_DIR = ".isomorph";
|
|
18
|
-
const KIT_CONTROL_FILES = [`${KIT_DIR}/integrations.json`, `${KIT_DIR}/kit.lock.json`, `${KIT_DIR}/ai-inventory.json`];
|
|
18
|
+
const KIT_CONTROL_FILES = [`${KIT_DIR}/integrations.json`, `${KIT_DIR}/kit.lock.json`, `${KIT_DIR}/app.json`, `${KIT_DIR}/ai-inventory.json`];
|
|
19
19
|
const KIT_CHECKS_DIR = `${KIT_DIR}/checks`;
|
|
20
20
|
const SECRET_FILE_NAMES = new Set([".env", ".env.local", ".env.production", ".env.development", ".npmrc"]);
|
|
21
21
|
const TEXT_EXTENSIONS = new Set([".js", ".jsx", ".ts", ".tsx", ".mjs", ".cjs", ".json", ".html", ".css", ".py", ".rb", ".go", ".rs", ".java", ".cs", ".php", ".md", ".toml", ".yaml", ".yml", ".sh"]);
|
package/dist/src/secret-paths.js
CHANGED
|
@@ -26,7 +26,7 @@ export function isSourceIntakeExcludedPath(path) {
|
|
|
26
26
|
* generated control files) stays local.
|
|
27
27
|
*/
|
|
28
28
|
export function isKitCommittedPath(path) {
|
|
29
|
-
return /(^|\/)\.isomorph\/(?:integrations\.json|kit\.lock\.json|ai-inventory\.json|checks\/[^/]+\.(?:mjs|js|cjs))$/.test(path);
|
|
29
|
+
return /(^|\/)\.isomorph\/(?:integrations\.json|kit\.lock\.json|app\.json|ai-inventory\.json|checks\/[^/]+\.(?:mjs|js|cjs))$/.test(path);
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Dependency and internal directories the intake never stages: `node_modules`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isomorph.ai/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0-rc.1",
|
|
4
4
|
"description": "Isomorph development kit CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"harbour": {
|
|
38
38
|
"kitBundle": {
|
|
39
39
|
"repository": "public.ecr.aws/y6t4p3i8/harbour-kit-bundle",
|
|
40
|
-
"version": "0.
|
|
40
|
+
"version": "0.4.0"
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|