@pikku/cli 0.12.33 → 0.12.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.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 +1 -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.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 +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +194 -194
- package/dist/.pikku/function/pikku-functions.gen.js +1 -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 +4 -4
- 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 +13 -13
- 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/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/functions/db/db-codegen.js +7 -3
- package/dist/src/functions/db/zod-codegen.js +81 -6
- package/dist/src/scaffold/rpc-remote.gen.js +1 -1
- package/package.json +3 -3
|
@@ -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.34
|
|
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';
|
|
@@ -1861,19 +1861,19 @@
|
|
|
1861
1861
|
"inputHash": "5d1524e3",
|
|
1862
1862
|
"outputHash": "048ccd50"
|
|
1863
1863
|
},
|
|
1864
|
-
"
|
|
1865
|
-
"pikkuFuncId": "
|
|
1864
|
+
"pikkuCLIEntry": {
|
|
1865
|
+
"pikkuFuncId": "pikkuCLIEntry",
|
|
1866
1866
|
"functionType": "user",
|
|
1867
1867
|
"funcWrapper": "pikkuSessionlessFunc",
|
|
1868
1868
|
"sessionless": true,
|
|
1869
|
-
"name": "
|
|
1869
|
+
"name": "pikkuCLIEntry",
|
|
1870
1870
|
"inputSchemaName": null,
|
|
1871
|
-
"outputSchemaName": "
|
|
1871
|
+
"outputSchemaName": "PikkuCLIEntryOutput",
|
|
1872
1872
|
"inputs": [],
|
|
1873
1873
|
"outputs": [
|
|
1874
|
-
"
|
|
1874
|
+
"PikkuCLIEntryOutput"
|
|
1875
1875
|
],
|
|
1876
|
-
"implementationHash": "
|
|
1876
|
+
"implementationHash": "3de1aae7d25e5a8d",
|
|
1877
1877
|
"middleware": [
|
|
1878
1878
|
{
|
|
1879
1879
|
"type": "wire",
|
|
@@ -1881,21 +1881,23 @@
|
|
|
1881
1881
|
"inline": false
|
|
1882
1882
|
}
|
|
1883
1883
|
],
|
|
1884
|
-
"contractHash": "
|
|
1885
|
-
"inputHash": "
|
|
1886
|
-
"outputHash": "
|
|
1884
|
+
"contractHash": "a44d47273b044b63",
|
|
1885
|
+
"inputHash": "3e5aa4e1",
|
|
1886
|
+
"outputHash": "2f8523b1"
|
|
1887
1887
|
},
|
|
1888
|
-
"
|
|
1889
|
-
"pikkuFuncId": "
|
|
1888
|
+
"pikkuCLI": {
|
|
1889
|
+
"pikkuFuncId": "pikkuCLI",
|
|
1890
1890
|
"functionType": "user",
|
|
1891
1891
|
"funcWrapper": "pikkuSessionlessFunc",
|
|
1892
1892
|
"sessionless": true,
|
|
1893
|
-
"name": "
|
|
1893
|
+
"name": "pikkuCLI",
|
|
1894
1894
|
"inputSchemaName": null,
|
|
1895
|
-
"outputSchemaName":
|
|
1895
|
+
"outputSchemaName": "PikkuCLIOutput",
|
|
1896
1896
|
"inputs": [],
|
|
1897
|
-
"outputs": [
|
|
1898
|
-
|
|
1897
|
+
"outputs": [
|
|
1898
|
+
"PikkuCLIOutput"
|
|
1899
|
+
],
|
|
1900
|
+
"implementationHash": "106ebe1537d48581",
|
|
1899
1901
|
"middleware": [
|
|
1900
1902
|
{
|
|
1901
1903
|
"type": "wire",
|
|
@@ -1903,23 +1905,23 @@
|
|
|
1903
1905
|
"inline": false
|
|
1904
1906
|
}
|
|
1905
1907
|
],
|
|
1906
|
-
"contractHash": "
|
|
1907
|
-
"inputHash": "
|
|
1908
|
-
"outputHash": "
|
|
1908
|
+
"contractHash": "3932cb0e6b7de268",
|
|
1909
|
+
"inputHash": "fef4d62b",
|
|
1910
|
+
"outputHash": "7d42c9e1"
|
|
1909
1911
|
},
|
|
1910
|
-
"
|
|
1911
|
-
"pikkuFuncId": "
|
|
1912
|
+
"pikkuConsoleFunctions": {
|
|
1913
|
+
"pikkuFuncId": "pikkuConsoleFunctions",
|
|
1912
1914
|
"functionType": "user",
|
|
1913
1915
|
"funcWrapper": "pikkuSessionlessFunc",
|
|
1914
1916
|
"sessionless": true,
|
|
1915
|
-
"name": "
|
|
1917
|
+
"name": "pikkuConsoleFunctions",
|
|
1916
1918
|
"inputSchemaName": null,
|
|
1917
|
-
"outputSchemaName": "
|
|
1919
|
+
"outputSchemaName": "PikkuConsoleFunctionsOutput",
|
|
1918
1920
|
"inputs": [],
|
|
1919
1921
|
"outputs": [
|
|
1920
|
-
"
|
|
1922
|
+
"PikkuConsoleFunctionsOutput"
|
|
1921
1923
|
],
|
|
1922
|
-
"implementationHash": "
|
|
1924
|
+
"implementationHash": "9755b441da9e4b81",
|
|
1923
1925
|
"middleware": [
|
|
1924
1926
|
{
|
|
1925
1927
|
"type": "wire",
|
|
@@ -1927,23 +1929,21 @@
|
|
|
1927
1929
|
"inline": false
|
|
1928
1930
|
}
|
|
1929
1931
|
],
|
|
1930
|
-
"contractHash": "
|
|
1931
|
-
"inputHash": "
|
|
1932
|
-
"outputHash": "
|
|
1932
|
+
"contractHash": "5725bacdf339c573",
|
|
1933
|
+
"inputHash": "ac47cb5e",
|
|
1934
|
+
"outputHash": "8259a954"
|
|
1933
1935
|
},
|
|
1934
|
-
"
|
|
1935
|
-
"pikkuFuncId": "
|
|
1936
|
+
"pikkuNodeTypes": {
|
|
1937
|
+
"pikkuFuncId": "pikkuNodeTypes",
|
|
1936
1938
|
"functionType": "user",
|
|
1937
1939
|
"funcWrapper": "pikkuSessionlessFunc",
|
|
1938
1940
|
"sessionless": true,
|
|
1939
|
-
"name": "
|
|
1941
|
+
"name": "pikkuNodeTypes",
|
|
1940
1942
|
"inputSchemaName": null,
|
|
1941
|
-
"outputSchemaName":
|
|
1943
|
+
"outputSchemaName": null,
|
|
1942
1944
|
"inputs": [],
|
|
1943
|
-
"outputs": [
|
|
1944
|
-
|
|
1945
|
-
],
|
|
1946
|
-
"implementationHash": "3de1aae7d25e5a8d",
|
|
1945
|
+
"outputs": [],
|
|
1946
|
+
"implementationHash": "9a4ff23a5eedca95",
|
|
1947
1947
|
"middleware": [
|
|
1948
1948
|
{
|
|
1949
1949
|
"type": "wire",
|
|
@@ -1951,23 +1951,23 @@
|
|
|
1951
1951
|
"inline": false
|
|
1952
1952
|
}
|
|
1953
1953
|
],
|
|
1954
|
-
"contractHash": "
|
|
1955
|
-
"inputHash": "
|
|
1956
|
-
"outputHash": "
|
|
1954
|
+
"contractHash": "50029dfb2ea6b6c2",
|
|
1955
|
+
"inputHash": "4f5677f1",
|
|
1956
|
+
"outputHash": "616d3f6e"
|
|
1957
1957
|
},
|
|
1958
|
-
"
|
|
1959
|
-
"pikkuFuncId": "
|
|
1958
|
+
"pikkuNodesMeta": {
|
|
1959
|
+
"pikkuFuncId": "pikkuNodesMeta",
|
|
1960
1960
|
"functionType": "user",
|
|
1961
1961
|
"funcWrapper": "pikkuSessionlessFunc",
|
|
1962
1962
|
"sessionless": true,
|
|
1963
|
-
"name": "
|
|
1963
|
+
"name": "pikkuNodesMeta",
|
|
1964
1964
|
"inputSchemaName": null,
|
|
1965
|
-
"outputSchemaName": "
|
|
1965
|
+
"outputSchemaName": "PikkuNodesMetaOutput",
|
|
1966
1966
|
"inputs": [],
|
|
1967
1967
|
"outputs": [
|
|
1968
|
-
"
|
|
1968
|
+
"PikkuNodesMetaOutput"
|
|
1969
1969
|
],
|
|
1970
|
-
"implementationHash": "
|
|
1970
|
+
"implementationHash": "56d7a29cc36421e4",
|
|
1971
1971
|
"middleware": [
|
|
1972
1972
|
{
|
|
1973
1973
|
"type": "wire",
|
|
@@ -1975,9 +1975,9 @@
|
|
|
1975
1975
|
"inline": false
|
|
1976
1976
|
}
|
|
1977
1977
|
],
|
|
1978
|
-
"contractHash": "
|
|
1979
|
-
"inputHash": "
|
|
1980
|
-
"outputHash": "
|
|
1978
|
+
"contractHash": "2dd28c3201f71199",
|
|
1979
|
+
"inputHash": "4be7b8bd",
|
|
1980
|
+
"outputHash": "fca2b5eb"
|
|
1981
1981
|
},
|
|
1982
1982
|
"pikkuCredentials": {
|
|
1983
1983
|
"pikkuFuncId": "pikkuCredentials",
|
|
@@ -2025,98 +2025,6 @@
|
|
|
2025
2025
|
"inputHash": "a5477eae",
|
|
2026
2026
|
"outputHash": "b5ea8b47"
|
|
2027
2027
|
},
|
|
2028
|
-
"pikkuFunctionTypesSplit": {
|
|
2029
|
-
"pikkuFuncId": "pikkuFunctionTypesSplit",
|
|
2030
|
-
"functionType": "user",
|
|
2031
|
-
"funcWrapper": "pikkuSessionlessFunc",
|
|
2032
|
-
"sessionless": true,
|
|
2033
|
-
"name": "pikkuFunctionTypesSplit",
|
|
2034
|
-
"inputSchemaName": "PikkuFunctionTypesSplitInput",
|
|
2035
|
-
"outputSchemaName": null,
|
|
2036
|
-
"inputs": [
|
|
2037
|
-
"PikkuFunctionTypesSplitInput"
|
|
2038
|
-
],
|
|
2039
|
-
"outputs": [],
|
|
2040
|
-
"implementationHash": "f8a3d1bcd38a6e65",
|
|
2041
|
-
"middleware": [
|
|
2042
|
-
{
|
|
2043
|
-
"type": "wire",
|
|
2044
|
-
"name": "logCommandInfoAndTime",
|
|
2045
|
-
"inline": false
|
|
2046
|
-
}
|
|
2047
|
-
],
|
|
2048
|
-
"contractHash": "f99a54810cf64965",
|
|
2049
|
-
"inputHash": "2c3cb2ec",
|
|
2050
|
-
"outputHash": "acd472be"
|
|
2051
|
-
},
|
|
2052
|
-
"pikkuFunctionTypes": {
|
|
2053
|
-
"pikkuFuncId": "pikkuFunctionTypes",
|
|
2054
|
-
"functionType": "user",
|
|
2055
|
-
"funcWrapper": "pikkuSessionlessFunc",
|
|
2056
|
-
"sessionless": true,
|
|
2057
|
-
"name": "pikkuFunctionTypes",
|
|
2058
|
-
"inputSchemaName": null,
|
|
2059
|
-
"outputSchemaName": null,
|
|
2060
|
-
"inputs": [],
|
|
2061
|
-
"outputs": [],
|
|
2062
|
-
"implementationHash": "59de41cb7305dcf5",
|
|
2063
|
-
"middleware": [
|
|
2064
|
-
{
|
|
2065
|
-
"type": "wire",
|
|
2066
|
-
"name": "logCommandInfoAndTime",
|
|
2067
|
-
"inline": false
|
|
2068
|
-
}
|
|
2069
|
-
],
|
|
2070
|
-
"contractHash": "cd535129a2f7becf",
|
|
2071
|
-
"inputHash": "679bb1c6",
|
|
2072
|
-
"outputHash": "f3548101"
|
|
2073
|
-
},
|
|
2074
|
-
"pikkuFunctions": {
|
|
2075
|
-
"pikkuFuncId": "pikkuFunctions",
|
|
2076
|
-
"functionType": "user",
|
|
2077
|
-
"funcWrapper": "pikkuSessionlessFunc",
|
|
2078
|
-
"sessionless": true,
|
|
2079
|
-
"name": "pikkuFunctions",
|
|
2080
|
-
"inputSchemaName": null,
|
|
2081
|
-
"outputSchemaName": "PikkuFunctionsOutput",
|
|
2082
|
-
"inputs": [],
|
|
2083
|
-
"outputs": [
|
|
2084
|
-
"PikkuFunctionsOutput"
|
|
2085
|
-
],
|
|
2086
|
-
"implementationHash": "a0e1250ff1782f08",
|
|
2087
|
-
"middleware": [
|
|
2088
|
-
{
|
|
2089
|
-
"type": "wire",
|
|
2090
|
-
"name": "logCommandInfoAndTime",
|
|
2091
|
-
"inline": false
|
|
2092
|
-
}
|
|
2093
|
-
],
|
|
2094
|
-
"contractHash": "5d90fe3dfc9a776c",
|
|
2095
|
-
"inputHash": "3cfe4ea6",
|
|
2096
|
-
"outputHash": "c43f7d57"
|
|
2097
|
-
},
|
|
2098
|
-
"pikkuServices": {
|
|
2099
|
-
"pikkuFuncId": "pikkuServices",
|
|
2100
|
-
"functionType": "user",
|
|
2101
|
-
"funcWrapper": "pikkuSessionlessFunc",
|
|
2102
|
-
"sessionless": true,
|
|
2103
|
-
"name": "pikkuServices",
|
|
2104
|
-
"inputSchemaName": null,
|
|
2105
|
-
"outputSchemaName": null,
|
|
2106
|
-
"inputs": [],
|
|
2107
|
-
"outputs": [],
|
|
2108
|
-
"implementationHash": "6e088a58424c7d9f",
|
|
2109
|
-
"middleware": [
|
|
2110
|
-
{
|
|
2111
|
-
"type": "wire",
|
|
2112
|
-
"name": "logCommandInfoAndTime",
|
|
2113
|
-
"inline": false
|
|
2114
|
-
}
|
|
2115
|
-
],
|
|
2116
|
-
"contractHash": "5705d404a1338693",
|
|
2117
|
-
"inputHash": "a3e730d9",
|
|
2118
|
-
"outputHash": "e0b61e49"
|
|
2119
|
-
},
|
|
2120
2028
|
"pikkuHTTPMap": {
|
|
2121
2029
|
"pikkuFuncId": "pikkuHTTPMap",
|
|
2122
2030
|
"functionType": "user",
|
|
@@ -2393,6 +2301,122 @@
|
|
|
2393
2301
|
"inputHash": "d7b18af5",
|
|
2394
2302
|
"outputHash": "09d7f16a"
|
|
2395
2303
|
},
|
|
2304
|
+
"pikkuFunctionTypesSplit": {
|
|
2305
|
+
"pikkuFuncId": "pikkuFunctionTypesSplit",
|
|
2306
|
+
"functionType": "user",
|
|
2307
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
2308
|
+
"sessionless": true,
|
|
2309
|
+
"name": "pikkuFunctionTypesSplit",
|
|
2310
|
+
"inputSchemaName": "PikkuFunctionTypesSplitInput",
|
|
2311
|
+
"outputSchemaName": null,
|
|
2312
|
+
"inputs": [
|
|
2313
|
+
"PikkuFunctionTypesSplitInput"
|
|
2314
|
+
],
|
|
2315
|
+
"outputs": [],
|
|
2316
|
+
"implementationHash": "f8a3d1bcd38a6e65",
|
|
2317
|
+
"middleware": [
|
|
2318
|
+
{
|
|
2319
|
+
"type": "wire",
|
|
2320
|
+
"name": "logCommandInfoAndTime",
|
|
2321
|
+
"inline": false
|
|
2322
|
+
}
|
|
2323
|
+
],
|
|
2324
|
+
"contractHash": "f99a54810cf64965",
|
|
2325
|
+
"inputHash": "2c3cb2ec",
|
|
2326
|
+
"outputHash": "acd472be"
|
|
2327
|
+
},
|
|
2328
|
+
"pikkuFunctionTypes": {
|
|
2329
|
+
"pikkuFuncId": "pikkuFunctionTypes",
|
|
2330
|
+
"functionType": "user",
|
|
2331
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
2332
|
+
"sessionless": true,
|
|
2333
|
+
"name": "pikkuFunctionTypes",
|
|
2334
|
+
"inputSchemaName": null,
|
|
2335
|
+
"outputSchemaName": null,
|
|
2336
|
+
"inputs": [],
|
|
2337
|
+
"outputs": [],
|
|
2338
|
+
"implementationHash": "59de41cb7305dcf5",
|
|
2339
|
+
"middleware": [
|
|
2340
|
+
{
|
|
2341
|
+
"type": "wire",
|
|
2342
|
+
"name": "logCommandInfoAndTime",
|
|
2343
|
+
"inline": false
|
|
2344
|
+
}
|
|
2345
|
+
],
|
|
2346
|
+
"contractHash": "cd535129a2f7becf",
|
|
2347
|
+
"inputHash": "679bb1c6",
|
|
2348
|
+
"outputHash": "f3548101"
|
|
2349
|
+
},
|
|
2350
|
+
"pikkuFunctions": {
|
|
2351
|
+
"pikkuFuncId": "pikkuFunctions",
|
|
2352
|
+
"functionType": "user",
|
|
2353
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
2354
|
+
"sessionless": true,
|
|
2355
|
+
"name": "pikkuFunctions",
|
|
2356
|
+
"inputSchemaName": null,
|
|
2357
|
+
"outputSchemaName": "PikkuFunctionsOutput",
|
|
2358
|
+
"inputs": [],
|
|
2359
|
+
"outputs": [
|
|
2360
|
+
"PikkuFunctionsOutput"
|
|
2361
|
+
],
|
|
2362
|
+
"implementationHash": "a0e1250ff1782f08",
|
|
2363
|
+
"middleware": [
|
|
2364
|
+
{
|
|
2365
|
+
"type": "wire",
|
|
2366
|
+
"name": "logCommandInfoAndTime",
|
|
2367
|
+
"inline": false
|
|
2368
|
+
}
|
|
2369
|
+
],
|
|
2370
|
+
"contractHash": "5d90fe3dfc9a776c",
|
|
2371
|
+
"inputHash": "3cfe4ea6",
|
|
2372
|
+
"outputHash": "c43f7d57"
|
|
2373
|
+
},
|
|
2374
|
+
"pikkuServices": {
|
|
2375
|
+
"pikkuFuncId": "pikkuServices",
|
|
2376
|
+
"functionType": "user",
|
|
2377
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
2378
|
+
"sessionless": true,
|
|
2379
|
+
"name": "pikkuServices",
|
|
2380
|
+
"inputSchemaName": null,
|
|
2381
|
+
"outputSchemaName": null,
|
|
2382
|
+
"inputs": [],
|
|
2383
|
+
"outputs": [],
|
|
2384
|
+
"implementationHash": "6e088a58424c7d9f",
|
|
2385
|
+
"middleware": [
|
|
2386
|
+
{
|
|
2387
|
+
"type": "wire",
|
|
2388
|
+
"name": "logCommandInfoAndTime",
|
|
2389
|
+
"inline": false
|
|
2390
|
+
}
|
|
2391
|
+
],
|
|
2392
|
+
"contractHash": "5705d404a1338693",
|
|
2393
|
+
"inputHash": "a3e730d9",
|
|
2394
|
+
"outputHash": "e0b61e49"
|
|
2395
|
+
},
|
|
2396
|
+
"pikkuEventsScaffold": {
|
|
2397
|
+
"pikkuFuncId": "pikkuEventsScaffold",
|
|
2398
|
+
"functionType": "user",
|
|
2399
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
2400
|
+
"sessionless": true,
|
|
2401
|
+
"name": "pikkuEventsScaffold",
|
|
2402
|
+
"inputSchemaName": null,
|
|
2403
|
+
"outputSchemaName": "PikkuEventsScaffoldOutput",
|
|
2404
|
+
"inputs": [],
|
|
2405
|
+
"outputs": [
|
|
2406
|
+
"PikkuEventsScaffoldOutput"
|
|
2407
|
+
],
|
|
2408
|
+
"implementationHash": "4a998c5d2ef1753b",
|
|
2409
|
+
"middleware": [
|
|
2410
|
+
{
|
|
2411
|
+
"type": "wire",
|
|
2412
|
+
"name": "logCommandInfoAndTime",
|
|
2413
|
+
"inline": false
|
|
2414
|
+
}
|
|
2415
|
+
],
|
|
2416
|
+
"contractHash": "59fdeb7aa338289b",
|
|
2417
|
+
"inputHash": "0e752243",
|
|
2418
|
+
"outputHash": "486a58ef"
|
|
2419
|
+
},
|
|
2396
2420
|
"pikkuCommandQueueMap": {
|
|
2397
2421
|
"pikkuFuncId": "pikkuCommandQueueMap",
|
|
2398
2422
|
"functionType": "user",
|
|
@@ -2507,19 +2531,41 @@
|
|
|
2507
2531
|
"inputHash": "d0d42371",
|
|
2508
2532
|
"outputHash": "94c5f21c"
|
|
2509
2533
|
},
|
|
2510
|
-
"
|
|
2511
|
-
"pikkuFuncId": "
|
|
2534
|
+
"pikkuSchedulerTypes": {
|
|
2535
|
+
"pikkuFuncId": "pikkuSchedulerTypes",
|
|
2512
2536
|
"functionType": "user",
|
|
2513
2537
|
"funcWrapper": "pikkuSessionlessFunc",
|
|
2514
2538
|
"sessionless": true,
|
|
2515
|
-
"name": "
|
|
2539
|
+
"name": "pikkuSchedulerTypes",
|
|
2516
2540
|
"inputSchemaName": null,
|
|
2517
|
-
"outputSchemaName":
|
|
2541
|
+
"outputSchemaName": null,
|
|
2542
|
+
"inputs": [],
|
|
2543
|
+
"outputs": [],
|
|
2544
|
+
"implementationHash": "ca3f707d96566f5c",
|
|
2545
|
+
"middleware": [
|
|
2546
|
+
{
|
|
2547
|
+
"type": "wire",
|
|
2548
|
+
"name": "logCommandInfoAndTime",
|
|
2549
|
+
"inline": false
|
|
2550
|
+
}
|
|
2551
|
+
],
|
|
2552
|
+
"contractHash": "562f598e335cbbf8",
|
|
2553
|
+
"inputHash": "5cb0bd41",
|
|
2554
|
+
"outputHash": "4108ab7a"
|
|
2555
|
+
},
|
|
2556
|
+
"pikkuScheduler": {
|
|
2557
|
+
"pikkuFuncId": "pikkuScheduler",
|
|
2558
|
+
"functionType": "user",
|
|
2559
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
2560
|
+
"sessionless": true,
|
|
2561
|
+
"name": "pikkuScheduler",
|
|
2562
|
+
"inputSchemaName": null,
|
|
2563
|
+
"outputSchemaName": "PikkuSchedulerOutput",
|
|
2518
2564
|
"inputs": [],
|
|
2519
2565
|
"outputs": [
|
|
2520
|
-
"
|
|
2566
|
+
"PikkuSchedulerOutput"
|
|
2521
2567
|
],
|
|
2522
|
-
"implementationHash": "
|
|
2568
|
+
"implementationHash": "e78409e71cedf438",
|
|
2523
2569
|
"middleware": [
|
|
2524
2570
|
{
|
|
2525
2571
|
"type": "wire",
|
|
@@ -2527,9 +2573,9 @@
|
|
|
2527
2573
|
"inline": false
|
|
2528
2574
|
}
|
|
2529
2575
|
],
|
|
2530
|
-
"contractHash": "
|
|
2531
|
-
"inputHash": "
|
|
2532
|
-
"outputHash": "
|
|
2576
|
+
"contractHash": "064923ed2e031573",
|
|
2577
|
+
"inputHash": "dda1c6aa",
|
|
2578
|
+
"outputHash": "1f0f0345"
|
|
2533
2579
|
},
|
|
2534
2580
|
"pikkuPublicRPC": {
|
|
2535
2581
|
"pikkuFuncId": "pikkuPublicRPC",
|
|
@@ -2647,52 +2693,6 @@
|
|
|
2647
2693
|
"inputHash": "835d9763",
|
|
2648
2694
|
"outputHash": "b9430fb9"
|
|
2649
2695
|
},
|
|
2650
|
-
"pikkuSchedulerTypes": {
|
|
2651
|
-
"pikkuFuncId": "pikkuSchedulerTypes",
|
|
2652
|
-
"functionType": "user",
|
|
2653
|
-
"funcWrapper": "pikkuSessionlessFunc",
|
|
2654
|
-
"sessionless": true,
|
|
2655
|
-
"name": "pikkuSchedulerTypes",
|
|
2656
|
-
"inputSchemaName": null,
|
|
2657
|
-
"outputSchemaName": null,
|
|
2658
|
-
"inputs": [],
|
|
2659
|
-
"outputs": [],
|
|
2660
|
-
"implementationHash": "ca3f707d96566f5c",
|
|
2661
|
-
"middleware": [
|
|
2662
|
-
{
|
|
2663
|
-
"type": "wire",
|
|
2664
|
-
"name": "logCommandInfoAndTime",
|
|
2665
|
-
"inline": false
|
|
2666
|
-
}
|
|
2667
|
-
],
|
|
2668
|
-
"contractHash": "562f598e335cbbf8",
|
|
2669
|
-
"inputHash": "5cb0bd41",
|
|
2670
|
-
"outputHash": "4108ab7a"
|
|
2671
|
-
},
|
|
2672
|
-
"pikkuScheduler": {
|
|
2673
|
-
"pikkuFuncId": "pikkuScheduler",
|
|
2674
|
-
"functionType": "user",
|
|
2675
|
-
"funcWrapper": "pikkuSessionlessFunc",
|
|
2676
|
-
"sessionless": true,
|
|
2677
|
-
"name": "pikkuScheduler",
|
|
2678
|
-
"inputSchemaName": null,
|
|
2679
|
-
"outputSchemaName": "PikkuSchedulerOutput",
|
|
2680
|
-
"inputs": [],
|
|
2681
|
-
"outputs": [
|
|
2682
|
-
"PikkuSchedulerOutput"
|
|
2683
|
-
],
|
|
2684
|
-
"implementationHash": "e78409e71cedf438",
|
|
2685
|
-
"middleware": [
|
|
2686
|
-
{
|
|
2687
|
-
"type": "wire",
|
|
2688
|
-
"name": "logCommandInfoAndTime",
|
|
2689
|
-
"inline": false
|
|
2690
|
-
}
|
|
2691
|
-
],
|
|
2692
|
-
"contractHash": "064923ed2e031573",
|
|
2693
|
-
"inputHash": "dda1c6aa",
|
|
2694
|
-
"outputHash": "1f0f0345"
|
|
2695
|
-
},
|
|
2696
2696
|
"pikkuSecrets": {
|
|
2697
2697
|
"pikkuFuncId": "pikkuSecrets",
|
|
2698
2698
|
"functionType": "user",
|
|
@@ -92,9 +92,6 @@
|
|
|
92
92
|
"pikkuMetaClients": "pikkuMetaClients",
|
|
93
93
|
"remoteRPCHandler": "remoteRPCHandler",
|
|
94
94
|
"pikkuSummary": "pikkuSummary",
|
|
95
|
-
"pikkuAIAgentTypes": "pikkuAIAgentTypes",
|
|
96
|
-
"pikkuAIAgent": "pikkuAIAgent",
|
|
97
|
-
"pikkuPublicAgent": "pikkuPublicAgent",
|
|
98
95
|
"pikkuAuth": "pikkuAuth",
|
|
99
96
|
"pikkuChannels": "pikkuChannels",
|
|
100
97
|
"pikkuChannelTypes": "pikkuChannelTypes",
|
|
@@ -140,5 +137,8 @@
|
|
|
140
137
|
"pikkuTriggerTypes": "pikkuTriggerTypes",
|
|
141
138
|
"pikkuTrigger": "pikkuTrigger",
|
|
142
139
|
"pikkuVariables": "pikkuVariables",
|
|
143
|
-
"pikkuWorkflowRoutes": "pikkuWorkflowRoutes"
|
|
140
|
+
"pikkuWorkflowRoutes": "pikkuWorkflowRoutes",
|
|
141
|
+
"pikkuAIAgentTypes": "pikkuAIAgentTypes",
|
|
142
|
+
"pikkuAIAgent": "pikkuAIAgent",
|
|
143
|
+
"pikkuPublicAgent": "pikkuPublicAgent"
|
|
144
144
|
}
|
|
@@ -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.34
|
|
3
3
|
*/
|
|
4
4
|
import { addSchema } from '@pikku/core/schema';
|
|
5
5
|
import * as PikkuSchemasOutput from './schemas/PikkuSchemasOutput.schema.json' with { type: 'json' };
|
|
@@ -184,20 +184,16 @@ import * as PikkuPublicAgentOutput from './schemas/PikkuPublicAgentOutput.schema
|
|
|
184
184
|
addSchema('PikkuPublicAgentOutput', PikkuPublicAgentOutput);
|
|
185
185
|
import * as PikkuCommandChannelsOutput from './schemas/PikkuCommandChannelsOutput.schema.json' with { type: 'json' };
|
|
186
186
|
addSchema('PikkuCommandChannelsOutput', PikkuCommandChannelsOutput);
|
|
187
|
-
import * as PikkuConsoleFunctionsOutput from './schemas/PikkuConsoleFunctionsOutput.schema.json' with { type: 'json' };
|
|
188
|
-
addSchema('PikkuConsoleFunctionsOutput', PikkuConsoleFunctionsOutput);
|
|
189
|
-
import * as PikkuNodesMetaOutput from './schemas/PikkuNodesMetaOutput.schema.json' with { type: 'json' };
|
|
190
|
-
addSchema('PikkuNodesMetaOutput', PikkuNodesMetaOutput);
|
|
191
187
|
import * as PikkuCLIEntryOutput from './schemas/PikkuCLIEntryOutput.schema.json' with { type: 'json' };
|
|
192
188
|
addSchema('PikkuCLIEntryOutput', PikkuCLIEntryOutput);
|
|
193
189
|
import * as PikkuCLIOutput from './schemas/PikkuCLIOutput.schema.json' with { type: 'json' };
|
|
194
190
|
addSchema('PikkuCLIOutput', PikkuCLIOutput);
|
|
191
|
+
import * as PikkuConsoleFunctionsOutput from './schemas/PikkuConsoleFunctionsOutput.schema.json' with { type: 'json' };
|
|
192
|
+
addSchema('PikkuConsoleFunctionsOutput', PikkuConsoleFunctionsOutput);
|
|
193
|
+
import * as PikkuNodesMetaOutput from './schemas/PikkuNodesMetaOutput.schema.json' with { type: 'json' };
|
|
194
|
+
addSchema('PikkuNodesMetaOutput', PikkuNodesMetaOutput);
|
|
195
195
|
import * as PikkuGatewayOutput from './schemas/PikkuGatewayOutput.schema.json' with { type: 'json' };
|
|
196
196
|
addSchema('PikkuGatewayOutput', PikkuGatewayOutput);
|
|
197
|
-
import * as PikkuFunctionTypesSplitInput from './schemas/PikkuFunctionTypesSplitInput.schema.json' with { type: 'json' };
|
|
198
|
-
addSchema('PikkuFunctionTypesSplitInput', PikkuFunctionTypesSplitInput);
|
|
199
|
-
import * as PikkuFunctionsOutput from './schemas/PikkuFunctionsOutput.schema.json' with { type: 'json' };
|
|
200
|
-
addSchema('PikkuFunctionsOutput', PikkuFunctionsOutput);
|
|
201
197
|
import * as PikkuCommandHTTPOutput from './schemas/PikkuCommandHTTPOutput.schema.json' with { type: 'json' };
|
|
202
198
|
addSchema('PikkuCommandHTTPOutput', PikkuCommandHTTPOutput);
|
|
203
199
|
import * as PikkuHTTPOutput from './schemas/PikkuHTTPOutput.schema.json' with { type: 'json' };
|
|
@@ -210,20 +206,24 @@ import * as PikkuPackageOutput from './schemas/PikkuPackageOutput.schema.json' w
|
|
|
210
206
|
addSchema('PikkuPackageOutput', PikkuPackageOutput);
|
|
211
207
|
import * as PikkuPermissionsOutput from './schemas/PikkuPermissionsOutput.schema.json' with { type: 'json' };
|
|
212
208
|
addSchema('PikkuPermissionsOutput', PikkuPermissionsOutput);
|
|
209
|
+
import * as PikkuFunctionTypesSplitInput from './schemas/PikkuFunctionTypesSplitInput.schema.json' with { type: 'json' };
|
|
210
|
+
addSchema('PikkuFunctionTypesSplitInput', PikkuFunctionTypesSplitInput);
|
|
211
|
+
import * as PikkuFunctionsOutput from './schemas/PikkuFunctionsOutput.schema.json' with { type: 'json' };
|
|
212
|
+
addSchema('PikkuFunctionsOutput', PikkuFunctionsOutput);
|
|
213
|
+
import * as PikkuEventsScaffoldOutput from './schemas/PikkuEventsScaffoldOutput.schema.json' with { type: 'json' };
|
|
214
|
+
addSchema('PikkuEventsScaffoldOutput', PikkuEventsScaffoldOutput);
|
|
213
215
|
import * as PikkuCommandQueueOutput from './schemas/PikkuCommandQueueOutput.schema.json' with { type: 'json' };
|
|
214
216
|
addSchema('PikkuCommandQueueOutput', PikkuCommandQueueOutput);
|
|
215
217
|
import * as PikkuQueueOutput from './schemas/PikkuQueueOutput.schema.json' with { type: 'json' };
|
|
216
218
|
addSchema('PikkuQueueOutput', PikkuQueueOutput);
|
|
217
|
-
import * as
|
|
218
|
-
addSchema('
|
|
219
|
+
import * as PikkuSchedulerOutput from './schemas/PikkuSchedulerOutput.schema.json' with { type: 'json' };
|
|
220
|
+
addSchema('PikkuSchedulerOutput', PikkuSchedulerOutput);
|
|
219
221
|
import * as PikkuPublicRPCOutput from './schemas/PikkuPublicRPCOutput.schema.json' with { type: 'json' };
|
|
220
222
|
addSchema('PikkuPublicRPCOutput', PikkuPublicRPCOutput);
|
|
221
223
|
import * as PikkuRemoteRPCOutput from './schemas/PikkuRemoteRPCOutput.schema.json' with { type: 'json' };
|
|
222
224
|
addSchema('PikkuRemoteRPCOutput', PikkuRemoteRPCOutput);
|
|
223
225
|
import * as PikkuRPCOutput from './schemas/PikkuRPCOutput.schema.json' with { type: 'json' };
|
|
224
226
|
addSchema('PikkuRPCOutput', PikkuRPCOutput);
|
|
225
|
-
import * as PikkuSchedulerOutput from './schemas/PikkuSchedulerOutput.schema.json' with { type: 'json' };
|
|
226
|
-
addSchema('PikkuSchedulerOutput', PikkuSchedulerOutput);
|
|
227
227
|
import * as PikkuTriggerTypesInput from './schemas/PikkuTriggerTypesInput.schema.json' with { type: 'json' };
|
|
228
228
|
addSchema('PikkuTriggerTypesInput', PikkuTriggerTypesInput);
|
|
229
229
|
import * as PikkuTriggerOutput from './schemas/PikkuTriggerOutput.schema.json' with { type: 'json' };
|
|
@@ -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.34
|
|
3
3
|
*/
|
|
4
4
|
export { wireVariable } from '@pikku/core/variable';
|
|
5
5
|
export type { CoreVariable, VariableDefinitionMeta, VariableDefinitionsMeta } from '@pikku/core/variable';
|
package/dist/bin/pikku-bin.mjs
CHANGED
|
@@ -11,8 +11,8 @@ async function checkForUpdate() {
|
|
|
11
11
|
})
|
|
12
12
|
if (!res.ok) return
|
|
13
13
|
const { version: latest } = await res.json()
|
|
14
|
-
if (latest !== '0.12.
|
|
15
|
-
process.stderr.write(`\n Update available 0.12.
|
|
14
|
+
if (latest !== '0.12.34') {
|
|
15
|
+
process.stderr.write(`\n Update available 0.12.34 → ${latest}\n brew upgrade pikku or npm install -g @pikku/cli\n\n`)
|
|
16
16
|
}
|
|
17
17
|
} catch {}
|
|
18
18
|
}
|
|
@@ -258,9 +258,13 @@ export async function generateSchemaTypes(introspector, options) {
|
|
|
258
258
|
` ? ColumnType<S, I | undefined, U>`,
|
|
259
259
|
` : ColumnType<T, T | undefined, T>`,
|
|
260
260
|
``,
|
|
261
|
-
`
|
|
262
|
-
|
|
263
|
-
|
|
261
|
+
// `__classification__` is optional so plain values stay assignable to branded
|
|
262
|
+
// columns (Kysely where/insert/update operands) while the brand remains
|
|
263
|
+
// structurally detectable for the inspector's PKU910 output check. Keep this
|
|
264
|
+
// in lockstep with `@pikku/core`'s data-classification.ts definitions.
|
|
265
|
+
`export type Private<T> = T & { readonly __classification__?: 'private' }`,
|
|
266
|
+
`export type Pii<T> = T & { readonly __classification__?: 'pii' }`,
|
|
267
|
+
`export type Secret<T> = T & { readonly __classification__?: 'secret' }`,
|
|
264
268
|
``,
|
|
265
269
|
interfaces,
|
|
266
270
|
``,
|
|
@@ -67,14 +67,67 @@ function emitZodModule(tables) {
|
|
|
67
67
|
}
|
|
68
68
|
return `${lines.join('\n')}\n`;
|
|
69
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Resolve a Kysely field type to a `{ schema, generated }` pair, where `schema`
|
|
72
|
+
* is the zod expression for the *row* (select) shape and `generated` is true
|
|
73
|
+
* when the column is optional on insert.
|
|
74
|
+
*
|
|
75
|
+
* `db-codegen` emits two field shapes depending on a column's classification:
|
|
76
|
+
* - public columns → `Generated<T>`, bare `T`, `T | null`, or a public
|
|
77
|
+
* bool/date column as `Generated<ColumnType<base, rw, rw>>`
|
|
78
|
+
* - private/pii/secret columns (the default is `private`) →
|
|
79
|
+
* `ColumnType<Brand<base> | null, insert | undefined, update>`
|
|
80
|
+
* where Brand is `Private` | `Pii` | `Secret`.
|
|
81
|
+
*
|
|
82
|
+
* For `ColumnType<Select, Insert, Update>` the row schema comes from `Select`
|
|
83
|
+
* and the column is insert-optional when `Insert` admits `undefined` (Kysely's
|
|
84
|
+
* encoding for default/auto/generated columns).
|
|
85
|
+
*/
|
|
70
86
|
function zodForType(tsType) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
87
|
+
let inner = tsType.trim();
|
|
88
|
+
let generated = false;
|
|
89
|
+
// Peel a single `Generated<…>` wrapper. For public bool/date columns this
|
|
90
|
+
// wraps a `ColumnType<…>`, so the unwrapped inner is handled below.
|
|
91
|
+
const generatedMatch = inner.match(/^Generated<(.+)>$/);
|
|
92
|
+
if (generatedMatch) {
|
|
93
|
+
generated = true;
|
|
94
|
+
inner = generatedMatch[1].trim();
|
|
95
|
+
}
|
|
96
|
+
// `ColumnType<Select, Insert, Update>` — classified columns and wrapped
|
|
97
|
+
// public bool/date columns. Row schema from Select; optional from Insert.
|
|
98
|
+
if (inner.startsWith('ColumnType<') && inner.endsWith('>')) {
|
|
99
|
+
const args = splitGenericArgs(inner.slice('ColumnType<'.length, -1));
|
|
100
|
+
const selectT = args[0]?.trim() ?? 'unknown';
|
|
101
|
+
const insertT = args[1]?.trim() ?? '';
|
|
102
|
+
if (unionIncludesUndefined(insertT)) {
|
|
103
|
+
generated = true;
|
|
104
|
+
}
|
|
105
|
+
return { schema: scalarSchema(selectT), generated };
|
|
106
|
+
}
|
|
107
|
+
return { schema: scalarSchema(inner), generated };
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Resolve a scalar/select type expression to a zod expression. Handles a
|
|
111
|
+
* trailing `| null`, classification brands (`Private`/`Pii`/`Secret`), arrays,
|
|
112
|
+
* and the known scalar bases. Unknown bases fall back to `z.unknown()` so
|
|
113
|
+
* generation stays total.
|
|
114
|
+
*/
|
|
115
|
+
function scalarSchema(tsType) {
|
|
116
|
+
let inner = tsType.trim();
|
|
117
|
+
// Defensive: a Select arg may itself be `Generated<…>` in older schemas.
|
|
118
|
+
const generatedMatch = inner.match(/^Generated<(.+)>$/);
|
|
119
|
+
if (generatedMatch) {
|
|
120
|
+
inner = generatedMatch[1].trim();
|
|
121
|
+
}
|
|
74
122
|
const nullable = inner.endsWith(' | null');
|
|
75
123
|
if (nullable) {
|
|
76
124
|
inner = inner.slice(0, -' | null'.length).trim();
|
|
77
125
|
}
|
|
126
|
+
// Unwrap a classification brand: `Private<T>` / `Pii<T>` / `Secret<T>` → T.
|
|
127
|
+
const brandMatch = inner.match(/^(?:Private|Pii|Secret)<(.+)>$/);
|
|
128
|
+
if (brandMatch) {
|
|
129
|
+
inner = brandMatch[1].trim();
|
|
130
|
+
}
|
|
78
131
|
let schema;
|
|
79
132
|
switch (inner) {
|
|
80
133
|
case 'string':
|
|
@@ -94,8 +147,7 @@ function zodForType(tsType) {
|
|
|
94
147
|
break;
|
|
95
148
|
default:
|
|
96
149
|
if (inner.endsWith('[]')) {
|
|
97
|
-
|
|
98
|
-
schema = `z.array(${item})`;
|
|
150
|
+
schema = `z.array(${scalarSchema(inner.slice(0, -2).trim())})`;
|
|
99
151
|
}
|
|
100
152
|
else {
|
|
101
153
|
schema = 'z.unknown()';
|
|
@@ -105,5 +157,28 @@ function zodForType(tsType) {
|
|
|
105
157
|
if (nullable) {
|
|
106
158
|
schema += '.nullable()';
|
|
107
159
|
}
|
|
108
|
-
return
|
|
160
|
+
return schema;
|
|
161
|
+
}
|
|
162
|
+
/** Split the generic argument list of `Foo<a, b, c>` on top-level commas. */
|
|
163
|
+
function splitGenericArgs(args) {
|
|
164
|
+
const parts = [];
|
|
165
|
+
let depth = 0;
|
|
166
|
+
let start = 0;
|
|
167
|
+
for (let i = 0; i < args.length; i++) {
|
|
168
|
+
const char = args[i];
|
|
169
|
+
if (char === '<')
|
|
170
|
+
depth++;
|
|
171
|
+
else if (char === '>')
|
|
172
|
+
depth--;
|
|
173
|
+
else if (char === ',' && depth === 0) {
|
|
174
|
+
parts.push(args.slice(start, i));
|
|
175
|
+
start = i + 1;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
parts.push(args.slice(start));
|
|
179
|
+
return parts;
|
|
180
|
+
}
|
|
181
|
+
/** True when a union type expression contains `undefined` as a top-level member. */
|
|
182
|
+
function unionIncludesUndefined(union) {
|
|
183
|
+
return union.split('|').some((member) => member.trim() === 'undefined');
|
|
109
184
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikku/cli",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.34",
|
|
4
4
|
"author": "yasser.fadl@gmail.com",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"imports": {
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@openapi-contrib/json-schema-to-openapi-schema": "^4.3.1",
|
|
29
|
-
"@pikku/core": "^0.12.
|
|
29
|
+
"@pikku/core": "^0.12.31",
|
|
30
30
|
"@pikku/deploy-cloudflare": "^0.12.3",
|
|
31
31
|
"@pikku/fetch": "^0.12.3",
|
|
32
|
-
"@pikku/inspector": "^0.12.
|
|
32
|
+
"@pikku/inspector": "^0.12.19",
|
|
33
33
|
"@pikku/kysely": "^0.12.14",
|
|
34
34
|
"@pikku/kysely-node-sqlite": "^0.12.1",
|
|
35
35
|
"@pikku/node-http-server": "^0.12.2",
|