deskforge 1.0.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/.vscode/settings.json +3 -0
- package/README.md +547 -0
- package/examples/deskforge-app/App.ts +50 -0
- package/examples/deskforge-app/README.md +80 -0
- package/examples/deskforge-app/app.json +10 -0
- package/examples/deskforge-app/dist/App.d.ts +1 -0
- package/examples/deskforge-app/dist/App.js +100 -0
- package/examples/deskforge-app/dist/App.js.map +1 -0
- package/examples/deskforge-app/dist/deskforge-app-details.png +0 -0
- package/examples/deskforge-app/dist/deskforge-app-home.png +0 -0
- package/examples/deskforge-app/dist/examples/deskforge-app/App.d.ts +1 -0
- package/examples/deskforge-app/dist/examples/deskforge-app/App.js +74 -0
- package/examples/deskforge-app/dist/examples/deskforge-app/App.js.map +1 -0
- package/examples/deskforge-app/dist/examples/deskforge-app/src/screens/Details.d.ts +9 -0
- package/examples/deskforge-app/dist/examples/deskforge-app/src/screens/Details.js +14 -0
- package/examples/deskforge-app/dist/examples/deskforge-app/src/screens/Details.js.map +1 -0
- package/examples/deskforge-app/dist/examples/deskforge-app/src/screens/Home.d.ts +9 -0
- package/examples/deskforge-app/dist/examples/deskforge-app/src/screens/Home.js +13 -0
- package/examples/deskforge-app/dist/examples/deskforge-app/src/screens/Home.js.map +1 -0
- package/examples/deskforge-app/dist/examples/deskforge-app/src/screens/index.d.ts +2 -0
- package/examples/deskforge-app/dist/examples/deskforge-app/src/screens/index.js +13 -0
- package/examples/deskforge-app/dist/examples/deskforge-app/src/screens/index.js.map +1 -0
- package/examples/deskforge-app/dist/examples/deskforge-app/src/ui/Responsive.d.ts +38 -0
- package/examples/deskforge-app/dist/examples/deskforge-app/src/ui/Responsive.js +61 -0
- package/examples/deskforge-app/dist/examples/deskforge-app/src/ui/Responsive.js.map +1 -0
- package/examples/deskforge-app/dist/examples/deskforge-app/src/ui/index.d.ts +1 -0
- package/examples/deskforge-app/dist/examples/deskforge-app/src/ui/index.js +18 -0
- package/examples/deskforge-app/dist/examples/deskforge-app/src/ui/index.js.map +1 -0
- package/examples/deskforge-app/dist/packages/core/src/animation/easing.d.ts +22 -0
- package/examples/deskforge-app/dist/packages/core/src/animation/easing.js +91 -0
- package/examples/deskforge-app/dist/packages/core/src/animation/easing.js.map +1 -0
- package/examples/deskforge-app/dist/packages/core/src/animation/index.d.ts +3 -0
- package/examples/deskforge-app/dist/packages/core/src/animation/index.js +26 -0
- package/examples/deskforge-app/dist/packages/core/src/animation/index.js.map +1 -0
- package/examples/deskforge-app/dist/packages/core/src/animation/interpolate.d.ts +6 -0
- package/examples/deskforge-app/dist/packages/core/src/animation/interpolate.js +83 -0
- package/examples/deskforge-app/dist/packages/core/src/animation/interpolate.js.map +1 -0
- package/examples/deskforge-app/dist/packages/core/src/animation/spring.d.ts +20 -0
- package/examples/deskforge-app/dist/packages/core/src/animation/spring.js +79 -0
- package/examples/deskforge-app/dist/packages/core/src/animation/spring.js.map +1 -0
- package/examples/deskforge-app/dist/packages/core/src/component/component.d.ts +5 -0
- package/examples/deskforge-app/dist/packages/core/src/component/component.js +14 -0
- package/examples/deskforge-app/dist/packages/core/src/component/component.js.map +1 -0
- package/examples/deskforge-app/dist/packages/core/src/component/index.d.ts +1 -0
- package/examples/deskforge-app/dist/packages/core/src/component/index.js +18 -0
- package/examples/deskforge-app/dist/packages/core/src/component/index.js.map +1 -0
- package/examples/deskforge-app/dist/packages/core/src/index.d.ts +5 -0
- package/examples/deskforge-app/dist/packages/core/src/index.js +30 -0
- package/examples/deskforge-app/dist/packages/core/src/index.js.map +1 -0
- package/examples/deskforge-app/dist/packages/core/src/scheduler/index.d.ts +1 -0
- package/examples/deskforge-app/dist/packages/core/src/scheduler/index.js +20 -0
- package/examples/deskforge-app/dist/packages/core/src/scheduler/index.js.map +1 -0
- package/examples/deskforge-app/dist/packages/core/src/scheduler/scheduler.d.ts +11 -0
- package/examples/deskforge-app/dist/packages/core/src/scheduler/scheduler.js +61 -0
- package/examples/deskforge-app/dist/packages/core/src/scheduler/scheduler.js.map +1 -0
- package/examples/deskforge-app/dist/packages/core/src/tree/diff.d.ts +16 -0
- package/examples/deskforge-app/dist/packages/core/src/tree/diff.js +67 -0
- package/examples/deskforge-app/dist/packages/core/src/tree/diff.js.map +1 -0
- package/examples/deskforge-app/dist/packages/core/src/tree/index.d.ts +3 -0
- package/examples/deskforge-app/dist/packages/core/src/tree/index.js +23 -0
- package/examples/deskforge-app/dist/packages/core/src/tree/index.js.map +1 -0
- package/examples/deskforge-app/dist/packages/core/src/tree/node.d.ts +12 -0
- package/examples/deskforge-app/dist/packages/core/src/tree/node.js +59 -0
- package/examples/deskforge-app/dist/packages/core/src/tree/node.js.map +1 -0
- package/examples/deskforge-app/dist/packages/core/src/tree/tree.d.ts +10 -0
- package/examples/deskforge-app/dist/packages/core/src/tree/tree.js +43 -0
- package/examples/deskforge-app/dist/packages/core/src/tree/tree.js.map +1 -0
- package/examples/deskforge-app/dist/packages/renderer/src/canvas.d.ts +23 -0
- package/examples/deskforge-app/dist/packages/renderer/src/canvas.js +38 -0
- package/examples/deskforge-app/dist/packages/renderer/src/canvas.js.map +1 -0
- package/examples/deskforge-app/dist/packages/renderer/src/context.d.ts +33 -0
- package/examples/deskforge-app/dist/packages/renderer/src/context.js +45 -0
- package/examples/deskforge-app/dist/packages/renderer/src/context.js.map +1 -0
- package/examples/deskforge-app/dist/packages/renderer/src/dirty-region.d.ts +42 -0
- package/examples/deskforge-app/dist/packages/renderer/src/dirty-region.js +106 -0
- package/examples/deskforge-app/dist/packages/renderer/src/dirty-region.js.map +1 -0
- package/examples/deskforge-app/dist/packages/renderer/src/engine.d.ts +56 -0
- package/examples/deskforge-app/dist/packages/renderer/src/engine.js +95 -0
- package/examples/deskforge-app/dist/packages/renderer/src/engine.js.map +1 -0
- package/examples/deskforge-app/dist/packages/renderer/src/filters.d.ts +22 -0
- package/examples/deskforge-app/dist/packages/renderer/src/filters.js +41 -0
- package/examples/deskforge-app/dist/packages/renderer/src/filters.js.map +1 -0
- package/examples/deskforge-app/dist/packages/renderer/src/index.d.ts +15 -0
- package/examples/deskforge-app/dist/packages/renderer/src/index.js +34 -0
- package/examples/deskforge-app/dist/packages/renderer/src/index.js.map +1 -0
- package/examples/deskforge-app/dist/packages/renderer/src/painter.d.ts +26 -0
- package/examples/deskforge-app/dist/packages/renderer/src/painter.js +127 -0
- package/examples/deskforge-app/dist/packages/renderer/src/painter.js.map +1 -0
- package/examples/deskforge-app/dist/packages/renderer/src/renderer.d.ts +71 -0
- package/examples/deskforge-app/dist/packages/renderer/src/renderer.js +120 -0
- package/examples/deskforge-app/dist/packages/renderer/src/renderer.js.map +1 -0
- package/examples/deskforge-app/dist/packages/renderer/src/svg-export.d.ts +47 -0
- package/examples/deskforge-app/dist/packages/renderer/src/svg-export.js +125 -0
- package/examples/deskforge-app/dist/packages/renderer/src/svg-export.js.map +1 -0
- package/examples/deskforge-app/dist/packages/router/src/app.d.ts +9 -0
- package/examples/deskforge-app/dist/packages/router/src/app.js +12 -0
- package/examples/deskforge-app/dist/packages/router/src/app.js.map +1 -0
- package/examples/deskforge-app/dist/packages/router/src/file-router.d.ts +35 -0
- package/examples/deskforge-app/dist/packages/router/src/file-router.js +145 -0
- package/examples/deskforge-app/dist/packages/router/src/file-router.js.map +1 -0
- package/examples/deskforge-app/dist/packages/router/src/index.d.ts +5 -0
- package/examples/deskforge-app/dist/packages/router/src/index.js +24 -0
- package/examples/deskforge-app/dist/packages/router/src/index.js.map +1 -0
- package/examples/deskforge-app/dist/packages/router/src/manifest.d.ts +9 -0
- package/examples/deskforge-app/dist/packages/router/src/manifest.js +26 -0
- package/examples/deskforge-app/dist/packages/router/src/manifest.js.map +1 -0
- package/examples/deskforge-app/dist/packages/router/src/router.d.ts +30 -0
- package/examples/deskforge-app/dist/packages/router/src/router.js +112 -0
- package/examples/deskforge-app/dist/packages/router/src/router.js.map +1 -0
- package/examples/deskforge-app/dist/packages/router/src/screen.d.ts +30 -0
- package/examples/deskforge-app/dist/packages/router/src/screen.js +34 -0
- package/examples/deskforge-app/dist/packages/router/src/screen.js.map +1 -0
- package/examples/deskforge-app/dist/src/screens/Details.d.ts +9 -0
- package/examples/deskforge-app/dist/src/screens/Details.js +62 -0
- package/examples/deskforge-app/dist/src/screens/Details.js.map +1 -0
- package/examples/deskforge-app/dist/src/screens/Home.d.ts +9 -0
- package/examples/deskforge-app/dist/src/screens/Home.js +68 -0
- package/examples/deskforge-app/dist/src/screens/Home.js.map +1 -0
- package/examples/deskforge-app/dist/src/screens/index.d.ts +2 -0
- package/examples/deskforge-app/dist/src/screens/index.js +11 -0
- package/examples/deskforge-app/dist/src/screens/index.js.map +1 -0
- package/examples/deskforge-app/node_modules/@types/node/LICENSE +21 -0
- package/examples/deskforge-app/node_modules/@types/node/README.md +15 -0
- package/examples/deskforge-app/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/examples/deskforge-app/node_modules/@types/node/assert.d.ts +1062 -0
- package/examples/deskforge-app/node_modules/@types/node/async_hooks.d.ts +605 -0
- package/examples/deskforge-app/node_modules/@types/node/buffer.buffer.d.ts +471 -0
- package/examples/deskforge-app/node_modules/@types/node/buffer.d.ts +1936 -0
- package/examples/deskforge-app/node_modules/@types/node/child_process.d.ts +1475 -0
- package/examples/deskforge-app/node_modules/@types/node/cluster.d.ts +577 -0
- package/examples/deskforge-app/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/examples/deskforge-app/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/examples/deskforge-app/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/examples/deskforge-app/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/examples/deskforge-app/node_modules/@types/node/console.d.ts +452 -0
- package/examples/deskforge-app/node_modules/@types/node/constants.d.ts +21 -0
- package/examples/deskforge-app/node_modules/@types/node/crypto.d.ts +4590 -0
- package/examples/deskforge-app/node_modules/@types/node/dgram.d.ts +597 -0
- package/examples/deskforge-app/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
- package/examples/deskforge-app/node_modules/@types/node/dns/promises.d.ts +479 -0
- package/examples/deskforge-app/node_modules/@types/node/dns.d.ts +871 -0
- package/examples/deskforge-app/node_modules/@types/node/domain.d.ts +170 -0
- package/examples/deskforge-app/node_modules/@types/node/events.d.ts +977 -0
- package/examples/deskforge-app/node_modules/@types/node/fs/promises.d.ts +1270 -0
- package/examples/deskforge-app/node_modules/@types/node/fs.d.ts +4375 -0
- package/examples/deskforge-app/node_modules/@types/node/globals.d.ts +172 -0
- package/examples/deskforge-app/node_modules/@types/node/globals.typedarray.d.ts +38 -0
- package/examples/deskforge-app/node_modules/@types/node/http.d.ts +2049 -0
- package/examples/deskforge-app/node_modules/@types/node/http2.d.ts +2712 -0
- package/examples/deskforge-app/node_modules/@types/node/https.d.ts +578 -0
- package/examples/deskforge-app/node_modules/@types/node/index.d.ts +93 -0
- package/examples/deskforge-app/node_modules/@types/node/inspector.generated.d.ts +3966 -0
- package/examples/deskforge-app/node_modules/@types/node/module.d.ts +539 -0
- package/examples/deskforge-app/node_modules/@types/node/net.d.ts +1031 -0
- package/examples/deskforge-app/node_modules/@types/node/os.d.ts +506 -0
- package/examples/deskforge-app/node_modules/@types/node/package.json +140 -0
- package/examples/deskforge-app/node_modules/@types/node/path.d.ts +200 -0
- package/examples/deskforge-app/node_modules/@types/node/perf_hooks.d.ts +961 -0
- package/examples/deskforge-app/node_modules/@types/node/process.d.ts +1961 -0
- package/examples/deskforge-app/node_modules/@types/node/punycode.d.ts +117 -0
- package/examples/deskforge-app/node_modules/@types/node/querystring.d.ts +152 -0
- package/examples/deskforge-app/node_modules/@types/node/readline/promises.d.ts +162 -0
- package/examples/deskforge-app/node_modules/@types/node/readline.d.ts +589 -0
- package/examples/deskforge-app/node_modules/@types/node/repl.d.ts +430 -0
- package/examples/deskforge-app/node_modules/@types/node/sea.d.ts +153 -0
- package/examples/deskforge-app/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/examples/deskforge-app/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/examples/deskforge-app/node_modules/@types/node/stream/web.d.ts +533 -0
- package/examples/deskforge-app/node_modules/@types/node/stream.d.ts +1698 -0
- package/examples/deskforge-app/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/examples/deskforge-app/node_modules/@types/node/test.d.ts +1787 -0
- package/examples/deskforge-app/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/examples/deskforge-app/node_modules/@types/node/timers.d.ts +286 -0
- package/examples/deskforge-app/node_modules/@types/node/tls.d.ts +1259 -0
- package/examples/deskforge-app/node_modules/@types/node/trace_events.d.ts +197 -0
- package/examples/deskforge-app/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/examples/deskforge-app/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
- package/examples/deskforge-app/node_modules/@types/node/ts5.6/index.d.ts +93 -0
- package/examples/deskforge-app/node_modules/@types/node/tty.d.ts +208 -0
- package/examples/deskforge-app/node_modules/@types/node/url.d.ts +964 -0
- package/examples/deskforge-app/node_modules/@types/node/util.d.ts +2331 -0
- package/examples/deskforge-app/node_modules/@types/node/v8.d.ts +809 -0
- package/examples/deskforge-app/node_modules/@types/node/vm.d.ts +1001 -0
- package/examples/deskforge-app/node_modules/@types/node/wasi.d.ts +181 -0
- package/examples/deskforge-app/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/examples/deskforge-app/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/examples/deskforge-app/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/examples/deskforge-app/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
- package/examples/deskforge-app/node_modules/@types/node/worker_threads.d.ts +715 -0
- package/examples/deskforge-app/node_modules/@types/node/zlib.d.ts +598 -0
- package/examples/deskforge-app/node_modules/undici-types/LICENSE +21 -0
- package/examples/deskforge-app/node_modules/undici-types/README.md +6 -0
- package/examples/deskforge-app/node_modules/undici-types/agent.d.ts +31 -0
- package/examples/deskforge-app/node_modules/undici-types/api.d.ts +43 -0
- package/examples/deskforge-app/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/examples/deskforge-app/node_modules/undici-types/cache.d.ts +36 -0
- package/examples/deskforge-app/node_modules/undici-types/client.d.ts +108 -0
- package/examples/deskforge-app/node_modules/undici-types/connector.d.ts +34 -0
- package/examples/deskforge-app/node_modules/undici-types/content-type.d.ts +21 -0
- package/examples/deskforge-app/node_modules/undici-types/cookies.d.ts +28 -0
- package/examples/deskforge-app/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/examples/deskforge-app/node_modules/undici-types/dispatcher.d.ts +256 -0
- package/examples/deskforge-app/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/examples/deskforge-app/node_modules/undici-types/errors.d.ts +149 -0
- package/examples/deskforge-app/node_modules/undici-types/eventsource.d.ts +61 -0
- package/examples/deskforge-app/node_modules/undici-types/fetch.d.ts +209 -0
- package/examples/deskforge-app/node_modules/undici-types/file.d.ts +39 -0
- package/examples/deskforge-app/node_modules/undici-types/filereader.d.ts +54 -0
- package/examples/deskforge-app/node_modules/undici-types/formdata.d.ts +108 -0
- package/examples/deskforge-app/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/examples/deskforge-app/node_modules/undici-types/global-origin.d.ts +7 -0
- package/examples/deskforge-app/node_modules/undici-types/handlers.d.ts +15 -0
- package/examples/deskforge-app/node_modules/undici-types/header.d.ts +4 -0
- package/examples/deskforge-app/node_modules/undici-types/index.d.ts +71 -0
- package/examples/deskforge-app/node_modules/undici-types/interceptors.d.ts +17 -0
- package/examples/deskforge-app/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/examples/deskforge-app/node_modules/undici-types/mock-client.d.ts +25 -0
- package/examples/deskforge-app/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/examples/deskforge-app/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/examples/deskforge-app/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/examples/deskforge-app/node_modules/undici-types/package.json +55 -0
- package/examples/deskforge-app/node_modules/undici-types/patch.d.ts +33 -0
- package/examples/deskforge-app/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/examples/deskforge-app/node_modules/undici-types/pool.d.ts +39 -0
- package/examples/deskforge-app/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/examples/deskforge-app/node_modules/undici-types/readable.d.ts +65 -0
- package/examples/deskforge-app/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/examples/deskforge-app/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/examples/deskforge-app/node_modules/undici-types/util.d.ts +18 -0
- package/examples/deskforge-app/node_modules/undici-types/webidl.d.ts +228 -0
- package/examples/deskforge-app/node_modules/undici-types/websocket.d.ts +150 -0
- package/examples/deskforge-app/package.json +19 -0
- package/examples/deskforge-app/src/screens/Details.ts +20 -0
- package/examples/deskforge-app/src/screens/Home.ts +19 -0
- package/examples/deskforge-app/src/screens/index.ts +2 -0
- package/examples/deskforge-app/src/ui/Responsive.ts +88 -0
- package/examples/deskforge-app/src/ui/index.ts +1 -0
- package/examples/deskforge-app/tsconfig.json +24 -0
- package/examples/notekeeper/dist/app.d.ts +1 -0
- package/examples/notekeeper/dist/app.js +96 -0
- package/examples/notekeeper/dist/app.js.map +1 -0
- package/examples/notekeeper/dist/components/noteCard.d.ts +1 -0
- package/examples/notekeeper/dist/components/noteCard.js +124 -0
- package/examples/notekeeper/dist/components/noteCard.js.map +1 -0
- package/examples/notekeeper/dist/hooks/useNotes.d.ts +14 -0
- package/examples/notekeeper/dist/hooks/useNotes.js +127 -0
- package/examples/notekeeper/dist/hooks/useNotes.js.map +1 -0
- package/examples/notekeeper/dist/notekeeper.png +0 -0
- package/examples/notekeeper/dist/state/appState.d.ts +11 -0
- package/examples/notekeeper/dist/state/appState.js +125 -0
- package/examples/notekeeper/dist/state/appState.js.map +1 -0
- package/examples/notekeeper/package.json +19 -0
- package/examples/notekeeper/src/README.md +10 -0
- package/examples/notekeeper/src/app.ts +98 -0
- package/examples/notekeeper/src/components/noteCard.ts +147 -0
- package/examples/notekeeper/src/hooks/useNotes.ts +169 -0
- package/examples/notekeeper/src/state/appState.ts +142 -0
- package/examples/notekeeper/tsconfig.json +16 -0
- package/examples/tsconfig.json +34 -0
- package/local-app/addlibrary.ts +7 -0
- package/local-app/app.ts +29 -0
- package/local-app/package.json +13 -0
- package/local-app/screens/Home.ts +20 -0
- package/local-app/tsconfig.json +8 -0
- package/package.json +30 -0
- package/packages/ai/dist/brain.d.ts +32 -0
- package/packages/ai/dist/brain.d.ts.map +1 -0
- package/packages/ai/dist/brain.js +94 -0
- package/packages/ai/dist/brain.js.map +1 -0
- package/packages/ai/dist/index.d.ts +5 -0
- package/packages/ai/dist/index.d.ts.map +1 -0
- package/packages/ai/dist/index.js +27 -0
- package/packages/ai/dist/index.js.map +1 -0
- package/packages/ai/dist/nodes/logic.d.ts +23 -0
- package/packages/ai/dist/nodes/logic.d.ts.map +1 -0
- package/packages/ai/dist/nodes/logic.js +55 -0
- package/packages/ai/dist/nodes/logic.js.map +1 -0
- package/packages/ai/dist/nodes/memory.d.ts +28 -0
- package/packages/ai/dist/nodes/memory.d.ts.map +1 -0
- package/packages/ai/dist/nodes/memory.js +93 -0
- package/packages/ai/dist/nodes/memory.js.map +1 -0
- package/packages/ai/dist/nodes/perception.d.ts +21 -0
- package/packages/ai/dist/nodes/perception.d.ts.map +1 -0
- package/packages/ai/dist/nodes/perception.js +28 -0
- package/packages/ai/dist/nodes/perception.js.map +1 -0
- package/packages/ai/package.json +30 -0
- package/packages/ai/src/brain.ts +209 -0
- package/packages/ai/src/index.ts +14 -0
- package/packages/ai/src/nodes/logic.ts +109 -0
- package/packages/ai/src/nodes/memory.ts +172 -0
- package/packages/ai/src/nodes/perception.ts +90 -0
- package/packages/ai/tsconfig.json +17 -0
- package/packages/background/dist/background.d.ts +42 -0
- package/packages/background/dist/background.d.ts.map +1 -0
- package/packages/background/dist/background.js +149 -0
- package/packages/background/dist/background.js.map +1 -0
- package/packages/background/dist/index.d.ts +2 -0
- package/packages/background/dist/index.d.ts.map +1 -0
- package/packages/background/dist/index.js +20 -0
- package/packages/background/dist/index.js.map +1 -0
- package/packages/background/package.json +30 -0
- package/packages/background/src/background.ts +263 -0
- package/packages/background/src/index.ts +4 -0
- package/packages/background/tsconfig.json +17 -0
- package/packages/bridge/dist/bridge.d.ts +22 -0
- package/packages/bridge/dist/bridge.d.ts.map +1 -0
- package/packages/bridge/dist/bridge.js +44 -0
- package/packages/bridge/dist/bridge.js.map +1 -0
- package/packages/bridge/dist/c.d.ts +10 -0
- package/packages/bridge/dist/c.d.ts.map +1 -0
- package/packages/bridge/dist/c.js +23 -0
- package/packages/bridge/dist/c.js.map +1 -0
- package/packages/bridge/dist/dotnet.d.ts +11 -0
- package/packages/bridge/dist/dotnet.d.ts.map +1 -0
- package/packages/bridge/dist/dotnet.js +26 -0
- package/packages/bridge/dist/dotnet.js.map +1 -0
- package/packages/bridge/dist/go.d.ts +10 -0
- package/packages/bridge/dist/go.d.ts.map +1 -0
- package/packages/bridge/dist/go.js +27 -0
- package/packages/bridge/dist/go.js.map +1 -0
- package/packages/bridge/dist/http.d.ts +22 -0
- package/packages/bridge/dist/http.d.ts.map +1 -0
- package/packages/bridge/dist/http.js +110 -0
- package/packages/bridge/dist/http.js.map +1 -0
- package/packages/bridge/dist/index.d.ts +5 -0
- package/packages/bridge/dist/index.d.ts.map +1 -0
- package/packages/bridge/dist/index.js +27 -0
- package/packages/bridge/dist/index.js.map +1 -0
- package/packages/bridge/dist/kotlin.d.ts +11 -0
- package/packages/bridge/dist/kotlin.d.ts.map +1 -0
- package/packages/bridge/dist/kotlin.js +25 -0
- package/packages/bridge/dist/kotlin.js.map +1 -0
- package/packages/bridge/dist/php.d.ts +11 -0
- package/packages/bridge/dist/php.d.ts.map +1 -0
- package/packages/bridge/dist/php.js +28 -0
- package/packages/bridge/dist/php.js.map +1 -0
- package/packages/bridge/dist/process.d.ts +27 -0
- package/packages/bridge/dist/process.d.ts.map +1 -0
- package/packages/bridge/dist/process.js +101 -0
- package/packages/bridge/dist/process.js.map +1 -0
- package/packages/bridge/dist/python.d.ts +15 -0
- package/packages/bridge/dist/python.d.ts.map +1 -0
- package/packages/bridge/dist/python.js +34 -0
- package/packages/bridge/dist/python.js.map +1 -0
- package/packages/bridge/dist/rust.d.ts +10 -0
- package/packages/bridge/dist/rust.d.ts.map +1 -0
- package/packages/bridge/dist/rust.js +24 -0
- package/packages/bridge/dist/rust.js.map +1 -0
- package/packages/bridge/dist/swift.d.ts +11 -0
- package/packages/bridge/dist/swift.d.ts.map +1 -0
- package/packages/bridge/dist/swift.js +26 -0
- package/packages/bridge/dist/swift.js.map +1 -0
- package/packages/bridge/package.json +30 -0
- package/packages/bridge/src/bridge.ts +38 -0
- package/packages/bridge/src/c.ts +41 -0
- package/packages/bridge/src/dotnet.ts +50 -0
- package/packages/bridge/src/go.ts +48 -0
- package/packages/bridge/src/http.ts +198 -0
- package/packages/bridge/src/index.ts +14 -0
- package/packages/bridge/src/kotlin.ts +48 -0
- package/packages/bridge/src/php.ts +59 -0
- package/packages/bridge/src/process.ts +174 -0
- package/packages/bridge/src/python.ts +69 -0
- package/packages/bridge/src/rust.ts +43 -0
- package/packages/bridge/src/swift.ts +50 -0
- package/packages/bridge/tsconfig.json +18 -0
- package/packages/cli/dist/commands/build.d.ts +17 -0
- package/packages/cli/dist/commands/build.d.ts.map +1 -0
- package/packages/cli/dist/commands/build.js +79 -0
- package/packages/cli/dist/commands/build.js.map +1 -0
- package/packages/cli/dist/commands/create.d.ts +11 -0
- package/packages/cli/dist/commands/create.d.ts.map +1 -0
- package/packages/cli/dist/commands/create.js +287 -0
- package/packages/cli/dist/commands/create.js.map +1 -0
- package/packages/cli/dist/commands/lib/add.d.ts +3 -0
- package/packages/cli/dist/commands/lib/add.d.ts.map +1 -0
- package/packages/cli/dist/commands/lib/add.js +39 -0
- package/packages/cli/dist/commands/lib/add.js.map +1 -0
- package/packages/cli/dist/commands/lib/list.d.ts +3 -0
- package/packages/cli/dist/commands/lib/list.d.ts.map +1 -0
- package/packages/cli/dist/commands/lib/list.js +29 -0
- package/packages/cli/dist/commands/lib/list.js.map +1 -0
- package/packages/cli/dist/commands/lib/remove.d.ts +3 -0
- package/packages/cli/dist/commands/lib/remove.d.ts.map +1 -0
- package/packages/cli/dist/commands/lib/remove.js +30 -0
- package/packages/cli/dist/commands/lib/remove.js.map +1 -0
- package/packages/cli/dist/commands/lib/restore.d.ts +3 -0
- package/packages/cli/dist/commands/lib/restore.d.ts.map +1 -0
- package/packages/cli/dist/commands/lib/restore.js +49 -0
- package/packages/cli/dist/commands/lib/restore.js.map +1 -0
- package/packages/cli/dist/commands/lib/search.d.ts +3 -0
- package/packages/cli/dist/commands/lib/search.d.ts.map +1 -0
- package/packages/cli/dist/commands/lib/search.js +30 -0
- package/packages/cli/dist/commands/lib/search.js.map +1 -0
- package/packages/cli/dist/commands/start.d.ts +10 -0
- package/packages/cli/dist/commands/start.d.ts.map +1 -0
- package/packages/cli/dist/commands/start.js +88 -0
- package/packages/cli/dist/commands/start.js.map +1 -0
- package/packages/cli/dist/index.d.ts +3 -0
- package/packages/cli/dist/index.d.ts.map +1 -0
- package/packages/cli/dist/index.js +193 -0
- package/packages/cli/dist/index.js.map +1 -0
- package/packages/cli/dist/registry/client.d.ts +24 -0
- package/packages/cli/dist/registry/client.d.ts.map +1 -0
- package/packages/cli/dist/registry/client.js +73 -0
- package/packages/cli/dist/registry/client.js.map +1 -0
- package/packages/cli/dist/registry/installer.d.ts +16 -0
- package/packages/cli/dist/registry/installer.d.ts.map +1 -0
- package/packages/cli/dist/registry/installer.js +135 -0
- package/packages/cli/dist/registry/installer.js.map +1 -0
- package/packages/cli/dist/registry/manifest.d.ts +13 -0
- package/packages/cli/dist/registry/manifest.d.ts.map +1 -0
- package/packages/cli/dist/registry/manifest.js +100 -0
- package/packages/cli/dist/registry/manifest.js.map +1 -0
- package/packages/cli/package.json +36 -0
- package/packages/cli/src/commands/build.ts +138 -0
- package/packages/cli/src/commands/create.ts +363 -0
- package/packages/cli/src/commands/lib/add.ts +56 -0
- package/packages/cli/src/commands/lib/list.ts +42 -0
- package/packages/cli/src/commands/lib/remove.ts +39 -0
- package/packages/cli/src/commands/lib/restore.ts +65 -0
- package/packages/cli/src/commands/lib/search.ts +45 -0
- package/packages/cli/src/commands/start.ts +117 -0
- package/packages/cli/src/index.ts +224 -0
- package/packages/cli/src/registry/client.ts +153 -0
- package/packages/cli/src/registry/installer.ts +197 -0
- package/packages/cli/src/registry/manifest.ts +145 -0
- package/packages/cli/test/create.test.js +22 -0
- package/packages/cli/tsconfig.json +18 -0
- package/packages/core/dist/animation/easing.d.ts +23 -0
- package/packages/core/dist/animation/easing.d.ts.map +1 -0
- package/packages/core/dist/animation/easing.js +91 -0
- package/packages/core/dist/animation/easing.js.map +1 -0
- package/packages/core/dist/animation/index.d.ts +4 -0
- package/packages/core/dist/animation/index.d.ts.map +1 -0
- package/packages/core/dist/animation/index.js +26 -0
- package/packages/core/dist/animation/index.js.map +1 -0
- package/packages/core/dist/animation/interpolate.d.ts +7 -0
- package/packages/core/dist/animation/interpolate.d.ts.map +1 -0
- package/packages/core/dist/animation/interpolate.js +83 -0
- package/packages/core/dist/animation/interpolate.js.map +1 -0
- package/packages/core/dist/animation/spring.d.ts +21 -0
- package/packages/core/dist/animation/spring.d.ts.map +1 -0
- package/packages/core/dist/animation/spring.js +79 -0
- package/packages/core/dist/animation/spring.js.map +1 -0
- package/packages/core/dist/component/component.d.ts +6 -0
- package/packages/core/dist/component/component.d.ts.map +1 -0
- package/packages/core/dist/component/component.js +14 -0
- package/packages/core/dist/component/component.js.map +1 -0
- package/packages/core/dist/component/index.d.ts +2 -0
- package/packages/core/dist/component/index.d.ts.map +1 -0
- package/packages/core/dist/component/index.js +18 -0
- package/packages/core/dist/component/index.js.map +1 -0
- package/packages/core/dist/index.d.ts +6 -0
- package/packages/core/dist/index.d.ts.map +1 -0
- package/packages/core/dist/index.js +30 -0
- package/packages/core/dist/index.js.map +1 -0
- package/packages/core/dist/scheduler/index.d.ts +2 -0
- package/packages/core/dist/scheduler/index.d.ts.map +1 -0
- package/packages/core/dist/scheduler/index.js +20 -0
- package/packages/core/dist/scheduler/index.js.map +1 -0
- package/packages/core/dist/scheduler/scheduler.d.ts +12 -0
- package/packages/core/dist/scheduler/scheduler.d.ts.map +1 -0
- package/packages/core/dist/scheduler/scheduler.js +61 -0
- package/packages/core/dist/scheduler/scheduler.js.map +1 -0
- package/packages/core/dist/tree/diff.d.ts +17 -0
- package/packages/core/dist/tree/diff.d.ts.map +1 -0
- package/packages/core/dist/tree/diff.js +67 -0
- package/packages/core/dist/tree/diff.js.map +1 -0
- package/packages/core/dist/tree/index.d.ts +4 -0
- package/packages/core/dist/tree/index.d.ts.map +1 -0
- package/packages/core/dist/tree/index.js +23 -0
- package/packages/core/dist/tree/index.js.map +1 -0
- package/packages/core/dist/tree/node.d.ts +13 -0
- package/packages/core/dist/tree/node.d.ts.map +1 -0
- package/packages/core/dist/tree/node.js +59 -0
- package/packages/core/dist/tree/node.js.map +1 -0
- package/packages/core/dist/tree/tree.d.ts +11 -0
- package/packages/core/dist/tree/tree.d.ts.map +1 -0
- package/packages/core/dist/tree/tree.js +43 -0
- package/packages/core/dist/tree/tree.js.map +1 -0
- package/packages/core/package.json +30 -0
- package/packages/core/src/animation/easing.d.ts +22 -0
- package/packages/core/src/animation/easing.js +91 -0
- package/packages/core/src/animation/easing.js.map +1 -0
- package/packages/core/src/animation/easing.ts +88 -0
- package/packages/core/src/animation/index.d.ts +3 -0
- package/packages/core/src/animation/index.js +26 -0
- package/packages/core/src/animation/index.js.map +1 -0
- package/packages/core/src/animation/index.ts +12 -0
- package/packages/core/src/animation/interpolate.d.ts +6 -0
- package/packages/core/src/animation/interpolate.js +83 -0
- package/packages/core/src/animation/interpolate.js.map +1 -0
- package/packages/core/src/animation/interpolate.ts +107 -0
- package/packages/core/src/animation/spring.d.ts +20 -0
- package/packages/core/src/animation/spring.js +79 -0
- package/packages/core/src/animation/spring.js.map +1 -0
- package/packages/core/src/animation/spring.ts +118 -0
- package/packages/core/src/component/component.d.ts +5 -0
- package/packages/core/src/component/component.js +14 -0
- package/packages/core/src/component/component.js.map +1 -0
- package/packages/core/src/component/component.ts +22 -0
- package/packages/core/src/component/index.d.ts +1 -0
- package/packages/core/src/component/index.js +18 -0
- package/packages/core/src/component/index.js.map +1 -0
- package/packages/core/src/component/index.ts +1 -0
- package/packages/core/src/index.d.ts +5 -0
- package/packages/core/src/index.js +30 -0
- package/packages/core/src/index.js.map +1 -0
- package/packages/core/src/index.ts +18 -0
- package/packages/core/src/scheduler/index.d.ts +1 -0
- package/packages/core/src/scheduler/index.d.ts.map +1 -0
- package/packages/core/src/scheduler/index.js +20 -0
- package/packages/core/src/scheduler/index.js.map +1 -0
- package/packages/core/src/scheduler/index.ts +4 -0
- package/packages/core/src/scheduler/scheduler.d.ts +11 -0
- package/packages/core/src/scheduler/scheduler.d.ts.map +1 -0
- package/packages/core/src/scheduler/scheduler.js +61 -0
- package/packages/core/src/scheduler/scheduler.js.map +1 -0
- package/packages/core/src/scheduler/scheduler.ts +76 -0
- package/packages/core/src/tree/diff.d.ts +16 -0
- package/packages/core/src/tree/diff.js +67 -0
- package/packages/core/src/tree/diff.js.map +1 -0
- package/packages/core/src/tree/diff.ts +125 -0
- package/packages/core/src/tree/index.d.ts +3 -0
- package/packages/core/src/tree/index.js +23 -0
- package/packages/core/src/tree/index.js.map +1 -0
- package/packages/core/src/tree/index.ts +7 -0
- package/packages/core/src/tree/node.d.ts +12 -0
- package/packages/core/src/tree/node.d.ts.map +1 -0
- package/packages/core/src/tree/node.js +59 -0
- package/packages/core/src/tree/node.js.map +1 -0
- package/packages/core/src/tree/node.ts +96 -0
- package/packages/core/src/tree/tree.d.ts +10 -0
- package/packages/core/src/tree/tree.d.ts.map +1 -0
- package/packages/core/src/tree/tree.js +43 -0
- package/packages/core/src/tree/tree.js.map +1 -0
- package/packages/core/src/tree/tree.ts +64 -0
- package/packages/core/tsconfig.json +18 -0
- package/packages/db/dist/adapters/mongodb.d.ts +17 -0
- package/packages/db/dist/adapters/mongodb.d.ts.map +1 -0
- package/packages/db/dist/adapters/mongodb.js +64 -0
- package/packages/db/dist/adapters/mongodb.js.map +1 -0
- package/packages/db/dist/adapters/mysql.d.ts +15 -0
- package/packages/db/dist/adapters/mysql.d.ts.map +1 -0
- package/packages/db/dist/adapters/mysql.js +37 -0
- package/packages/db/dist/adapters/mysql.js.map +1 -0
- package/packages/db/dist/adapters/postgres.d.ts +15 -0
- package/packages/db/dist/adapters/postgres.d.ts.map +1 -0
- package/packages/db/dist/adapters/postgres.js +38 -0
- package/packages/db/dist/adapters/postgres.js.map +1 -0
- package/packages/db/dist/adapters/sqlite.d.ts +24 -0
- package/packages/db/dist/adapters/sqlite.d.ts.map +1 -0
- package/packages/db/dist/adapters/sqlite.js +56 -0
- package/packages/db/dist/adapters/sqlite.js.map +1 -0
- package/packages/db/dist/db.d.ts +45 -0
- package/packages/db/dist/db.d.ts.map +1 -0
- package/packages/db/dist/db.js +111 -0
- package/packages/db/dist/db.js.map +1 -0
- package/packages/db/dist/index.d.ts +7 -0
- package/packages/db/dist/index.d.ts.map +1 -0
- package/packages/db/dist/index.js +31 -0
- package/packages/db/dist/index.js.map +1 -0
- package/packages/db/dist/query.d.ts +26 -0
- package/packages/db/dist/query.d.ts.map +1 -0
- package/packages/db/dist/query.js +71 -0
- package/packages/db/dist/query.js.map +1 -0
- package/packages/db/package.json +30 -0
- package/packages/db/src/adapters/mongodb.ts +130 -0
- package/packages/db/src/adapters/mysql.ts +78 -0
- package/packages/db/src/adapters/postgres.ts +80 -0
- package/packages/db/src/adapters/sqlite.ts +99 -0
- package/packages/db/src/db.ts +175 -0
- package/packages/db/src/index.ts +20 -0
- package/packages/db/src/query.ts +154 -0
- package/packages/db/tsconfig.json +17 -0
- package/packages/device/README.md +21 -0
- package/packages/device/dist/camera.d.ts +28 -0
- package/packages/device/dist/camera.d.ts.map +1 -0
- package/packages/device/dist/camera.js +42 -0
- package/packages/device/dist/camera.js.map +1 -0
- package/packages/device/dist/contacts.d.ts +19 -0
- package/packages/device/dist/contacts.d.ts.map +1 -0
- package/packages/device/dist/contacts.js +40 -0
- package/packages/device/dist/contacts.js.map +1 -0
- package/packages/device/dist/index.d.ts +33 -0
- package/packages/device/dist/index.d.ts.map +1 -0
- package/packages/device/dist/index.js +35 -0
- package/packages/device/dist/index.js.map +1 -0
- package/packages/device/dist/media.d.ts +60 -0
- package/packages/device/dist/media.d.ts.map +1 -0
- package/packages/device/dist/media.js +129 -0
- package/packages/device/dist/media.js.map +1 -0
- package/packages/device/dist/sensors.d.ts +17 -0
- package/packages/device/dist/sensors.d.ts.map +1 -0
- package/packages/device/dist/sensors.js +32 -0
- package/packages/device/dist/sensors.js.map +1 -0
- package/packages/device/package.json +30 -0
- package/packages/device/src/camera.ts +65 -0
- package/packages/device/src/contacts.ts +57 -0
- package/packages/device/src/index.ts +20 -0
- package/packages/device/src/media.ts +194 -0
- package/packages/device/src/sensors.ts +51 -0
- package/packages/device/test/api.test.js +21 -0
- package/packages/device/tsconfig.json +9 -0
- package/packages/file/dist/file.d.ts +55 -0
- package/packages/file/dist/file.d.ts.map +1 -0
- package/packages/file/dist/file.js +114 -0
- package/packages/file/dist/file.js.map +1 -0
- package/packages/file/dist/index.d.ts +2 -0
- package/packages/file/dist/index.d.ts.map +1 -0
- package/packages/file/dist/index.js +20 -0
- package/packages/file/dist/index.js.map +1 -0
- package/packages/file/package.json +30 -0
- package/packages/file/src/file.ts +209 -0
- package/packages/file/src/index.ts +4 -0
- package/packages/file/tsconfig.json +17 -0
- package/packages/i18n/dist/i18n.d.ts +33 -0
- package/packages/i18n/dist/i18n.d.ts.map +1 -0
- package/packages/i18n/dist/i18n.js +149 -0
- package/packages/i18n/dist/i18n.js.map +1 -0
- package/packages/i18n/dist/index.d.ts +2 -0
- package/packages/i18n/dist/index.d.ts.map +1 -0
- package/packages/i18n/dist/index.js +20 -0
- package/packages/i18n/dist/index.js.map +1 -0
- package/packages/i18n/package.json +30 -0
- package/packages/i18n/src/i18n.ts +225 -0
- package/packages/i18n/src/index.ts +4 -0
- package/packages/i18n/tsconfig.json +17 -0
- package/packages/logger/dist/index.d.ts +2 -0
- package/packages/logger/dist/index.d.ts.map +1 -0
- package/packages/logger/dist/index.js +20 -0
- package/packages/logger/dist/index.js.map +1 -0
- package/packages/logger/dist/logger.d.ts +50 -0
- package/packages/logger/dist/logger.d.ts.map +1 -0
- package/packages/logger/dist/logger.js +147 -0
- package/packages/logger/dist/logger.js.map +1 -0
- package/packages/logger/package.json +30 -0
- package/packages/logger/src/index.ts +4 -0
- package/packages/logger/src/logger.ts +240 -0
- package/packages/logger/tsconfig.json +17 -0
- package/packages/network/dist/discovery.d.ts +20 -0
- package/packages/network/dist/discovery.d.ts.map +1 -0
- package/packages/network/dist/discovery.js +58 -0
- package/packages/network/dist/discovery.js.map +1 -0
- package/packages/network/dist/index.d.ts +3 -0
- package/packages/network/dist/index.d.ts.map +1 -0
- package/packages/network/dist/index.js +23 -0
- package/packages/network/dist/index.js.map +1 -0
- package/packages/network/dist/transfer.d.ts +40 -0
- package/packages/network/dist/transfer.d.ts.map +1 -0
- package/packages/network/dist/transfer.js +73 -0
- package/packages/network/dist/transfer.js.map +1 -0
- package/packages/network/package.json +30 -0
- package/packages/network/src/discovery.ts +107 -0
- package/packages/network/src/index.ts +8 -0
- package/packages/network/src/transfer.ts +182 -0
- package/packages/network/tsconfig.json +17 -0
- package/packages/notifications/dist/alert.d.ts +34 -0
- package/packages/notifications/dist/alert.d.ts.map +1 -0
- package/packages/notifications/dist/alert.js +99 -0
- package/packages/notifications/dist/alert.js.map +1 -0
- package/packages/notifications/dist/email.d.ts +41 -0
- package/packages/notifications/dist/email.d.ts.map +1 -0
- package/packages/notifications/dist/email.js +51 -0
- package/packages/notifications/dist/email.js.map +1 -0
- package/packages/notifications/dist/index.d.ts +84 -0
- package/packages/notifications/dist/index.d.ts.map +1 -0
- package/packages/notifications/dist/index.js +52 -0
- package/packages/notifications/dist/index.js.map +1 -0
- package/packages/notifications/dist/notify.d.ts +36 -0
- package/packages/notifications/dist/notify.d.ts.map +1 -0
- package/packages/notifications/dist/notify.js +62 -0
- package/packages/notifications/dist/notify.js.map +1 -0
- package/packages/notifications/dist/push.d.ts +49 -0
- package/packages/notifications/dist/push.d.ts.map +1 -0
- package/packages/notifications/dist/push.js +76 -0
- package/packages/notifications/dist/push.js.map +1 -0
- package/packages/notifications/dist/sms.d.ts +34 -0
- package/packages/notifications/dist/sms.d.ts.map +1 -0
- package/packages/notifications/dist/sms.js +44 -0
- package/packages/notifications/dist/sms.js.map +1 -0
- package/packages/notifications/dist/storage.d.ts +30 -0
- package/packages/notifications/dist/storage.d.ts.map +1 -0
- package/packages/notifications/dist/storage.js +93 -0
- package/packages/notifications/dist/storage.js.map +1 -0
- package/packages/notifications/dist/toast.d.ts +47 -0
- package/packages/notifications/dist/toast.d.ts.map +1 -0
- package/packages/notifications/dist/toast.js +138 -0
- package/packages/notifications/dist/toast.js.map +1 -0
- package/packages/notifications/dist/users.d.ts +36 -0
- package/packages/notifications/dist/users.d.ts.map +1 -0
- package/packages/notifications/dist/users.js +87 -0
- package/packages/notifications/dist/users.js.map +1 -0
- package/packages/notifications/notifications.db +0 -0
- package/packages/notifications/package.json +33 -0
- package/packages/notifications/src/alert.ts +133 -0
- package/packages/notifications/src/email.ts +127 -0
- package/packages/notifications/src/index.ts +44 -0
- package/packages/notifications/src/notify.ts +126 -0
- package/packages/notifications/src/push.ts +145 -0
- package/packages/notifications/src/sms.ts +97 -0
- package/packages/notifications/src/storage.ts +109 -0
- package/packages/notifications/src/toast.ts +186 -0
- package/packages/notifications/src/types/better-sqlite3.d.ts +5 -0
- package/packages/notifications/src/users.ts +121 -0
- package/packages/notifications/test/notifications.test.js +41 -0
- package/packages/notifications/test/storage.test.js +34 -0
- package/packages/notifications/tsconfig.json +19 -0
- package/packages/payments/dist/gateways/momo.d.ts +25 -0
- package/packages/payments/dist/gateways/momo.d.ts.map +1 -0
- package/packages/payments/dist/gateways/momo.js +44 -0
- package/packages/payments/dist/gateways/momo.js.map +1 -0
- package/packages/payments/dist/gateways/paystack.d.ts +24 -0
- package/packages/payments/dist/gateways/paystack.d.ts.map +1 -0
- package/packages/payments/dist/gateways/paystack.js +51 -0
- package/packages/payments/dist/gateways/paystack.js.map +1 -0
- package/packages/payments/dist/index.d.ts +4 -0
- package/packages/payments/dist/index.d.ts.map +1 -0
- package/packages/payments/dist/index.js +25 -0
- package/packages/payments/dist/index.js.map +1 -0
- package/packages/payments/dist/payment.d.ts +42 -0
- package/packages/payments/dist/payment.d.ts.map +1 -0
- package/packages/payments/dist/payment.js +124 -0
- package/packages/payments/dist/payment.js.map +1 -0
- package/packages/payments/package.json +30 -0
- package/packages/payments/src/gateways/momo.ts +97 -0
- package/packages/payments/src/gateways/paystack.ts +102 -0
- package/packages/payments/src/index.ts +11 -0
- package/packages/payments/src/payment.ts +229 -0
- package/packages/payments/tsconfig.json +17 -0
- package/packages/renderer/README.md +188 -0
- package/packages/renderer/dist/canvas.d.ts +24 -0
- package/packages/renderer/dist/canvas.d.ts.map +1 -0
- package/packages/renderer/dist/canvas.js +38 -0
- package/packages/renderer/dist/canvas.js.map +1 -0
- package/packages/renderer/dist/context.d.ts +34 -0
- package/packages/renderer/dist/context.d.ts.map +1 -0
- package/packages/renderer/dist/context.js +45 -0
- package/packages/renderer/dist/context.js.map +1 -0
- package/packages/renderer/dist/dirty-region.d.ts +43 -0
- package/packages/renderer/dist/dirty-region.d.ts.map +1 -0
- package/packages/renderer/dist/dirty-region.js +106 -0
- package/packages/renderer/dist/dirty-region.js.map +1 -0
- package/packages/renderer/dist/engine.d.ts +57 -0
- package/packages/renderer/dist/engine.d.ts.map +1 -0
- package/packages/renderer/dist/engine.js +95 -0
- package/packages/renderer/dist/engine.js.map +1 -0
- package/packages/renderer/dist/example.d.ts +14 -0
- package/packages/renderer/dist/example.d.ts.map +1 -0
- package/packages/renderer/dist/example.js +160 -0
- package/packages/renderer/dist/example.js.map +1 -0
- package/packages/renderer/dist/filters.d.ts +23 -0
- package/packages/renderer/dist/filters.d.ts.map +1 -0
- package/packages/renderer/dist/filters.js +41 -0
- package/packages/renderer/dist/filters.js.map +1 -0
- package/packages/renderer/dist/icons.d.ts +7 -0
- package/packages/renderer/dist/icons.d.ts.map +1 -0
- package/packages/renderer/dist/icons.js +31 -0
- package/packages/renderer/dist/icons.js.map +1 -0
- package/packages/renderer/dist/index.d.ts +16 -0
- package/packages/renderer/dist/index.d.ts.map +1 -0
- package/packages/renderer/dist/index.js +34 -0
- package/packages/renderer/dist/index.js.map +1 -0
- package/packages/renderer/dist/painter.d.ts +27 -0
- package/packages/renderer/dist/painter.d.ts.map +1 -0
- package/packages/renderer/dist/painter.js +221 -0
- package/packages/renderer/dist/painter.js.map +1 -0
- package/packages/renderer/dist/renderer.d.ts +72 -0
- package/packages/renderer/dist/renderer.d.ts.map +1 -0
- package/packages/renderer/dist/renderer.js +120 -0
- package/packages/renderer/dist/renderer.js.map +1 -0
- package/packages/renderer/dist/svg-export.d.ts +52 -0
- package/packages/renderer/dist/svg-export.d.ts.map +1 -0
- package/packages/renderer/dist/svg-export.js +159 -0
- package/packages/renderer/dist/svg-export.js.map +1 -0
- package/packages/renderer/package.json +34 -0
- package/packages/renderer/src/canvas.d.ts +23 -0
- package/packages/renderer/src/canvas.js +38 -0
- package/packages/renderer/src/canvas.js.map +1 -0
- package/packages/renderer/src/canvas.ts +70 -0
- package/packages/renderer/src/context.d.ts +33 -0
- package/packages/renderer/src/context.js +45 -0
- package/packages/renderer/src/context.js.map +1 -0
- package/packages/renderer/src/context.ts +83 -0
- package/packages/renderer/src/dirty-region.d.ts +42 -0
- package/packages/renderer/src/dirty-region.js +106 -0
- package/packages/renderer/src/dirty-region.js.map +1 -0
- package/packages/renderer/src/dirty-region.ts +125 -0
- package/packages/renderer/src/engine.d.ts +56 -0
- package/packages/renderer/src/engine.js +95 -0
- package/packages/renderer/src/engine.js.map +1 -0
- package/packages/renderer/src/engine.ts +131 -0
- package/packages/renderer/src/example.ts +184 -0
- package/packages/renderer/src/filters.d.ts +22 -0
- package/packages/renderer/src/filters.js +41 -0
- package/packages/renderer/src/filters.js.map +1 -0
- package/packages/renderer/src/filters.ts +63 -0
- package/packages/renderer/src/icons.ts +33 -0
- package/packages/renderer/src/index.d.ts +15 -0
- package/packages/renderer/src/index.js +34 -0
- package/packages/renderer/src/index.js.map +1 -0
- package/packages/renderer/src/index.ts +19 -0
- package/packages/renderer/src/painter.d.ts +26 -0
- package/packages/renderer/src/painter.js +127 -0
- package/packages/renderer/src/painter.js.map +1 -0
- package/packages/renderer/src/painter.ts +269 -0
- package/packages/renderer/src/renderer.d.ts +71 -0
- package/packages/renderer/src/renderer.js +120 -0
- package/packages/renderer/src/renderer.js.map +1 -0
- package/packages/renderer/src/renderer.ts +171 -0
- package/packages/renderer/src/svg-export.d.ts +47 -0
- package/packages/renderer/src/svg-export.js +125 -0
- package/packages/renderer/src/svg-export.js.map +1 -0
- package/packages/renderer/src/svg-export.ts +270 -0
- package/packages/renderer/test/renderer.test.js +41 -0
- package/packages/renderer/tsconfig.json +10 -0
- package/packages/router/dist/app.d.ts +10 -0
- package/packages/router/dist/app.d.ts.map +1 -0
- package/packages/router/dist/app.js +12 -0
- package/packages/router/dist/app.js.map +1 -0
- package/packages/router/dist/file-router.d.ts +36 -0
- package/packages/router/dist/file-router.d.ts.map +1 -0
- package/packages/router/dist/file-router.js +145 -0
- package/packages/router/dist/file-router.js.map +1 -0
- package/packages/router/dist/index.d.ts +6 -0
- package/packages/router/dist/index.d.ts.map +1 -0
- package/packages/router/dist/index.js +24 -0
- package/packages/router/dist/index.js.map +1 -0
- package/packages/router/dist/manifest.d.ts +10 -0
- package/packages/router/dist/manifest.d.ts.map +1 -0
- package/packages/router/dist/manifest.js +26 -0
- package/packages/router/dist/manifest.js.map +1 -0
- package/packages/router/dist/router.d.ts +31 -0
- package/packages/router/dist/router.d.ts.map +1 -0
- package/packages/router/dist/router.js +112 -0
- package/packages/router/dist/router.js.map +1 -0
- package/packages/router/dist/screen.d.ts +31 -0
- package/packages/router/dist/screen.d.ts.map +1 -0
- package/packages/router/dist/screen.js +34 -0
- package/packages/router/dist/screen.js.map +1 -0
- package/packages/router/package.json +30 -0
- package/packages/router/src/app.ts +16 -0
- package/packages/router/src/file-router.ts +181 -0
- package/packages/router/src/index.d.ts +2 -0
- package/packages/router/src/index.js +23 -0
- package/packages/router/src/index.js.map +1 -0
- package/packages/router/src/index.ts +7 -0
- package/packages/router/src/manifest.ts +27 -0
- package/packages/router/src/router.d.ts +30 -0
- package/packages/router/src/router.js +112 -0
- package/packages/router/src/router.js.map +1 -0
- package/packages/router/src/router.ts +161 -0
- package/packages/router/src/screen.d.ts +24 -0
- package/packages/router/src/screen.js +18 -0
- package/packages/router/src/screen.js.map +1 -0
- package/packages/router/src/screen.ts +68 -0
- package/packages/router/test/router.test.js +30 -0
- package/packages/router/tsconfig.json +17 -0
- package/packages/security/dist/biometric.d.ts +27 -0
- package/packages/security/dist/biometric.d.ts.map +1 -0
- package/packages/security/dist/biometric.js +63 -0
- package/packages/security/dist/biometric.js.map +1 -0
- package/packages/security/dist/index.d.ts +2 -0
- package/packages/security/dist/index.d.ts.map +1 -0
- package/packages/security/dist/index.js +21 -0
- package/packages/security/dist/index.js.map +1 -0
- package/packages/security/package.json +30 -0
- package/packages/security/src/biometric.ts +121 -0
- package/packages/security/src/index.ts +5 -0
- package/packages/security/tsconfig.json +17 -0
- package/packages/state/dist/computed.d.ts +10 -0
- package/packages/state/dist/computed.d.ts.map +1 -0
- package/packages/state/dist/computed.js +55 -0
- package/packages/state/dist/computed.js.map +1 -0
- package/packages/state/dist/context.d.ts +9 -0
- package/packages/state/dist/context.d.ts.map +1 -0
- package/packages/state/dist/context.js +36 -0
- package/packages/state/dist/context.js.map +1 -0
- package/packages/state/dist/core/src/animation/easing.d.ts +23 -0
- package/packages/state/dist/core/src/animation/easing.d.ts.map +1 -0
- package/packages/state/dist/core/src/animation/easing.js +91 -0
- package/packages/state/dist/core/src/animation/easing.js.map +1 -0
- package/packages/state/dist/core/src/animation/index.d.ts +4 -0
- package/packages/state/dist/core/src/animation/index.d.ts.map +1 -0
- package/packages/state/dist/core/src/animation/index.js +26 -0
- package/packages/state/dist/core/src/animation/index.js.map +1 -0
- package/packages/state/dist/core/src/animation/interpolate.d.ts +7 -0
- package/packages/state/dist/core/src/animation/interpolate.d.ts.map +1 -0
- package/packages/state/dist/core/src/animation/interpolate.js +83 -0
- package/packages/state/dist/core/src/animation/interpolate.js.map +1 -0
- package/packages/state/dist/core/src/animation/spring.d.ts +21 -0
- package/packages/state/dist/core/src/animation/spring.d.ts.map +1 -0
- package/packages/state/dist/core/src/animation/spring.js +79 -0
- package/packages/state/dist/core/src/animation/spring.js.map +1 -0
- package/packages/state/dist/core/src/component/component.d.ts +6 -0
- package/packages/state/dist/core/src/component/component.d.ts.map +1 -0
- package/packages/state/dist/core/src/component/component.js +14 -0
- package/packages/state/dist/core/src/component/component.js.map +1 -0
- package/packages/state/dist/core/src/component/index.d.ts +2 -0
- package/packages/state/dist/core/src/component/index.d.ts.map +1 -0
- package/packages/state/dist/core/src/component/index.js +18 -0
- package/packages/state/dist/core/src/component/index.js.map +1 -0
- package/packages/state/dist/core/src/index.d.ts +6 -0
- package/packages/state/dist/core/src/index.d.ts.map +1 -0
- package/packages/state/dist/core/src/index.js +30 -0
- package/packages/state/dist/core/src/index.js.map +1 -0
- package/packages/state/dist/core/src/scheduler/index.d.ts +2 -0
- package/packages/state/dist/core/src/scheduler/index.d.ts.map +1 -0
- package/packages/state/dist/core/src/scheduler/index.js +20 -0
- package/packages/state/dist/core/src/scheduler/index.js.map +1 -0
- package/packages/state/dist/core/src/scheduler/scheduler.d.ts +12 -0
- package/packages/state/dist/core/src/scheduler/scheduler.d.ts.map +1 -0
- package/packages/state/dist/core/src/scheduler/scheduler.js +61 -0
- package/packages/state/dist/core/src/scheduler/scheduler.js.map +1 -0
- package/packages/state/dist/core/src/tree/diff.d.ts +17 -0
- package/packages/state/dist/core/src/tree/diff.d.ts.map +1 -0
- package/packages/state/dist/core/src/tree/diff.js +67 -0
- package/packages/state/dist/core/src/tree/diff.js.map +1 -0
- package/packages/state/dist/core/src/tree/index.d.ts +4 -0
- package/packages/state/dist/core/src/tree/index.d.ts.map +1 -0
- package/packages/state/dist/core/src/tree/index.js +23 -0
- package/packages/state/dist/core/src/tree/index.js.map +1 -0
- package/packages/state/dist/core/src/tree/node.d.ts +13 -0
- package/packages/state/dist/core/src/tree/node.d.ts.map +1 -0
- package/packages/state/dist/core/src/tree/node.js +59 -0
- package/packages/state/dist/core/src/tree/node.js.map +1 -0
- package/packages/state/dist/core/src/tree/tree.d.ts +11 -0
- package/packages/state/dist/core/src/tree/tree.d.ts.map +1 -0
- package/packages/state/dist/core/src/tree/tree.js +43 -0
- package/packages/state/dist/core/src/tree/tree.js.map +1 -0
- package/packages/state/dist/effect.d.ts +13 -0
- package/packages/state/dist/effect.d.ts.map +1 -0
- package/packages/state/dist/effect.js +74 -0
- package/packages/state/dist/effect.js.map +1 -0
- package/packages/state/dist/events/dispatch.d.ts +9 -0
- package/packages/state/dist/events/dispatch.d.ts.map +1 -0
- package/packages/state/dist/events/dispatch.js +64 -0
- package/packages/state/dist/events/dispatch.js.map +1 -0
- package/packages/state/dist/events/event.d.ts +18 -0
- package/packages/state/dist/events/event.d.ts.map +1 -0
- package/packages/state/dist/events/event.js +28 -0
- package/packages/state/dist/events/event.js.map +1 -0
- package/packages/state/dist/events/hittest.d.ts +15 -0
- package/packages/state/dist/events/hittest.d.ts.map +1 -0
- package/packages/state/dist/events/hittest.js +56 -0
- package/packages/state/dist/events/hittest.js.map +1 -0
- package/packages/state/dist/events/index.d.ts +6 -0
- package/packages/state/dist/events/index.d.ts.map +1 -0
- package/packages/state/dist/events/index.js +30 -0
- package/packages/state/dist/events/index.js.map +1 -0
- package/packages/state/dist/events/ingestion.d.ts +25 -0
- package/packages/state/dist/events/ingestion.d.ts.map +1 -0
- package/packages/state/dist/events/ingestion.js +61 -0
- package/packages/state/dist/events/ingestion.js.map +1 -0
- package/packages/state/dist/events/propagation.d.ts +9 -0
- package/packages/state/dist/events/propagation.d.ts.map +1 -0
- package/packages/state/dist/events/propagation.js +58 -0
- package/packages/state/dist/events/propagation.js.map +1 -0
- package/packages/state/dist/index.d.ts +10 -0
- package/packages/state/dist/index.d.ts.map +1 -0
- package/packages/state/dist/index.js +38 -0
- package/packages/state/dist/index.js.map +1 -0
- package/packages/state/dist/reducer.d.ts +18 -0
- package/packages/state/dist/reducer.d.ts.map +1 -0
- package/packages/state/dist/reducer.js +44 -0
- package/packages/state/dist/reducer.js.map +1 -0
- package/packages/state/dist/ref.d.ts +9 -0
- package/packages/state/dist/ref.d.ts.map +1 -0
- package/packages/state/dist/ref.js +33 -0
- package/packages/state/dist/ref.js.map +1 -0
- package/packages/state/dist/state/src/computed.d.ts +10 -0
- package/packages/state/dist/state/src/computed.d.ts.map +1 -0
- package/packages/state/dist/state/src/computed.js +55 -0
- package/packages/state/dist/state/src/computed.js.map +1 -0
- package/packages/state/dist/state/src/context.d.ts +9 -0
- package/packages/state/dist/state/src/context.d.ts.map +1 -0
- package/packages/state/dist/state/src/context.js +36 -0
- package/packages/state/dist/state/src/context.js.map +1 -0
- package/packages/state/dist/state/src/effect.d.ts +13 -0
- package/packages/state/dist/state/src/effect.d.ts.map +1 -0
- package/packages/state/dist/state/src/effect.js +74 -0
- package/packages/state/dist/state/src/effect.js.map +1 -0
- package/packages/state/dist/state/src/events/dispatch.d.ts +9 -0
- package/packages/state/dist/state/src/events/dispatch.d.ts.map +1 -0
- package/packages/state/dist/state/src/events/dispatch.js +64 -0
- package/packages/state/dist/state/src/events/dispatch.js.map +1 -0
- package/packages/state/dist/state/src/events/event.d.ts +18 -0
- package/packages/state/dist/state/src/events/event.d.ts.map +1 -0
- package/packages/state/dist/state/src/events/event.js +28 -0
- package/packages/state/dist/state/src/events/event.js.map +1 -0
- package/packages/state/dist/state/src/events/hittest.d.ts +16 -0
- package/packages/state/dist/state/src/events/hittest.d.ts.map +1 -0
- package/packages/state/dist/state/src/events/hittest.js +56 -0
- package/packages/state/dist/state/src/events/hittest.js.map +1 -0
- package/packages/state/dist/state/src/events/index.d.ts +6 -0
- package/packages/state/dist/state/src/events/index.d.ts.map +1 -0
- package/packages/state/dist/state/src/events/index.js +30 -0
- package/packages/state/dist/state/src/events/index.js.map +1 -0
- package/packages/state/dist/state/src/events/ingestion.d.ts +25 -0
- package/packages/state/dist/state/src/events/ingestion.d.ts.map +1 -0
- package/packages/state/dist/state/src/events/ingestion.js +61 -0
- package/packages/state/dist/state/src/events/ingestion.js.map +1 -0
- package/packages/state/dist/state/src/events/propagation.d.ts +10 -0
- package/packages/state/dist/state/src/events/propagation.d.ts.map +1 -0
- package/packages/state/dist/state/src/events/propagation.js +58 -0
- package/packages/state/dist/state/src/events/propagation.js.map +1 -0
- package/packages/state/dist/state/src/index.d.ts +9 -0
- package/packages/state/dist/state/src/index.d.ts.map +1 -0
- package/packages/state/dist/state/src/index.js +36 -0
- package/packages/state/dist/state/src/index.js.map +1 -0
- package/packages/state/dist/state/src/reducer.d.ts +18 -0
- package/packages/state/dist/state/src/reducer.d.ts.map +1 -0
- package/packages/state/dist/state/src/reducer.js +44 -0
- package/packages/state/dist/state/src/reducer.js.map +1 -0
- package/packages/state/dist/state/src/ref.d.ts +9 -0
- package/packages/state/dist/state/src/ref.d.ts.map +1 -0
- package/packages/state/dist/state/src/ref.js +33 -0
- package/packages/state/dist/state/src/ref.js.map +1 -0
- package/packages/state/dist/state/src/state.d.ts +10 -0
- package/packages/state/dist/state/src/state.d.ts.map +1 -0
- package/packages/state/dist/state/src/state.js +70 -0
- package/packages/state/dist/state/src/state.js.map +1 -0
- package/packages/state/dist/state/src/store.d.ts +19 -0
- package/packages/state/dist/state/src/store.d.ts.map +1 -0
- package/packages/state/dist/state/src/store.js +42 -0
- package/packages/state/dist/state/src/store.js.map +1 -0
- package/packages/state/dist/state/src/watch.d.ts +15 -0
- package/packages/state/dist/state/src/watch.d.ts.map +1 -0
- package/packages/state/dist/state/src/watch.js +79 -0
- package/packages/state/dist/state/src/watch.js.map +1 -0
- package/packages/state/dist/state.d.ts +10 -0
- package/packages/state/dist/state.d.ts.map +1 -0
- package/packages/state/dist/state.js +69 -0
- package/packages/state/dist/state.js.map +1 -0
- package/packages/state/dist/store.d.ts +19 -0
- package/packages/state/dist/store.d.ts.map +1 -0
- package/packages/state/dist/store.js +42 -0
- package/packages/state/dist/store.js.map +1 -0
- package/packages/state/dist/watch.d.ts +15 -0
- package/packages/state/dist/watch.d.ts.map +1 -0
- package/packages/state/dist/watch.js +79 -0
- package/packages/state/dist/watch.js.map +1 -0
- package/packages/state/package.json +30 -0
- package/packages/state/src/computed.ts +75 -0
- package/packages/state/src/context.ts +56 -0
- package/packages/state/src/effect.ts +100 -0
- package/packages/state/src/events/dispatch.ts +79 -0
- package/packages/state/src/events/event.ts +97 -0
- package/packages/state/src/events/hittest.ts +95 -0
- package/packages/state/src/events/index.ts +18 -0
- package/packages/state/src/events/ingestion.ts +102 -0
- package/packages/state/src/events/propagation.ts +83 -0
- package/packages/state/src/index.ts +32 -0
- package/packages/state/src/reducer.ts +87 -0
- package/packages/state/src/ref.ts +41 -0
- package/packages/state/src/state.ts +97 -0
- package/packages/state/src/store.ts +79 -0
- package/packages/state/src/watch.ts +131 -0
- package/packages/state/test/api.test.js +16 -0
- package/packages/state/tsconfig.json +17 -0
- package/packages/states/src/computed.ts +0 -0
- package/packages/states/src/state.ts +0 -0
- package/packages/states/tsconfig.json +0 -0
- package/packages/theme/dist/animate.d.ts +72 -0
- package/packages/theme/dist/animate.d.ts.map +1 -0
- package/packages/theme/dist/animate.js +154 -0
- package/packages/theme/dist/animate.js.map +1 -0
- package/packages/theme/dist/index.d.ts +7 -0
- package/packages/theme/dist/index.d.ts.map +1 -0
- package/packages/theme/dist/index.js +32 -0
- package/packages/theme/dist/index.js.map +1 -0
- package/packages/theme/dist/style.d.ts +55 -0
- package/packages/theme/dist/style.d.ts.map +1 -0
- package/packages/theme/dist/style.js +29 -0
- package/packages/theme/dist/style.js.map +1 -0
- package/packages/theme/dist/stylesheet.d.ts +8 -0
- package/packages/theme/dist/stylesheet.d.ts.map +1 -0
- package/packages/theme/dist/stylesheet.js +22 -0
- package/packages/theme/dist/stylesheet.js.map +1 -0
- package/packages/theme/dist/theme.d.ts +23 -0
- package/packages/theme/dist/theme.d.ts.map +1 -0
- package/packages/theme/dist/theme.js +109 -0
- package/packages/theme/dist/theme.js.map +1 -0
- package/packages/theme/dist/tokens.d.ts +116 -0
- package/packages/theme/dist/tokens.d.ts.map +1 -0
- package/packages/theme/dist/tokens.js +127 -0
- package/packages/theme/dist/tokens.js.map +1 -0
- package/packages/theme/dist/variant.d.ts +17 -0
- package/packages/theme/dist/variant.d.ts.map +1 -0
- package/packages/theme/dist/variant.js +35 -0
- package/packages/theme/dist/variant.js.map +1 -0
- package/packages/theme/package.json +30 -0
- package/packages/theme/src/animate.ts +207 -0
- package/packages/theme/src/index.ts +21 -0
- package/packages/theme/src/style.ts +109 -0
- package/packages/theme/src/stylesheet.ts +40 -0
- package/packages/theme/src/theme.ts +145 -0
- package/packages/theme/src/tokens.ts +303 -0
- package/packages/theme/src/variant.ts +68 -0
- package/packages/theme/tsconfig.json +17 -0
- package/packages/ui/dist/charts/BarChart.d.ts +23 -0
- package/packages/ui/dist/charts/BarChart.d.ts.map +1 -0
- package/packages/ui/dist/charts/BarChart.js +34 -0
- package/packages/ui/dist/charts/BarChart.js.map +1 -0
- package/packages/ui/dist/charts/LineChart.d.ts +27 -0
- package/packages/ui/dist/charts/LineChart.d.ts.map +1 -0
- package/packages/ui/dist/charts/LineChart.js +35 -0
- package/packages/ui/dist/charts/LineChart.js.map +1 -0
- package/packages/ui/dist/charts/index.d.ts +3 -0
- package/packages/ui/dist/charts/index.d.ts.map +1 -0
- package/packages/ui/dist/charts/index.js +21 -0
- package/packages/ui/dist/charts/index.js.map +1 -0
- package/packages/ui/dist/conditional/If.d.ts +4 -0
- package/packages/ui/dist/conditional/If.d.ts.map +1 -0
- package/packages/ui/dist/conditional/If.js +25 -0
- package/packages/ui/dist/conditional/If.js.map +1 -0
- package/packages/ui/dist/data/List.d.ts +18 -0
- package/packages/ui/dist/data/List.d.ts.map +1 -0
- package/packages/ui/dist/data/List.js +27 -0
- package/packages/ui/dist/data/List.js.map +1 -0
- package/packages/ui/dist/data/Table.d.ts +3 -0
- package/packages/ui/dist/data/Table.d.ts.map +1 -0
- package/packages/ui/dist/data/Table.js +21 -0
- package/packages/ui/dist/data/Table.js.map +1 -0
- package/packages/ui/dist/data/index.d.ts +34 -0
- package/packages/ui/dist/data/index.d.ts.map +1 -0
- package/packages/ui/dist/data/index.js +30 -0
- package/packages/ui/dist/data/index.js.map +1 -0
- package/packages/ui/dist/display/Avatar.d.ts +18 -0
- package/packages/ui/dist/display/Avatar.d.ts.map +1 -0
- package/packages/ui/dist/display/Avatar.js +53 -0
- package/packages/ui/dist/display/Avatar.js.map +1 -0
- package/packages/ui/dist/display/Badge.d.ts +17 -0
- package/packages/ui/dist/display/Badge.d.ts.map +1 -0
- package/packages/ui/dist/display/Badge.js +31 -0
- package/packages/ui/dist/display/Badge.js.map +1 -0
- package/packages/ui/dist/display/Card.d.ts +20 -0
- package/packages/ui/dist/display/Card.d.ts.map +1 -0
- package/packages/ui/dist/display/Card.js +35 -0
- package/packages/ui/dist/display/Card.js.map +1 -0
- package/packages/ui/dist/display/Icon.d.ts +14 -0
- package/packages/ui/dist/display/Icon.d.ts.map +1 -0
- package/packages/ui/dist/display/Icon.js +23 -0
- package/packages/ui/dist/display/Icon.js.map +1 -0
- package/packages/ui/dist/display/Image.d.ts +22 -0
- package/packages/ui/dist/display/Image.d.ts.map +1 -0
- package/packages/ui/dist/display/Image.js +30 -0
- package/packages/ui/dist/display/Image.js.map +1 -0
- package/packages/ui/dist/display/index.d.ts +6 -0
- package/packages/ui/dist/display/index.d.ts.map +1 -0
- package/packages/ui/dist/display/index.js +24 -0
- package/packages/ui/dist/display/index.js.map +1 -0
- package/packages/ui/dist/feedback/EmptyState.d.ts +16 -0
- package/packages/ui/dist/feedback/EmptyState.d.ts.map +1 -0
- package/packages/ui/dist/feedback/EmptyState.js +25 -0
- package/packages/ui/dist/feedback/EmptyState.js.map +1 -0
- package/packages/ui/dist/feedback/Skeleton.d.ts +15 -0
- package/packages/ui/dist/feedback/Skeleton.d.ts.map +1 -0
- package/packages/ui/dist/feedback/Skeleton.js +24 -0
- package/packages/ui/dist/feedback/Skeleton.js.map +1 -0
- package/packages/ui/dist/feedback/Spinner.d.ts +13 -0
- package/packages/ui/dist/feedback/Spinner.d.ts.map +1 -0
- package/packages/ui/dist/feedback/Spinner.js +35 -0
- package/packages/ui/dist/feedback/Spinner.js.map +1 -0
- package/packages/ui/dist/feedback/index.d.ts +4 -0
- package/packages/ui/dist/feedback/index.d.ts.map +1 -0
- package/packages/ui/dist/feedback/index.js +22 -0
- package/packages/ui/dist/feedback/index.js.map +1 -0
- package/packages/ui/dist/index.d.ts +11 -0
- package/packages/ui/dist/index.d.ts.map +1 -0
- package/packages/ui/dist/index.js +40 -0
- package/packages/ui/dist/index.js.map +1 -0
- package/packages/ui/dist/input/Button.d.ts +26 -0
- package/packages/ui/dist/input/Button.d.ts.map +1 -0
- package/packages/ui/dist/input/Button.js +39 -0
- package/packages/ui/dist/input/Button.js.map +1 -0
- package/packages/ui/dist/input/Checkbox.d.ts +16 -0
- package/packages/ui/dist/input/Checkbox.d.ts.map +1 -0
- package/packages/ui/dist/input/Checkbox.js +25 -0
- package/packages/ui/dist/input/Checkbox.js.map +1 -0
- package/packages/ui/dist/input/Dropdown.d.ts +27 -0
- package/packages/ui/dist/input/Dropdown.d.ts.map +1 -0
- package/packages/ui/dist/input/Dropdown.js +30 -0
- package/packages/ui/dist/input/Dropdown.js.map +1 -0
- package/packages/ui/dist/input/Input.d.ts +34 -0
- package/packages/ui/dist/input/Input.d.ts.map +1 -0
- package/packages/ui/dist/input/Input.js +43 -0
- package/packages/ui/dist/input/Input.js.map +1 -0
- package/packages/ui/dist/input/SearchBar.d.ts +20 -0
- package/packages/ui/dist/input/SearchBar.d.ts.map +1 -0
- package/packages/ui/dist/input/SearchBar.js +31 -0
- package/packages/ui/dist/input/SearchBar.js.map +1 -0
- package/packages/ui/dist/input/Slider.d.ts +22 -0
- package/packages/ui/dist/input/Slider.d.ts.map +1 -0
- package/packages/ui/dist/input/Slider.js +32 -0
- package/packages/ui/dist/input/Slider.js.map +1 -0
- package/packages/ui/dist/input/Toggle.d.ts +17 -0
- package/packages/ui/dist/input/Toggle.d.ts.map +1 -0
- package/packages/ui/dist/input/Toggle.js +29 -0
- package/packages/ui/dist/input/Toggle.js.map +1 -0
- package/packages/ui/dist/input/index.d.ts +8 -0
- package/packages/ui/dist/input/index.d.ts.map +1 -0
- package/packages/ui/dist/input/index.js +26 -0
- package/packages/ui/dist/input/index.js.map +1 -0
- package/packages/ui/dist/layout/Box.d.ts +25 -0
- package/packages/ui/dist/layout/Box.d.ts.map +1 -0
- package/packages/ui/dist/layout/Box.js +34 -0
- package/packages/ui/dist/layout/Box.js.map +1 -0
- package/packages/ui/dist/layout/Column.d.ts +30 -0
- package/packages/ui/dist/layout/Column.d.ts.map +1 -0
- package/packages/ui/dist/layout/Column.js +32 -0
- package/packages/ui/dist/layout/Column.js.map +1 -0
- package/packages/ui/dist/layout/Divider.d.ts +14 -0
- package/packages/ui/dist/layout/Divider.d.ts.map +1 -0
- package/packages/ui/dist/layout/Divider.js +23 -0
- package/packages/ui/dist/layout/Divider.js.map +1 -0
- package/packages/ui/dist/layout/Grid.d.ts +17 -0
- package/packages/ui/dist/layout/Grid.d.ts.map +1 -0
- package/packages/ui/dist/layout/Grid.js +26 -0
- package/packages/ui/dist/layout/Grid.js.map +1 -0
- package/packages/ui/dist/layout/Row.d.ts +28 -0
- package/packages/ui/dist/layout/Row.d.ts.map +1 -0
- package/packages/ui/dist/layout/Row.js +29 -0
- package/packages/ui/dist/layout/Row.js.map +1 -0
- package/packages/ui/dist/layout/ScrollView.d.ts +18 -0
- package/packages/ui/dist/layout/ScrollView.d.ts.map +1 -0
- package/packages/ui/dist/layout/ScrollView.js +25 -0
- package/packages/ui/dist/layout/ScrollView.js.map +1 -0
- package/packages/ui/dist/layout/Spacer.d.ts +9 -0
- package/packages/ui/dist/layout/Spacer.d.ts.map +1 -0
- package/packages/ui/dist/layout/Spacer.js +21 -0
- package/packages/ui/dist/layout/Spacer.js.map +1 -0
- package/packages/ui/dist/layout/Stack.d.ts +14 -0
- package/packages/ui/dist/layout/Stack.d.ts.map +1 -0
- package/packages/ui/dist/layout/Stack.js +25 -0
- package/packages/ui/dist/layout/Stack.js.map +1 -0
- package/packages/ui/dist/layout/index.d.ts +9 -0
- package/packages/ui/dist/layout/index.d.ts.map +1 -0
- package/packages/ui/dist/layout/index.js +27 -0
- package/packages/ui/dist/layout/index.js.map +1 -0
- package/packages/ui/dist/navigation/BottomNav.d.ts +23 -0
- package/packages/ui/dist/navigation/BottomNav.d.ts.map +1 -0
- package/packages/ui/dist/navigation/BottomNav.js +25 -0
- package/packages/ui/dist/navigation/BottomNav.js.map +1 -0
- package/packages/ui/dist/navigation/Drawer.d.ts +18 -0
- package/packages/ui/dist/navigation/Drawer.d.ts.map +1 -0
- package/packages/ui/dist/navigation/Drawer.js +29 -0
- package/packages/ui/dist/navigation/Drawer.js.map +1 -0
- package/packages/ui/dist/navigation/TabBar.d.ts +22 -0
- package/packages/ui/dist/navigation/TabBar.d.ts.map +1 -0
- package/packages/ui/dist/navigation/TabBar.js +26 -0
- package/packages/ui/dist/navigation/TabBar.js.map +1 -0
- package/packages/ui/dist/navigation/index.d.ts +4 -0
- package/packages/ui/dist/navigation/index.d.ts.map +1 -0
- package/packages/ui/dist/navigation/index.js +22 -0
- package/packages/ui/dist/navigation/index.js.map +1 -0
- package/packages/ui/dist/overlay/Dialog.d.ts +31 -0
- package/packages/ui/dist/overlay/Dialog.d.ts.map +1 -0
- package/packages/ui/dist/overlay/Dialog.js +81 -0
- package/packages/ui/dist/overlay/Dialog.js.map +1 -0
- package/packages/ui/dist/overlay/Modal.d.ts +19 -0
- package/packages/ui/dist/overlay/Modal.d.ts.map +1 -0
- package/packages/ui/dist/overlay/Modal.js +31 -0
- package/packages/ui/dist/overlay/Modal.js.map +1 -0
- package/packages/ui/dist/overlay/Sheet.d.ts +20 -0
- package/packages/ui/dist/overlay/Sheet.d.ts.map +1 -0
- package/packages/ui/dist/overlay/Sheet.js +31 -0
- package/packages/ui/dist/overlay/Sheet.js.map +1 -0
- package/packages/ui/dist/overlay/index.d.ts +4 -0
- package/packages/ui/dist/overlay/index.d.ts.map +1 -0
- package/packages/ui/dist/overlay/index.js +22 -0
- package/packages/ui/dist/overlay/index.js.map +1 -0
- package/packages/ui/dist/typography/Code.d.ts +18 -0
- package/packages/ui/dist/typography/Code.d.ts.map +1 -0
- package/packages/ui/dist/typography/Code.js +29 -0
- package/packages/ui/dist/typography/Code.js.map +1 -0
- package/packages/ui/dist/typography/Heading.d.ts +14 -0
- package/packages/ui/dist/typography/Heading.d.ts.map +1 -0
- package/packages/ui/dist/typography/Heading.js +39 -0
- package/packages/ui/dist/typography/Heading.js.map +1 -0
- package/packages/ui/dist/typography/Markdown.d.ts +14 -0
- package/packages/ui/dist/typography/Markdown.d.ts.map +1 -0
- package/packages/ui/dist/typography/Markdown.js +27 -0
- package/packages/ui/dist/typography/Markdown.js.map +1 -0
- package/packages/ui/dist/typography/Text.d.ts +25 -0
- package/packages/ui/dist/typography/Text.d.ts.map +1 -0
- package/packages/ui/dist/typography/Text.js +34 -0
- package/packages/ui/dist/typography/Text.js.map +1 -0
- package/packages/ui/dist/typography/index.d.ts +5 -0
- package/packages/ui/dist/typography/index.d.ts.map +1 -0
- package/packages/ui/dist/typography/index.js +23 -0
- package/packages/ui/dist/typography/index.js.map +1 -0
- package/packages/ui/package.json +35 -0
- package/packages/ui/src/charts/BarChart.ts +86 -0
- package/packages/ui/src/charts/LineChart.ts +98 -0
- package/packages/ui/src/charts/index.ts +5 -0
- package/packages/ui/src/conditional/If.ts +30 -0
- package/packages/ui/src/data/List.ts +72 -0
- package/packages/ui/src/data/Table.ts +5 -0
- package/packages/ui/src/data/index.ts +111 -0
- package/packages/ui/src/display/Avatar.ts +93 -0
- package/packages/ui/src/display/Badge.ts +72 -0
- package/packages/ui/src/display/Card.ts +82 -0
- package/packages/ui/src/display/Icon.ts +75 -0
- package/packages/ui/src/display/Image.ts +80 -0
- package/packages/ui/src/display/index.ts +8 -0
- package/packages/ui/src/feedback/EmptyState.ts +56 -0
- package/packages/ui/src/feedback/Skeleton.ts +53 -0
- package/packages/ui/src/feedback/Spinner.ts +61 -0
- package/packages/ui/src/feedback/index.ts +6 -0
- package/packages/ui/src/index.ts +33 -0
- package/packages/ui/src/input/Button.ts +104 -0
- package/packages/ui/src/input/Checkbox.ts +58 -0
- package/packages/ui/src/input/Dropdown.ts +92 -0
- package/packages/ui/src/input/Input.ts +138 -0
- package/packages/ui/src/input/SearchBar.ts +77 -0
- package/packages/ui/src/input/Slider.ts +82 -0
- package/packages/ui/src/input/Toggle.ts +65 -0
- package/packages/ui/src/input/index.ts +10 -0
- package/packages/ui/src/layout/Box.ts +94 -0
- package/packages/ui/src/layout/Column.ts +86 -0
- package/packages/ui/src/layout/Divider.ts +50 -0
- package/packages/ui/src/layout/Grid.ts +62 -0
- package/packages/ui/src/layout/Row.ts +77 -0
- package/packages/ui/src/layout/ScrollView.ts +64 -0
- package/packages/ui/src/layout/Spacer.ts +34 -0
- package/packages/ui/src/layout/Stack.ts +54 -0
- package/packages/ui/src/layout/index.ts +11 -0
- package/packages/ui/src/navigation/BottomNav.ts +73 -0
- package/packages/ui/src/navigation/Drawer.ts +72 -0
- package/packages/ui/src/navigation/TabBar.ts +73 -0
- package/packages/ui/src/navigation/index.ts +6 -0
- package/packages/ui/src/overlay/Dialog.ts +124 -0
- package/packages/ui/src/overlay/Modal.ts +76 -0
- package/packages/ui/src/overlay/Sheet.ts +79 -0
- package/packages/ui/src/overlay/index.ts +6 -0
- package/packages/ui/src/typography/Code.ts +88 -0
- package/packages/ui/src/typography/Heading.ts +70 -0
- package/packages/ui/src/typography/Markdown.ts +56 -0
- package/packages/ui/src/typography/Text.ts +104 -0
- package/packages/ui/src/typography/index.ts +7 -0
- package/packages/ui/tsconfig.json +18 -0
- package/packages/updater/dist/index.d.ts +2 -0
- package/packages/updater/dist/index.d.ts.map +1 -0
- package/packages/updater/dist/index.js +20 -0
- package/packages/updater/dist/index.js.map +1 -0
- package/packages/updater/dist/updater.d.ts +49 -0
- package/packages/updater/dist/updater.d.ts.map +1 -0
- package/packages/updater/dist/updater.js +119 -0
- package/packages/updater/dist/updater.js.map +1 -0
- package/packages/updater/package.json +30 -0
- package/packages/updater/src/index.ts +4 -0
- package/packages/updater/src/updater.ts +254 -0
- package/packages/updater/tsconfig.json +17 -0
- package/prompt-app/addlibrary.ts +7 -0
- package/prompt-app/app.dtx +27 -0
- package/prompt-app/package.json +13 -0
- package/prompt-app/screens/Home.dtx +20 -0
- package/prompt-app/tsconfig.json +8 -0
- package/tools/build/build.js +38 -0
- package/tools/build/publish.js +39 -0
- package/tools/build/test.js +24 -0
- package/ts-app/addlibrary.ts +7 -0
- package/ts-app/app.ts +29 -0
- package/ts-app/package.json +13 -0
- package/ts-app/screens/Home.ts +20 -0
- package/ts-app/tsconfig.json +8 -0
- package/tsconfig.json +13 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// manifest.ts
|
|
3
|
+
// Reads and writes the addlibrary.ts manifest file.
|
|
4
|
+
// addlibrary.ts is the single source of truth for
|
|
5
|
+
// which libraries are installed in a project.
|
|
6
|
+
// It is committed to git — libraries/ folder is not.
|
|
7
|
+
// Works like package.json but for DeskForge libraries.
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.readManifest = readManifest;
|
|
10
|
+
exports.writeManifest = writeManifest;
|
|
11
|
+
exports.addToManifest = addToManifest;
|
|
12
|
+
exports.removeFromManifest = removeFromManifest;
|
|
13
|
+
exports.initManifest = initManifest;
|
|
14
|
+
exports.getManifestPath = getManifestPath;
|
|
15
|
+
const fs = require("fs");
|
|
16
|
+
const path = require("path");
|
|
17
|
+
const installer_1 = require("./installer");
|
|
18
|
+
// Gets the path to addlibrary.ts in the project
|
|
19
|
+
function getManifestPath() {
|
|
20
|
+
return path.join((0, installer_1.findProjectRoot)(), 'addlibrary.ts');
|
|
21
|
+
}
|
|
22
|
+
// Reads all library entries from addlibrary.ts
|
|
23
|
+
// Parses the version comments to extract name and version
|
|
24
|
+
function readManifest() {
|
|
25
|
+
const manifestPath = getManifestPath();
|
|
26
|
+
if (!fs.existsSync(manifestPath)) {
|
|
27
|
+
return [];
|
|
28
|
+
}
|
|
29
|
+
const content = fs.readFileSync(manifestPath, 'utf-8');
|
|
30
|
+
const entries = [];
|
|
31
|
+
// Parse version comment lines
|
|
32
|
+
// Format: // @deskforge charts@1.2.0
|
|
33
|
+
const lines = content.split('\n');
|
|
34
|
+
lines.forEach(line => {
|
|
35
|
+
const match = line.match(/\/\/ @deskforge (\w+)@([\d.]+)/);
|
|
36
|
+
if (match?.[1] && match[2]) {
|
|
37
|
+
entries.push({
|
|
38
|
+
name: match[1],
|
|
39
|
+
version: match[2],
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
return entries;
|
|
44
|
+
}
|
|
45
|
+
// Writes the full addlibrary.ts file from scratch
|
|
46
|
+
// Called after adding or removing a library
|
|
47
|
+
function writeManifest(entries) {
|
|
48
|
+
const manifestPath = getManifestPath();
|
|
49
|
+
// Build file content
|
|
50
|
+
const lines = [
|
|
51
|
+
'// addlibrary.ts',
|
|
52
|
+
'// Managed by dfcli — do not edit manually',
|
|
53
|
+
'// To add: dfcli lib add <name>',
|
|
54
|
+
'// To remove: dfcli lib remove <name>',
|
|
55
|
+
'// To restore: dfcli lib restore',
|
|
56
|
+
'',
|
|
57
|
+
];
|
|
58
|
+
if (entries.length === 0) {
|
|
59
|
+
lines.push('// No libraries installed yet');
|
|
60
|
+
lines.push('// Run: dfcli lib add <name>');
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
// Add version comment for each library
|
|
64
|
+
entries.forEach(entry => {
|
|
65
|
+
lines.push(`// @deskforge ${entry.name}@${entry.version}`);
|
|
66
|
+
});
|
|
67
|
+
lines.push('');
|
|
68
|
+
// Add export for each library
|
|
69
|
+
entries.forEach(entry => {
|
|
70
|
+
lines.push(`export * from './libraries/${entry.name}'`);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
lines.push('');
|
|
74
|
+
fs.writeFileSync(manifestPath, lines.join('\n'));
|
|
75
|
+
console.log('[dfcli] Updated addlibrary.ts with', entries.length, 'libraries');
|
|
76
|
+
}
|
|
77
|
+
// Adds a library to the manifest
|
|
78
|
+
function addToManifest(name, version) {
|
|
79
|
+
const entries = readManifest();
|
|
80
|
+
// Remove if already exists
|
|
81
|
+
const filtered = entries.filter(e => e.name !== name);
|
|
82
|
+
// Add new entry
|
|
83
|
+
filtered.push({ name, version });
|
|
84
|
+
writeManifest(filtered);
|
|
85
|
+
}
|
|
86
|
+
// Removes a library from the manifest
|
|
87
|
+
function removeFromManifest(name) {
|
|
88
|
+
const entries = readManifest();
|
|
89
|
+
const filtered = entries.filter(e => e.name !== name);
|
|
90
|
+
writeManifest(filtered);
|
|
91
|
+
}
|
|
92
|
+
// Creates addlibrary.ts if it does not exist
|
|
93
|
+
function initManifest() {
|
|
94
|
+
const manifestPath = getManifestPath();
|
|
95
|
+
if (!fs.existsSync(manifestPath)) {
|
|
96
|
+
writeManifest([]);
|
|
97
|
+
console.log('[dfcli] Created addlibrary.ts');
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../src/registry/manifest.ts"],"names":[],"mappings":";AAAA,cAAc;AACd,oDAAoD;AACpD,kDAAkD;AAClD,8CAA8C;AAC9C,qDAAqD;AACrD,uDAAuD;;AAqIrD,oCAAY;AACZ,sCAAa;AACb,sCAAa;AACb,gDAAkB;AAClB,oCAAY;AACZ,0CAAe;AAxIjB,yBAA0B;AAC1B,6BAA4B;AAC5B,2CAA6C;AAW7C,gDAAgD;AAChD,SAAS,eAAe;IACtB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAA,2BAAe,GAAE,EAAE,eAAe,CAAC,CAAA;AACtD,CAAC;AAED,+CAA+C;AAC/C,0DAA0D;AAC1D,SAAS,YAAY;IACnB,MAAM,YAAY,GAAG,eAAe,EAAE,CAAA;IAEtC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;QACjC,OAAO,EAAE,CAAA;IACX,CAAC;IAED,MAAM,OAAO,GAAI,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA;IACvD,MAAM,OAAO,GAAoB,EAAE,CAAA;IAEnC,8BAA8B;IAC9B,qCAAqC;IACrC,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IAEjC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACnB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CACtB,gCAAgC,CACjC,CAAA;QAED,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;YAC3B,OAAO,CAAC,IAAI,CAAC;gBACX,IAAI,EAAK,KAAK,CAAC,CAAC,CAAC;gBACjB,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;aAClB,CAAC,CAAA;QACJ,CAAC;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,OAAO,CAAA;AAChB,CAAC;AAED,kDAAkD;AAClD,4CAA4C;AAC5C,SAAS,aAAa,CAAC,OAAwB;IAC7C,MAAM,YAAY,GAAG,eAAe,EAAE,CAAA;IAEtC,qBAAqB;IACrB,MAAM,KAAK,GAAa;QACtB,kBAAkB;QAClB,4CAA4C;QAC5C,oCAAoC;QACpC,uCAAuC;QACvC,kCAAkC;QAClC,EAAE;KACH,CAAA;IAED,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,KAAK,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAA;QAC3C,KAAK,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAA;IAC5C,CAAC;SAAM,CAAC;QACN,uCAAuC;QACvC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACtB,KAAK,CAAC,IAAI,CACR,iBAAiB,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,OAAO,EAAE,CAC/C,CAAA;QACH,CAAC,CAAC,CAAA;QAEF,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAEd,8BAA8B;QAC9B,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACtB,KAAK,CAAC,IAAI,CACR,8BAA8B,KAAK,CAAC,IAAI,GAAG,CAC5C,CAAA;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAEd,EAAE,CAAC,aAAa,CAAC,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IAEhD,OAAO,CAAC,GAAG,CACT,oCAAoC,EACpC,OAAO,CAAC,MAAM,EAAE,WAAW,CAC5B,CAAA;AACH,CAAC;AAED,iCAAiC;AACjC,SAAS,aAAa,CACpB,IAAe,EACf,OAAe;IAEf,MAAM,OAAO,GAAG,YAAY,EAAE,CAAA;IAE9B,2BAA2B;IAC3B,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAA;IAErD,gBAAgB;IAChB,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAA;IAEhC,aAAa,CAAC,QAAQ,CAAC,CAAA;AACzB,CAAC;AAED,sCAAsC;AACtC,SAAS,kBAAkB,CAAC,IAAY;IACtC,MAAM,OAAO,GAAG,YAAY,EAAE,CAAA;IAC9B,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAA;IACrD,aAAa,CAAC,QAAQ,CAAC,CAAA;AACzB,CAAC;AAED,6CAA6C;AAC7C,SAAS,YAAY;IACnB,MAAM,YAAY,GAAG,eAAe,EAAE,CAAA;IAEtC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;QACjC,aAAa,CAAC,EAAE,CAAC,CAAA;QACjB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAA;IAC9C,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@deskforge/cli",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "DeskForge CLI — dfcli command line tool",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"bin": {
|
|
8
|
+
"dfcli": "dist/index.js",
|
|
9
|
+
"create-deskforge-app": "dist/index.js",
|
|
10
|
+
"dforge": "dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"check": "tsc --noEmit",
|
|
15
|
+
"prepare": "npm run build"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/node": "^25.9.3",
|
|
19
|
+
"typescript": "^5.0.0"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "https://github.com/deskforge/deskforge.git"
|
|
31
|
+
},
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/deskforge/deskforge/issues"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://github.com/deskforge/deskforge#readme"
|
|
36
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
// build.ts
|
|
2
|
+
// dfcli build
|
|
3
|
+
// Builds the DeskForge app for production.
|
|
4
|
+
// Compiles TypeScript, bundles only used packages,
|
|
5
|
+
// and produces a native binary for each platform.
|
|
6
|
+
// Output is in the dist/ folder.
|
|
7
|
+
|
|
8
|
+
import * as fs from 'fs'
|
|
9
|
+
import * as path from 'path'
|
|
10
|
+
import { findEntryFile } from './start'
|
|
11
|
+
|
|
12
|
+
// Supported target platforms
|
|
13
|
+
type BuildPlatform =
|
|
14
|
+
| 'windows'
|
|
15
|
+
| 'mac'
|
|
16
|
+
| 'linux'
|
|
17
|
+
| 'ios'
|
|
18
|
+
| 'android'
|
|
19
|
+
| 'all'
|
|
20
|
+
|
|
21
|
+
// Build configuration
|
|
22
|
+
interface BuildConfig {
|
|
23
|
+
// Target platform
|
|
24
|
+
platform: BuildPlatform
|
|
25
|
+
|
|
26
|
+
// Build mode
|
|
27
|
+
mode: 'release' | 'debug'
|
|
28
|
+
|
|
29
|
+
// Output directory
|
|
30
|
+
outDir: string
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Result of a build
|
|
34
|
+
interface BuildResult {
|
|
35
|
+
success: boolean
|
|
36
|
+
platform: BuildPlatform
|
|
37
|
+
output: string[]
|
|
38
|
+
error?: string
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Builds the app for a specific platform
|
|
42
|
+
async function buildPlatform(
|
|
43
|
+
platform: Exclude<BuildPlatform, 'all'>,
|
|
44
|
+
config: BuildConfig
|
|
45
|
+
): Promise<BuildResult> {
|
|
46
|
+
console.log(`[dfcli] Building for ${platform}...`)
|
|
47
|
+
|
|
48
|
+
const outputPath = path.join(
|
|
49
|
+
process.cwd(),
|
|
50
|
+
config.outDir,
|
|
51
|
+
platform
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
// Create output directory
|
|
55
|
+
fs.mkdirSync(outputPath, { recursive: true })
|
|
56
|
+
|
|
57
|
+
// In production this:
|
|
58
|
+
// 1. Compiles .ts files with TypeScript
|
|
59
|
+
// 2. Bundles only imported packages
|
|
60
|
+
// 3. Runs dead code elimination
|
|
61
|
+
// 4. Compiles C++ layout engine for target platform
|
|
62
|
+
// 5. Bundles Skia for target GPU backend
|
|
63
|
+
// 6. Produces final binary
|
|
64
|
+
|
|
65
|
+
console.log(
|
|
66
|
+
`[dfcli] ✓ ${platform} build complete →`,
|
|
67
|
+
outputPath
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
return {
|
|
71
|
+
success: true,
|
|
72
|
+
platform,
|
|
73
|
+
output: [outputPath],
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Main build command
|
|
78
|
+
async function build(
|
|
79
|
+
config: Partial<BuildConfig> = {}
|
|
80
|
+
): Promise<void> {
|
|
81
|
+
const finalConfig: BuildConfig = {
|
|
82
|
+
platform: config.platform ?? 'all',
|
|
83
|
+
mode: config.mode ?? 'release',
|
|
84
|
+
outDir: config.outDir ?? 'dist',
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
console.log('\n[dfcli] Building DeskForge app...\n')
|
|
88
|
+
|
|
89
|
+
// Find entry file
|
|
90
|
+
const entryFile = findEntryFile()
|
|
91
|
+
|
|
92
|
+
if (!entryFile) {
|
|
93
|
+
console.error('[dfcli] ✗ No app.ts found')
|
|
94
|
+
process.exit(1)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
console.log(`[dfcli] Entry: ${entryFile}`)
|
|
98
|
+
console.log(`[dfcli] Mode: ${finalConfig.mode}`)
|
|
99
|
+
console.log(`[dfcli] Platform: ${finalConfig.platform}`)
|
|
100
|
+
console.log(`[dfcli] Output: ${finalConfig.outDir}/\n`)
|
|
101
|
+
|
|
102
|
+
// Determine which platforms to build
|
|
103
|
+
const platforms: Exclude<BuildPlatform, 'all'>[] =
|
|
104
|
+
finalConfig.platform === 'all'
|
|
105
|
+
? ['windows', 'mac', 'linux', 'ios', 'android']
|
|
106
|
+
: [finalConfig.platform as Exclude<BuildPlatform, 'all'>]
|
|
107
|
+
|
|
108
|
+
let success = 0
|
|
109
|
+
let failed = 0
|
|
110
|
+
|
|
111
|
+
// Build each platform
|
|
112
|
+
for (const platform of platforms) {
|
|
113
|
+
const result = await buildPlatform(platform, finalConfig)
|
|
114
|
+
|
|
115
|
+
if (result.success) {
|
|
116
|
+
success++
|
|
117
|
+
} else {
|
|
118
|
+
console.error(
|
|
119
|
+
`[dfcli] ✗ ${platform} build failed:`,
|
|
120
|
+
result.error
|
|
121
|
+
)
|
|
122
|
+
failed++
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
console.log(`
|
|
127
|
+
[dfcli] Build complete:
|
|
128
|
+
✓ ${success} platforms built
|
|
129
|
+
✗ ${failed} failed
|
|
130
|
+
|
|
131
|
+
Output: ./${finalConfig.outDir}/
|
|
132
|
+
`)
|
|
133
|
+
|
|
134
|
+
if (failed > 0) process.exit(1)
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export type { BuildPlatform, BuildConfig, BuildResult }
|
|
138
|
+
export { build, buildPlatform }
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
// create.ts
|
|
2
|
+
// dfcli create <name>
|
|
3
|
+
// Scaffolds a new DeskForge project from scratch.
|
|
4
|
+
// Creates all folders, config files, and starter code.
|
|
5
|
+
// Developer is coding in under 2 minutes.
|
|
6
|
+
|
|
7
|
+
import * as fs from 'fs'
|
|
8
|
+
import * as path from 'path'
|
|
9
|
+
import * as readline from 'readline'
|
|
10
|
+
|
|
11
|
+
// Project configuration collected from developer
|
|
12
|
+
interface CreateConfig {
|
|
13
|
+
// Project name
|
|
14
|
+
name: string
|
|
15
|
+
|
|
16
|
+
// Target platforms
|
|
17
|
+
platforms?: ('desktop' | 'mobile')[]
|
|
18
|
+
|
|
19
|
+
// Target operating systems
|
|
20
|
+
os?: ('windows' | 'macos' | 'linux' | 'ios' | 'android')[]
|
|
21
|
+
|
|
22
|
+
// Whether to use TypeScript
|
|
23
|
+
typescript?: boolean
|
|
24
|
+
|
|
25
|
+
// Project description
|
|
26
|
+
description?: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function askQuestion(rl: readline.Interface, question: string): Promise<string> {
|
|
30
|
+
return new Promise(resolve => {
|
|
31
|
+
rl.question(question, answer => resolve(answer.trim()))
|
|
32
|
+
})
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function findRepoRoot(startDir: string): string | null {
|
|
36
|
+
let dir = startDir
|
|
37
|
+
while (true) {
|
|
38
|
+
const manifest = path.join(dir, 'package.json')
|
|
39
|
+
if (fs.existsSync(manifest)) {
|
|
40
|
+
try {
|
|
41
|
+
const content = JSON.parse(fs.readFileSync(manifest, 'utf8'))
|
|
42
|
+
if (content && content.name === 'deskforge') {
|
|
43
|
+
return dir
|
|
44
|
+
}
|
|
45
|
+
} catch {
|
|
46
|
+
// ignore invalid package.json
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const parent = path.dirname(dir)
|
|
50
|
+
if (parent === dir) return null
|
|
51
|
+
dir = parent
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function resolveDeskforgeDependency(projectPath: string): string {
|
|
56
|
+
const repoRoot = findRepoRoot(process.cwd())
|
|
57
|
+
if (!repoRoot) return '^1.0.0'
|
|
58
|
+
|
|
59
|
+
const relPath = path.relative(projectPath, repoRoot) || '.'
|
|
60
|
+
return `file:${relPath}`
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
async function promptForCreateConfig(name: string): Promise<CreateConfig> {
|
|
64
|
+
const rl = process.stdin.isTTY
|
|
65
|
+
? readline.createInterface({
|
|
66
|
+
input: process.stdin,
|
|
67
|
+
output: process.stdout,
|
|
68
|
+
})
|
|
69
|
+
: null
|
|
70
|
+
|
|
71
|
+
const pendingLines: string[] = []
|
|
72
|
+
let ended = false
|
|
73
|
+
if (!process.stdin.isTTY) {
|
|
74
|
+
process.stdin.setEncoding('utf8')
|
|
75
|
+
process.stdin.on('data', (chunk: string | Buffer) => {
|
|
76
|
+
const lines = chunk.toString().split(/\r?\n/)
|
|
77
|
+
for (const line of lines) {
|
|
78
|
+
if (line.length > 0) pendingLines.push(line)
|
|
79
|
+
}
|
|
80
|
+
})
|
|
81
|
+
process.stdin.on('end', () => {
|
|
82
|
+
ended = true
|
|
83
|
+
})
|
|
84
|
+
process.stdin.resume()
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const readLine = async (): Promise<string> => {
|
|
88
|
+
if (pendingLines.length > 0) {
|
|
89
|
+
return pendingLines.shift() as string
|
|
90
|
+
}
|
|
91
|
+
if (ended) {
|
|
92
|
+
return ''
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
await new Promise(resolve => setTimeout(resolve, 10))
|
|
96
|
+
return readLine()
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
try {
|
|
100
|
+
const platformAnswer = rl
|
|
101
|
+
? await askQuestion(rl, 'Platform [desktop/mobile]: ')
|
|
102
|
+
: await (async () => {
|
|
103
|
+
process.stdout.write('Platform [desktop/mobile]: ')
|
|
104
|
+
return readLine()
|
|
105
|
+
})()
|
|
106
|
+
const platform = platformAnswer.toLowerCase() === 'mobile' ? 'mobile' : 'desktop'
|
|
107
|
+
|
|
108
|
+
const osPrompt = platform === 'mobile'
|
|
109
|
+
? 'Operating system [ios/android]: '
|
|
110
|
+
: 'Operating system [windows/macos/linux]: '
|
|
111
|
+
const osAnswer = rl
|
|
112
|
+
? await askQuestion(rl, osPrompt)
|
|
113
|
+
: await (async () => {
|
|
114
|
+
process.stdout.write(osPrompt)
|
|
115
|
+
return readLine()
|
|
116
|
+
})()
|
|
117
|
+
const os = osAnswer
|
|
118
|
+
? osAnswer.toLowerCase().split(/[,/\s]+/).filter(Boolean) as CreateConfig['os']
|
|
119
|
+
: platform === 'mobile' ? ['ios', 'android'] : ['windows', 'macos', 'linux']
|
|
120
|
+
|
|
121
|
+
const resolvedOs = os as CreateConfig['os']
|
|
122
|
+
return {
|
|
123
|
+
name,
|
|
124
|
+
platforms: [platform],
|
|
125
|
+
os: resolvedOs ?? (platform === 'mobile' ? ['ios', 'android'] : ['windows', 'macos', 'linux']),
|
|
126
|
+
typescript: true,
|
|
127
|
+
}
|
|
128
|
+
} finally {
|
|
129
|
+
rl?.close()
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Creates a new DeskForge project
|
|
134
|
+
async function create(config: CreateConfig): Promise<CreateConfig> {
|
|
135
|
+
const resolvedConfig = config.platforms?.length
|
|
136
|
+
? config
|
|
137
|
+
: await promptForCreateConfig(config.name)
|
|
138
|
+
|
|
139
|
+
const projectPath = path.join(process.cwd(), resolvedConfig.name)
|
|
140
|
+
const ext = 'ts'
|
|
141
|
+
|
|
142
|
+
console.log(`\n[dfcli] Creating project: ${resolvedConfig.name}\n`)
|
|
143
|
+
|
|
144
|
+
// Step 1 — create project directory
|
|
145
|
+
if (fs.existsSync(projectPath)) {
|
|
146
|
+
console.error(
|
|
147
|
+
`[dfcli] ✗ Directory "${resolvedConfig.name}" already exists`
|
|
148
|
+
)
|
|
149
|
+
process.exit(1)
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// Create folder structure
|
|
153
|
+
const folders = [
|
|
154
|
+
'',
|
|
155
|
+
'screens',
|
|
156
|
+
'components',
|
|
157
|
+
'state',
|
|
158
|
+
'hooks',
|
|
159
|
+
'assets',
|
|
160
|
+
'libraries',
|
|
161
|
+
]
|
|
162
|
+
|
|
163
|
+
folders.forEach(folder => {
|
|
164
|
+
fs.mkdirSync(
|
|
165
|
+
path.join(projectPath, folder),
|
|
166
|
+
{ recursive: true }
|
|
167
|
+
)
|
|
168
|
+
})
|
|
169
|
+
|
|
170
|
+
console.log('[dfcli] ✓ Created project folders')
|
|
171
|
+
|
|
172
|
+
// Step 2 — create package.json
|
|
173
|
+
const packageJson = {
|
|
174
|
+
name: resolvedConfig.name,
|
|
175
|
+
version: '1.0.0',
|
|
176
|
+
description: resolvedConfig.description ?? '',
|
|
177
|
+
main: `app.${ext}`,
|
|
178
|
+
scripts: {
|
|
179
|
+
start: 'dfcli start',
|
|
180
|
+
build: 'dfcli build',
|
|
181
|
+
},
|
|
182
|
+
dependencies: {
|
|
183
|
+
deskforge: resolveDeskforgeDependency(projectPath),
|
|
184
|
+
},
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
fs.writeFileSync(
|
|
188
|
+
path.join(projectPath, 'package.json'),
|
|
189
|
+
JSON.stringify(packageJson, null, 2)
|
|
190
|
+
)
|
|
191
|
+
|
|
192
|
+
console.log('[dfcli] ✓ Created package.json')
|
|
193
|
+
|
|
194
|
+
// Step 3 — create tsconfig if TypeScript
|
|
195
|
+
if (resolvedConfig.typescript) {
|
|
196
|
+
const tsconfig = {
|
|
197
|
+
compilerOptions: {
|
|
198
|
+
target: 'ES2020',
|
|
199
|
+
module: 'CommonJS',
|
|
200
|
+
strict: true,
|
|
201
|
+
skipLibCheck: true,
|
|
202
|
+
},
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
fs.writeFileSync(
|
|
206
|
+
path.join(projectPath, 'tsconfig.json'),
|
|
207
|
+
JSON.stringify(tsconfig, null, 2)
|
|
208
|
+
)
|
|
209
|
+
|
|
210
|
+
console.log('[dfcli] ✓ Created tsconfig.json')
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// Step 4 — create addlibrary.ts
|
|
214
|
+
const addLibrary = [
|
|
215
|
+
'// addlibrary.ts',
|
|
216
|
+
'// Managed by dfcli — do not edit manually',
|
|
217
|
+
'// To add: dfcli lib add <name>',
|
|
218
|
+
'// To remove: dfcli lib remove <name>',
|
|
219
|
+
'',
|
|
220
|
+
'// No libraries installed yet',
|
|
221
|
+
'// Run: dfcli lib add <name>',
|
|
222
|
+
'',
|
|
223
|
+
].join('\n')
|
|
224
|
+
|
|
225
|
+
fs.writeFileSync(
|
|
226
|
+
path.join(projectPath, 'addlibrary.ts'),
|
|
227
|
+
addLibrary
|
|
228
|
+
)
|
|
229
|
+
|
|
230
|
+
console.log('[dfcli] ✓ Created addlibrary.ts')
|
|
231
|
+
|
|
232
|
+
// Step 5 — create .gitignore
|
|
233
|
+
const gitignore = [
|
|
234
|
+
'node_modules/',
|
|
235
|
+
'libraries/',
|
|
236
|
+
'dist/',
|
|
237
|
+
'.env',
|
|
238
|
+
'*.log',
|
|
239
|
+
'',
|
|
240
|
+
].join('\n')
|
|
241
|
+
|
|
242
|
+
fs.writeFileSync(
|
|
243
|
+
path.join(projectPath, '.gitignore'),
|
|
244
|
+
gitignore
|
|
245
|
+
)
|
|
246
|
+
|
|
247
|
+
console.log('[dfcli] ✓ Created .gitignore')
|
|
248
|
+
|
|
249
|
+
// Step 6 — create app entry file
|
|
250
|
+
const platforms = resolvedConfig.platforms ?? ['desktop']
|
|
251
|
+
const platformConfig = platforms
|
|
252
|
+
.map(p => `'${p}'`)
|
|
253
|
+
.join(', ')
|
|
254
|
+
const osConfig = (resolvedConfig.os ?? [])
|
|
255
|
+
.map(os => `'${os}'`)
|
|
256
|
+
.join(', ')
|
|
257
|
+
|
|
258
|
+
const appFile = [
|
|
259
|
+
`// app.${ext}`,
|
|
260
|
+
`// Entry point for ${resolvedConfig.name}`,
|
|
261
|
+
`// Platform: ${platforms.join(', ')}`,
|
|
262
|
+
'',
|
|
263
|
+
`import { App, Window, Screen, Column, Text, Button }`,
|
|
264
|
+
` from 'deskforge'`,
|
|
265
|
+
'',
|
|
266
|
+
`App({`,
|
|
267
|
+
` name: '${resolvedConfig.name}',`,
|
|
268
|
+
` version: '1.0.0',`,
|
|
269
|
+
` theme: 'system',`,
|
|
270
|
+
` platforms: [${platformConfig}],`,
|
|
271
|
+
` os: [${osConfig || "'desktop'"}],`,
|
|
272
|
+
'',
|
|
273
|
+
platforms.includes('desktop')
|
|
274
|
+
? [
|
|
275
|
+
` desktop: Window({`,
|
|
276
|
+
` title: '${resolvedConfig.name}',`,
|
|
277
|
+
` size: [1024, 768],`,
|
|
278
|
+
` resizable: true,`,
|
|
279
|
+
` body: Column([`,
|
|
280
|
+
` Text('Welcome to ${resolvedConfig.name}', {`,
|
|
281
|
+
` style: 'heading'`,
|
|
282
|
+
` }),`,
|
|
283
|
+
` Button('Get Started', {`,
|
|
284
|
+
` onClick: () => console.log('Hello!')`,
|
|
285
|
+
` }),`,
|
|
286
|
+
` ], { padding: 24, gap: 16 })`,
|
|
287
|
+
` }),`,
|
|
288
|
+
].join('\n')
|
|
289
|
+
: '',
|
|
290
|
+
|
|
291
|
+
platforms.includes('mobile')
|
|
292
|
+
? [
|
|
293
|
+
` mobile: Screen({`,
|
|
294
|
+
` orientation: 'portrait',`,
|
|
295
|
+
` body: Column([`,
|
|
296
|
+
` Text('Welcome to ${resolvedConfig.name}', {`,
|
|
297
|
+
` style: 'heading'`,
|
|
298
|
+
` }),`,
|
|
299
|
+
` Button('Get Started', {`,
|
|
300
|
+
` onClick: () => console.log('Hello!')`,
|
|
301
|
+
` }),`,
|
|
302
|
+
` ], { padding: 24, gap: 16 })`,
|
|
303
|
+
` }),`,
|
|
304
|
+
].join('\n')
|
|
305
|
+
: '',
|
|
306
|
+
|
|
307
|
+
`})`,
|
|
308
|
+
'',
|
|
309
|
+
].join('\n')
|
|
310
|
+
|
|
311
|
+
fs.writeFileSync(
|
|
312
|
+
path.join(projectPath, `app.${ext}`),
|
|
313
|
+
appFile
|
|
314
|
+
)
|
|
315
|
+
|
|
316
|
+
console.log(`[dfcli] ✓ Created app.${ext}`)
|
|
317
|
+
|
|
318
|
+
// Step 7 — create Home screen
|
|
319
|
+
const homeScreen = [
|
|
320
|
+
`// screens/Home.${ext}`,
|
|
321
|
+
`// Home screen component`,
|
|
322
|
+
'',
|
|
323
|
+
`import { Component, Column, Text, Button }`,
|
|
324
|
+
` from 'deskforge'`,
|
|
325
|
+
`import { State } from 'deskforge/state'`,
|
|
326
|
+
'',
|
|
327
|
+
`const HomeScreen = Component(() => {`,
|
|
328
|
+
` const state = State({ count: 0 })`,
|
|
329
|
+
'',
|
|
330
|
+
` return Column([`,
|
|
331
|
+
` Text('Home', { style: 'heading' }),`,
|
|
332
|
+
` Text(\`Count: \${state.count}\`),`,
|
|
333
|
+
` Button('Increment', {`,
|
|
334
|
+
` onClick: () => state.count++`,
|
|
335
|
+
` }),`,
|
|
336
|
+
` ], { padding: 24, gap: 16 })`,
|
|
337
|
+
`})`,
|
|
338
|
+
'',
|
|
339
|
+
`export default HomeScreen`,
|
|
340
|
+
'',
|
|
341
|
+
].join('\n')
|
|
342
|
+
|
|
343
|
+
fs.writeFileSync(
|
|
344
|
+
path.join(projectPath, 'screens', `Home.${ext}`),
|
|
345
|
+
homeScreen
|
|
346
|
+
)
|
|
347
|
+
|
|
348
|
+
console.log(`[dfcli] ✓ Created screens/Home.${ext}`)
|
|
349
|
+
|
|
350
|
+
// Done
|
|
351
|
+
console.log(`
|
|
352
|
+
[dfcli] ✓ Project created successfully!
|
|
353
|
+
|
|
354
|
+
Next steps:
|
|
355
|
+
cd ${resolvedConfig.name}
|
|
356
|
+
npm install
|
|
357
|
+
dfcli start
|
|
358
|
+
`)
|
|
359
|
+
return resolvedConfig
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
export type { CreateConfig }
|
|
363
|
+
export { create }
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// add.ts
|
|
2
|
+
// dfcli lib add <name>
|
|
3
|
+
// Downloads a library from the registry and installs it.
|
|
4
|
+
// Updates addlibrary.ts with the new library.
|
|
5
|
+
// Developer can immediately import after install.
|
|
6
|
+
|
|
7
|
+
import { install } from '../../registry/installer'
|
|
8
|
+
import { addToManifest } from '../../registry/manifest'
|
|
9
|
+
import { fetchLibraryInfo } from '../../registry/client'
|
|
10
|
+
|
|
11
|
+
// Runs the lib add command
|
|
12
|
+
// name — library name to install e.g. 'charts'
|
|
13
|
+
async function libAdd(name: string): Promise<void> {
|
|
14
|
+
console.log(`\n[dfcli] Adding library: ${name}\n`)
|
|
15
|
+
|
|
16
|
+
// Step 1 — check library exists in registry
|
|
17
|
+
const info = await fetchLibraryInfo(name)
|
|
18
|
+
|
|
19
|
+
if (!info) {
|
|
20
|
+
console.error(
|
|
21
|
+
`[dfcli] ✗ Library "${name}" not found in registry`
|
|
22
|
+
)
|
|
23
|
+
console.log(
|
|
24
|
+
`[dfcli] Try: dfcli lib search ${name}`
|
|
25
|
+
)
|
|
26
|
+
process.exit(1)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
console.log(
|
|
30
|
+
`[dfcli] Found: ${info!.name}@${info!.version}`,
|
|
31
|
+
`(${Math.round(info!.size / 1024)}KB)`
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
// Step 2 — install the library
|
|
35
|
+
const result = await install(name)
|
|
36
|
+
|
|
37
|
+
if (!result.success) {
|
|
38
|
+
console.error(
|
|
39
|
+
`[dfcli] ✗ Failed to install ${name}:`,
|
|
40
|
+
result.error
|
|
41
|
+
)
|
|
42
|
+
process.exit(1)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Step 3 — update addlibrary.ts
|
|
46
|
+
addToManifest(name, result.version)
|
|
47
|
+
|
|
48
|
+
console.log(`
|
|
49
|
+
[dfcli] ✓ ${name}@${result.version} installed
|
|
50
|
+
|
|
51
|
+
Import it in your app:
|
|
52
|
+
import { ... } from './addlibrary'
|
|
53
|
+
`)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { libAdd }
|