@pikku/cli 0.12.35 → 0.12.36
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/cli.schema.json +1 -1
- package/console-app/assets/{index-BOM3RFeu.js → index-Dxl3JsMK.js} +73 -73
- package/console-app/index.html +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-channel.js +6 -1
- package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +6 -0
- package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli.gen.js +1 -1
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +2 -2
- package/dist/.pikku/function/pikku-function-types.gen.js +17 -3
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +140 -123
- package/dist/.pikku/function/pikku-functions.gen.js +3 -1
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
- package/dist/.pikku/http/pikku-http-wirings-meta.gen.js +1 -1
- package/dist/.pikku/http/pikku-http-wirings.gen.d.ts +1 -1
- package/dist/.pikku/http/pikku-http-wirings.gen.js +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
- package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/pikku-services.gen.d.ts +1 -1
- package/dist/.pikku/pikku-types.gen.d.ts +1 -1
- package/dist/.pikku/pikku-types.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +3 -2
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
- package/dist/.pikku/schemas/register.gen.js +11 -7
- package/dist/.pikku/schemas/schemas/DbGenerateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuFunctionTypesInput.schema.json +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
- package/dist/.pikku/workflow/meta/allWorkflow.gen.json +22 -4
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/bin/pikku-bin.mjs +2 -2
- package/dist/src/cli.wiring.js +5 -0
- package/dist/src/fabric/functions/login.function.d.ts +1 -1
- package/dist/src/fabric/functions/login.function.js +1 -1
- package/dist/src/functions/commands/bootstrap.js +1 -1
- package/dist/src/functions/commands/db-generate.d.ts +1 -0
- package/dist/src/functions/commands/db-generate.js +45 -0
- package/dist/src/functions/commands/db-migrate.js +13 -1
- package/dist/src/functions/db/better-auth-schema.d.ts +23 -0
- package/dist/src/functions/db/better-auth-schema.js +122 -0
- package/dist/src/functions/db/local-db.d.ts +33 -0
- package/dist/src/functions/db/local-db.js +125 -1
- package/dist/src/functions/db/zod-codegen.js +9 -6
- package/dist/src/functions/validate/workspace-validate.js +1 -1
- package/dist/src/functions/wirings/auth/pikku-command-auth.js +30 -4
- package/dist/src/functions/wirings/auth/serialize-auth-gen.d.ts +33 -1
- package/dist/src/functions/wirings/auth/serialize-auth-gen.js +122 -88
- package/dist/src/functions/wirings/auth/serialize-auth-meta.d.ts +32 -0
- package/dist/src/functions/wirings/auth/serialize-auth-meta.js +23 -0
- package/dist/src/functions/wirings/auth/serialize-auth-types.d.ts +27 -0
- package/dist/src/functions/wirings/auth/serialize-auth-types.js +58 -0
- package/dist/src/functions/wirings/functions/pikku-command-function-types.d.ts +7 -1
- package/dist/src/functions/wirings/functions/pikku-command-function-types.js +16 -3
- package/dist/src/functions/wirings/functions/pikku-command-services.d.ts +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-services.js +9 -2
- package/dist/src/functions/wirings/functions/serialize-function-types.js +17 -3
- package/dist/src/functions/wirings/functions/serialize-pikku-types-hub.d.ts +1 -1
- package/dist/src/functions/wirings/functions/serialize-pikku-types-hub.js +2 -1
- package/dist/src/functions/workflows/all.workflow.js +16 -2
- package/dist/src/scaffold/rpc-remote.gen.js +1 -1
- package/dist/src/services.js +8 -0
- package/dist/src/utils/pikku-cli-config.js +12 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
- package/skills/pikku-better-auth/SKILL.md +211 -0
- package/skills/pikku-auth-js/SKILL.md +0 -339
package/console-app/index.html
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
} catch (e) {}
|
|
23
23
|
</script>
|
|
24
|
-
<script type="module" crossorigin src="/assets/index-
|
|
24
|
+
<script type="module" crossorigin src="/assets/index-Dxl3JsMK.js"></script>
|
|
25
25
|
<link rel="stylesheet" crossorigin href="/assets/index-DwUzVI5k.css">
|
|
26
26
|
</head>
|
|
27
27
|
<body>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.36
|
|
3
3
|
*/
|
|
4
4
|
import { CoreAIAgent, PikkuAIMiddlewareHooks } from '@pikku/core/ai-agent';
|
|
5
5
|
import type { PikkuPermission, PikkuMiddleware, Services, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.36
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* WebSocket channel backend for 'pikku' CLI commands
|
|
@@ -18,6 +18,7 @@ import { pikkuSchemas } from '../../src/functions/wirings/functions/schemas.js';
|
|
|
18
18
|
import { pikkuEmailsInit } from '../../src/functions/commands/emails-init.js';
|
|
19
19
|
import { pikkuEmails } from '../../src/functions/wirings/emails/pikku-command-emails.js';
|
|
20
20
|
import { dbMigrate } from '../../src/functions/commands/db-migrate.js';
|
|
21
|
+
import { dbGenerate } from '../../src/functions/commands/db-generate.js';
|
|
21
22
|
import { dbSeed } from '../../src/functions/commands/db-seed.js';
|
|
22
23
|
import { dbReset } from '../../src/functions/commands/db-reset.js';
|
|
23
24
|
import { dbAudit } from '../../src/functions/commands/db-audit.js';
|
|
@@ -188,6 +189,10 @@ wireChannel({
|
|
|
188
189
|
func: dbMigrate,
|
|
189
190
|
middleware: [cliCloseOnComplete],
|
|
190
191
|
},
|
|
192
|
+
'db.generate': {
|
|
193
|
+
func: dbGenerate,
|
|
194
|
+
middleware: [cliCloseOnComplete],
|
|
195
|
+
},
|
|
191
196
|
'db.seed': {
|
|
192
197
|
func: dbSeed,
|
|
193
198
|
middleware: [cliCloseOnComplete],
|
|
@@ -159,6 +159,12 @@
|
|
|
159
159
|
"options": {},
|
|
160
160
|
"description": "Apply pending SQL migrations and regenerate db/schema.d.ts"
|
|
161
161
|
},
|
|
162
|
+
"generate": {
|
|
163
|
+
"pikkuFuncId": "dbGenerate",
|
|
164
|
+
"positionals": [],
|
|
165
|
+
"options": {},
|
|
166
|
+
"description": "Generate SQL migrations from detected schema changes"
|
|
167
|
+
},
|
|
162
168
|
"seed": {
|
|
163
169
|
"pikkuFuncId": "dbSeed",
|
|
164
170
|
"positionals": [],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.36
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Core function, middleware, and permission types for all wirings
|
|
@@ -419,7 +419,7 @@ export declare const pikkuConfig: (func: (variables?: any, ...args: any[]) => Pr
|
|
|
419
419
|
* })
|
|
420
420
|
* ```
|
|
421
421
|
*/
|
|
422
|
-
export declare const pikkuServices: (func: (config: Config, existingServices: Partial<SingletonServices>) => Promise<RequiredSingletonServices
|
|
422
|
+
export declare const pikkuServices: (func: (config: Config, existingServices: Partial<SingletonServices>) => Promise<Omit<RequiredSingletonServices, "auth">>) => (config: Config, existingServices?: Partial<SingletonServices>) => Promise<RequiredSingletonServices>;
|
|
423
423
|
/**
|
|
424
424
|
* Creates a Pikku wire services factory.
|
|
425
425
|
* Use this to define services that are created per-request/session.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.36
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Core function, middleware, and permission types for all wirings
|
|
@@ -231,8 +231,22 @@ export const pikkuConfig = (func) => func;
|
|
|
231
231
|
export const pikkuServices = (func) => {
|
|
232
232
|
return async (config, existingServices = {}) => {
|
|
233
233
|
const services = await func(config, existingServices);
|
|
234
|
-
__pikkuState(null, 'package', '
|
|
235
|
-
|
|
234
|
+
const authFactory = __pikkuState(null, 'package', 'authFactory');
|
|
235
|
+
if (authFactory) {
|
|
236
|
+
let authInstance;
|
|
237
|
+
services.auth = () => {
|
|
238
|
+
authInstance ??= Promise.resolve()
|
|
239
|
+
.then(() => authFactory(services))
|
|
240
|
+
.catch((error) => {
|
|
241
|
+
authInstance = undefined;
|
|
242
|
+
throw error;
|
|
243
|
+
});
|
|
244
|
+
return authInstance;
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
const resolved = services;
|
|
248
|
+
__pikkuState(null, 'package', 'singletonServices', resolved);
|
|
249
|
+
return resolved;
|
|
236
250
|
};
|
|
237
251
|
};
|
|
238
252
|
/**
|
|
@@ -822,7 +822,7 @@
|
|
|
822
822
|
"inputs": [],
|
|
823
823
|
"outputs": [],
|
|
824
824
|
"remote": true,
|
|
825
|
-
"implementationHash": "
|
|
825
|
+
"implementationHash": "3cd0d92f95863863"
|
|
826
826
|
},
|
|
827
827
|
"watch": {
|
|
828
828
|
"pikkuFuncId": "watch",
|
|
@@ -882,7 +882,22 @@
|
|
|
882
882
|
],
|
|
883
883
|
"outputs": [],
|
|
884
884
|
"remote": true,
|
|
885
|
-
"implementationHash": "
|
|
885
|
+
"implementationHash": "245efcc09956bd7b"
|
|
886
|
+
},
|
|
887
|
+
"dbGenerate": {
|
|
888
|
+
"pikkuFuncId": "dbGenerate",
|
|
889
|
+
"functionType": "user",
|
|
890
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
891
|
+
"sessionless": true,
|
|
892
|
+
"name": "dbGenerate",
|
|
893
|
+
"inputSchemaName": "DbGenerateInput",
|
|
894
|
+
"outputSchemaName": null,
|
|
895
|
+
"inputs": [
|
|
896
|
+
"DbGenerateInput"
|
|
897
|
+
],
|
|
898
|
+
"outputs": [],
|
|
899
|
+
"remote": true,
|
|
900
|
+
"implementationHash": "0cd6cc1befe679f8"
|
|
886
901
|
},
|
|
887
902
|
"dbSeed": {
|
|
888
903
|
"pikkuFuncId": "dbSeed",
|
|
@@ -1674,81 +1689,11 @@
|
|
|
1674
1689
|
"outputSchemaName": null,
|
|
1675
1690
|
"inputs": [],
|
|
1676
1691
|
"outputs": [],
|
|
1677
|
-
"implementationHash": "
|
|
1692
|
+
"implementationHash": "508e6e884d93b88f",
|
|
1678
1693
|
"contractHash": "5cf046fc5045a072",
|
|
1679
1694
|
"inputHash": "d5ff2f31",
|
|
1680
1695
|
"outputHash": "391c291d"
|
|
1681
1696
|
},
|
|
1682
|
-
"pikkuAIAgentTypes": {
|
|
1683
|
-
"pikkuFuncId": "pikkuAIAgentTypes",
|
|
1684
|
-
"functionType": "user",
|
|
1685
|
-
"funcWrapper": "pikkuSessionlessFunc",
|
|
1686
|
-
"sessionless": true,
|
|
1687
|
-
"name": "pikkuAIAgentTypes",
|
|
1688
|
-
"inputSchemaName": null,
|
|
1689
|
-
"outputSchemaName": null,
|
|
1690
|
-
"inputs": [],
|
|
1691
|
-
"outputs": [],
|
|
1692
|
-
"implementationHash": "6f1bde64f9087bc2",
|
|
1693
|
-
"middleware": [
|
|
1694
|
-
{
|
|
1695
|
-
"type": "wire",
|
|
1696
|
-
"name": "logCommandInfoAndTime",
|
|
1697
|
-
"inline": false
|
|
1698
|
-
}
|
|
1699
|
-
],
|
|
1700
|
-
"contractHash": "dc29d66d6b6f5857",
|
|
1701
|
-
"inputHash": "800b5ca6",
|
|
1702
|
-
"outputHash": "e85c3332"
|
|
1703
|
-
},
|
|
1704
|
-
"pikkuAIAgent": {
|
|
1705
|
-
"pikkuFuncId": "pikkuAIAgent",
|
|
1706
|
-
"functionType": "user",
|
|
1707
|
-
"funcWrapper": "pikkuSessionlessFunc",
|
|
1708
|
-
"sessionless": true,
|
|
1709
|
-
"name": "pikkuAIAgent",
|
|
1710
|
-
"inputSchemaName": null,
|
|
1711
|
-
"outputSchemaName": "PikkuAIAgentOutput",
|
|
1712
|
-
"inputs": [],
|
|
1713
|
-
"outputs": [
|
|
1714
|
-
"PikkuAIAgentOutput"
|
|
1715
|
-
],
|
|
1716
|
-
"implementationHash": "353ac854edebcf28",
|
|
1717
|
-
"middleware": [
|
|
1718
|
-
{
|
|
1719
|
-
"type": "wire",
|
|
1720
|
-
"name": "logCommandInfoAndTime",
|
|
1721
|
-
"inline": false
|
|
1722
|
-
}
|
|
1723
|
-
],
|
|
1724
|
-
"contractHash": "973fe2f539bdca04",
|
|
1725
|
-
"inputHash": "e61af48f",
|
|
1726
|
-
"outputHash": "11db78f5"
|
|
1727
|
-
},
|
|
1728
|
-
"pikkuPublicAgent": {
|
|
1729
|
-
"pikkuFuncId": "pikkuPublicAgent",
|
|
1730
|
-
"functionType": "user",
|
|
1731
|
-
"funcWrapper": "pikkuSessionlessFunc",
|
|
1732
|
-
"sessionless": true,
|
|
1733
|
-
"name": "pikkuPublicAgent",
|
|
1734
|
-
"inputSchemaName": null,
|
|
1735
|
-
"outputSchemaName": "PikkuPublicAgentOutput",
|
|
1736
|
-
"inputs": [],
|
|
1737
|
-
"outputs": [
|
|
1738
|
-
"PikkuPublicAgentOutput"
|
|
1739
|
-
],
|
|
1740
|
-
"implementationHash": "ac31dd42a7c619e9",
|
|
1741
|
-
"middleware": [
|
|
1742
|
-
{
|
|
1743
|
-
"type": "wire",
|
|
1744
|
-
"name": "logCommandInfoAndTime",
|
|
1745
|
-
"inline": false
|
|
1746
|
-
}
|
|
1747
|
-
],
|
|
1748
|
-
"contractHash": "076457b475dee94e",
|
|
1749
|
-
"inputHash": "c0a04edb",
|
|
1750
|
-
"outputHash": "aca3832e"
|
|
1751
|
-
},
|
|
1752
1697
|
"pikkuAuth": {
|
|
1753
1698
|
"pikkuFuncId": "pikkuAuth",
|
|
1754
1699
|
"functionType": "user",
|
|
@@ -1759,7 +1704,7 @@
|
|
|
1759
1704
|
"outputSchemaName": null,
|
|
1760
1705
|
"inputs": [],
|
|
1761
1706
|
"outputs": [],
|
|
1762
|
-
"implementationHash": "
|
|
1707
|
+
"implementationHash": "f8a2af6b34ab525f",
|
|
1763
1708
|
"middleware": [
|
|
1764
1709
|
{
|
|
1765
1710
|
"type": "wire",
|
|
@@ -1861,19 +1806,19 @@
|
|
|
1861
1806
|
"inputHash": "5d1524e3",
|
|
1862
1807
|
"outputHash": "048ccd50"
|
|
1863
1808
|
},
|
|
1864
|
-
"
|
|
1865
|
-
"pikkuFuncId": "
|
|
1809
|
+
"pikkuCLIEntry": {
|
|
1810
|
+
"pikkuFuncId": "pikkuCLIEntry",
|
|
1866
1811
|
"functionType": "user",
|
|
1867
1812
|
"funcWrapper": "pikkuSessionlessFunc",
|
|
1868
1813
|
"sessionless": true,
|
|
1869
|
-
"name": "
|
|
1814
|
+
"name": "pikkuCLIEntry",
|
|
1870
1815
|
"inputSchemaName": null,
|
|
1871
|
-
"outputSchemaName": "
|
|
1816
|
+
"outputSchemaName": "PikkuCLIEntryOutput",
|
|
1872
1817
|
"inputs": [],
|
|
1873
1818
|
"outputs": [
|
|
1874
|
-
"
|
|
1819
|
+
"PikkuCLIEntryOutput"
|
|
1875
1820
|
],
|
|
1876
|
-
"implementationHash": "
|
|
1821
|
+
"implementationHash": "3de1aae7d25e5a8d",
|
|
1877
1822
|
"middleware": [
|
|
1878
1823
|
{
|
|
1879
1824
|
"type": "wire",
|
|
@@ -1881,21 +1826,45 @@
|
|
|
1881
1826
|
"inline": false
|
|
1882
1827
|
}
|
|
1883
1828
|
],
|
|
1884
|
-
"contractHash": "
|
|
1885
|
-
"inputHash": "
|
|
1886
|
-
"outputHash": "
|
|
1829
|
+
"contractHash": "a44d47273b044b63",
|
|
1830
|
+
"inputHash": "3e5aa4e1",
|
|
1831
|
+
"outputHash": "2f8523b1"
|
|
1887
1832
|
},
|
|
1888
|
-
"
|
|
1889
|
-
"pikkuFuncId": "
|
|
1833
|
+
"pikkuCLI": {
|
|
1834
|
+
"pikkuFuncId": "pikkuCLI",
|
|
1890
1835
|
"functionType": "user",
|
|
1891
1836
|
"funcWrapper": "pikkuSessionlessFunc",
|
|
1892
1837
|
"sessionless": true,
|
|
1893
|
-
"name": "
|
|
1838
|
+
"name": "pikkuCLI",
|
|
1839
|
+
"inputSchemaName": null,
|
|
1840
|
+
"outputSchemaName": "PikkuCLIOutput",
|
|
1841
|
+
"inputs": [],
|
|
1842
|
+
"outputs": [
|
|
1843
|
+
"PikkuCLIOutput"
|
|
1844
|
+
],
|
|
1845
|
+
"implementationHash": "106ebe1537d48581",
|
|
1846
|
+
"middleware": [
|
|
1847
|
+
{
|
|
1848
|
+
"type": "wire",
|
|
1849
|
+
"name": "logCommandInfoAndTime",
|
|
1850
|
+
"inline": false
|
|
1851
|
+
}
|
|
1852
|
+
],
|
|
1853
|
+
"contractHash": "3932cb0e6b7de268",
|
|
1854
|
+
"inputHash": "fef4d62b",
|
|
1855
|
+
"outputHash": "7d42c9e1"
|
|
1856
|
+
},
|
|
1857
|
+
"pikkuAIAgentTypes": {
|
|
1858
|
+
"pikkuFuncId": "pikkuAIAgentTypes",
|
|
1859
|
+
"functionType": "user",
|
|
1860
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
1861
|
+
"sessionless": true,
|
|
1862
|
+
"name": "pikkuAIAgentTypes",
|
|
1894
1863
|
"inputSchemaName": null,
|
|
1895
1864
|
"outputSchemaName": null,
|
|
1896
1865
|
"inputs": [],
|
|
1897
1866
|
"outputs": [],
|
|
1898
|
-
"implementationHash": "
|
|
1867
|
+
"implementationHash": "6f1bde64f9087bc2",
|
|
1899
1868
|
"middleware": [
|
|
1900
1869
|
{
|
|
1901
1870
|
"type": "wire",
|
|
@@ -1903,23 +1872,23 @@
|
|
|
1903
1872
|
"inline": false
|
|
1904
1873
|
}
|
|
1905
1874
|
],
|
|
1906
|
-
"contractHash": "
|
|
1907
|
-
"inputHash": "
|
|
1908
|
-
"outputHash": "
|
|
1875
|
+
"contractHash": "dc29d66d6b6f5857",
|
|
1876
|
+
"inputHash": "800b5ca6",
|
|
1877
|
+
"outputHash": "e85c3332"
|
|
1909
1878
|
},
|
|
1910
|
-
"
|
|
1911
|
-
"pikkuFuncId": "
|
|
1879
|
+
"pikkuAIAgent": {
|
|
1880
|
+
"pikkuFuncId": "pikkuAIAgent",
|
|
1912
1881
|
"functionType": "user",
|
|
1913
1882
|
"funcWrapper": "pikkuSessionlessFunc",
|
|
1914
1883
|
"sessionless": true,
|
|
1915
|
-
"name": "
|
|
1884
|
+
"name": "pikkuAIAgent",
|
|
1916
1885
|
"inputSchemaName": null,
|
|
1917
|
-
"outputSchemaName": "
|
|
1886
|
+
"outputSchemaName": "PikkuAIAgentOutput",
|
|
1918
1887
|
"inputs": [],
|
|
1919
1888
|
"outputs": [
|
|
1920
|
-
"
|
|
1889
|
+
"PikkuAIAgentOutput"
|
|
1921
1890
|
],
|
|
1922
|
-
"implementationHash": "
|
|
1891
|
+
"implementationHash": "353ac854edebcf28",
|
|
1923
1892
|
"middleware": [
|
|
1924
1893
|
{
|
|
1925
1894
|
"type": "wire",
|
|
@@ -1927,23 +1896,23 @@
|
|
|
1927
1896
|
"inline": false
|
|
1928
1897
|
}
|
|
1929
1898
|
],
|
|
1930
|
-
"contractHash": "
|
|
1931
|
-
"inputHash": "
|
|
1932
|
-
"outputHash": "
|
|
1899
|
+
"contractHash": "973fe2f539bdca04",
|
|
1900
|
+
"inputHash": "e61af48f",
|
|
1901
|
+
"outputHash": "11db78f5"
|
|
1933
1902
|
},
|
|
1934
|
-
"
|
|
1935
|
-
"pikkuFuncId": "
|
|
1903
|
+
"pikkuPublicAgent": {
|
|
1904
|
+
"pikkuFuncId": "pikkuPublicAgent",
|
|
1936
1905
|
"functionType": "user",
|
|
1937
1906
|
"funcWrapper": "pikkuSessionlessFunc",
|
|
1938
1907
|
"sessionless": true,
|
|
1939
|
-
"name": "
|
|
1908
|
+
"name": "pikkuPublicAgent",
|
|
1940
1909
|
"inputSchemaName": null,
|
|
1941
|
-
"outputSchemaName": "
|
|
1910
|
+
"outputSchemaName": "PikkuPublicAgentOutput",
|
|
1942
1911
|
"inputs": [],
|
|
1943
1912
|
"outputs": [
|
|
1944
|
-
"
|
|
1913
|
+
"PikkuPublicAgentOutput"
|
|
1945
1914
|
],
|
|
1946
|
-
"implementationHash": "
|
|
1915
|
+
"implementationHash": "ac31dd42a7c619e9",
|
|
1947
1916
|
"middleware": [
|
|
1948
1917
|
{
|
|
1949
1918
|
"type": "wire",
|
|
@@ -1951,23 +1920,23 @@
|
|
|
1951
1920
|
"inline": false
|
|
1952
1921
|
}
|
|
1953
1922
|
],
|
|
1954
|
-
"contractHash": "
|
|
1955
|
-
"inputHash": "
|
|
1956
|
-
"outputHash": "
|
|
1923
|
+
"contractHash": "076457b475dee94e",
|
|
1924
|
+
"inputHash": "c0a04edb",
|
|
1925
|
+
"outputHash": "aca3832e"
|
|
1957
1926
|
},
|
|
1958
|
-
"
|
|
1959
|
-
"pikkuFuncId": "
|
|
1927
|
+
"pikkuConsoleFunctions": {
|
|
1928
|
+
"pikkuFuncId": "pikkuConsoleFunctions",
|
|
1960
1929
|
"functionType": "user",
|
|
1961
1930
|
"funcWrapper": "pikkuSessionlessFunc",
|
|
1962
1931
|
"sessionless": true,
|
|
1963
|
-
"name": "
|
|
1932
|
+
"name": "pikkuConsoleFunctions",
|
|
1964
1933
|
"inputSchemaName": null,
|
|
1965
|
-
"outputSchemaName": "
|
|
1934
|
+
"outputSchemaName": "PikkuConsoleFunctionsOutput",
|
|
1966
1935
|
"inputs": [],
|
|
1967
1936
|
"outputs": [
|
|
1968
|
-
"
|
|
1937
|
+
"PikkuConsoleFunctionsOutput"
|
|
1969
1938
|
],
|
|
1970
|
-
"implementationHash": "
|
|
1939
|
+
"implementationHash": "9755b441da9e4b81",
|
|
1971
1940
|
"middleware": [
|
|
1972
1941
|
{
|
|
1973
1942
|
"type": "wire",
|
|
@@ -1975,9 +1944,55 @@
|
|
|
1975
1944
|
"inline": false
|
|
1976
1945
|
}
|
|
1977
1946
|
],
|
|
1978
|
-
"contractHash": "
|
|
1979
|
-
"inputHash": "
|
|
1980
|
-
"outputHash": "
|
|
1947
|
+
"contractHash": "5725bacdf339c573",
|
|
1948
|
+
"inputHash": "ac47cb5e",
|
|
1949
|
+
"outputHash": "8259a954"
|
|
1950
|
+
},
|
|
1951
|
+
"pikkuNodeTypes": {
|
|
1952
|
+
"pikkuFuncId": "pikkuNodeTypes",
|
|
1953
|
+
"functionType": "user",
|
|
1954
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
1955
|
+
"sessionless": true,
|
|
1956
|
+
"name": "pikkuNodeTypes",
|
|
1957
|
+
"inputSchemaName": null,
|
|
1958
|
+
"outputSchemaName": null,
|
|
1959
|
+
"inputs": [],
|
|
1960
|
+
"outputs": [],
|
|
1961
|
+
"implementationHash": "9a4ff23a5eedca95",
|
|
1962
|
+
"middleware": [
|
|
1963
|
+
{
|
|
1964
|
+
"type": "wire",
|
|
1965
|
+
"name": "logCommandInfoAndTime",
|
|
1966
|
+
"inline": false
|
|
1967
|
+
}
|
|
1968
|
+
],
|
|
1969
|
+
"contractHash": "50029dfb2ea6b6c2",
|
|
1970
|
+
"inputHash": "4f5677f1",
|
|
1971
|
+
"outputHash": "616d3f6e"
|
|
1972
|
+
},
|
|
1973
|
+
"pikkuNodesMeta": {
|
|
1974
|
+
"pikkuFuncId": "pikkuNodesMeta",
|
|
1975
|
+
"functionType": "user",
|
|
1976
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
1977
|
+
"sessionless": true,
|
|
1978
|
+
"name": "pikkuNodesMeta",
|
|
1979
|
+
"inputSchemaName": null,
|
|
1980
|
+
"outputSchemaName": "PikkuNodesMetaOutput",
|
|
1981
|
+
"inputs": [],
|
|
1982
|
+
"outputs": [
|
|
1983
|
+
"PikkuNodesMetaOutput"
|
|
1984
|
+
],
|
|
1985
|
+
"implementationHash": "56d7a29cc36421e4",
|
|
1986
|
+
"middleware": [
|
|
1987
|
+
{
|
|
1988
|
+
"type": "wire",
|
|
1989
|
+
"name": "logCommandInfoAndTime",
|
|
1990
|
+
"inline": false
|
|
1991
|
+
}
|
|
1992
|
+
],
|
|
1993
|
+
"contractHash": "2dd28c3201f71199",
|
|
1994
|
+
"inputHash": "4be7b8bd",
|
|
1995
|
+
"outputHash": "fca2b5eb"
|
|
1981
1996
|
},
|
|
1982
1997
|
"pikkuCredentials": {
|
|
1983
1998
|
"pikkuFuncId": "pikkuCredentials",
|
|
@@ -2031,11 +2046,13 @@
|
|
|
2031
2046
|
"funcWrapper": "pikkuSessionlessFunc",
|
|
2032
2047
|
"sessionless": true,
|
|
2033
2048
|
"name": "pikkuFunctionTypes",
|
|
2034
|
-
"inputSchemaName":
|
|
2049
|
+
"inputSchemaName": "PikkuFunctionTypesInput",
|
|
2035
2050
|
"outputSchemaName": null,
|
|
2036
|
-
"inputs": [
|
|
2051
|
+
"inputs": [
|
|
2052
|
+
"PikkuFunctionTypesInput"
|
|
2053
|
+
],
|
|
2037
2054
|
"outputs": [],
|
|
2038
|
-
"implementationHash": "
|
|
2055
|
+
"implementationHash": "b17e816206e41636",
|
|
2039
2056
|
"middleware": [
|
|
2040
2057
|
{
|
|
2041
2058
|
"type": "wire",
|
|
@@ -2043,8 +2060,8 @@
|
|
|
2043
2060
|
"inline": false
|
|
2044
2061
|
}
|
|
2045
2062
|
],
|
|
2046
|
-
"contractHash": "
|
|
2047
|
-
"inputHash": "
|
|
2063
|
+
"contractHash": "ed0d4b7a2fde0d71",
|
|
2064
|
+
"inputHash": "56e6e1f2",
|
|
2048
2065
|
"outputHash": "f3548101"
|
|
2049
2066
|
},
|
|
2050
2067
|
"pikkuFunctions": {
|
|
@@ -2081,7 +2098,7 @@
|
|
|
2081
2098
|
"outputSchemaName": null,
|
|
2082
2099
|
"inputs": [],
|
|
2083
2100
|
"outputs": [],
|
|
2084
|
-
"implementationHash": "
|
|
2101
|
+
"implementationHash": "05da44df47065c3c",
|
|
2085
2102
|
"middleware": [
|
|
2086
2103
|
{
|
|
2087
2104
|
"type": "wire",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.36
|
|
3
3
|
*/
|
|
4
4
|
/* Import and register functions used by RPCs */
|
|
5
5
|
import { addFunction } from '@pikku/core/function';
|
|
@@ -7,6 +7,7 @@ import { all } from '../../src/functions/commands/all.js';
|
|
|
7
7
|
import { bootstrap } from '../../src/functions/commands/bootstrap.js';
|
|
8
8
|
import { consoleCommand } from '../../src/functions/commands/console.js';
|
|
9
9
|
import { dbAudit } from '../../src/functions/commands/db-audit.js';
|
|
10
|
+
import { dbGenerate } from '../../src/functions/commands/db-generate.js';
|
|
10
11
|
import { dbMigrate } from '../../src/functions/commands/db-migrate.js';
|
|
11
12
|
import { dbReset } from '../../src/functions/commands/db-reset.js';
|
|
12
13
|
import { dbSeed } from '../../src/functions/commands/db-seed.js';
|
|
@@ -79,6 +80,7 @@ addFunction('all', all);
|
|
|
79
80
|
addFunction('bootstrap', bootstrap);
|
|
80
81
|
addFunction('consoleCommand', consoleCommand);
|
|
81
82
|
addFunction('dbAudit', dbAudit);
|
|
83
|
+
addFunction('dbGenerate', dbGenerate);
|
|
82
84
|
addFunction('dbMigrate', dbMigrate);
|
|
83
85
|
addFunction('dbReset', dbReset);
|
|
84
86
|
addFunction('dbSeed', dbSeed);
|