@pikku/cli 0.12.159 → 0.12.160
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/addon/index.d.ts +1 -1
- package/dist/.pikku/addon/index.js +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.js +1 -1
- package/dist/.pikku/agent/index.d.ts +1 -1
- package/dist/.pikku/agent/index.js +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
- package/dist/.pikku/agent/pikku-model-aliases.gen.js +1 -1
- package/dist/.pikku/analytics/index.d.ts +1 -1
- package/dist/.pikku/analytics/index.js +1 -1
- package/dist/.pikku/analytics/pikku-analytics-types.gen.d.ts +1 -1
- package/dist/.pikku/analytics/pikku-analytics-types.gen.js +1 -1
- package/dist/.pikku/auth/index.d.ts +1 -1
- package/dist/.pikku/auth/index.js +1 -1
- package/dist/.pikku/auth/pikku-auth-types.gen.d.ts +1 -1
- package/dist/.pikku/auth/pikku-auth-types.gen.js +1 -1
- package/dist/.pikku/channel/index.d.ts +1 -1
- package/dist/.pikku/channel/index.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/cli/index.d.ts +1 -1
- package/dist/.pikku/cli/index.js +1 -1
- package/dist/.pikku/cli/pikku-cli-channel.js +6 -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 +25 -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/error/index.d.ts +1 -1
- package/dist/.pikku/error/index.js +1 -1
- package/dist/.pikku/error/pikku-error-types.gen.d.ts +1 -1
- package/dist/.pikku/error/pikku-error-types.gen.js +1 -1
- package/dist/.pikku/function/index.d.ts +1 -1
- package/dist/.pikku/function/index.js +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 +20 -3
- package/dist/.pikku/function/pikku-functions.gen.js +1 -1
- package/dist/.pikku/gateway/index.d.ts +1 -1
- package/dist/.pikku/gateway/index.js +1 -1
- package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts +1 -1
- package/dist/.pikku/gateway/pikku-gateway-types.gen.js +1 -1
- package/dist/.pikku/http/index.d.ts +1 -1
- package/dist/.pikku/http/index.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/index.d.ts +1 -1
- package/dist/.pikku/mcp/index.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/middleware/index.d.ts +1 -1
- package/dist/.pikku/middleware/index.js +1 -1
- package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts +1 -1
- package/dist/.pikku/middleware/pikku-middleware-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-services.gen.d.ts +1 -1
- package/dist/.pikku/queue/index.d.ts +1 -1
- package/dist/.pikku/queue/index.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 +1 -0
- package/dist/.pikku/scenarios/index.d.ts +1 -1
- package/dist/.pikku/scenarios/index.js +1 -1
- package/dist/.pikku/scenarios/pikku-personas.gen.js +1 -1
- 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-types.gen.d.ts +7 -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/index.d.ts +1 -1
- package/dist/.pikku/scheduler/index.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 +3 -1
- package/dist/.pikku/schemas/schemas/ScenarioGuideInput.schema.json +1 -0
- package/dist/.pikku/scopes/index.d.ts +1 -1
- package/dist/.pikku/scopes/index.js +1 -1
- package/dist/.pikku/scopes/pikku-flags.gen.d.ts +1 -1
- package/dist/.pikku/scopes/pikku-personas.gen.js +1 -1
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts +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/index.d.ts +1 -1
- package/dist/.pikku/secrets/index.js +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/services/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/services/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/setup/index.d.ts +1 -1
- package/dist/.pikku/setup/index.js +1 -1
- package/dist/.pikku/setup/pikku-setup-types.gen.d.ts +1 -1
- package/dist/.pikku/setup/pikku-setup-types.gen.js +1 -1
- package/dist/.pikku/trigger/index.d.ts +1 -1
- package/dist/.pikku/trigger/index.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/index.d.ts +1 -1
- package/dist/.pikku/variables/index.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/index.d.ts +1 -1
- package/dist/.pikku/workflow/index.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 +25 -1
- package/dist/src/deploy/build-pipeline.d.ts +2 -0
- package/dist/src/deploy/build-pipeline.js +4 -3
- package/dist/src/functions/commands/deploy-apply.js +1 -0
- package/dist/src/functions/commands/deploy-plan.js +1 -0
- package/dist/src/functions/commands/scenario-guide.d.ts +184 -0
- package/dist/src/functions/commands/scenario-guide.js +313 -0
- package/dist/src/functions/commands/scenario-ladder.d.ts +3 -1
- package/dist/src/functions/commands/scenario-ladder.js +1 -0
- package/dist/src/functions/commands/scenario-plan.d.ts +17 -1
- package/dist/src/functions/commands/scenario-plan.js +15 -0
- package/dist/src/functions/commands/scenario.d.ts +30 -0
- package/dist/src/functions/commands/scenario.js +186 -22
- package/dist/src/functions/wirings/scenarios/serialize-feature-meta.js +1 -0
- package/dist/src/functions/wirings/workflow/serialize-scenario-types.js +6 -0
- package/dist/src/services.js +3 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/surface.json +1 -1
|
@@ -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.160
|
|
3
3
|
*/
|
|
4
4
|
import type { PikkuScenarioWire, ScenarioStepOptions } from '@pikku/core/scenario';
|
|
5
5
|
import type { PikkuWorkflowWire } from '@pikku/core/workflow';
|
|
@@ -130,6 +130,12 @@ type PikkuFeatureConfig<Scenarios extends readonly unknown[]> = {
|
|
|
130
130
|
name: string;
|
|
131
131
|
description?: string;
|
|
132
132
|
tags?: string[];
|
|
133
|
+
/**
|
|
134
|
+
* Whether this feature is guide material, defaulting to true. `pikku scenario
|
|
135
|
+
* guide` requires every documented feature to be cited by a page; a feature
|
|
136
|
+
* that is pure plumbing sets this false rather than being written about.
|
|
137
|
+
*/
|
|
138
|
+
document?: boolean;
|
|
133
139
|
scenarios: {
|
|
134
140
|
[K in keyof Scenarios]: PikkuFeatureEntry<Scenarios[K]>;
|
|
135
141
|
};
|
|
@@ -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.160
|
|
3
3
|
*/
|
|
4
4
|
import { addSchema } from '@pikku/core/schema';
|
|
5
5
|
import * as BinaryInput from './schemas/BinaryInput.schema.json' with { type: 'json' };
|
|
@@ -388,6 +388,8 @@ import * as RolesAuditInput from './schemas/RolesAuditInput.schema.json' with {
|
|
|
388
388
|
addSchema('RolesAuditInput', RolesAuditInput);
|
|
389
389
|
import * as RolesPruneInput from './schemas/RolesPruneInput.schema.json' with { type: 'json' };
|
|
390
390
|
addSchema('RolesPruneInput', RolesPruneInput);
|
|
391
|
+
import * as ScenarioGuideInput from './schemas/ScenarioGuideInput.schema.json' with { type: 'json' };
|
|
392
|
+
addSchema('ScenarioGuideInput', ScenarioGuideInput);
|
|
391
393
|
import * as ScenarioListInput from './schemas/ScenarioListInput.schema.json' with { type: 'json' };
|
|
392
394
|
addSchema('ScenarioListInput', ScenarioListInput);
|
|
393
395
|
import * as ScopesAuditInput from './schemas/ScopesAuditInput.schema.json' with { type: 'json' };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "docs": { "type": "string" }, "output": { "type": "string" }, "runId": { "type": "string" }, "allowUndocumented": { "type": "boolean" }, "artifactBase": { "type": "string" } }, "additionalProperties": false, "definitions": {} }
|
|
@@ -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.160
|
|
3
3
|
*/
|
|
4
4
|
import { WorkflowCancelledException } from '@pikku/core/workflow';
|
|
5
5
|
import type { PikkuWorkflowGraphConfig, PikkuWorkflowGraphResult } from '@pikku/core/workflow';
|
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.160') {
|
|
15
|
+
process.stderr.write(`\n Update available 0.12.160 → ${latest}\n brew upgrade pikku or npm install -g @pikku/cli\n\n`)
|
|
16
16
|
}
|
|
17
17
|
} catch {}
|
|
18
18
|
}
|
package/dist/src/cli.wiring.js
CHANGED
|
@@ -38,7 +38,7 @@ import { knowledgeValidate, renderKnowledgeValidate, } from './functions/command
|
|
|
38
38
|
import { knowledgeIndex, renderKnowledgeIndex, } from './functions/commands/knowledge-index.js';
|
|
39
39
|
import { knowledgeReconcile, renderKnowledgeReconcile, } from './functions/commands/knowledge-reconcile.js';
|
|
40
40
|
import { knowledgePlanDefer, knowledgePlanProgress, knowledgePlanSchema, knowledgePlanSet, knowledgePlanShow, renderKnowledgePlanDefer, renderKnowledgePlanProgress, renderKnowledgePlanSchema, renderKnowledgePlanSet, renderKnowledgePlanShow, } from './functions/commands/knowledge-plan.js';
|
|
41
|
-
import { scenarioRun, scenarioList } from './functions/commands/scenario.js';
|
|
41
|
+
import { scenarioRun, scenarioList, scenarioGuide, } from './functions/commands/scenario.js';
|
|
42
42
|
import { personaList, personaRun, personaSecret, } from './functions/commands/persona.js';
|
|
43
43
|
import { personaSync } from './functions/commands/persona-sync.js';
|
|
44
44
|
import { pikkuVersionsInit } from './functions/commands/versions-init.js';
|
|
@@ -708,6 +708,30 @@ wireCLI({
|
|
|
708
708
|
func: scenarioList,
|
|
709
709
|
description: 'List scenarios with names and descriptions',
|
|
710
710
|
}),
|
|
711
|
+
guide: pikkuCLICommand({
|
|
712
|
+
func: scenarioGuide,
|
|
713
|
+
description: "Write the user guide the suite already contains: each page's editorial prose merged with the steps and screenshots the latest run recorded. Markdown only — no HTML, no asset URLs, no model.",
|
|
714
|
+
options: {
|
|
715
|
+
docs: {
|
|
716
|
+
description: 'Where the editorial sources live, relative to the project. A `<!-- pikku:guide feature=<id> -->` marker pair in a `<section>/<slug>.md` is both the citation and the place the block is written',
|
|
717
|
+
default: 'docs',
|
|
718
|
+
},
|
|
719
|
+
output: {
|
|
720
|
+
description: 'Where the merged markdown is written (default: <outDir>/guide)',
|
|
721
|
+
short: 'o',
|
|
722
|
+
},
|
|
723
|
+
runId: {
|
|
724
|
+
description: 'Build from this run rather than the most recent one',
|
|
725
|
+
},
|
|
726
|
+
allowUndocumented: {
|
|
727
|
+
description: 'Report features no page documents instead of failing on them',
|
|
728
|
+
default: false,
|
|
729
|
+
},
|
|
730
|
+
artifactBase: {
|
|
731
|
+
description: "Prefix every figure with this instead of the path from the page to the run's artifacts — for a host that serves them at a fixed address. Route-relative (`/docs/_media/`) keeps the output portable; an origin pins it to one host",
|
|
732
|
+
},
|
|
733
|
+
},
|
|
734
|
+
}),
|
|
711
735
|
},
|
|
712
736
|
},
|
|
713
737
|
persona: {
|
|
@@ -111,6 +111,8 @@ export declare function runBuildPipeline(options: {
|
|
|
111
111
|
srcDirectories?: string[];
|
|
112
112
|
/** Emit sourcemaps + per-unit `metafile.json` (debug-only). Default false. */
|
|
113
113
|
debugArtifacts?: boolean;
|
|
114
|
+
/** Overrides the provider's own choice when set. See PikkuCLIConfig. */
|
|
115
|
+
mangleIdentifiers?: boolean;
|
|
114
116
|
logger: BuildLogger;
|
|
115
117
|
/** Runtime-specific bundler (esbuild for node, Bun.build for bun). */
|
|
116
118
|
bundler: Bundler;
|
|
@@ -193,7 +193,7 @@ function resolveLifecycle(unitDir, state) {
|
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
195
|
export async function runBuildPipeline(options) {
|
|
196
|
-
const { projectDir, projectId, provider, inspectorState, getEntryContext, debugArtifacts, logger, bundler, } = options;
|
|
196
|
+
const { projectDir, projectId, provider, inspectorState, getEntryContext, debugArtifacts, mangleIdentifiers, logger, bundler, } = options;
|
|
197
197
|
const deployDir = options.deployDir ?? join(projectDir, '.deploy');
|
|
198
198
|
const providerDir = join(deployDir, provider.deployDirName);
|
|
199
199
|
// Step 1: Analyze
|
|
@@ -263,7 +263,7 @@ export async function runBuildPipeline(options) {
|
|
|
263
263
|
define: provider.getDefine?.(),
|
|
264
264
|
platform: provider.getPlatform?.(),
|
|
265
265
|
format: provider.getFormat?.(),
|
|
266
|
-
mangleIdentifiers: provider.getMangleIdentifiers?.(),
|
|
266
|
+
mangleIdentifiers: mangleIdentifiers ?? provider.getMangleIdentifiers?.(),
|
|
267
267
|
noRequireShim: provider.getNoRequireShim?.(),
|
|
268
268
|
sourcemap: debugArtifacts,
|
|
269
269
|
emitMetafile: debugArtifacts,
|
|
@@ -417,7 +417,7 @@ export async function runBuildPipeline(options) {
|
|
|
417
417
|
define: provider.getDefine?.(),
|
|
418
418
|
platform: provider.getPlatform?.(),
|
|
419
419
|
format: provider.getFormat?.(),
|
|
420
|
-
mangleIdentifiers: provider.getMangleIdentifiers?.(),
|
|
420
|
+
mangleIdentifiers: mangleIdentifiers ?? provider.getMangleIdentifiers?.(),
|
|
421
421
|
noRequireShim: provider.getNoRequireShim?.(),
|
|
422
422
|
sourcemap: debugArtifacts,
|
|
423
423
|
emitMetafile: debugArtifacts,
|
|
@@ -442,6 +442,7 @@ export async function runBuildPipeline(options) {
|
|
|
442
442
|
define: undefined,
|
|
443
443
|
platform: 'node',
|
|
444
444
|
format: 'esm',
|
|
445
|
+
mangleIdentifiers,
|
|
445
446
|
noRequireShim: false,
|
|
446
447
|
sourcemap: debugArtifacts,
|
|
447
448
|
emitMetafile: debugArtifacts,
|