nimblybase 0.1.1 → 0.1.2
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/index.js +12 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -349,7 +349,7 @@ function when(iso) {
|
|
|
349
349
|
|
|
350
350
|
// src/api.ts
|
|
351
351
|
var DEFAULT_API_URL = "https://api-uat.nimblybase.com";
|
|
352
|
-
var VERSION = "0.1.
|
|
352
|
+
var VERSION = "0.1.2";
|
|
353
353
|
function dashboardUrl(api) {
|
|
354
354
|
const match = /^https:\/\/api(-[a-z0-9]+)?\.(.+)$/.exec(api);
|
|
355
355
|
return match ? `https://app${match[1] ?? ""}.${match[2]}` : null;
|
|
@@ -2747,7 +2747,8 @@ function proposeArchitecture(repository, capabilities) {
|
|
|
2747
2747
|
continue;
|
|
2748
2748
|
}
|
|
2749
2749
|
const capability = byId.get(serviceId);
|
|
2750
|
-
|
|
2750
|
+
const configurable = capability?.supported === true && (capability.state === "not_enabled" || capability.state === "not_configured");
|
|
2751
|
+
if (!capability?.available && !configurable) {
|
|
2751
2752
|
services.push({
|
|
2752
2753
|
id: serviceId,
|
|
2753
2754
|
decision: "unavailable",
|
|
@@ -2760,7 +2761,7 @@ function proposeArchitecture(repository, capabilities) {
|
|
|
2760
2761
|
}
|
|
2761
2762
|
services.push({
|
|
2762
2763
|
id: serviceId,
|
|
2763
|
-
decision: repository.runtime.kind === "external-server" && feature.id === "functions" ? "external" : "use",
|
|
2764
|
+
decision: repository.runtime.kind === "external-server" && feature.id === "functions" ? "external" : configurable ? "configure" : "use",
|
|
2764
2765
|
reason: `${feature.evidence.join("; ")}. ${capability.reason}`,
|
|
2765
2766
|
actions: FEATURE_ACTIONS[featureId]
|
|
2766
2767
|
});
|
|
@@ -3787,16 +3788,16 @@ var MAX_FILES2 = 2e3;
|
|
|
3787
3788
|
var MAX_READ_BYTES = 256 * 1024;
|
|
3788
3789
|
var MAX_TOTAL_READ_BYTES = 4 * 1024 * 1024;
|
|
3789
3790
|
var FEATURE_PATTERNS = {
|
|
3790
|
-
auth: /\b(auth|
|
|
3791
|
-
storage: /\b(
|
|
3792
|
-
realtime: /\b(
|
|
3793
|
-
vectors: /\b(
|
|
3794
|
-
functions: /\b(
|
|
3795
|
-
schedules: /\b(
|
|
3791
|
+
auth: /\b(auth(?:entication|enticated|orization|orized)?|log-?ins?|sign-?ins?|sign-?ups?|sessions?|user accounts?|passport|clerk|auth0)\b/i,
|
|
3792
|
+
storage: /\b(uploads?|attachments?|buckets?|object storage|file (?:uploads?|attachments?|storage)|s3|r2|multer|media)\b/i,
|
|
3793
|
+
realtime: /\b(real[ -]?time|websockets?|socket\.io|chat rooms?|live updates?)\b/i,
|
|
3794
|
+
vectors: /\b(vectors?|embeddings?|semantic search(?:es)?|rag|retrieval augmented)\b/i,
|
|
3795
|
+
functions: /\b(webhooks?|edge functions?|api routes?|http handlers?|express|fastify|hono)\b/i,
|
|
3796
|
+
schedules: /\b(crons?|schedules?|scheduled|periodic)\b/i,
|
|
3796
3797
|
ai: /\b(openai|anthropic|workers ai|language model|llm|chatbot|ai sdk)\b/i,
|
|
3797
3798
|
cache: /\b(redis|cache|memoiz)\w*/i,
|
|
3798
|
-
jobs: /\b(
|
|
3799
|
-
crawler: /\b(
|
|
3799
|
+
jobs: /\b(queues?|background jobs?|worker jobs?|bullmq|celery|sidekiq)\b/i,
|
|
3800
|
+
crawler: /\b(crawls?|crawlers?|scrapes?|playwright|puppeteer|browser automation)\b/i
|
|
3800
3801
|
};
|
|
3801
3802
|
async function architect(flags, ...words) {
|
|
3802
3803
|
const root = resolve4(flags.dir ?? ".");
|