@lukoweb/apitogo 0.1.110 → 0.1.112

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.
@@ -0,0 +1,6 @@
1
+ export declare const CLI_XDG_FOLDER_NAME = "apitogo";
2
+ export declare const VERSION_CHECK_FILE = "version.json";
3
+ export declare const SENTRY_DSN: undefined;
4
+ export declare const MAX_WAIT_PENDING_TIME_MS = 1000;
5
+ export declare const POST_HOG_CAPTURE_KEY: undefined;
6
+ export declare const DEPLOY_SERVER_API_KEY = "qRVLTP22TFStdN6";
@@ -0,0 +1,6 @@
1
+ export declare const XDG_CONFIG_HOME: string;
2
+ export declare const XDG_DATA_HOME: string;
3
+ export declare const XDG_STATE_HOME: string;
4
+ export declare const ZUDOKU_XDG_CONFIG_HOME: string;
5
+ export declare const ZUDOKU_XDG_DATA_HOME: string;
6
+ export declare const ZUDOKU_XDG_STATE_HOME: string;
@@ -392,6 +392,7 @@ export declare class PlatformApiClient {
392
392
  updateGatewaySettings(projectId: string, body: UpdateGatewaySettingsRequest): Promise<GatewaySettingsDto>;
393
393
  listGatewayActions(projectId: string, page: number, pageSize: number): Promise<GatewayActionPageDto>;
394
394
  setGatewayActionPublic(projectId: string, actionKey: string, isPublic: boolean): Promise<GatewayActionDto>;
395
+ deletePlatformApiKey(publicKeyId: string): Promise<void>;
395
396
  upsertGatewayEntitlement(projectId: string, idempotencyKey: string, body: GatewayEntitlementOperationRequest): Promise<GatewayEntitlementResponse>;
396
397
  }
397
398
  export declare function isNotFoundError(error: unknown): boolean;
@@ -14,6 +14,7 @@ export interface DevPortalDeployConfig {
14
14
  apiKey: string;
15
15
  defaultEnv: string;
16
16
  }
17
+ export declare const DEFAULT_API_URL = "https://api.apitogo.com";
17
18
  export declare function loadConfig(): ApitogoConfig;
18
19
  export declare function resolveProjectId(explicit?: string, config?: ApitogoConfig): string;
19
20
  export declare function resolveDevPortalDeployConfig(config: ApitogoConfig): DevPortalDeployConfig;
@@ -0,0 +1,9 @@
1
+ export interface StoredCredentials {
2
+ apiUrl: string;
3
+ apiKeyId: string;
4
+ apiSecret: string;
5
+ }
6
+ export declare const CREDENTIALS_FILE: string;
7
+ export declare function readStoredCredentials(): StoredCredentials | undefined;
8
+ export declare function writeStoredCredentials(creds: StoredCredentials): void;
9
+ export declare function clearStoredCredentials(): void;
@@ -110,7 +110,7 @@ export declare const SCAFFOLD_OPENAPI_MISSING_NEXT_STEP: DevPortalSuggestedNextS
110
110
  export declare const SCAFFOLD_SUGGESTED_NEXT_STEPS: DevPortalSuggestedNextStep[];
111
111
  export declare function buildScaffoldJourneyPhases(steps?: DevPortalSuggestedNextStep[]): DevPortalJourneyPhase[];
112
112
  export declare const SCAFFOLD_JOURNEY_PHASES: DevPortalJourneyPhase[];
113
- export declare const SCAFFOLD_AGENT_INSTRUCTION = "Scaffold only \u2014 dependencies are installed but the dev server is not started. Tell the user the site is ready and to run npm run dev in outputDirectory. The home page lives in landing/LandingPage.tsx (starter hero + features). After npm run dev, ask if they want to customize the home page. When they do, always ask for their real content first (what the API does, key endpoints, audience, tone, desired sections) before editing \u2014 never invent placeholder copy unless they explicitly ask for placeholders \u2014 then edit that TSX file directly or call get_dev_portal_landing_guide for the component catalog. Do not write home page content to apitogo.config.json. Then ask what else they want (OpenAPI, plans, bootstrap API ToGo, or go live). Do not mention missing plans, null projectId, skipped bootstrap, publishPrerequisites, or other absent setup unless the user asks about publish or platform provisioning. One user intent \u2192 one MCP tool. When preview is running, shape-phase file edits hot-reload. Never pass restartPreview: true on update_dev_portal_manifest or set_dev_portal_theme (ignored; used to time out against npm run dev). For publish, the user saves OIDC (+ Stripe if paid) in .env using APITOGO_CONFIG_AUTHENTICATION__* keys \u2014 never collect secrets in chat. Call check_dev_portal_publish_readiness after they confirm, then publish_dev_portal. Do not call sync_gateway_plans_from_manifest before publish.";
113
+ export declare const SCAFFOLD_AGENT_INSTRUCTION = "Scaffold only \u2014 dependencies are installed but the dev server is not started. Tell the user the site is ready and to run npm run dev in outputDirectory. The home page lives in landing/LandingPage.tsx (default sample sections including plans). After npm run dev, ask if they want to customize the home page. When they do, always ask for their real content first (what the API does, key endpoints, audience, tone, desired sections) before editing \u2014 never invent placeholder copy unless they explicitly ask for placeholders \u2014 then edit that TSX file directly or call get_dev_portal_landing_guide for the component catalog. Do not write home page content to apitogo.config.json. Then ask what else they want (OpenAPI, plans, bootstrap API ToGo, or go live). Do not mention missing plans, null projectId, skipped bootstrap, publishPrerequisites, or other absent setup unless the user asks about publish or platform provisioning. One user intent \u2192 one MCP tool. When preview is running, shape-phase file edits hot-reload. Never pass restartPreview: true on update_dev_portal_manifest or set_dev_portal_theme (ignored; used to time out against npm run dev). For publish, the user saves OIDC (+ Stripe if paid) in .env using APITOGO_CONFIG_AUTHENTICATION__* keys \u2014 never collect secrets in chat. Call check_dev_portal_publish_readiness after they confirm, then publish_dev_portal. Do not call sync_gateway_plans_from_manifest before publish.";
114
114
  export declare function manifestRequiresStripe(plans: ManifestPlanInput[] | undefined): boolean;
115
115
  export declare function isNativeAuthEnabledInManifest(manifest: DevPortalLocalManifest): boolean;
116
116
  export declare function readManifestAuthProviders(manifest: DevPortalLocalManifest): NonNullable<DevPortalLocalManifest["authentication"]>["providers"];
package/docs/mcp/shape.md CHANGED
@@ -27,7 +27,7 @@ chat.
27
27
 
28
28
  ## Scaffold only
29
29
 
30
- If you only want an empty site:
30
+ If you only want a local site:
31
31
 
32
32
  > Create a dev portal in `./dev-portal-site`.
33
33
 
@@ -39,8 +39,8 @@ Build an API product (developer portal, plans, gateway, backend) with an AI agen
39
39
  > Create a portal in `./dev-portal` for my API in `./api` with Free (100/min) and Pro (1000/min);
40
40
  > make `/health` public.
41
41
 
42
- The agent should call `apply_product_intent` with `mode: "shape"` (or `create_dev_portal` for an
43
- empty scaffold). See [Shape](./mcp/shape.md).
42
+ The agent should call `apply_product_intent` with `mode: "shape"` (or `create_dev_portal` for a
43
+ default scaffold). See [Shape](./mcp/shape.md).
44
44
 
45
45
  1. **Preview locally**
46
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukoweb/apitogo",
3
- "version": "0.1.110",
3
+ "version": "0.1.112",
4
4
  "type": "module",
5
5
  "sideEffects": [
6
6
  "**/*.css",
@@ -263,6 +263,7 @@
263
263
  "nanoevents": "9.1.0",
264
264
  "next-themes": "0.4.6",
265
265
  "oauth4webapi": "3.8.5",
266
+ "open": "11.0.4",
266
267
  "openapi-types": "12.1.3",
267
268
  "pagefind": "1.5.0-beta.1",
268
269
  "picocolors": "1.1.1",