@intelligo-dev/cli 1.0.0-beta.13 → 1.0.0-beta.15
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 +65 -2
- package/dist/args.d.ts +10 -0
- package/dist/args.d.ts.map +1 -0
- package/dist/args.js +20 -0
- package/dist/args.js.map +1 -0
- package/dist/bin.js +103 -22
- package/dist/bin.js.map +1 -1
- package/dist/commands/add.d.ts +4 -0
- package/dist/commands/add.d.ts.map +1 -1
- package/dist/commands/add.js +28 -2
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/create-flow.d.ts +8 -1
- package/dist/commands/create-flow.d.ts.map +1 -1
- package/dist/commands/create-flow.js +101 -34
- package/dist/commands/create-flow.js.map +1 -1
- package/dist/commands/create.d.ts +24 -4
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +57 -14
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/doctor.d.ts +2 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +123 -35
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/migrate-check.d.ts +20 -1
- package/dist/commands/migrate-check.d.ts.map +1 -1
- package/dist/commands/migrate-check.js +35 -6
- package/dist/commands/migrate-check.js.map +1 -1
- package/dist/commands/migrate.d.ts.map +1 -1
- package/dist/commands/migrate.js +2 -8
- package/dist/commands/migrate.js.map +1 -1
- package/dist/commands/sync-messages.d.ts +37 -0
- package/dist/commands/sync-messages.d.ts.map +1 -0
- package/dist/commands/sync-messages.js +88 -0
- package/dist/commands/sync-messages.js.map +1 -0
- package/dist/commands/sync-scaffold.d.ts +36 -0
- package/dist/commands/sync-scaffold.d.ts.map +1 -0
- package/dist/commands/sync-scaffold.js +53 -0
- package/dist/commands/sync-scaffold.js.map +1 -0
- package/dist/commands/sync.d.ts +109 -0
- package/dist/commands/sync.d.ts.map +1 -0
- package/dist/commands/sync.js +392 -0
- package/dist/commands/sync.js.map +1 -0
- package/dist/commands/upgrade-check.d.ts.map +1 -1
- package/dist/commands/upgrade-check.js +4 -1
- package/dist/commands/upgrade-check.js.map +1 -1
- package/dist/env-files.d.ts +11 -0
- package/dist/env-files.d.ts.map +1 -1
- package/dist/env-files.js +28 -9
- package/dist/env-files.js.map +1 -1
- package/dist/manifest.d.ts +27 -0
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +30 -3
- package/dist/manifest.js.map +1 -1
- package/dist/module-exports.d.ts +63 -0
- package/dist/module-exports.d.ts.map +1 -0
- package/dist/module-exports.js +231 -0
- package/dist/module-exports.js.map +1 -0
- package/dist/registry-bundle.d.ts +43 -0
- package/dist/registry-bundle.d.ts.map +1 -0
- package/dist/registry-bundle.js +74 -0
- package/dist/registry-bundle.js.map +1 -0
- package/dist/registry-items.d.ts +41 -13
- package/dist/registry-items.d.ts.map +1 -1
- package/dist/registry-items.js +117 -33
- package/dist/registry-items.js.map +1 -1
- package/package.json +1 -1
- package/src/args.ts +25 -0
- package/src/bin.ts +124 -22
- package/src/commands/add.ts +39 -12
- package/src/commands/create-flow.ts +119 -29
- package/src/commands/create.ts +82 -14
- package/src/commands/doctor.ts +156 -47
- package/src/commands/migrate-check.ts +51 -10
- package/src/commands/migrate.ts +2 -8
- package/src/commands/sync-messages.ts +114 -0
- package/src/commands/sync-scaffold.ts +83 -0
- package/src/commands/sync.ts +574 -0
- package/src/commands/upgrade-check.ts +4 -1
- package/src/env-files.ts +28 -7
- package/src/manifest.ts +57 -3
- package/src/module-exports.ts +266 -0
- package/src/registry-bundle.ts +103 -0
- package/src/registry-items.ts +141 -36
- package/templates/admin-page/admin-page.tsx.tpl +96 -24
- package/templates/app-scaffold/gitignore.tpl +25 -0
- package/templates/app-scaffold/intelligo.ts.tpl +6 -47
- package/templates/app-scaffold/next.config.mjs.tpl +31 -2
- package/templates/app-scaffold/package.json.tpl +2 -2
- package/templates/manifest.json +40 -3
- package/templates/pnpm-standalone/npmrc.tpl +6 -0
- package/templates/pnpm-standalone/pnpm-workspace.yaml.tpl +10 -0
- package/templates/registry/ai-agent-activity.json +23 -0
- package/templates/registry/ai-agent-progress.json +21 -0
- package/templates/registry/ai-approval-card.json +27 -0
- package/templates/registry/ai-artifact.json +22 -0
- package/templates/registry/ai-branch.json +21 -0
- package/templates/registry/ai-citations.json +24 -0
- package/templates/registry/ai-code-block.json +23 -0
- package/templates/registry/ai-composer-menu.json +19 -0
- package/templates/registry/ai-file-diff.json +25 -0
- package/templates/registry/ai-image-generation.json +23 -0
- package/templates/registry/ai-markdown.json +23 -0
- package/templates/registry/ai-message-bubble.json +23 -0
- package/templates/registry/ai-message-scroller.json +22 -0
- package/templates/registry/ai-message.json +21 -0
- package/templates/registry/ai-motion.json +19 -0
- package/templates/registry/ai-prompt-input.json +28 -0
- package/templates/registry/ai-reasoning-text.json +22 -0
- package/templates/registry/ai-reasoning.json +22 -0
- package/templates/registry/ai-shimmer-text.json +19 -0
- package/templates/registry/ai-sidebar.json +25 -0
- package/templates/registry/ai-speech-input.json +21 -0
- package/templates/registry/ai-streaming-response.json +24 -0
- package/templates/registry/ai-suggestion.json +19 -0
- package/templates/registry/ai-todo-list.json +22 -0
- package/templates/registry/ai-tool-approval.json +26 -0
- package/templates/registry/ai-tool-result.json +25 -0
- package/templates/registry/alert-dialog.json +23 -0
- package/templates/registry/animated-list.json +21 -0
- package/templates/registry/app-shell.json +93 -0
- package/templates/registry/artifacts.json +82 -0
- package/templates/registry/attachment.json +22 -0
- package/templates/registry/auth-email-verification.json +39 -0
- package/templates/registry/auth-login.json +72 -0
- package/templates/registry/auth-password-reset.json +53 -0
- package/templates/registry/auth-signup.json +41 -0
- package/templates/registry/billing-settings.json +66 -0
- package/templates/registry/button.json +22 -0
- package/templates/registry/chat-eve.json +19 -0
- package/templates/registry/chat-panel.json +30 -0
- package/templates/registry/chat-share.json +42 -0
- package/templates/registry/chat-widget.json +34 -0
- package/templates/registry/chat.json +326 -0
- package/templates/registry/checkbox.json +22 -0
- package/templates/registry/checkout.json +40 -0
- package/templates/registry/collapsible.json +19 -0
- package/templates/registry/command.json +23 -0
- package/templates/registry/copy-button.json +21 -0
- package/templates/registry/dashboard.json +69 -0
- package/templates/registry/dialog.json +24 -0
- package/templates/registry/document-viewer.json +22 -0
- package/templates/registry/dropdown-menu.json +23 -0
- package/templates/registry/expandable-tabs.json +22 -0
- package/templates/registry/feature-gating.json +73 -0
- package/templates/registry/file-upload.json +24 -0
- package/templates/registry/hold-action-button.json +22 -0
- package/templates/registry/input-group.json +23 -0
- package/templates/registry/input.json +19 -0
- package/templates/registry/intelligo.json +187 -0
- package/templates/registry/invitation-accept.json +64 -0
- package/templates/registry/language-switcher.json +29 -0
- package/templates/registry/morphing-modal.json +24 -0
- package/templates/registry/notification-stack.json +24 -0
- package/templates/registry/notifications.json +87 -0
- package/templates/registry/onboarding.json +83 -0
- package/templates/registry/otp-input.json +22 -0
- package/templates/registry/page-header.json +15 -0
- package/templates/registry/payment-poll.json +58 -0
- package/templates/registry/popover-morph.json +22 -0
- package/templates/registry/popover.json +22 -0
- package/templates/registry/pricing.json +117 -0
- package/templates/registry/privacy-settings.json +65 -0
- package/templates/registry/profile-settings.json +68 -0
- package/templates/registry/progress.json +19 -0
- package/templates/registry/radio-group.json +22 -0
- package/templates/registry/registry.json +2960 -0
- package/templates/registry/route-error.json +65 -0
- package/templates/registry/select-morph.json +23 -0
- package/templates/registry/select.json +23 -0
- package/templates/registry/settings-shell.json +47 -0
- package/templates/registry/sheet.json +24 -0
- package/templates/registry/sidebar.json +28 -0
- package/templates/registry/smoke.json +34 -0
- package/templates/registry/spinner.json +16 -0
- package/templates/registry/stat-card.json +18 -0
- package/templates/registry/status-badge.json +18 -0
- package/templates/registry/switch.json +20 -0
- package/templates/registry/tabs.json +23 -0
- package/templates/registry/team-settings.json +97 -0
- package/templates/registry/textarea.json +16 -0
- package/templates/registry/tooltip.json +22 -0
- package/templates/registry/trial-banner.json +43 -0
- package/templates/registry/usage.json +84 -0
- package/templates/registry/workspace-settings.json +71 -0
- package/templates/registry-items.json +3 -3
- package/templates/registry-requires.json +30 -4
- package/templates/vitest/server-only.ts.tpl +7 -0
- package/templates/vitest/vitest.config.ts.tpl +37 -0
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"pricing": {
|
|
60
60
|
"title": "Pricing",
|
|
61
|
-
"description": "Plan comparison and upgrade page with a monthly/yearly toggle, backed by the framework's checkout service and the product's registered plan catalogue. Ships the lib/billing.ts product binding and actions/billing.ts checkout actions that the checkout and billing-settings items also depend on — install this item first."
|
|
61
|
+
"description": "Plan comparison and upgrade page with a monthly/yearly toggle, backed by the framework's checkout service and the product's registered plan catalogue. Ships the lib/billing.ts product binding and actions/billing.ts checkout actions that the checkout and billing-settings items also depend on — install this item first. Other ways to buy a plan render under its checkout button from the lib/plan-card-config.tsx seam, empty by default (the payment-poll item's LocalPaymentButton binds there)."
|
|
62
62
|
},
|
|
63
63
|
"checkout": {
|
|
64
64
|
"title": "Checkout",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
},
|
|
67
67
|
"billing-settings": {
|
|
68
68
|
"title": "Billing Settings",
|
|
69
|
-
"description": "Workspace billing management: current plan, credit balance, credit bundle purchase, and the Stripe billing portal, shaped server-side by role (member/admin/owner). Requires the pricing item (provides lib/billing.ts and actions/billing.ts); install it first."
|
|
69
|
+
"description": "Workspace billing management: current plan, credit balance, credit bundle purchase, and the Stripe billing portal, shaped server-side by role (member/admin/owner). Requires the pricing item (provides lib/billing.ts and actions/billing.ts); install it first. Other ways to buy a credit bundle render under its button from the lib/credit-bundle-config.tsx seam, which can also hide the card button (the payment-poll item's LocalPaymentButton binds there)."
|
|
70
70
|
},
|
|
71
71
|
"feature-gating": {
|
|
72
72
|
"title": "Feature Gating",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"payment-poll": {
|
|
76
76
|
"title": "QR Payment (poll)",
|
|
77
|
-
"description": "The non-card checkout the catalogue was missing: issue an invoice, show a QR the user scans in their banking app, poll until the provider confirms. Provider-agnostic — QPay, SocialPay, PIX, UPI, PromptPay all fit —
|
|
77
|
+
"description": "The non-card checkout the catalogue was missing: issue an invoice, show a QR the user scans in their banking app, poll until the provider confirms. Provider-agnostic — QPay, SocialPay, PIX, UPI, PromptPay all fit — with the invoice recorded and a paid one granted on the server; lib/local-payment.ts says what each reference costs and grants. Requires the pricing item for lib/billing-config.ts's CURRENCY. LocalPaymentButton opens the modal for one reference and refreshes the page once paid; bind it in the pricing item's lib/plan-card-config.tsx to offer the QR rail on every plan card, and in the billing-settings item's lib/credit-bundle-config.tsx on every credit bundle."
|
|
78
78
|
},
|
|
79
79
|
"profile-settings": {
|
|
80
80
|
"title": "Profile Settings",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$comment": "Machine-readable requirements of every registry item \u2014 what shadcn's schema cannot express. `scaffold`: consumer files `intelligo create` provides that items may import. Per item: `marker` (the file whose presence means the item is installed), `items` (sibling items that ship files this one imports \u2014 install them first), `files` (scaffold files it imports), `exports` (names a scaffold file must export), `features` (feature keys the item
|
|
2
|
+
"$comment": "Machine-readable requirements of every registry item \u2014 what shadcn's schema cannot express. `scaffold`: consumer files `intelligo create` provides that items may import. Per item: `marker` (the file whose presence means the item is installed), `items` (sibling items that ship files this one imports \u2014 install them first), `files` (scaffold files it imports), `exports` (names a scaffold file must export), `features` (feature keys the item's non-seam files gate on; register them in lib/plans.ts \u2014 a key a seam names is the deployment's to change). `seams`: files an item ships once and the deployment then owns, each with what it configures \u2014 `intelligo sync` never overwrites one, and message files (`messages/`) are merged key by key, the deployment's copy winning. tests/architecture/registry.test.ts asserts this file matches the code; CI derives the install order from it; `intelligo doctor` checks an app against it (packages/cli/templates/registry-requires.json is a copy the CLI build regenerates; the suite fails if it is stale).",
|
|
3
3
|
"scaffold": [
|
|
4
4
|
"lib/intelligo",
|
|
5
5
|
"lib/plans",
|
|
@@ -8,6 +8,32 @@
|
|
|
8
8
|
"i18n/routing",
|
|
9
9
|
"i18n/navigation"
|
|
10
10
|
],
|
|
11
|
+
"seams": {
|
|
12
|
+
"lib/shell-config.tsx": "shell banner and header slots, and where unfinished onboarding goes",
|
|
13
|
+
"lib/nav-config.ts": "navigation",
|
|
14
|
+
"lib/settings-nav.ts": "settings tabs",
|
|
15
|
+
"lib/error-reporting.ts": "the error reporter",
|
|
16
|
+
"lib/billing-config.ts": "product slug, currency, credit bundles",
|
|
17
|
+
"lib/credit-bundle-config.tsx": "other ways to buy a credit bundle, and whether card checkout shows",
|
|
18
|
+
"lib/plan-card-config.tsx": "other ways to buy a plan on its pricing card",
|
|
19
|
+
"lib/feature-catalog.ts": "feature names and plans",
|
|
20
|
+
"lib/feature-gating-config.ts": "upgrade targets for gated features",
|
|
21
|
+
"lib/trial-banner-config.ts": "trial banner target and suppressed routes",
|
|
22
|
+
"lib/payment-poll-config.ts": "payment polling behaviour, and who may pay",
|
|
23
|
+
"lib/local-payment.ts": "the local payment provider",
|
|
24
|
+
"lib/onboarding-steps.ts": "onboarding steps",
|
|
25
|
+
"lib/dashboard-config.tsx": "dashboard copy",
|
|
26
|
+
"lib/dashboard-data.ts": "dashboard resume data",
|
|
27
|
+
"lib/document-patterns.ts": "artifact detection",
|
|
28
|
+
"lib/chat-model.ts": "the deployment's model",
|
|
29
|
+
"lib/chat-models.ts": "the models the composer offers",
|
|
30
|
+
"lib/chat-renderers.tsx": "tool-call renderers",
|
|
31
|
+
"lib/chat-canvas-config.tsx": "canvas editors per document kind",
|
|
32
|
+
"lib/chat-config.tsx": "agent identity, starters, header slot",
|
|
33
|
+
"lib/chat-server-config.ts": "the chat transport's configuration",
|
|
34
|
+
"lib/chat-widget-config.tsx": "the embedded widget",
|
|
35
|
+
"lib/notification-types.tsx": "icons for the product's notification types"
|
|
36
|
+
},
|
|
11
37
|
"items": {
|
|
12
38
|
"smoke": {
|
|
13
39
|
"marker": "app/[locale]/registry-smoke/page.tsx"
|
|
@@ -97,12 +123,13 @@
|
|
|
97
123
|
},
|
|
98
124
|
"payment-poll": {
|
|
99
125
|
"marker": "components/billing/local-payment-modal.tsx",
|
|
100
|
-
"items": ["pricing"]
|
|
126
|
+
"items": ["pricing"],
|
|
127
|
+
"files": ["i18n/navigation"]
|
|
101
128
|
},
|
|
102
129
|
"profile-settings": {
|
|
103
130
|
"marker": "app/[locale]/(app)/settings/profile/page.tsx",
|
|
104
131
|
"items": ["route-error"],
|
|
105
|
-
"files": ["i18n/navigation"]
|
|
132
|
+
"files": ["i18n/navigation", "i18n/routing"]
|
|
106
133
|
},
|
|
107
134
|
"onboarding": {
|
|
108
135
|
"marker": "app/[locale]/onboarding/layout.tsx",
|
|
@@ -132,7 +159,6 @@
|
|
|
132
159
|
"lib/intelligo",
|
|
133
160
|
"lib/utils"
|
|
134
161
|
],
|
|
135
|
-
"features": ["chat"],
|
|
136
162
|
"exports": {
|
|
137
163
|
"lib/intelligo": ["composeIntelligo", "executions"]
|
|
138
164
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stands in for the `server-only` package under Vitest (vitest.config.ts
|
|
3
|
+
* aliases it here). The real module throws outside a `react-server`
|
|
4
|
+
* build, which would fail every test that imports server code on the
|
|
5
|
+
* guard instead of on what it tests.
|
|
6
|
+
*/
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
|
|
4
|
+
import { defineConfig } from "vitest/config";
|
|
5
|
+
|
|
6
|
+
const root = path.dirname(fileURLToPath(import.meta.url));
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The app's test runner.
|
|
10
|
+
*
|
|
11
|
+
* - `@` resolves the way the app's tsconfig resolves it.
|
|
12
|
+
* - `server-only` throws unless the bundler applies React's
|
|
13
|
+
* `react-server` condition, which a test does not; the stub stands in
|
|
14
|
+
* for it so a test can import server code.
|
|
15
|
+
* - The `@intelligo-dev/*` packages ship compiled ESM that imports
|
|
16
|
+
* `server-only` itself. Vitest leaves node_modules to Node, where the
|
|
17
|
+
* alias above never applies, so they are inlined: transformed by
|
|
18
|
+
* Vitest like the app's own source, with the alias in effect.
|
|
19
|
+
*/
|
|
20
|
+
export default defineConfig({
|
|
21
|
+
resolve: {
|
|
22
|
+
alias: {
|
|
23
|
+
"@": root,
|
|
24
|
+
"server-only": path.join(root, "tests/stubs/server-only.ts"),
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
test: {
|
|
28
|
+
environment: "node",
|
|
29
|
+
include: ["**/*.test.{ts,tsx}"],
|
|
30
|
+
exclude: ["node_modules/**", ".next/**"],
|
|
31
|
+
server: {
|
|
32
|
+
deps: {
|
|
33
|
+
inline: [/node_modules\/@intelligo-dev\//],
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
});
|