replicas-cli 0.2.136 → 0.2.137

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.
@@ -7362,6 +7362,9 @@ function isAuthenticated() {
7362
7362
  }
7363
7363
  return true;
7364
7364
  }
7365
+ function canCallOrgApi() {
7366
+ return isAuthenticated() || isAgentMode();
7367
+ }
7365
7368
  function setOrganizationId(organizationId) {
7366
7369
  const config = readConfig();
7367
7370
  if (!config) {
@@ -7405,7 +7408,7 @@ function readAgentConfig() {
7405
7408
  try {
7406
7409
  const data = fs.readFileSync(CONFIG_FILE, "utf-8");
7407
7410
  const parsed = JSON.parse(data);
7408
- if (parsed.engine_secret && parsed.workspace_id && parsed.organization_id) {
7411
+ if (parsed.engine_secret && parsed.workspace_id) {
7409
7412
  return parsed;
7410
7413
  }
7411
7414
  return null;
@@ -8729,6 +8732,7 @@ export {
8729
8732
  writeConfig,
8730
8733
  deleteConfig,
8731
8734
  isAuthenticated,
8735
+ canCallOrgApi,
8732
8736
  setOrganizationId,
8733
8737
  getOrganizationId,
8734
8738
  setIdeCommand,