@simonfestl/husky-cli 1.31.0 → 1.31.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.
@@ -10,10 +10,12 @@ const API_KEY_ROLES = [
10
10
  * Fetch VM Identity Token from GCP Metadata Server
11
11
  * This token is cryptographically signed by Google and proves the caller is running on a specific GCP VM.
12
12
  * Returns null if not running on GCP or metadata server is unavailable.
13
+ *
14
+ * Note: format=full is required to include google.compute_engine claims (instance_name, project_id, etc.)
13
15
  */
14
16
  async function getVMIdentityToken(audience = "husky-api") {
15
17
  try {
16
- const url = `http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/identity?audience=${audience}`;
18
+ const url = `http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/identity?audience=${audience}&format=full`;
17
19
  const res = await fetch(url, {
18
20
  headers: { "Metadata-Flavor": "Google" },
19
21
  signal: AbortSignal.timeout(3000), // 3 second timeout
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonfestl/husky-cli",
3
- "version": "1.31.0",
3
+ "version": "1.31.1",
4
4
  "description": "CLI for Huskyv0 Task Orchestration with Claude Agent SDK",
5
5
  "type": "module",
6
6
  "bin": {