@appilots/cli 0.10.0 → 0.11.0
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/index.js +37 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +37 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1322,6 +1322,6 @@ declare class AppilotsAPIClient {
|
|
|
1322
1322
|
* banner. Kept identical to package.json by the release flow;
|
|
1323
1323
|
* `version.test.ts` fails if the two ever disagree.
|
|
1324
1324
|
*/
|
|
1325
|
-
declare const CLI_VERSION = "0.
|
|
1325
|
+
declare const CLI_VERSION = "0.11.0";
|
|
1326
1326
|
|
|
1327
1327
|
export { type ActionDescriptor, type AnalyzerConfig, AppilotsAPIClient, type AppilotsConfig, type AppilotsManifest, CLI_VERSION, ComponentAnalyzer, type ComponentDescriptor, DEFAULT_MANIFEST_FILENAME, DEFAULT_WEB_SCREEN_PATTERNS, type EnvOverrides, type FlowDescriptor, type FlowStepDescriptor, FormAnalyzer, type FormDescriptor, type FormFieldDescriptor, GenericPlatformAnalyzer, type LoadManifestResult, type LocatorDescriptor, type MCPDocument, MCPGenerator, type MCPGeneratorConfig, type MCPGeneratorOptions, type MCPOutput, type MetadataLintWarning, NavigationAnalyzer, type NavigationGraph, type NavigationNode, type NavigatorDescriptor, type ParamDescriptor, type PlatformAnalyzer, type PlatformAnalyzerOptions, type PlatformAnalyzerResult, ReactNativePlatformAnalyzer, ReactWebPlatformAnalyzer, type ScreenAgentHints, ScreenAnalyzer, type ScreenDescriptor, type SignalDescriptor, type StatusResult, type SyncResult, type TargetDescriptor, type WaitPolicyDescriptor, WebNavigationAnalyzer, type WebNavigationResult, type WebRoute, WebScreenAnalyzer, formatMetadataWarnings, getConfigPath, getEnvOverrides, lintActionMetadata, loadConfig, loadManifest, mergeManifestNavigation, mergeManifestScreens, resolvePathToScreen, saveConfig, screenNameFromPath, validateConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1322,6 +1322,6 @@ declare class AppilotsAPIClient {
|
|
|
1322
1322
|
* banner. Kept identical to package.json by the release flow;
|
|
1323
1323
|
* `version.test.ts` fails if the two ever disagree.
|
|
1324
1324
|
*/
|
|
1325
|
-
declare const CLI_VERSION = "0.
|
|
1325
|
+
declare const CLI_VERSION = "0.11.0";
|
|
1326
1326
|
|
|
1327
1327
|
export { type ActionDescriptor, type AnalyzerConfig, AppilotsAPIClient, type AppilotsConfig, type AppilotsManifest, CLI_VERSION, ComponentAnalyzer, type ComponentDescriptor, DEFAULT_MANIFEST_FILENAME, DEFAULT_WEB_SCREEN_PATTERNS, type EnvOverrides, type FlowDescriptor, type FlowStepDescriptor, FormAnalyzer, type FormDescriptor, type FormFieldDescriptor, GenericPlatformAnalyzer, type LoadManifestResult, type LocatorDescriptor, type MCPDocument, MCPGenerator, type MCPGeneratorConfig, type MCPGeneratorOptions, type MCPOutput, type MetadataLintWarning, NavigationAnalyzer, type NavigationGraph, type NavigationNode, type NavigatorDescriptor, type ParamDescriptor, type PlatformAnalyzer, type PlatformAnalyzerOptions, type PlatformAnalyzerResult, ReactNativePlatformAnalyzer, ReactWebPlatformAnalyzer, type ScreenAgentHints, ScreenAnalyzer, type ScreenDescriptor, type SignalDescriptor, type StatusResult, type SyncResult, type TargetDescriptor, type WaitPolicyDescriptor, WebNavigationAnalyzer, type WebNavigationResult, type WebRoute, WebScreenAnalyzer, formatMetadataWarnings, getConfigPath, getEnvOverrides, lintActionMetadata, loadConfig, loadManifest, mergeManifestNavigation, mergeManifestScreens, resolvePathToScreen, saveConfig, screenNameFromPath, validateConfig };
|
package/dist/index.js
CHANGED
|
@@ -8131,7 +8131,7 @@ var coerce = {
|
|
|
8131
8131
|
};
|
|
8132
8132
|
var NEVER = INVALID;
|
|
8133
8133
|
|
|
8134
|
-
// ../shared/dist/chunk-
|
|
8134
|
+
// ../shared/dist/chunk-MKT45LRA.mjs
|
|
8135
8135
|
var locatorSourceSchema = external_exports.enum([
|
|
8136
8136
|
"appilotsId",
|
|
8137
8137
|
"testID",
|
|
@@ -8457,9 +8457,16 @@ var createProjectSchema = external_exports.object({
|
|
|
8457
8457
|
// Reference to a tenant-scoped provider (preferred). Optional at
|
|
8458
8458
|
// creation so a project can be created and configured later.
|
|
8459
8459
|
providerId: external_exports.string().min(1).optional(),
|
|
8460
|
-
|
|
8460
|
+
// 16k chars (~4k tokens): um prompt de CS real não cabe em 4096 — o
|
|
8461
|
+
// primeiro cliente de produção chegou com 6.385 e tomou 'Invalid input'
|
|
8462
|
+
// sem saber por quê. O teto continua existindo porque o systemPrompt
|
|
8463
|
+
// entra em TODO hop do relay: é proteção de TPM, não de gosto.
|
|
8464
|
+
systemPrompt: external_exports.string().max(16e3).optional()
|
|
8465
|
+
});
|
|
8466
|
+
createProjectSchema.partial().extend({
|
|
8467
|
+
providerId: external_exports.string().min(1).nullable().optional(),
|
|
8468
|
+
systemPrompt: external_exports.string().max(16e3).nullable().optional()
|
|
8461
8469
|
});
|
|
8462
|
-
createProjectSchema.partial();
|
|
8463
8470
|
var providerKindSchema = external_exports.enum(["openai", "anthropic", "custom"]);
|
|
8464
8471
|
external_exports.object({
|
|
8465
8472
|
name: external_exports.string().min(1).max(100),
|
|
@@ -10159,6 +10166,18 @@ function loadConfig(onWarn) {
|
|
|
10159
10166
|
} else if (!env.apiKey) {
|
|
10160
10167
|
return null;
|
|
10161
10168
|
}
|
|
10169
|
+
const legacyWarnings = [];
|
|
10170
|
+
if (fileConfig.serverUrl === void 0) {
|
|
10171
|
+
for (const [alias, canonical] of Object.entries(KEY_ALIASES)) {
|
|
10172
|
+
if (canonical !== "serverUrl" || fileConfig[alias] === void 0) continue;
|
|
10173
|
+
fileConfig.serverUrl = fileConfig[alias];
|
|
10174
|
+
delete fileConfig[alias];
|
|
10175
|
+
legacyWarnings.push(
|
|
10176
|
+
`legacy key "${alias}" \u2014 using it as "serverUrl"; rename it in .appilotsrc`
|
|
10177
|
+
);
|
|
10178
|
+
break;
|
|
10179
|
+
}
|
|
10180
|
+
}
|
|
10162
10181
|
const merged = {
|
|
10163
10182
|
serverUrl: DEFAULT_SERVER_URL,
|
|
10164
10183
|
outputDir: ".appilots",
|
|
@@ -10170,6 +10189,20 @@ function loadConfig(onWarn) {
|
|
|
10170
10189
|
...env.serverUrl ? { serverUrl: env.serverUrl } : {}
|
|
10171
10190
|
};
|
|
10172
10191
|
const validation = validateConfig(merged);
|
|
10192
|
+
validation.warnings.unshift(...legacyWarnings);
|
|
10193
|
+
if (fileConfig.serverUrl === void 0 && env.serverUrl === void 0) {
|
|
10194
|
+
for (const key of Object.keys(fileConfig)) {
|
|
10195
|
+
if (KNOWN_CONFIG_KEYS.includes(key)) continue;
|
|
10196
|
+
if (suggestConfigKey(key) !== "serverUrl") continue;
|
|
10197
|
+
validation.warnings = validation.warnings.filter(
|
|
10198
|
+
(warning) => !warning.startsWith(`unknown key "${key}"`)
|
|
10199
|
+
);
|
|
10200
|
+
validation.errors.push(
|
|
10201
|
+
`unknown key "${key}" looks like "serverUrl" \u2014 not falling back to ${DEFAULT_SERVER_URL}; rename the key to "serverUrl"`
|
|
10202
|
+
);
|
|
10203
|
+
validation.valid = false;
|
|
10204
|
+
}
|
|
10205
|
+
}
|
|
10173
10206
|
if (onWarn) {
|
|
10174
10207
|
const source = configPath ?? "environment variables";
|
|
10175
10208
|
for (const warning of validation.warnings) {
|
|
@@ -10589,7 +10622,7 @@ var AppilotsAPIClient = class {
|
|
|
10589
10622
|
};
|
|
10590
10623
|
|
|
10591
10624
|
// src/version.ts
|
|
10592
|
-
var CLI_VERSION = "0.
|
|
10625
|
+
var CLI_VERSION = "0.11.0";
|
|
10593
10626
|
|
|
10594
10627
|
exports.AppilotsAPIClient = AppilotsAPIClient;
|
|
10595
10628
|
exports.CLI_VERSION = CLI_VERSION;
|