@pikku/cli 0.12.92 → 0.12.93
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-D0HG8q0B.css → index-BYj7ZbUU.css} +1 -1
- package/console-app/assets/{index-DDpIMCpy.js → index-CmAplHjZ.js} +150 -148
- package/console-app/index.html +2 -2
- 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 +11 -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-contracts-meta.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-contracts-meta.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-meta.gen.json +27 -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 +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 +38 -0
- 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/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-scenarios.gen.d.ts +1 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.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 +2 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/schemas/register.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/schemas/register.gen.js +9 -1
- package/dist/.pikku/schemas/schemas/KnowledgeIndexInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/KnowledgeIndexOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/KnowledgeValidateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/KnowledgeValidateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +1 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.js +1 -1
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +1 -1
- 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-scenario-actors.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-scenario-actors.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/cli.wiring.js +23 -0
- package/dist/src/fabric/functions/validate.function.js +16 -7
- package/dist/src/functions/commands/knowledge-index.d.ts +30 -0
- package/dist/src/functions/commands/knowledge-index.js +11 -0
- package/dist/src/functions/commands/knowledge-validate.d.ts +33 -0
- package/dist/src/functions/commands/knowledge-validate.js +11 -0
- package/dist/src/functions/commands/new-addon.d.ts +18 -0
- package/dist/src/functions/commands/new-addon.js +40 -24
- package/dist/src/functions/knowledge/render.d.ts +3 -0
- package/dist/src/functions/knowledge/render.js +66 -0
- package/dist/src/functions/knowledge/schemas.d.ts +51 -0
- package/dist/src/functions/knowledge/schemas.js +25 -0
- package/dist/src/functions/wirings/credentials/serialize-credentials-types.js +8 -1
- package/dist/src/functions/wirings/secrets/serialize-secrets-types.js +10 -3
- package/dist/src/functions/wirings/variables/serialize-variables-types.js +8 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -5
package/console-app/index.html
CHANGED
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
}
|
|
22
22
|
} catch (e) {}
|
|
23
23
|
</script>
|
|
24
|
-
<script type="module" crossorigin src="/console/assets/index-
|
|
25
|
-
<link rel="stylesheet" crossorigin href="/console/assets/index-
|
|
24
|
+
<script type="module" crossorigin src="/console/assets/index-CmAplHjZ.js"></script>
|
|
25
|
+
<link rel="stylesheet" crossorigin href="/console/assets/index-BYj7ZbUU.css">
|
|
26
26
|
</head>
|
|
27
27
|
<body>
|
|
28
28
|
<div id="root"></div>
|
|
@@ -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.93
|
|
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.93
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* WebSocket channel backend for 'pikku' CLI commands
|
|
@@ -32,6 +32,8 @@ import { dbReset } from '../../src/functions/commands/db-reset.js';
|
|
|
32
32
|
import { dbAudit } from '../../src/functions/commands/db-audit.js';
|
|
33
33
|
import { scopesAudit } from '../../src/functions/commands/scopes-audit.js';
|
|
34
34
|
import { scopesPrune } from '../../src/functions/commands/scopes-prune.js';
|
|
35
|
+
import { knowledgeValidate } from '../../src/functions/commands/knowledge-validate.js';
|
|
36
|
+
import { knowledgeIndex } from '../../src/functions/commands/knowledge-index.js';
|
|
35
37
|
import { workspaceValidate } from '../../src/functions/commands/workspace-validate.js';
|
|
36
38
|
import { scenarioRun } from '../../src/functions/commands/scenario.js';
|
|
37
39
|
import { scenarioList } from '../../src/functions/commands/scenario.js';
|
|
@@ -264,6 +266,14 @@ wireChannel({
|
|
|
264
266
|
func: scopesPrune,
|
|
265
267
|
middleware: [cliCloseOnComplete],
|
|
266
268
|
},
|
|
269
|
+
'knowledge.validate': {
|
|
270
|
+
func: knowledgeValidate,
|
|
271
|
+
middleware: [cliCloseOnComplete],
|
|
272
|
+
},
|
|
273
|
+
'knowledge.index': {
|
|
274
|
+
func: knowledgeIndex,
|
|
275
|
+
middleware: [cliCloseOnComplete],
|
|
276
|
+
},
|
|
267
277
|
'workspace.validate': {
|
|
268
278
|
func: workspaceValidate,
|
|
269
279
|
middleware: [cliCloseOnComplete],
|
|
@@ -304,6 +304,33 @@
|
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
},
|
|
307
|
+
"knowledge": {
|
|
308
|
+
"pikkuFuncId": "",
|
|
309
|
+
"positionals": [],
|
|
310
|
+
"options": {},
|
|
311
|
+
"description": "Inspect and maintain the knowledge base — what this app is, in the language its users use",
|
|
312
|
+
"subcommands": {
|
|
313
|
+
"validate": {
|
|
314
|
+
"pikkuFuncId": "knowledgeValidate",
|
|
315
|
+
"positionals": [],
|
|
316
|
+
"options": {},
|
|
317
|
+
"renderName": "renderKnowledgeValidate",
|
|
318
|
+
"description": "Check the knowledge base against the app-project profile, including every resource: reference"
|
|
319
|
+
},
|
|
320
|
+
"index": {
|
|
321
|
+
"pikkuFuncId": "knowledgeIndex",
|
|
322
|
+
"positionals": [],
|
|
323
|
+
"options": {
|
|
324
|
+
"check": {
|
|
325
|
+
"description": "Report stale indexes without writing anything, for use as a CI gate",
|
|
326
|
+
"default": false
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"renderName": "renderKnowledgeIndex",
|
|
330
|
+
"description": "Refresh every index.md so each section lists the notes actually in it"
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
},
|
|
307
334
|
"workspace": {
|
|
308
335
|
"pikkuFuncId": "",
|
|
309
336
|
"positionals": [],
|
|
@@ -974,6 +974,44 @@
|
|
|
974
974
|
"inputHash": "b5bbc92b",
|
|
975
975
|
"outputHash": "e830c051"
|
|
976
976
|
},
|
|
977
|
+
"knowledgeIndex": {
|
|
978
|
+
"pikkuFuncId": "knowledgeIndex",
|
|
979
|
+
"functionType": "user",
|
|
980
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
981
|
+
"sessionless": true,
|
|
982
|
+
"name": "knowledgeIndex",
|
|
983
|
+
"inputSchemaName": "KnowledgeIndexInput",
|
|
984
|
+
"outputSchemaName": "KnowledgeIndexOutput",
|
|
985
|
+
"inputs": [
|
|
986
|
+
"KnowledgeIndexInput"
|
|
987
|
+
],
|
|
988
|
+
"outputs": [
|
|
989
|
+
"KnowledgeIndexOutput"
|
|
990
|
+
],
|
|
991
|
+
"implementationHash": "249932db6a018cd7",
|
|
992
|
+
"contractHash": "b903894d1051003a",
|
|
993
|
+
"inputHash": "aff763d8",
|
|
994
|
+
"outputHash": "274b63c7"
|
|
995
|
+
},
|
|
996
|
+
"knowledgeValidate": {
|
|
997
|
+
"pikkuFuncId": "knowledgeValidate",
|
|
998
|
+
"functionType": "user",
|
|
999
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
1000
|
+
"sessionless": true,
|
|
1001
|
+
"name": "knowledgeValidate",
|
|
1002
|
+
"inputSchemaName": "KnowledgeValidateInput",
|
|
1003
|
+
"outputSchemaName": "KnowledgeValidateOutput",
|
|
1004
|
+
"inputs": [
|
|
1005
|
+
"KnowledgeValidateInput"
|
|
1006
|
+
],
|
|
1007
|
+
"outputs": [
|
|
1008
|
+
"KnowledgeValidateOutput"
|
|
1009
|
+
],
|
|
1010
|
+
"implementationHash": "30be2e275e523ab2",
|
|
1011
|
+
"contractHash": "711cdbfc5c0b407e",
|
|
1012
|
+
"inputHash": "b652c479",
|
|
1013
|
+
"outputHash": "f16756f6"
|
|
1014
|
+
},
|
|
977
1015
|
"login": {
|
|
978
1016
|
"pikkuFuncId": "login",
|
|
979
1017
|
"functionType": "user",
|
|
@@ -56,6 +56,8 @@
|
|
|
56
56
|
"pikkuInfoTags": "pikkuInfoTags",
|
|
57
57
|
"pikkuInfoMiddleware": "pikkuInfoMiddleware",
|
|
58
58
|
"pikkuInfoPermissions": "pikkuInfoPermissions",
|
|
59
|
+
"knowledgeIndex": "knowledgeIndex",
|
|
60
|
+
"knowledgeValidate": "knowledgeValidate",
|
|
59
61
|
"login": "login",
|
|
60
62
|
"logout": "logout",
|
|
61
63
|
"whoami": "whoami",
|
|
@@ -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.93
|
|
3
3
|
*/
|
|
4
4
|
import { addSchema } from '@pikku/core/schema';
|
|
5
5
|
import * as BinaryInput from './schemas/BinaryInput.schema.json' with { type: 'json' };
|
|
@@ -132,6 +132,14 @@ import * as FabricValidateInput from './schemas/FabricValidateInput.schema.json'
|
|
|
132
132
|
addSchema('FabricValidateInput', FabricValidateInput);
|
|
133
133
|
import * as FabricValidateOutput from './schemas/FabricValidateOutput.schema.json' with { type: 'json' };
|
|
134
134
|
addSchema('FabricValidateOutput', FabricValidateOutput);
|
|
135
|
+
import * as KnowledgeIndexInput from './schemas/KnowledgeIndexInput.schema.json' with { type: 'json' };
|
|
136
|
+
addSchema('KnowledgeIndexInput', KnowledgeIndexInput);
|
|
137
|
+
import * as KnowledgeIndexOutput from './schemas/KnowledgeIndexOutput.schema.json' with { type: 'json' };
|
|
138
|
+
addSchema('KnowledgeIndexOutput', KnowledgeIndexOutput);
|
|
139
|
+
import * as KnowledgeValidateInput from './schemas/KnowledgeValidateInput.schema.json' with { type: 'json' };
|
|
140
|
+
addSchema('KnowledgeValidateInput', KnowledgeValidateInput);
|
|
141
|
+
import * as KnowledgeValidateOutput from './schemas/KnowledgeValidateOutput.schema.json' with { type: 'json' };
|
|
142
|
+
addSchema('KnowledgeValidateOutput', KnowledgeValidateOutput);
|
|
135
143
|
import * as LogoutInput from './schemas/LogoutInput.schema.json' with { type: 'json' };
|
|
136
144
|
addSchema('LogoutInput', LogoutInput);
|
|
137
145
|
import * as PikkuAIAgentOutput from './schemas/PikkuAIAgentOutput.schema.json' with { type: 'json' };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "check": { "description": "Report stale indexes without writing, for use as a CI gate", "type": "boolean" } }, "additionalProperties": false }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "ok": { "type": "boolean" }, "check": { "type": "boolean" }, "files": { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string" }, "action": { "type": "string", "enum": ["created", "updated", "unchanged"] } }, "required": ["path", "action"], "additionalProperties": false } } }, "required": ["ok", "check", "files"], "additionalProperties": false }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": {}, "additionalProperties": false }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "ok": { "type": "boolean" }, "notes": { "type": "number" }, "findings": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "severity": { "type": "string", "enum": ["error", "warn", "info"] }, "message": { "type": "string" }, "path": { "type": "string" }, "fixHint": { "type": "string" } }, "required": ["id", "severity", "message", "path", "fixHint"], "additionalProperties": false } } }, "required": ["ok", "notes", "findings"], "additionalProperties": false }
|