@leitwerk-dev/showcase-processes 0.3.0 → 0.4.0
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/README.md +6 -25
- package/dist/file-external.d.ts +2 -22
- package/dist/file-external.d.ts.map +1 -1
- package/dist/filesystem-watcher.d.ts.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +63 -721
- package/dist/index.js.map +1 -1
- package/dist/process-definition.d.ts +2 -14
- package/dist/process-definition.d.ts.map +1 -1
- package/dist/testing/harness.d.ts +2 -12
- package/dist/testing/harness.d.ts.map +1 -1
- package/dist/ui/manifest.json +0 -12
- package/package.json +4 -4
- package/src/file-external.ts +6 -253
- package/src/filesystem-watcher.ts +4 -3
- package/src/index.ts +15 -36
- package/src/process-definition.ts +54 -606
- package/src/testing/harness.ts +7 -68
- package/src/ui/manifest.json +0 -12
- package/dist/trigger-files.d.ts +0 -15
- package/dist/trigger-files.d.ts.map +0 -1
- package/dist/turns/external-complete.d.ts +0 -11
- package/dist/turns/external-complete.d.ts.map +0 -1
- package/dist/turns/run-single-prompt.d.ts +0 -14
- package/dist/turns/run-single-prompt.d.ts.map +0 -1
- package/dist/ui/assets/leaf-outcome-element.js +0 -245
- package/dist/ui/assets/leaf-outcome-element.js.map +0 -1
- package/dist/ui/leaf-outcome-element.d.ts +0 -2
- package/dist/ui/leaf-outcome-element.d.ts.map +0 -1
- package/src/trigger-files.ts +0 -47
- package/src/turns/external-complete.ts +0 -12
- package/src/turns/run-single-prompt.ts +0 -76
- package/src/ui/leaf-outcome-element.ts +0 -95
package/README.md
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
# Showcase processes extension
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Poem Creator drafts poems, supports human and automated review, and renders the selected result.
|
|
4
4
|
|
|
5
|
-
-
|
|
6
|
-
- Single Prompt;
|
|
7
|
-
- Single Prompt with Tool;
|
|
8
|
-
- external-completion examples;
|
|
9
|
-
- Kubernetes smoke processes.
|
|
10
|
-
|
|
11
|
-
It also provides a filesystem external-source provider and selected-leaf renderer assets.
|
|
5
|
+
The single-prompt and Kubernetes smoke processes live in [example-processes](../example-processes/README.md). To retain those processes when upgrading, load that extension too and move `file_triggers.complete_prompt_path` from `extensions.showcase-processes` to `extensions.example-processes`. Process and launcher ids stay unchanged.
|
|
12
6
|
|
|
13
7
|
## Load
|
|
14
8
|
|
|
@@ -21,7 +15,6 @@ extensions:
|
|
|
21
15
|
showcase-processes:
|
|
22
16
|
file_triggers:
|
|
23
17
|
poem_review_path: /tmp/poem-review-{instanceId}
|
|
24
|
-
complete_prompt_path: /tmp/complete-prompt
|
|
25
18
|
```
|
|
26
19
|
|
|
27
20
|
`{instanceId}` prevents concurrent poem processes from sharing one review file.
|
|
@@ -54,28 +47,16 @@ When the automated reviewer leaves feedback, the operator can:
|
|
|
54
47
|
- request review changes and continue on the review branch;
|
|
55
48
|
- dismiss the review and return to the primary poem decision without applying the feedback.
|
|
56
49
|
|
|
57
|
-
Dismissing feedback clears the active review result and branch reference. The existing poem remains available for completion, revision, or another automated review.
|
|
50
|
+
Dismissing feedback clears the active review result and branch reference. The existing poem remains available for completion, revision, or another automated review. Review outcomes include a concise summary separate from the full review result.
|
|
58
51
|
|
|
59
|
-
##
|
|
52
|
+
## Review files
|
|
60
53
|
|
|
61
|
-
|
|
54
|
+
While a poem awaits review, non-empty feedback in `poem_review_path` requests another draft. Missing files are ignored. Successful admission consumes the file; rejected admission retains it for a later poll.
|
|
62
55
|
|
|
63
56
|
## Browser assets
|
|
64
57
|
|
|
65
58
|
The source lane loads `src/ui/manifest.json` and lets Vite transform the custom-element sources directly. The dist build publishes the import manifest and bundles under `dist/ui`; run `npm run build:ext-ui` when validating those production assets. Both lanes expose the modules through `/ext-ui/...`.
|
|
66
59
|
|
|
67
|
-
Turn labels stay concise: Run Prompt for single-prompt work, and Draft Poem,
|
|
68
|
-
Review, Assess Poem, and Review Feedback for the poem process. The human
|
|
69
|
-
review and automated assessment remain distinct; turn ids and routing are unchanged.
|
|
70
|
-
|
|
71
|
-
Poem review outcomes publish their existing concise summary separately from the full review result. This adds no turn or model call and leaves human review routing unchanged.
|
|
72
|
-
|
|
73
60
|
## API support
|
|
74
61
|
|
|
75
|
-
The
|
|
76
|
-
|
|
77
|
-
- `@leitwerk-dev/showcase-processes`: `default`.
|
|
78
|
-
|
|
79
|
-
See the [SDK compatibility policy](../../docs/process-sdk.md#api-compatibility) for member classifications and support guarantees.
|
|
80
|
-
|
|
81
|
-
Filesystem trigger helpers are internal to this extension. A missing file is ignored; a failed admission retains the trigger file for a later poll.
|
|
62
|
+
The default export from `@leitwerk-dev/showcase-processes` is `@public`. See the [SDK compatibility policy](../../docs/process-sdk.md#api-compatibility).
|
package/dist/file-external.d.ts
CHANGED
|
@@ -1,29 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { type PollResult } from "@leitwerk-dev/watcher-utils";
|
|
3
|
-
/** @internal */
|
|
4
|
-
export type FileExternalConsumeMode = "delete" | "keep";
|
|
5
|
-
/** @internal */
|
|
6
|
-
export interface FileExternalInput {
|
|
7
|
-
/** @internal */
|
|
8
|
-
path: string;
|
|
9
|
-
/** @internal */
|
|
10
|
-
pollInterval: string;
|
|
11
|
-
/** @internal */
|
|
12
|
-
consume: FileExternalConsumeMode;
|
|
13
|
-
}
|
|
14
|
-
/** @internal */
|
|
15
|
-
export declare const FILE_EXTERNAL_PRESENCE_KIND = "@leitwerk-dev/showcase-processes.file.presence";
|
|
1
|
+
import { type FileExternalInput } from "@leitwerk-dev/process-sdk";
|
|
16
2
|
/** @internal */
|
|
17
3
|
export declare const FILE_EXTERNAL_INSTRUCTION_KIND = "@leitwerk-dev/showcase-processes.file.instruction";
|
|
18
4
|
/** @internal */
|
|
19
5
|
export declare const fileExternal: {
|
|
20
6
|
/** @internal */
|
|
21
|
-
|
|
22
|
-
/** @internal */
|
|
23
|
-
instruction(input: FileExternalInput): ExternalActionSource;
|
|
24
|
-
};
|
|
25
|
-
/** @internal */
|
|
26
|
-
export declare function createFileExternalSourceProvider(deps: CoreServerSetupDeps, aliases?: Partial<Record<string, string>>): {
|
|
27
|
-
poll(): Promise<PollResult>;
|
|
7
|
+
instruction(input: FileExternalInput): import("@leitwerk-dev/process-sdk").ExternalActionSource<unknown, unknown, unknown, Record<string, unknown>>;
|
|
28
8
|
};
|
|
29
9
|
//# sourceMappingURL=file-external.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-external.d.ts","sourceRoot":"","sources":["../src/file-external.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"file-external.d.ts","sourceRoot":"","sources":["../src/file-external.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE7F,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,sDAAsD,CAAC;AAElG,gBAAgB;AAChB,eAAO,MAAM,YAAY;IACxB,gBAAgB;uBACG,iBAAiB;CAQpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filesystem-watcher.d.ts","sourceRoot":"","sources":["../src/filesystem-watcher.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"filesystem-watcher.d.ts","sourceRoot":"","sources":["../src/filesystem-watcher.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AASrE,gBAAgB;AAChB,MAAM,WAAW,sBAAsB;IACtC,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB;IAChB,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,gBAAgB;AAChB,MAAM,WAAW,uBAAuB;IACvC,gBAAgB;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAC;CACjB;AAgBD,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,2GAoClC,CAAC;AAEH,gBAAgB;AAChB,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,mBAAmB;IAqCvE,gBAAgB;;;;EAGjB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type LeitwerkExtensionModule } from "@leitwerk-dev/process-sdk";
|
|
2
2
|
/** @public */
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const showcaseProcessesExtension: LeitwerkExtensionModule;
|
|
4
|
+
export default showcaseProcessesExtension;
|
|
5
5
|
export { buildPoemLeafOutcomeFallbackMarkdown, buildPoemLeafOutcomePayload, } from "./poem-leaf-outcome.js";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,uBAAuB,EAC5B,MAAM,2BAA2B,CAAC;AAyBnC,cAAc;AACd,QAAA,MAAM,0BAA0B,EAAE,uBAoBjC,CAAC;AAEF,eAAe,0BAA0B,CAAC;AAC1C,OAAO,EACN,oCAAoC,EACpC,2BAA2B,GAC3B,MAAM,wBAAwB,CAAC"}
|