@eigenpal/cli 0.6.6 → 0.6.8

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/cli.js CHANGED
@@ -188719,7 +188719,7 @@ import { fileURLToPath as fileURLToPath6 } from "url";
188719
188719
  // package.json
188720
188720
  var package_default = {
188721
188721
  name: "@eigenpal/cli",
188722
- version: "0.6.6",
188722
+ version: "0.6.8",
188723
188723
  description: "Eigenpal CLI — author and run document workflows from your terminal. Agent-ready.",
188724
188724
  keywords: [
188725
188725
  "eigenpal",
@@ -188829,13 +188829,16 @@ function assertNotHtml(res, resolvedUrl) {
188829
188829
  class ApiClient {
188830
188830
  baseUrl;
188831
188831
  apiKey;
188832
+ tenantId;
188832
188833
  constructor(config) {
188833
188834
  this.baseUrl = config.baseUrl;
188834
188835
  this.apiKey = config.apiKey;
188836
+ this.tenantId = config.tenantId;
188835
188837
  }
188836
188838
  headers(extra = {}) {
188837
188839
  return {
188838
188840
  Authorization: `Bearer ${this.apiKey}`,
188841
+ ...this.tenantId ? { "x-eigenpal-tenant-id": this.tenantId } : {},
188839
188842
  ...extra
188840
188843
  };
188841
188844
  }
@@ -189049,6 +189052,7 @@ var env = createEnv({
189049
189052
  server: {
189050
189053
  EIGENPAL_BASE_URL: exports_external.string().optional(),
189051
189054
  EIGENPAL_API_KEY: exports_external.string().optional(),
189055
+ EIGENPAL_TENANT_ID: exports_external.string().optional(),
189052
189056
  EIGENPAL_DIR: exports_external.string().optional(),
189053
189057
  EIGENPAL_PROFILE: exports_external.string().optional(),
189054
189058
  DEBUG: exports_external.string().optional(),
@@ -189303,10 +189307,12 @@ function resolveConfig(flags) {
189303
189307
  const profile = usingEnvKey ? null : readActiveCredentials();
189304
189308
  const baseUrl = flags.baseUrl || env.EIGENPAL_BASE_URL || profile?.baseUrl || DEFAULT_BASE_URL;
189305
189309
  const apiKey = env.EIGENPAL_API_KEY || profile?.apiKey || "";
189310
+ const tenantId = flags.tenantId || env.EIGENPAL_TENANT_ID || profile?.tenantId;
189306
189311
  const dir = flags.dir || env.EIGENPAL_DIR || "./eigenpal";
189307
189312
  return {
189308
189313
  baseUrl: baseUrl.replace(/\/+$/, ""),
189309
189314
  apiKey,
189315
+ tenantId,
189310
189316
  dir
189311
189317
  };
189312
189318
  }
@@ -191240,7 +191246,7 @@ function parseReleaseVersion(value) {
191240
191246
  return value;
191241
191247
  }
191242
191248
  function registerAgentSourceCommands(agent) {
191243
- withBaseUrl(agent.command("clone")).description("Clone the organization source repository.").option("--out <dir>", "Output directory").action(action(cloneSource));
191249
+ withBaseUrl(agent.command("clone")).description("Clone the organization source repository.").option("--out <dir>", "Output directory").option("--tenant-id <tenantId>", "Target tenant id for admin-token source clones").action(action(cloneSource));
191244
191250
  withBaseUrl(agent.command("install [packageRef]")).description("Materialize a source package and its workspace dependencies.").option("--out <dir>", "Output directory for an explicit package ref").option("--lockfile <path>", "Lockfile path").option("--frozen-lockfile", "Install exactly from the existing lockfile").option("--remote-url <url>", "Use an explicit organization Git remote URL").action(action(install));
191245
191251
  registerSourceInitCommand(agent);
191246
191252
  withBaseUrl(agent.command("pull")).description("Pull organization source from origin/main with --ff-only. For datasets use agents dataset pull; for run artifacts use agents runs artifacts fetch.").option("--dir <dir>", "Repository directory").action(action(pullSource));
@@ -343,10 +343,11 @@ Clone the organization source repository.
343
343
 
344
344
  ### Options
345
345
 
346
- | Flag | Required | Default | Description |
347
- | ------------------ | -------- | ------- | ---------------- |
348
- | `--base-url <url>` | no | | Server base URL |
349
- | `--out <dir>` | no | | Output directory |
346
+ | Flag | Required | Default | Description |
347
+ | ------------------------ | -------- | ------- | ---------------------------------------------- |
348
+ | `--base-url <url>` | no | | Server base URL |
349
+ | `--out <dir>` | no | | Output directory |
350
+ | `--tenant-id <tenantId>` | no | | Target tenant id for admin-token source clones |
350
351
 
351
352
  ### `eigenpal agents|agent install [options] [packageRef]`
352
353
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eigenpal/cli",
3
- "version": "0.6.6",
3
+ "version": "0.6.8",
4
4
  "description": "Eigenpal CLI — author and run document workflows from your terminal. Agent-ready.",
5
5
  "keywords": [
6
6
  "eigenpal",