@freeappstore/cli 0.4.108 → 0.4.109
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.
|
@@ -6,7 +6,7 @@ export declare const APP_DEPLOY_CLI_VERSION = "0.4.79";
|
|
|
6
6
|
* regenerated workflow, add that sha to APP_DEPLOY_WORKFLOW_SHAS in
|
|
7
7
|
* packages/backend/src/routes/deploy.ts and deploy the API, then pin it here.
|
|
8
8
|
*/
|
|
9
|
-
export declare const APP_DEPLOY_WORKFLOW = "freeappstore-online/platform/.github/workflows/app-deploy.yml@
|
|
9
|
+
export declare const APP_DEPLOY_WORKFLOW = "freeappstore-online/platform/.github/workflows/app-deploy.yml@3079e4813dd86c521a3664fa93505a7bf571c64e";
|
|
10
10
|
/** Exact @vibecodeqa/cli release the generated code-health scan runs (third-party scope: never floating). */
|
|
11
11
|
export declare const CODE_HEALTH_CLI_VERSION = "0.57.0";
|
|
12
12
|
/**
|
|
@@ -6,7 +6,7 @@ export const APP_DEPLOY_CLI_VERSION = '0.4.79';
|
|
|
6
6
|
* regenerated workflow, add that sha to APP_DEPLOY_WORKFLOW_SHAS in
|
|
7
7
|
* packages/backend/src/routes/deploy.ts and deploy the API, then pin it here.
|
|
8
8
|
*/
|
|
9
|
-
export const APP_DEPLOY_WORKFLOW = 'freeappstore-online/platform/.github/workflows/app-deploy.yml@
|
|
9
|
+
export const APP_DEPLOY_WORKFLOW = 'freeappstore-online/platform/.github/workflows/app-deploy.yml@3079e4813dd86c521a3664fa93505a7bf571c64e';
|
|
10
10
|
/** Exact @vibecodeqa/cli release the generated code-health scan runs (third-party scope: never floating). */
|
|
11
11
|
export const CODE_HEALTH_CLI_VERSION = '0.57.0';
|
|
12
12
|
/**
|
|
@@ -13,7 +13,7 @@ export declare const APP_ARCHETYPES: readonly AppArchetype[];
|
|
|
13
13
|
* The token is requested for the store API's audience; the API maps the
|
|
14
14
|
* verified repository_id to exactly one app and refuses anything else.
|
|
15
15
|
*/
|
|
16
|
-
export declare const KEYLESS_UPLOAD = "set -euo pipefail\ncd site\ntest -n \"$(ls -A .)\" || { echo \"::error::build artifact is empty\"; exit 1; }\nfind . -type f -printf '%P\\t%s\\n' \\\n | jq -Rn '[inputs | split(\"\\t\") | {key: .[0], value: (.[1] | tonumber)}] | from_entries' \\\n > \"$RUNNER_TEMP/sizes.json\"\n# Content hashes let the API skip files unchanged since the live release.\nfind . -type f -print0 | xargs -0 sha256sum \\\n | jq -Rn '[inputs | capture(\"^(?<h>[0-9a-f]{64}) \\\\./(?<p>.*)$\")] | map({key: .p, value: .h}) | from_entries' \\\n > \"$RUNNER_TEMP/hashes.json\"\njq -n --slurpfile f \"$RUNNER_TEMP/sizes.json\" --slurpfile h \"$RUNNER_TEMP/hashes.json\" \\\n '{files: $f[0], hashes: $h[0]}' > \"$RUNNER_TEMP/manifest.json\"\noidc=$(curl -fsS -H \"Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN\" \\\n \"$ACTIONS_ID_TOKEN_REQUEST_URL&audience=$DEPLOY_API\" | jq -r .value)\necho \"::add-mask::$oidc\"\nsession=$(curl -sS --fail-with-body -X POST \"$DEPLOY_API/v1/deploys\" \\\n -H \"Authorization: Bearer $oidc\" -H 'Content-Type: application/json' \\\n --data-binary @\"$RUNNER_TEMP/manifest.json\") \\\n || { echo \"::error::deploy refused: $session\"; exit 1; }\nprintf '%s' \"$session\" > \"$RUNNER_TEMP/session.json\"\nDEPLOY_TOKEN=$(jq -r .token \"$RUNNER_TEMP/session.json\")\necho \"::add-mask::$DEPLOY_TOKEN\"\nDEPLOY_URL=\"$DEPLOY_API/v1/deploys/$(jq -r .id \"$RUNNER_TEMP/session.json\")\"\nexport DEPLOY_TOKEN DEPLOY_URL\nupload() {\n [ -n \"$1\" ] || return 0\n curl -sS --fail-with-body --retry 3 --retry-all-errors -T \"./$1\" \\\n -H \"Authorization: Bearer $DEPLOY_TOKEN\" -H 'Content-Type: application/octet-stream' \\\n \"$DEPLOY_URL/files/$(jq -rn --arg p \"$1\" '$p | split(\"/\") | map(@uri) | join(\"/\")')\"\n}\nexport -f upload\nif jq -e 'has(\"missing\")' \"$RUNNER_TEMP/session.json\" > /dev/null; then\n # Delta: upload only what changed; the API copies the rest from the live release.\n echo \"Delta deploy: $(jq '.missing | length' \"$RUNNER_TEMP/session.json\") to upload, $(jq '.reuse | length' \"$RUNNER_TEMP/session.json\") reused from the live release\"\n jq -r '.missing[]' \"$RUNNER_TEMP/session.json\" | tr '\\n' '\\0' | xargs -r -0 -P 8 -n 1 bash -c 'upload \"$1\"' _\n reuse_batch() {\n [ -n \"$1\" ] || return 0\n curl -sS --fail-with-body --retry 3 --retry-all-errors -X POST \\\n -H \"Authorization: Bearer $DEPLOY_TOKEN\" -H 'Content-Type: application/json' \\\n --data-binary \"$1\" \"$DEPLOY_URL/reuse\" -w \"reuse batch: HTTP %{http_code} in %{time_total}s\\n\"\n }\n export -f reuse_batch\n jq -c '.reuse as $r |
|
|
16
|
+
export declare const KEYLESS_UPLOAD = "set -euo pipefail\ncd site\ntest -n \"$(ls -A .)\" || { echo \"::error::build artifact is empty\"; exit 1; }\nfind . -type f -printf '%P\\t%s\\n' \\\n | jq -Rn '[inputs | split(\"\\t\") | {key: .[0], value: (.[1] | tonumber)}] | from_entries' \\\n > \"$RUNNER_TEMP/sizes.json\"\n# Content hashes let the API skip files unchanged since the live release.\nfind . -type f -print0 | xargs -0 sha256sum \\\n | jq -Rn '[inputs | capture(\"^(?<h>[0-9a-f]{64}) \\\\./(?<p>.*)$\")] | map({key: .p, value: .h}) | from_entries' \\\n > \"$RUNNER_TEMP/hashes.json\"\njq -n --slurpfile f \"$RUNNER_TEMP/sizes.json\" --slurpfile h \"$RUNNER_TEMP/hashes.json\" \\\n '{files: $f[0], hashes: $h[0]}' > \"$RUNNER_TEMP/manifest.json\"\noidc=$(curl -fsS -H \"Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN\" \\\n \"$ACTIONS_ID_TOKEN_REQUEST_URL&audience=$DEPLOY_API\" | jq -r .value)\necho \"::add-mask::$oidc\"\nsession=$(curl -sS --fail-with-body -X POST \"$DEPLOY_API/v1/deploys\" \\\n -H \"Authorization: Bearer $oidc\" -H 'Content-Type: application/json' \\\n --data-binary @\"$RUNNER_TEMP/manifest.json\") \\\n || { echo \"::error::deploy refused: $session\"; exit 1; }\nprintf '%s' \"$session\" > \"$RUNNER_TEMP/session.json\"\nDEPLOY_TOKEN=$(jq -r .token \"$RUNNER_TEMP/session.json\")\necho \"::add-mask::$DEPLOY_TOKEN\"\nDEPLOY_URL=\"$DEPLOY_API/v1/deploys/$(jq -r .id \"$RUNNER_TEMP/session.json\")\"\nexport DEPLOY_TOKEN DEPLOY_URL\nupload() {\n [ -n \"$1\" ] || return 0\n curl -sS --fail-with-body --retry 3 --retry-all-errors -T \"./$1\" \\\n -H \"Authorization: Bearer $DEPLOY_TOKEN\" -H 'Content-Type: application/octet-stream' \\\n \"$DEPLOY_URL/files/$(jq -rn --arg p \"$1\" '$p | split(\"/\") | map(@uri) | join(\"/\")')\"\n}\nexport -f upload\nif jq -e 'has(\"missing\")' \"$RUNNER_TEMP/session.json\" > /dev/null; then\n # Delta: upload only what changed; the API copies the rest from the live release.\n echo \"Delta deploy: $(jq '.missing | length' \"$RUNNER_TEMP/session.json\") to upload, $(jq '.reuse | length' \"$RUNNER_TEMP/session.json\") reused from the live release\"\n jq -r '.missing[]' \"$RUNNER_TEMP/session.json\" | tr '\\n' '\\0' | xargs -r -0 -P 8 -n 1 bash -c 'upload \"$1\"' _\n reuse_batch() {\n [ -n \"$1\" ] || return 0\n curl -sS --fail-with-body --retry 3 --retry-all-errors -X POST \\\n -H \"Authorization: Bearer $DEPLOY_TOKEN\" -H 'Content-Type: application/json' \\\n --data-binary \"$1\" \"$DEPLOY_URL/reuse\" -w \"reuse batch: HTTP %{http_code} in %{time_total}s\\n\"\n }\n export -f reuse_batch\n jq -c '.reuse as $r | range(0; $r | length; 100) as $i | {paths: $r[$i:$i + 100]}' \\\n \"$RUNNER_TEMP/session.json\" | tr '\\n' '\\0' | xargs -r -0 -P 8 -n 1 bash -c 'reuse_batch \"$1\"' _\nelse\n find . -type f -printf '%P\\0' | xargs -0 -P 8 -n 1 bash -c 'upload \"$1\"' _\nfi\ncurl -sS --fail-with-body -X POST -H \"Authorization: Bearer $DEPLOY_TOKEN\" \"$DEPLOY_URL/commit\"\necho\necho \"Deployed ${GITHUB_REPOSITORY##*/} from ${GITHUB_SHA::7}\"\n";
|
|
17
17
|
/** Repo-specific inputs a caller may pass to the platform app deploy (see appDeployWorkflow). */
|
|
18
18
|
export interface AppDeployInputs {
|
|
19
19
|
setup?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"starter-foundation.d.ts","sourceRoot":"","sources":["../../src/lib/starter-foundation.ts"],"names":[],"mappings":"AAAA,yDAAyD;AAczD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,eAAO,MAAM,kBAAkB,EAAE,WAIhC,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,WAAW,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,CAAC;AAE9E,eAAO,MAAM,cAAc,EAAE,SAAS,YAAY,EAKjD,CAAC;AAq3BF;;;;GAIG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"starter-foundation.d.ts","sourceRoot":"","sources":["../../src/lib/starter-foundation.ts"],"names":[],"mappings":"AAAA,yDAAyD;AAczD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,eAAO,MAAM,kBAAkB,EAAE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s\\n"
|
|
916
916
|
}
|
|
917
917
|
export -f reuse_batch
|
|
918
|
-
jq -c '.reuse as $r |
|
|
918
|
+
jq -c '.reuse as $r | range(0; $r | length; 100) as $i | {paths: $r[$i:$i + 100]}' \\
|
|
919
919
|
"$RUNNER_TEMP/session.json" | tr '\\n' '\\0' | xargs -r -0 -P 8 -n 1 bash -c 'reuse_batch "$1"' _
|
|
920
920
|
else
|
|
921
921
|
find . -type f -printf '%P\\0' | xargs -0 -P 8 -n 1 bash -c 'upload "$1"' _
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@freeappstore/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.109",
|
|
4
4
|
"description": "fas — CLI for publishing free apps to freeappstore.online",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"react": "^19.3.0",
|
|
40
40
|
"semver": "^7.8.6",
|
|
41
41
|
"typescript": "^5.9.3",
|
|
42
|
-
"@freeappstore/
|
|
43
|
-
"@freeappstore/
|
|
42
|
+
"@freeappstore/quality": "0.1.7",
|
|
43
|
+
"@freeappstore/compliance": "0.7.31"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^22.20.2",
|