@promptbook/cli 0.114.0-22 → 0.114.0-23
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/esm/index.es.js +198 -102
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/run-codex-prompts/prompts/buildPromptStatusDetails.d.ts +5 -4
- package/esm/scripts/run-codex-prompts/prompts/markPromptFailed.d.ts +3 -2
- package/esm/scripts/run-codex-prompts/prompts/promptRunnerAttribution.d.ts +14 -8
- package/esm/scripts/utils/emojiTags/validSinglePictogramEmojis.d.ts +17 -0
- package/esm/src/utils/misc/emojis.d.ts +3 -2
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/other/templates/getTemplatesPipelineCollection.ts +1016 -742
- package/src/utils/misc/emojis.ts +3 -3
- package/src/version.ts +2 -2
- package/src/versions.txt +1 -0
- package/umd/index.umd.js +198 -102
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/run-codex-prompts/prompts/buildPromptStatusDetails.d.ts +5 -4
- package/umd/scripts/run-codex-prompts/prompts/markPromptFailed.d.ts +3 -2
- package/umd/scripts/run-codex-prompts/prompts/promptRunnerAttribution.d.ts +14 -8
- package/umd/scripts/utils/emojiTags/validSinglePictogramEmojis.d.ts +17 -0
- package/umd/src/utils/misc/emojis.d.ts +3 -2
- package/umd/src/version.d.ts +1 -1
- package/esm/scripts/find-fresh-emoji-tags/utils/emojis.d.ts +0 -16
- package/umd/scripts/find-fresh-emoji-tags/utils/emojis.d.ts +0 -16
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type CodexLoginMethod } from '../../../src/book-3.0/codexLoginMethod';
|
|
2
2
|
import type { ThinkingLevel } from '../../../src/cli/cli-commands/coder/ThinkingLevel';
|
|
3
3
|
import type { CoderRunStep, CoderRunStepKind } from '../common/CoderRunStep';
|
|
4
|
+
import { type PromptRunnerAttribution } from './promptRunnerAttribution';
|
|
4
5
|
/**
|
|
5
6
|
* Everything one prompt status line says after its checklist marker.
|
|
6
7
|
*/
|
|
@@ -22,12 +23,12 @@ export type BuildPromptStatusDetailsOptions = {
|
|
|
22
23
|
*/
|
|
23
24
|
readonly modelName: string | undefined;
|
|
24
25
|
/**
|
|
25
|
-
*
|
|
26
|
+
* Chronological runner report read from a prompt left in the middle of its implementation.
|
|
26
27
|
*
|
|
27
|
-
* Present only for a prompt resumed through `--git-changes continue`, so
|
|
28
|
-
* harness
|
|
28
|
+
* Present only for a prompt resumed through `--git-changes continue`, so each status rewrite preserves every
|
|
29
|
+
* preceding harness and appends the harness which is currently continuing the work.
|
|
29
30
|
*/
|
|
30
|
-
readonly
|
|
31
|
+
readonly previousRunnerSignatures?: PromptRunnerAttribution;
|
|
31
32
|
/**
|
|
32
33
|
* How many coding attempts the prompt has taken so far.
|
|
33
34
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import moment from 'moment';
|
|
2
|
+
import { type PromptRunnerAttribution } from './promptRunnerAttribution';
|
|
2
3
|
import type { PromptFile } from './types/PromptFile';
|
|
3
4
|
import type { PromptSection } from './types/PromptSection';
|
|
4
5
|
/**
|
|
@@ -22,9 +23,9 @@ export type MarkPromptFailedOptions = {
|
|
|
22
23
|
*/
|
|
23
24
|
readonly modelName: string | undefined;
|
|
24
25
|
/**
|
|
25
|
-
*
|
|
26
|
+
* Chronological runner report read from a prompt left in the middle of its implementation.
|
|
26
27
|
*/
|
|
27
|
-
readonly
|
|
28
|
+
readonly previousRunnerSignatures?: PromptRunnerAttribution;
|
|
28
29
|
/**
|
|
29
30
|
* Moment the failed prompt round started, used to report how long the attempt took.
|
|
30
31
|
*/
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ordered runner signatures recorded in a prompt status line.
|
|
3
|
+
*
|
|
4
|
+
* The first signature started the work and every following signature continued an interrupted run.
|
|
5
|
+
*/
|
|
6
|
+
export type PromptRunnerAttribution = ReadonlyArray<string>;
|
|
1
7
|
/**
|
|
2
8
|
* Formats who worked on one prompt for its status line.
|
|
3
9
|
*
|
|
4
10
|
* Produces `` by Claude Code `claude-opus-5` `` for a prompt implemented by a single harness and
|
|
5
|
-
* `` by
|
|
6
|
-
* harness started and another one continued through `--git-changes continue`.
|
|
11
|
+
* `` by OpenAI Codex `gpt-5.6-luna`, interrupted, continued by Claude Code `claude-opus-5` `` for a
|
|
12
|
+
* prompt which one harness started and another one continued through `--git-changes continue`.
|
|
7
13
|
*/
|
|
8
14
|
export declare function formatPromptRunnerAttribution(options: {
|
|
9
15
|
/**
|
|
@@ -11,14 +17,14 @@ export declare function formatPromptRunnerAttribution(options: {
|
|
|
11
17
|
*/
|
|
12
18
|
readonly currentRunnerSignature: string;
|
|
13
19
|
/**
|
|
14
|
-
*
|
|
20
|
+
* Chronological runner report read from the interrupted prompt before its status line is rewritten.
|
|
15
21
|
*/
|
|
16
|
-
readonly
|
|
22
|
+
readonly previousRunnerSignatures?: PromptRunnerAttribution;
|
|
17
23
|
}): string;
|
|
18
24
|
/**
|
|
19
|
-
* Reads
|
|
25
|
+
* Reads the chronological harness report recorded on one prompt status line.
|
|
20
26
|
*
|
|
21
|
-
* A line written by a single harness
|
|
22
|
-
*
|
|
27
|
+
* A line written by a single harness produces one signature. A line which has already been continued produces
|
|
28
|
+
* every signature in the order in which it worked on the prompt, so another continuation can append to it.
|
|
23
29
|
*/
|
|
24
|
-
export declare function
|
|
30
|
+
export declare function parsePromptRunnerAttribution(statusLine: string): PromptRunnerAttribution | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { string_char_emoji } from '../../../src/types/typeAliasEmoji';
|
|
2
|
+
/**
|
|
3
|
+
* Valid single-pictogram emojis that `ptbk` can use in generated tags.
|
|
4
|
+
*
|
|
5
|
+
* The shared emoji catalogue also contains legacy symbols for other presentation
|
|
6
|
+
* purposes. Restricting generated tags to Unicode emoji-presentation pictograms
|
|
7
|
+
* prevents those symbols from being emitted as prompt identifiers.
|
|
8
|
+
*
|
|
9
|
+
* @private internal utility of generated `ptbk` emoji tags
|
|
10
|
+
*/
|
|
11
|
+
export declare const VALID_SINGLE_PICTOGRAM_EMOJIS: ReadonlySet<string_char_emoji>;
|
|
12
|
+
/**
|
|
13
|
+
* Determines whether one catalogue entry is a valid single-pictogram emoji for a generated tag.
|
|
14
|
+
*
|
|
15
|
+
* @private internal utility of generated `ptbk` emoji tags
|
|
16
|
+
*/
|
|
17
|
+
export declare function isValidSinglePictogramEmoji(emoji: string_char_emoji): boolean;
|
|
@@ -10,9 +10,10 @@ import type { string_char_emoji } from '../../types/typeAliasEmoji';
|
|
|
10
10
|
*/
|
|
11
11
|
export declare const EMOJIS_IN_CATEGORIES: Record<string, ReadonlyArray<string_char_emoji>>;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Curated repository catalogue of emoji and legacy pictographic symbols.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
15
|
+
* Code that needs to generate a valid Unicode emoji should apply its own validation
|
|
16
|
+
* to this catalogue rather than assume every entry is an emoji.
|
|
16
17
|
*
|
|
17
18
|
* @private within the repository
|
|
18
19
|
*/
|
package/esm/src/version.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.114.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.114.0-22`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED