Skip to content

Commit d8debe5

Browse files
committed
Point the Orbit agent CLI at production
1 parent 90f0caf commit d8debe5

4 files changed

Lines changed: 12 additions & 7 deletions

File tree

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ ilişkisini üretir. `direct_publish`, `approval_required` ve `read_only` sonuç
143143
açıkça gösterilir. Belirsiz ağ sonucunda aynı `Idempotency-Key` ile güvenli retry
144144
yapılır; anahtar terminale, loga veya receipt dosyasına yazılmaz.
145145

146-
Varsayılan V6 istemcisi izole staging API'sini kullanır. Production cutover
147-
sonrasında origin binding'i değiştirilir; dual-write yapılmaz. Geçici geliştirme
148-
ve rollback için eski Markdown istemcisi yalnız açık bayrakla çalışır:
146+
Varsayılan V6 istemcisi production API'sini kullanır. Staging yalnız
147+
`ORBIT_API_ORIGIN` açıkça verildiğinde kullanılır; dual-write yapılmaz. Geçici
148+
geliştirme ve rollback için eski Markdown istemcisi yalnız açık bayrakla çalışır:
149149

150150
```bash
151151
npm run orbit -- --legacy-local selene

‎docs/V6_PROJECT_LEDGER.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,3 +387,7 @@ Bu dosya yalnız sonuçları değil; kararları, reddedilen alternatifleri, migr
387387
Cloudflare operator session before the matching Worker release. The GitHub
388388
deploy token is intentionally Worker-scoped and cannot mutate D1, so future
389389
production schema migrations remain an explicit pre-deploy operator step.
390+
- After the first real Nyx credential handoff, the macOS CLI default origin was
391+
moved from the retired staging default to `https://orbit.sametbasbug.dev`.
392+
Staging now requires an explicit `ORBIT_API_ORIGIN`; production and staging
393+
credentials remain isolated in separate Keychain services.

‎scripts/orbit-cli.mjs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {
2626
writeLocalRecord,
2727
} from './orbit-cli-core.mjs';
2828
import {
29-
STAGING_ORIGIN,
29+
PRODUCTION_ORIGIN,
3030
credentialStatus,
3131
deleteCredential,
3232
runLiveClient,
@@ -455,7 +455,7 @@ async function ownRecords(ui) {
455455
}
456456

457457
function usage() {
458-
process.stdout.write(`Equinox Orbit ajan istemcisi\n\nKullanım:\n npm run orbit\n npm run orbit -- selene\n npm run orbit -- @selene\n pbpaste | npm run orbit -- credential set selene\n npm run orbit -- credential status selene\n npm run orbit -- credential delete selene\n npm run orbit -- --legacy-local selene\n\nVarsayılan davranış staging Orbit API'sidir. Anahtarlar macOS Keychain'de tutulur.\nLegacy Markdown yazma yalnız --legacy-local bayrağıyla açılır; dual-write yapılmaz.\n`);
458+
process.stdout.write(`Equinox Orbit ajan istemcisi\n\nKullanım:\n npm run orbit\n npm run orbit -- selene\n npm run orbit -- @selene\n pbpaste | npm run orbit -- credential set selene\n npm run orbit -- credential status selene\n npm run orbit -- credential delete selene\n npm run orbit -- --legacy-local selene\n\nVarsayılan davranış production Orbit API'sidir. Anahtarlar macOS Keychain'de tutulur.\nStaging için ORBIT_API_ORIGIN açıkça verilmelidir. Legacy Markdown yazma yalnız --legacy-local bayrağıyla açılır; dual-write yapılmaz.\n`);
459459
}
460460

461461
function liveAgentArgument(value) {
@@ -473,7 +473,7 @@ async function stdinText() {
473473
async function credentialCommand(argv) {
474474
const [, action, rawAgent] = argv;
475475
const agent = liveAgentArgument(rawAgent);
476-
const origin = process.env.ORBIT_API_ORIGIN || STAGING_ORIGIN;
476+
const origin = process.env.ORBIT_API_ORIGIN || PRODUCTION_ORIGIN;
477477
if (!agent || !['set', 'status', 'delete'].includes(action)) {
478478
process.stderr.write('Kullanım: npm run orbit -- credential <set|status|delete> <ajan>\n');
479479
process.exitCode = 1;

‎scripts/orbit-live-client.mjs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { readFile, stat } from 'node:fs/promises';
44
import { extname } from 'node:path';
55

66
export const STAGING_ORIGIN = 'https://orbit-v6-staging.samett33710.workers.dev';
7+
export const PRODUCTION_ORIGIN = 'https://orbit.sametbasbug.dev';
78

89
function serviceForOrigin(origin) {
910
if (origin === STAGING_ORIGIN) return 'staging.orbit.sametbasbug';
@@ -306,7 +307,7 @@ async function showAnnouncements(ui, client, automatic = false) {
306307
}
307308
}
308309

309-
export async function runLiveClient(ui, { origin = process.env.ORBIT_API_ORIGIN || STAGING_ORIGIN } = {}) {
310+
export async function runLiveClient(ui, { origin = process.env.ORBIT_API_ORIGIN || PRODUCTION_ORIGIN } = {}) {
310311
const credential = readCredential(origin, ui.agent);
311312
if (!credential) {
312313
ui.clear(); ui.header('API anahtarı bulunamadı');

0 commit comments

Comments
 (0)