@madewithremy/admin 0.1.36 → 0.1.38

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/README.md CHANGED
@@ -25,7 +25,7 @@ Configuration is read from the environment and the workspace — there are no co
25
25
  | Source | Meaning |
26
26
  |---|---|
27
27
  | `MINDSTUDIO_API_KEY` | Org-scoped `sk_` API key (required) |
28
- | `MINDSTUDIO_BASE_URL` | API origin (default `https://api.mindstudio.ai`) |
28
+ | `MINDSTUDIO_BASE_URL` | API origin (default `https://v1.mindstudio-api.com`) |
29
29
  | `WORKSPACE_DIR` | Workspace root (default `/home/vercel-sandbox/workspace`) |
30
30
  | `${WORKSPACE_DIR}/mindstudio.json` | `appId` — which app the CLI manages |
31
31
  | `REMY_SIDECAR_URL` | Sandbox sidecar for `qa-recordings export` (default `http://127.0.0.1:4388`) |
package/dist/index.d.ts CHANGED
@@ -30,10 +30,10 @@ interface AdminContext {
30
30
  /**
31
31
  * Response types for the v2 agent-chat thread log.
32
32
  *
33
- * Transcribed from youai-api:
34
- * src/http/routes/V2Apps/manage/agentThreads.ts — routes
35
- * src/http/routes/V2Apps/manage/_helpers/projectAgentMessages.ts — transcript shape
36
- * src/common/Db/v2Apps/V2AgentThreadsDao.ts — list row shape
33
+ * Transcribed from the api (apps/api/src/):
34
+ * roles/http/routes/Apps/manage/agentThreads.ts — routes
35
+ * customerApps/AppChatAgents/transcript.ts — transcript shape
36
+ * customerApps/AppChatAgents/dao/AgentThreadsDao.ts — list row shape
37
37
  */
38
38
  /** One tool the assistant asked for, with the arguments it chose. */
39
39
  interface AgentToolCall {
@@ -169,9 +169,9 @@ declare namespace agent {
169
169
  /**
170
170
  * Response types for the v2 task log.
171
171
  *
172
- * Transcribed from youai-api:
173
- * apps/api/src/roles/http/routes/Apps/manage/taskTraces.ts — routes
174
- * apps/api/src/customerApps/AppTaskAgents/traces.ts — summary and transcript shapes
172
+ * Transcribed from the api (apps/api/src/):
173
+ * roles/http/routes/Apps/manage/taskTraces.ts — routes
174
+ * customerApps/AppTaskAgents/traces.ts — summary and transcript shapes
175
175
  */
176
176
 
177
177
  /**
@@ -319,12 +319,12 @@ declare namespace tasks {
319
319
  /**
320
320
  * Response types for the v2 analytics (insights) endpoints.
321
321
  *
322
- * Transcribed from youai-api:
323
- * src/common/AnalyticsQuery/types.ts — query/batch shapes
324
- * src/http/routes/V2Apps/manage/analytics.ts — per-endpoint responses
325
- * src/common/Db/v2Apps/AnalyticsEventsDao.ts — sources/map/ai-sources DAO
326
- * src/common/Db/v2Apps/PresenceDao.ts — live DAO
327
- * src/common/Db/v2Apps/CrawlerHitsDao.ts — crawlers DAO
322
+ * Transcribed from the api (apps/api/src/):
323
+ * customerApps/AppAnalytics/types.ts — query/batch shapes
324
+ * roles/http/routes/Apps/manage/analytics.ts — per-endpoint responses
325
+ * customerApps/AppAnalytics/dao/AnalyticsEventsDao.ts — sources/map/ai-sources DAO
326
+ * customerApps/AppAnalytics/live/PresenceStore.ts — live DAO
327
+ * customerApps/AppAnalytics/dao/CrawlerHitsDao.ts — crawlers DAO
328
328
  */
329
329
  /** The four measurable quantities the query engine can return per row. */
330
330
  type AnalyticsMetric = 'pageviews' | 'visitors' | 'visits' | 'events';
@@ -723,10 +723,10 @@ declare namespace analytics {
723
723
  /**
724
724
  * Response types for the v2 app-events observability endpoints.
725
725
  *
726
- * Transcribed from youai-api:
727
- * src/http/routes/V2Apps/manage/appEvents.ts — routes
728
- * src/http/routes/V2Apps/serve/events/registry.ts — ChannelActivityRow
729
- * src/http/routes/V2Apps/serve/events/publish.ts — delivered semantics
726
+ * Transcribed from the api (apps/api/src/):
727
+ * roles/http/routes/Apps/manage/appEvents.ts — routes
728
+ * customerApps/AppEvents/activity.ts — ChannelActivityRow
729
+ * customerApps/AppEvents/publish.ts — delivered semantics
730
730
  */
731
731
  /** One channel's recent activity, from the channels view. */
732
732
  interface EventChannelActivity {
@@ -1017,12 +1017,12 @@ declare namespace crashes {
1017
1017
  }
1018
1018
 
1019
1019
  /**
1020
- * Response shapes for the cron command group — transcribed from youai-api.
1020
+ * Response shapes for the cron command group — transcribed from the api.
1021
1021
  *
1022
- * Sources:
1023
- * src/http/routes/V2Apps/manage/cron.ts
1024
- * src/common/Db/v2Apps/AppCronJobsDao.ts (AppCronJobSummary ~line 61, decorateJob ~line 383)
1025
- * src/common/Db/v2Apps/AppCronRunsDao.ts (CronRunSummary ~line 50)
1022
+ * Sources (apps/api/src/):
1023
+ * roles/http/routes/Apps/manage/cron.ts
1024
+ * customerApps/AppCrons/dao/AppCronJobsDao.ts (AppCronJobSummary ~line 61, decorateJob ~line 383)
1025
+ * customerApps/AppCrons/dao/AppCronRunsDao.ts (CronRunSummary ~line 50)
1026
1026
  */
1027
1027
  /** Lifecycle state of a single cron run row. */
1028
1028
  type AppCronRunState = 'queued' | 'running' | 'succeeded' | 'failed' | 'interrupted';
@@ -1133,9 +1133,9 @@ declare namespace cron {
1133
1133
  /**
1134
1134
  * Response types for the data command group.
1135
1135
  *
1136
- * Sources in youai-api:
1137
- * POST /manage/lift-dev-to-live → src/http/routes/V2Apps/manage/liftDevToLive.ts
1138
- * POST /manage/lift-live-to-dev → src/http/routes/V2Apps/manage/liftLiveToDev.ts
1136
+ * Sources in the api (apps/api/src/):
1137
+ * POST /manage/lift-dev-to-live → roles/http/routes/Apps/manage/liftDevToLive.ts
1138
+ * POST /manage/lift-live-to-dev → roles/http/routes/Apps/manage/liftLiveToDev.ts
1139
1139
  */
1140
1140
  /** Minimal database descriptor returned inside lift results. */
1141
1141
  interface LiftedDatabase {
@@ -1251,7 +1251,7 @@ declare namespace data {
1251
1251
  * measured by the platform from the operation's own record, so the CLI, the
1252
1252
  * dashboard and a search's refusal message quote the same numbers.
1253
1253
  *
1254
- * Transcribed from youai-api: src/common/DataSources/progress.ts
1254
+ * Transcribed from the api: apps/api/src/core/Progress/progress.ts
1255
1255
  */
1256
1256
  interface OperationProgress {
1257
1257
  /** The operation's own phase word: `running`, `copying`, `building`, `provisioning`… */
@@ -1280,9 +1280,9 @@ interface OperationProgress {
1280
1280
  /**
1281
1281
  * Response types for bulk ingestion jobs.
1282
1282
  *
1283
- * Transcribed from youai-api:
1284
- * src/http/routes/V2Apps/manage/dataSourceJobs.ts (jobView)
1285
- * src/common/DataSources/jobs/types.ts
1283
+ * Transcribed from the api (apps/api/src/):
1284
+ * roles/http/routes/Apps/manage/dataSources/jobs.ts (jobView)
1285
+ * customerApps/AppDataSources/jobs/types.ts
1286
1286
  */
1287
1287
 
1288
1288
  /**
@@ -1564,9 +1564,9 @@ interface DataSourceJobManifestTokenResult {
1564
1564
  /**
1565
1565
  * Response types for S3 connectors on data sources.
1566
1566
  *
1567
- * Transcribed from youai-api:
1568
- * src/http/routes/V2Apps/manage/dataSourceConnectors.ts (connectorView)
1569
- * src/common/Db/v2Apps/V2DataSourceConnectorsDao.ts
1567
+ * Transcribed from the api (apps/api/src/):
1568
+ * roles/http/routes/Apps/manage/dataSources/connectors.ts (connectorView)
1569
+ * customerApps/AppDataSources/jobs/connectors/dao/ConnectorsDao.ts
1570
1570
  */
1571
1571
 
1572
1572
  /**
@@ -1624,9 +1624,9 @@ interface DataSourceSyncResult {
1624
1624
  /**
1625
1625
  * Response types for warming, sampling and retrieval evals.
1626
1626
  *
1627
- * Transcribed from youai-api:
1628
- * src/http/routes/V2Apps/manage/dataSourceEvals.ts (setView, runView)
1629
- * src/common/DataSources/evals/types.ts
1627
+ * Transcribed from the api (apps/api/src/):
1628
+ * roles/http/routes/Apps/manage/dataSources/evals.ts (setView, runView)
1629
+ * customerApps/AppDataSources/evals/types.ts
1630
1630
  */
1631
1631
 
1632
1632
  /**
@@ -1850,9 +1850,9 @@ interface EvalCompareResult {
1850
1850
  * Response types for data-source mappers: inspecting raw objects, testing a
1851
1851
  * mapper, remapping, and a job's quarantine.
1852
1852
  *
1853
- * Transcribed from youai-api:
1854
- * src/http/routes/V2Apps/manage/dataSourceMappers.ts
1855
- * src/common/DataSources/mapping.ts (mapperView, buildInspectReport)
1853
+ * Transcribed from the api (apps/api/src/):
1854
+ * roles/http/routes/Apps/manage/dataSources/mappers.ts
1855
+ * customerApps/AppDataSources/mapping.ts (mapperView, buildInspectReport)
1856
1856
  */
1857
1857
 
1858
1858
  /**
@@ -2054,10 +2054,10 @@ interface DataSourceQuarantineResult {
2054
2054
  /**
2055
2055
  * Response types for data-source readers.
2056
2056
  *
2057
- * Transcribed from youai-api:
2058
- * src/roles/http/routes/Apps/manage/dataSources/readers.ts
2059
- * src/customerApps/AppDataSources/reading.ts (liveReaderView)
2060
- * src/customerApps/AppDataSources/dao/DeliveriesDao.ts (summary)
2057
+ * Transcribed from the api (apps/api/src/):
2058
+ * roles/http/routes/Apps/manage/dataSources/readers.ts
2059
+ * customerApps/AppDataSources/reading.ts (liveReaderView)
2060
+ * customerApps/AppDataSources/dao/DeliveriesDao.ts (summary)
2061
2061
  */
2062
2062
 
2063
2063
  /** The reader the live release declares for a source. */
@@ -2157,11 +2157,11 @@ interface DataSourceRereadResult {
2157
2157
  /**
2158
2158
  * Response types for the data-sources management API.
2159
2159
  *
2160
- * Transcribed from youai-api:
2161
- * src/http/routes/V2Apps/manage/dataSources.ts
2162
- * src/common/DataSources/pipeline.ts
2163
- * src/common/DataSources/searchDataSource.ts
2164
- * src/common/Db/v2Apps/V2DataSourcesDao.ts
2160
+ * Transcribed from the api (apps/api/src/):
2161
+ * roles/http/routes/Apps/manage/dataSources/index.ts
2162
+ * customerApps/AppDataSources/pipeline.ts
2163
+ * customerApps/AppDataSources/searchDataSource.ts
2164
+ * customerApps/AppDataSources/dao/DataSourcesDao.ts
2165
2165
  *
2166
2166
  * 204/empty responses surface as `{ ok: true; status: number }` (readBody in api.ts).
2167
2167
  */
@@ -4104,8 +4104,8 @@ declare namespace dataSourceMappers {
4104
4104
  /**
4105
4105
  * Response types for the db command group.
4106
4106
  *
4107
- * Sources in youai-api:
4108
- * POST /db/query → apps/api/src/roles/http/routes/Apps/manage/dbQuery.ts
4107
+ * Sources in the api (apps/api/src/):
4108
+ * POST /db/query → roles/http/routes/Apps/manage/dbQuery.ts
4109
4109
  * AppDatabasesDao.executeSqlBatch returns
4110
4110
  * Array<{ rows: any[]; changes: number }>
4111
4111
  */
@@ -4317,9 +4317,9 @@ declare namespace diagnostics {
4317
4317
  /**
4318
4318
  * Response types for the v2 custom domains and subdomain endpoints.
4319
4319
  *
4320
- * Transcribed from youai-api:
4321
- * src/http/routes/V2Apps/manage/settings.ts — custom-subdomain routes
4322
- * src/http/routes/V2Apps/manage/customDomains.ts — custom-domains routes
4320
+ * Transcribed from the api (apps/api/src/):
4321
+ * roles/http/routes/Apps/manage/settings.ts — custom-subdomain routes
4322
+ * roles/http/routes/Apps/manage/customDomains.ts — custom-domains routes
4323
4323
  * (local HostnameView + DnsInstructions interfaces in customDomains.ts)
4324
4324
  */
4325
4325
  /**
@@ -4988,9 +4988,9 @@ type ForDirection<D extends DomainDirection, Sending, Inbound> = [
4988
4988
  /**
4989
4989
  * Response types for the file-storage management API.
4990
4990
  *
4991
- * Transcribed from youai-api:
4992
- * src/http/routes/V2Apps/manage/files.ts
4993
- * src/common/Storage/AppFilesService.ts
4991
+ * Transcribed from the api (apps/api/src/):
4992
+ * roles/http/routes/Apps/manage/files.ts
4993
+ * platform/Storage/AppFilesService.ts
4994
4994
  *
4995
4995
  * 204/empty responses surface as `{ ok: true; status: number }` (readBody in api.ts).
4996
4996
  */
@@ -5316,10 +5316,10 @@ declare namespace files {
5316
5316
  /**
5317
5317
  * Response types for the provisioned-infrastructure management API.
5318
5318
  *
5319
- * Transcribed from youai-api:
5320
- * src/http/routes/V2Apps/manage/provisionedResources.ts
5321
- * src/common/Provisioning/types.ts
5322
- * src/common/Provisioning/offerings/define.ts
5319
+ * Transcribed from the api (apps/api/src/):
5320
+ * roles/http/routes/Apps/manage/provisionedResources.ts
5321
+ * customerApps/AppDedicatedResources/types.ts
5322
+ * customerApps/AppDedicatedResources/offerings/define.ts
5323
5323
  */
5324
5324
 
5325
5325
  /** Where a resource is in its lifecycle. Written only by the platform. */
@@ -5690,10 +5690,10 @@ declare namespace infra {
5690
5690
  /**
5691
5691
  * Result types for the `issues` CLI commands.
5692
5692
  *
5693
- * Transcribed from:
5694
- * youai-api/src/http/routes/V2Apps/manage/issues.ts
5695
- * youai-api/src/common/Db/v2Apps/V2AppIssuesDao.ts
5696
- * youai-api/src/common/Db/v2Apps/V2AppIssueCommentsDao.ts
5693
+ * Transcribed from the api (apps/api/src/):
5694
+ * roles/http/routes/Apps/manage/issues.ts
5695
+ * customerApps/AppIssues/dao/AppIssuesDao.ts
5696
+ * customerApps/AppIssues/dao/AppIssueCommentsDao.ts
5697
5697
  */
5698
5698
  type IssueStatus = 'open' | 'closed';
5699
5699
  /**
@@ -5970,15 +5970,15 @@ declare namespace issues {
5970
5970
  /**
5971
5971
  * Result types for the `jewels` CLI commands.
5972
5972
  *
5973
- * Transcribed from:
5974
- * youai-api/src/http/routes/V2Apps/manage/jewels.ts
5975
- * youai-api/src/common/Db/v2Apps/jewels/V2JewelPairsDao.ts
5976
- * youai-api/src/common/Db/v2Apps/jewels/V2TrainingRunsDao.ts
5977
- * youai-api/src/common/Db/v2Apps/jewels/V2JewelProposalsDao.ts
5978
- * youai-api/src/common/Db/v2Apps/jewels/resolveQueueItem.ts
5979
- * youai-api/src/common/Db/v2Apps/jewels/training.ts
5980
- * youai-api/src/common/Db/v2Apps/jewels/gradeTrainingRun.ts
5981
- * youai-api/src/common/Db/v2Apps/jewels/datasetExport.ts
5973
+ * Transcribed from the api (apps/api/src/):
5974
+ * roles/http/routes/Apps/manage/jewels.ts
5975
+ * customerApps/AppJewels/dao/JewelPairsDao.ts
5976
+ * customerApps/AppModelTraining/dao/TrainingRunsDao.ts
5977
+ * customerApps/AppJewels/dao/JewelProposalsDao.ts
5978
+ * customerApps/AppJewels/resolveQueueItem.ts
5979
+ * customerApps/AppModelTraining/training.ts
5980
+ * customerApps/AppModelTraining/gradeTrainingRun.ts
5981
+ * customerApps/AppModelTraining/datasetExport.ts
5982
5982
  */
5983
5983
  /**
5984
5984
  * `expired` is platform-assigned only: a pending arrival proposal whose
@@ -6582,11 +6582,11 @@ declare namespace jewels {
6582
6582
  /**
6583
6583
  * Response types for the releases command group.
6584
6584
  *
6585
- * Sources in youai-api:
6586
- * GET /releases → src/http/routes/V2Apps/manage/releases.ts
6587
- * GET /releases/:releaseId → src/http/routes/V2Apps/manage/dashboard.ts
6588
- * GET /releases/by-commit/:sha → src/http/routes/V2Apps/manage/dashboard.ts
6589
- * GET /dashboard → src/http/routes/V2Apps/manage/dashboard.ts
6585
+ * Sources in the api (apps/api/src/):
6586
+ * GET /releases → roles/http/routes/Apps/manage/releases.ts
6587
+ * GET /releases/:releaseId → roles/http/routes/Apps/manage/dashboard.ts
6588
+ * GET /releases/by-commit/:sha → roles/http/routes/Apps/manage/dashboard.ts
6589
+ * GET /dashboard → roles/http/routes/Apps/manage/dashboard.ts
6590
6590
  */
6591
6591
  interface V2CommitInfo {
6592
6592
  authorName: string;
@@ -6610,7 +6610,7 @@ interface V2BuildLogEntry {
6610
6610
  type V2ReleaseStatus = 'building' | 'compiled' | 'live' | 'preview' | 'dev' | 'failed' | 'superseded';
6611
6611
  /**
6612
6612
  * Why a failed release failed — derived server-side from the build log
6613
- * (describeReleaseFailure() in youai-api) and present on every release
6613
+ * (describeReleaseFailure() in the api) and present on every release
6614
6614
  * shape. All three are null unless `status` is 'failed'.
6615
6615
  *
6616
6616
  * `failureKind` is the field to branch on:
@@ -6629,7 +6629,7 @@ interface ReleaseFailureFields {
6629
6629
  /**
6630
6630
  * Lightweight release projection returned by the paginated list endpoint.
6631
6631
  * Heavy fields (buildLog, manifest, methods, interfaces) are dropped.
6632
- * Produced by toReleaseFragment() in youai-api.
6632
+ * Produced by toReleaseFragment() in the api.
6633
6633
  */
6634
6634
  interface ReleaseFragment extends ReleaseFailureFields {
6635
6635
  id: string;
@@ -6816,11 +6816,11 @@ interface DashboardResult {
6816
6816
  * 'methods list' uses DashboardResult from ./releases.ts (both commands call
6817
6817
  * GET /dashboard and read liveRelease).
6818
6818
  *
6819
- * Sources in youai-api:
6819
+ * Sources in the api (apps/api/src/):
6820
6820
  * POST /methods/:methodId/invoke
6821
- * → src/http/routes/V2Apps/serve/methods/handleInvoke.ts
6821
+ * → roles/http/routes/Apps/serve/methods/handleInvoke.ts
6822
6822
  * POST /methods/:methodId/invoke-as
6823
- * → src/http/routes/V2Apps/manage/invokeMethodAs.ts
6823
+ * → roles/http/routes/Apps/manage/invokeMethodAs.ts
6824
6824
  */
6825
6825
  /**
6826
6826
  * Non-streaming response from POST .../methods/:methodId/invoke and
@@ -7042,9 +7042,9 @@ declare namespace prerender {
7042
7042
  *
7043
7043
  * Chunks are ordinary private files in the app's `qa-recordings` store, keyed
7044
7044
  * `{sessionId}/{runId}/{seq}.json`, so `ls` here is a grouped view over
7045
- * `files.ls` rather than its own endpoint. Transcribed from youai-api:
7046
- * src/http/routes/V2Apps/develop/recordings.ts
7047
- * src/common/Recordings/sessions.ts
7045
+ * `files.ls` rather than its own endpoint. Transcribed from the api (apps/api/src/):
7046
+ * roles/http/routes/Apps/develop/recordings.ts
7047
+ * customerApps/AppDevBoxes/recordings/sessions.ts
7048
7048
  *
7049
7049
  * Export is the exception — it renders on the dev box (see ../ops/recordings).
7050
7050
  */
@@ -7225,6 +7225,15 @@ declare function byCommit(ctx: AdminContext, commitSha: string): Promise<{
7225
7225
  * if (live) console.log(live.commitSha, live.publishedAt);
7226
7226
  */
7227
7227
  declare function dashboardLive(ctx: AdminContext): Promise<DashboardLiveRelease | null>;
7228
+ /**
7229
+ * The URL the app is served on, as the platform resolves it: its live custom
7230
+ * domain, then its platform subdomain, then its id's own host. Ends in a slash.
7231
+ * Fetched from the dashboard endpoint.
7232
+ *
7233
+ * @example
7234
+ * const url = await admin.releases.primaryUrl();
7235
+ */
7236
+ declare function primaryUrl(ctx: AdminContext): Promise<string>;
7228
7237
  /**
7229
7238
  * Compact, stable projection of a release for the wait result.
7230
7239
  *
@@ -7342,9 +7351,10 @@ type releases_WaitForCommitResult = WaitForCommitResult;
7342
7351
  type releases_WaitOutcome = WaitOutcome;
7343
7352
  declare const releases_byCommit: typeof byCommit;
7344
7353
  declare const releases_dashboardLive: typeof dashboardLive;
7354
+ declare const releases_primaryUrl: typeof primaryUrl;
7345
7355
  declare const releases_waitForCommit: typeof waitForCommit;
7346
7356
  declare namespace releases {
7347
- export { type releases_ReleaseSummary as ReleaseSummary, type releases_ReleasesListParams as ReleasesListParams, type releases_WaitForCommitParams as WaitForCommitParams, type releases_WaitForCommitResult as WaitForCommitResult, type releases_WaitOutcome as WaitOutcome, releases_byCommit as byCommit, releases_dashboardLive as dashboardLive, get$2 as get, list$3 as list, releases_waitForCommit as waitForCommit };
7357
+ export { type releases_ReleaseSummary as ReleaseSummary, type releases_ReleasesListParams as ReleasesListParams, type releases_WaitForCommitParams as WaitForCommitParams, type releases_WaitForCommitResult as WaitForCommitResult, type releases_WaitOutcome as WaitOutcome, releases_byCommit as byCommit, releases_dashboardLive as dashboardLive, get$2 as get, list$3 as list, releases_primaryUrl as primaryUrl, releases_waitForCommit as waitForCommit };
7348
7358
  }
7349
7359
 
7350
7360
  /**
@@ -7543,12 +7553,12 @@ declare namespace requests {
7543
7553
  /**
7544
7554
  * Response types for the secrets command group.
7545
7555
  *
7546
- * Sources in youai-api:
7547
- * GET /secrets → src/http/routes/V2Apps/manage/secrets.ts
7548
- * GET /secrets/:key → src/http/routes/V2Apps/manage/secrets.ts
7549
- * PUT /secrets/:key → src/http/routes/V2Apps/manage/secrets.ts
7550
- * DELETE /secrets/:key → src/http/routes/V2Apps/manage/secrets.ts
7551
- * AppSecretsDao → src/common/Db/v2Apps/AppSecretsDao.ts
7556
+ * Sources in the api (apps/api/src/):
7557
+ * GET /secrets → roles/http/routes/Apps/manage/secrets.ts
7558
+ * GET /secrets/:key → roles/http/routes/Apps/manage/secrets.ts
7559
+ * PUT /secrets/:key → roles/http/routes/Apps/manage/secrets.ts
7560
+ * DELETE /secrets/:key → roles/http/routes/Apps/manage/secrets.ts
7561
+ * AppSecretsDao → customerApps/AppSecrets/dao/AppSecretsDao.ts
7552
7562
  */
7553
7563
  /**
7554
7564
  * A secret metadata row (no decrypted values).
@@ -7673,14 +7683,14 @@ declare namespace secrets {
7673
7683
  /**
7674
7684
  * Response types for the settings command group.
7675
7685
  *
7676
- * Sources in youai-api:
7677
- * GET /settings/v2 → src/http/routes/V2Apps/manage/settings.ts
7678
- * POST /settings/v2 → src/http/routes/V2Apps/manage/settings.ts
7679
- * V2AppSettings → src/common/Db/AppsDao/_helpers/v2AppSettings.ts
7686
+ * Sources in the api (apps/api/src/):
7687
+ * GET /settings/v2 → roles/http/routes/Apps/manage/settings.ts
7688
+ * POST /settings/v2 → roles/http/routes/Apps/manage/settings.ts
7689
+ * V2AppSettings → customerApps/AppRecord/settings.ts
7680
7690
  */
7681
7691
  /**
7682
7692
  * Mutable app toggles stored in apps.v2_settings. Faithfully transcribed from
7683
- * V2AppSettings in youai-api; this is the authoritative type for both the GET
7693
+ * V2AppSettings in the api; this is the authoritative type for both the GET
7684
7694
  * and POST /settings/v2 responses.
7685
7695
  */
7686
7696
  interface V2AppSettings {
@@ -7794,9 +7804,9 @@ declare namespace settings {
7794
7804
  /**
7795
7805
  * Response types for the v2 app users endpoints.
7796
7806
  *
7797
- * Transcribed from youai-api:
7798
- * src/http/routes/V2Apps/manage/appUsers.ts — per-endpoint responses
7799
- * src/common/Db/v2Apps/V2AppManagedUsersDao.ts — V2AppManagedUser shape
7807
+ * Transcribed from the api (apps/api/src/):
7808
+ * roles/http/routes/Apps/manage/appUsers.ts — per-endpoint responses
7809
+ * customerApps/AppUsers/dao/ManagedUsersDao.ts — V2AppManagedUser shape
7800
7810
  */
7801
7811
  /**
7802
7812
  * How a managed user authenticates, derived server-side from the user row's
@@ -7924,15 +7934,15 @@ declare namespace users {
7924
7934
  /**
7925
7935
  * Response types for the v2 voice endpoints (sessions, settings, phone numbers).
7926
7936
  *
7927
- * Transcribed from youai-api:
7928
- * src/http/routes/V2Apps/manage/voiceSessions.ts — sessions + settings routes
7929
- * src/http/routes/V2Apps/manage/voicePhoneNumbers.ts — phone-number routes
7930
- * src/common/Db/v2Apps/V2VoiceSessionsDao.ts — session shapes
7931
- * src/common/Db/v2Apps/V2VoiceSettingsDao.ts — V2VoiceSettings
7932
- * src/common/Db/v2Apps/voiceUsageBilling.ts — cost breakdown types
7933
- * src/common/Db/v2Apps/V2VoicePhoneNumbersDao.ts — VoicePhoneNumber
7934
- * src/common/Telnyx/TelnyxNumbersService.ts — availableNumberToView
7935
- * src/http/routes/V2Apps/serve/voice/_helpers/policy.ts — ResolvedVoicePolicy
7937
+ * Transcribed from the api (apps/api/src/):
7938
+ * roles/http/routes/Apps/manage/voiceSessions.ts — sessions + settings routes
7939
+ * roles/http/routes/Apps/manage/voicePhoneNumbers.ts — phone-number routes
7940
+ * customerApps/AppVoiceAgents/dao/VoiceSessionsDao.ts — session shapes
7941
+ * customerApps/AppVoiceAgents/dao/VoiceSettingsDao.ts — V2VoiceSettings
7942
+ * customerApps/AppVoiceAgents/usageBilling.ts — cost breakdown types
7943
+ * customerApps/AppVoiceAgents/dao/VoicePhoneNumbersDao.ts — VoicePhoneNumber
7944
+ * customerApps/AppVoiceAgents/telephony/TelnyxNumbersService.ts — availableNumberToView
7945
+ * customerApps/AppVoiceAgents/policy.ts — ResolvedVoicePolicy
7936
7946
  */
7937
7947
  type VoicePhoneNumberStatus = 'pending' | 'active' | 'failed' | 'released';
7938
7948
  /** One dedicated phone number as returned by the phone-number endpoints. */
package/dist/index.js CHANGED
@@ -37,7 +37,7 @@ function parseJsonConfig(raw) {
37
37
  }
38
38
 
39
39
  // src/ctx.ts
40
- var DEFAULT_BASE_URL = "https://api.mindstudio.ai";
40
+ var DEFAULT_BASE_URL = "https://v1.mindstudio-api.com";
41
41
  function loadWorkspaceAppId(workspaceDir = WORKSPACE_DIR) {
42
42
  const manifestPath = path.join(workspaceDir, "mindstudio.json");
43
43
  let raw;
@@ -1626,6 +1626,7 @@ __export(releases_exports, {
1626
1626
  dashboardLive: () => dashboardLive,
1627
1627
  get: () => get5,
1628
1628
  list: () => list6,
1629
+ primaryUrl: () => primaryUrl,
1629
1630
  waitForCommit: () => waitForCommit
1630
1631
  });
1631
1632
  function list6(ctx, params = {}) {
@@ -1657,6 +1658,14 @@ async function dashboardLive(ctx) {
1657
1658
  );
1658
1659
  return dashboard.liveRelease;
1659
1660
  }
1661
+ async function primaryUrl(ctx) {
1662
+ const dashboard = await call(
1663
+ ctx,
1664
+ "GET",
1665
+ `/_internal/v2/apps/${ctx.appId}/dashboard`
1666
+ );
1667
+ return dashboard.primaryUrl;
1668
+ }
1660
1669
  function summarizeRelease(release) {
1661
1670
  const summary2 = {
1662
1671
  releaseId: release.id,