@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.
@@ -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
- * Harness which left the prompt in the middle of its implementation, when another harness took the work over.
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 a status line always names both the
28
- * harness which started the work and the one which is finishing it.
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 startedByRunnerSignature?: string;
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
- * Harness which left the prompt in the middle of its implementation, when another harness took the work over.
26
+ * Chronological runner report read from a prompt left in the middle of its implementation.
26
27
  */
27
- readonly startedByRunnerSignature?: string;
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 Claude Code `claude-opus-5`, started by OpenAI Codex `gpt-5.6-luna` `` for a prompt which one
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
- * Harness which left the prompt in the middle of its implementation, when the work was taken over.
20
+ * Chronological runner report read from the interrupted prompt before its status line is rewritten.
15
21
  */
16
- readonly startedByRunnerSignature?: string;
22
+ readonly previousRunnerSignatures?: PromptRunnerAttribution;
17
23
  }): string;
18
24
  /**
19
- * Reads which harness started the work recorded on one prompt status line.
25
+ * Reads the chronological harness report recorded on one prompt status line.
20
26
  *
21
- * A line written by a single harness names that harness, and a line of a prompt which was already taken
22
- * over keeps naming the harness which started it, so the original author survives any number of takeovers.
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 parsePromptStartedByRunnerSignature(statusLine: string): string | undefined;
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
- * All possible emoji chars like "🍆", "🍡", "🍤"...
13
+ * Curated repository catalogue of emoji and legacy pictographic symbols.
14
14
  *
15
- * @deprecated Use /\p{Extended_Pictographic}/ instead
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
  */
@@ -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-21`).
18
+ * It follows semantic versioning (e.g., `0.114.0-22`).
19
19
  *
20
20
  * @generated
21
21
  */
@@ -1,16 +0,0 @@
1
- import type { string_char_emoji } from '../../../src/types/typeAliasEmoji';
2
- /**
3
- * All possible emoji chars like "🍆", "🍡", "🍤"...
4
- * Note: this will be needed to update annually - now updated at 2022-01-19
5
- *
6
- * @see https://getemoji.com/
7
- */
8
- export declare const EMOJIS_IN_CATEGORIES: Record<string, ReadonlyArray<string_char_emoji>>;
9
- /**
10
- * All possible emoji chars like "🍆", "🍡", "🍤", "🇨🇼", "🧑🏿‍❤️‍💋‍🧑🏻"...
11
- */
12
- export declare const EMOJIS: Set<string_char_emoji>;
13
- /**
14
- * Emojis which are single pictograms like "🍆", "🍡", "🍤"...
15
- */
16
- export declare const EMOJIS_OF_SINGLE_PICTOGRAM: Set<string_char_emoji>;
@@ -1,16 +0,0 @@
1
- import type { string_char_emoji } from '../../../src/types/typeAliasEmoji';
2
- /**
3
- * All possible emoji chars like "🍆", "🍡", "🍤"...
4
- * Note: this will be needed to update annually - now updated at 2022-01-19
5
- *
6
- * @see https://getemoji.com/
7
- */
8
- export declare const EMOJIS_IN_CATEGORIES: Record<string, ReadonlyArray<string_char_emoji>>;
9
- /**
10
- * All possible emoji chars like "🍆", "🍡", "🍤", "🇨🇼", "🧑🏿‍❤️‍💋‍🧑🏻"...
11
- */
12
- export declare const EMOJIS: Set<string_char_emoji>;
13
- /**
14
- * Emojis which are single pictograms like "🍆", "🍡", "🍤"...
15
- */
16
- export declare const EMOJIS_OF_SINGLE_PICTOGRAM: Set<string_char_emoji>;