@pikku/cli 0.12.7 → 0.12.8
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/console-app/assets/{index-sUj3oFEL.js → index-DOk9fqHB.js} +49 -49
- package/console-app/index.html +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js +1 -1
- package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts +1 -1
- package/dist/.pikku/agent/pikku-agent-wirings.gen.js +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/channel/pikku-channels-meta.gen.js +1 -1
- package/dist/.pikku/channel/pikku-channels.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channels.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-channel.js +1 -1
- package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-client.gen.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 +190 -190
- 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/mcp/pikku-mcp-wirings-meta.gen.js +1 -1
- package/dist/.pikku/mcp/pikku-mcp-wirings.gen.d.ts +1 -1
- package/dist/.pikku/mcp/pikku-mcp-wirings.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap.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/pikku-websocket.gen.d.ts +1 -1
- package/dist/.pikku/pikku-websocket.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-remote-rpc-workers.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- 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/scheduler/pikku-schedulers-wirings-meta.gen.js +1 -1
- package/dist/.pikku/scheduler/pikku-schedulers-wirings.gen.d.ts +1 -1
- package/dist/.pikku/scheduler/pikku-schedulers-wirings.gen.js +1 -1
- package/dist/.pikku/schemas/register.gen.js +9 -9
- 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 +2 -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.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/src/functions/wirings/middleware/serialize-middleware-imports.js +22 -0
- package/dist/src/functions/wirings/permissions/serialize-permissions-imports.js +22 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.js +1 -0
- package/dist/src/services.js +4 -0
- package/package.json +4 -4
|
@@ -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.8
|
|
3
3
|
*/
|
|
4
4
|
import { addSchema } from '@pikku/core/schema';
|
|
5
5
|
import * as PikkuSchemasOutput from './schemas/PikkuSchemasOutput.schema.json' with { type: 'json' };
|
|
@@ -22,10 +22,6 @@ import * as PikkuNewPermissionInput from './schemas/PikkuNewPermissionInput.sche
|
|
|
22
22
|
addSchema('PikkuNewPermissionInput', PikkuNewPermissionInput);
|
|
23
23
|
import * as PikkuNewAddonInput from './schemas/PikkuNewAddonInput.schema.json' with { type: 'json' };
|
|
24
24
|
addSchema('PikkuNewAddonInput', PikkuNewAddonInput);
|
|
25
|
-
import * as PikkuAIAgentOutput from './schemas/PikkuAIAgentOutput.schema.json' with { type: 'json' };
|
|
26
|
-
addSchema('PikkuAIAgentOutput', PikkuAIAgentOutput);
|
|
27
|
-
import * as PikkuPublicAgentOutput from './schemas/PikkuPublicAgentOutput.schema.json' with { type: 'json' };
|
|
28
|
-
addSchema('PikkuPublicAgentOutput', PikkuPublicAgentOutput);
|
|
29
25
|
import * as PikkuChannelsOutput from './schemas/PikkuChannelsOutput.schema.json' with { type: 'json' };
|
|
30
26
|
addSchema('PikkuChannelsOutput', PikkuChannelsOutput);
|
|
31
27
|
import * as PikkuCLIOutput from './schemas/PikkuCLIOutput.schema.json' with { type: 'json' };
|
|
@@ -34,20 +30,24 @@ import * as PikkuConsoleFunctionsOutput from './schemas/PikkuConsoleFunctionsOut
|
|
|
34
30
|
addSchema('PikkuConsoleFunctionsOutput', PikkuConsoleFunctionsOutput);
|
|
35
31
|
import * as PikkuNodesMetaOutput from './schemas/PikkuNodesMetaOutput.schema.json' with { type: 'json' };
|
|
36
32
|
addSchema('PikkuNodesMetaOutput', PikkuNodesMetaOutput);
|
|
33
|
+
import * as PikkuAIAgentOutput from './schemas/PikkuAIAgentOutput.schema.json' with { type: 'json' };
|
|
34
|
+
addSchema('PikkuAIAgentOutput', PikkuAIAgentOutput);
|
|
35
|
+
import * as PikkuPublicAgentOutput from './schemas/PikkuPublicAgentOutput.schema.json' with { type: 'json' };
|
|
36
|
+
addSchema('PikkuPublicAgentOutput', PikkuPublicAgentOutput);
|
|
37
37
|
import * as PikkuFunctionsOutput from './schemas/PikkuFunctionsOutput.schema.json' with { type: 'json' };
|
|
38
38
|
addSchema('PikkuFunctionsOutput', PikkuFunctionsOutput);
|
|
39
39
|
import * as PikkuGatewayOutput from './schemas/PikkuGatewayOutput.schema.json' with { type: 'json' };
|
|
40
40
|
addSchema('PikkuGatewayOutput', PikkuGatewayOutput);
|
|
41
41
|
import * as PikkuHTTPOutput from './schemas/PikkuHTTPOutput.schema.json' with { type: 'json' };
|
|
42
42
|
addSchema('PikkuHTTPOutput', PikkuHTTPOutput);
|
|
43
|
-
import * as PikkuMCPOutput from './schemas/PikkuMCPOutput.schema.json' with { type: 'json' };
|
|
44
|
-
addSchema('PikkuMCPOutput', PikkuMCPOutput);
|
|
45
43
|
import * as PikkuMiddlewareOutput from './schemas/PikkuMiddlewareOutput.schema.json' with { type: 'json' };
|
|
46
44
|
addSchema('PikkuMiddlewareOutput', PikkuMiddlewareOutput);
|
|
47
45
|
import * as PikkuPackageOutput from './schemas/PikkuPackageOutput.schema.json' with { type: 'json' };
|
|
48
46
|
addSchema('PikkuPackageOutput', PikkuPackageOutput);
|
|
49
47
|
import * as PikkuPermissionsOutput from './schemas/PikkuPermissionsOutput.schema.json' with { type: 'json' };
|
|
50
48
|
addSchema('PikkuPermissionsOutput', PikkuPermissionsOutput);
|
|
49
|
+
import * as PikkuQueueOutput from './schemas/PikkuQueueOutput.schema.json' with { type: 'json' };
|
|
50
|
+
addSchema('PikkuQueueOutput', PikkuQueueOutput);
|
|
51
51
|
import * as PikkuPublicRPCOutput from './schemas/PikkuPublicRPCOutput.schema.json' with { type: 'json' };
|
|
52
52
|
addSchema('PikkuPublicRPCOutput', PikkuPublicRPCOutput);
|
|
53
53
|
import * as PikkuRemoteRPCOutput from './schemas/PikkuRemoteRPCOutput.schema.json' with { type: 'json' };
|
|
@@ -56,11 +56,11 @@ import * as PikkuRPCOutput from './schemas/PikkuRPCOutput.schema.json' with { ty
|
|
|
56
56
|
addSchema('PikkuRPCOutput', PikkuRPCOutput);
|
|
57
57
|
import * as PikkuSchedulerOutput from './schemas/PikkuSchedulerOutput.schema.json' with { type: 'json' };
|
|
58
58
|
addSchema('PikkuSchedulerOutput', PikkuSchedulerOutput);
|
|
59
|
-
import * as PikkuQueueOutput from './schemas/PikkuQueueOutput.schema.json' with { type: 'json' };
|
|
60
|
-
addSchema('PikkuQueueOutput', PikkuQueueOutput);
|
|
61
59
|
import * as PikkuTriggerOutput from './schemas/PikkuTriggerOutput.schema.json' with { type: 'json' };
|
|
62
60
|
addSchema('PikkuTriggerOutput', PikkuTriggerOutput);
|
|
63
61
|
import * as PikkuWorkflowOutput from './schemas/PikkuWorkflowOutput.schema.json' with { type: 'json' };
|
|
64
62
|
addSchema('PikkuWorkflowOutput', PikkuWorkflowOutput);
|
|
63
|
+
import * as PikkuMCPOutput from './schemas/PikkuMCPOutput.schema.json' with { type: 'json' };
|
|
64
|
+
addSchema('PikkuMCPOutput', PikkuMCPOutput);
|
|
65
65
|
import * as PikkuCLIConfig from './schemas/PikkuCLIConfig.schema.json' with { type: 'json' };
|
|
66
66
|
addSchema('PikkuCLIConfig', PikkuCLIConfig);
|
|
@@ -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.8
|
|
3
3
|
*/
|
|
4
4
|
export { wireVariable } from '@pikku/core/variable';
|
|
5
5
|
export type { CoreVariable, VariableDefinitionMeta, VariableDefinitionsMeta } from '@pikku/core/variable';
|
|
@@ -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.8
|
|
3
3
|
*/
|
|
4
4
|
import { WorkflowCancelledException } from '@pikku/core/workflow';
|
|
5
5
|
import { template } from '@pikku/core/workflow';
|
|
@@ -41,6 +41,7 @@ export type PikkuWorkflowConfigWithSchema<InputSchema extends StandardSchemaV1 |
|
|
|
41
41
|
output?: OutputSchema;
|
|
42
42
|
node?: NodeConfig;
|
|
43
43
|
errors?: Array<typeof PikkuError>;
|
|
44
|
+
inline?: boolean;
|
|
44
45
|
};
|
|
45
46
|
export declare function pikkuWorkflowFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuWorkflowConfigWithSchema<InputSchema, OutputSchema>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'workflow', PikkuFunctionWorkflow<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown>, InputSchema, OutputSchema>;
|
|
46
47
|
export declare function pikkuWorkflowFunc<In, Out = unknown>(func: PikkuFunctionWorkflow<In, Out> | PikkuFunctionConfig<In, Out, 'workflow', PikkuFunctionWorkflow<In, Out>>): PikkuFunctionConfig<In, Out, 'workflow'>;
|
|
@@ -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.8
|
|
3
3
|
*/
|
|
4
4
|
import { WorkflowCancelledException } from '@pikku/core/workflow';
|
|
5
5
|
import { workflow as coreWorkflow, workflowStart as coreWorkflowStart, workflowStatus as coreWorkflowStatus, graphStart as coreGraphStart, } from '@pikku/core/workflow';
|
|
@@ -20,11 +20,33 @@ export const serializeMiddlewareImports = (outputPath, middlewareState, httpStat
|
|
|
20
20
|
const channelMiddlewareFactories = fullState
|
|
21
21
|
? collectFactories(fullState.channelMiddleware.tagMiddleware, outputPath, packageMappings)
|
|
22
22
|
: new Map();
|
|
23
|
+
// Collect direct (non-factory) side-effect imports
|
|
24
|
+
const directImports = new Set();
|
|
25
|
+
const collectDirectImports = (groupMap) => {
|
|
26
|
+
for (const [, groupMeta] of groupMap.entries()) {
|
|
27
|
+
if (!groupMeta.isFactory) {
|
|
28
|
+
const filePath = getFileImportRelativePath(outputPath, groupMeta.sourceFile, packageMappings);
|
|
29
|
+
directImports.add(filePath);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
collectDirectImports(httpState.routeMiddleware);
|
|
34
|
+
collectDirectImports(middlewareState.tagMiddleware);
|
|
35
|
+
if (fullState) {
|
|
36
|
+
collectDirectImports(fullState.channelMiddleware.tagMiddleware);
|
|
37
|
+
}
|
|
23
38
|
const allFactories = new Map([
|
|
24
39
|
...httpFactories,
|
|
25
40
|
...tagFactories,
|
|
26
41
|
...channelMiddlewareFactories,
|
|
27
42
|
]);
|
|
43
|
+
// Add direct side-effect imports (non-factory addHTTPMiddleware / addMiddleware calls)
|
|
44
|
+
if (directImports.size > 0) {
|
|
45
|
+
serializedImports.push('/* Side-effect imports for direct middleware registration calls */');
|
|
46
|
+
for (const filePath of directImports) {
|
|
47
|
+
serializedImports.push(`import '${filePath}'`);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
28
50
|
if (allFactories.size > 0) {
|
|
29
51
|
serializedImports.push('/* Call middleware group factories to register at module evaluation */');
|
|
30
52
|
for (const [exportName, { filePath }] of allFactories) {
|
|
@@ -24,8 +24,30 @@ export const serializePermissionsImports = (outputPath, permissionsState, httpSt
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
+
// Collect direct (non-factory) side-effect imports for HTTP permission groups
|
|
28
|
+
const directImports = new Set();
|
|
29
|
+
for (const [, groupMeta] of httpState.routePermissions.entries()) {
|
|
30
|
+
if (!groupMeta.isFactory) {
|
|
31
|
+
const filePath = getFileImportRelativePath(outputPath, groupMeta.sourceFile, packageMappings);
|
|
32
|
+
directImports.add(filePath);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
// Collect direct (non-factory) side-effect imports for tag permission groups
|
|
36
|
+
for (const [, groupMeta] of permissionsState.tagPermissions.entries()) {
|
|
37
|
+
if (!groupMeta.isFactory) {
|
|
38
|
+
const filePath = getFileImportRelativePath(outputPath, groupMeta.sourceFile, packageMappings);
|
|
39
|
+
directImports.add(filePath);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
27
42
|
// Combine all factories and deduplicate by exportName (same factory might be used in multiple groups)
|
|
28
43
|
const allFactories = new Map([...httpFactories, ...tagFactories]);
|
|
44
|
+
// Add direct side-effect imports (non-factory addPermission calls)
|
|
45
|
+
if (directImports.size > 0) {
|
|
46
|
+
serializedImports.push('/* Side-effect imports for direct addPermission calls */');
|
|
47
|
+
for (const filePath of directImports) {
|
|
48
|
+
serializedImports.push(`import '${filePath}'`);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
29
51
|
// Add factory imports and calls
|
|
30
52
|
if (allFactories.size > 0) {
|
|
31
53
|
serializedImports.push('/* Call permission group factories to register at module evaluation */');
|
package/dist/src/services.js
CHANGED
|
@@ -218,10 +218,13 @@ export const createSingletonServices = async (config) => {
|
|
|
218
218
|
? ((await loadManifest(join(config.rootDir, 'versions.pikku.json'))) ??
|
|
219
219
|
undefined)
|
|
220
220
|
: undefined;
|
|
221
|
+
const oldProgram = unfilteredState?.program ?? undefined;
|
|
222
|
+
const inspectStart = Date.now();
|
|
221
223
|
unfilteredState = await inspect(logger, wiringFiles, {
|
|
222
224
|
setupOnly,
|
|
223
225
|
rootDir,
|
|
224
226
|
isAddon: !!config.addon,
|
|
227
|
+
oldProgram,
|
|
225
228
|
types: {
|
|
226
229
|
configFileType: config.configFile,
|
|
227
230
|
userSessionType: config.userSessionType,
|
|
@@ -248,6 +251,7 @@ export const createSingletonServices = async (config) => {
|
|
|
248
251
|
}
|
|
249
252
|
: undefined,
|
|
250
253
|
});
|
|
254
|
+
logger.debug(`Inspector took ${Date.now() - inspectStart}ms`);
|
|
251
255
|
if ('diagnostics' in unfilteredState &&
|
|
252
256
|
unfilteredState.diagnostics.length > 0) {
|
|
253
257
|
processDiagnostics(unfilteredState.diagnostics, config.lint);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikku/cli",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.8",
|
|
4
4
|
"author": "yasser.fadl@gmail.com",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"imports": {
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@openapi-contrib/json-schema-to-openapi-schema": "^4.3.1",
|
|
29
|
-
"@pikku/core": "^0.12.
|
|
30
|
-
"@pikku/inspector": "^0.12.
|
|
31
|
-
"@pikku/openapi-parser": "^0.12.
|
|
29
|
+
"@pikku/core": "^0.12.9",
|
|
30
|
+
"@pikku/inspector": "^0.12.4",
|
|
31
|
+
"@pikku/openapi-parser": "^0.12.4",
|
|
32
32
|
"@types/cookie": "^1.0.0",
|
|
33
33
|
"@types/json-schema": "^7.0.15",
|
|
34
34
|
"chalk": "^5.6.2",
|