@promptbook/node 0.114.0-12 → 0.114.0-13
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 +154 -50
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/run-agent-messages/messages/buildAgentGoalChatPromptSection.d.ts +22 -4
- package/esm/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +3 -3
- package/esm/src/book-3.0/AgentMessageRunReport.d.ts +28 -0
- package/esm/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +94 -0
- package/esm/src/book-3.0/AgentPlannedMessagesSidecar.test.d.ts +1 -0
- package/esm/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
- package/esm/src/book-components/Chat/utils/agentProjectToolCall.d.ts +46 -0
- package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +24 -0
- package/esm/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +59 -0
- package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
- package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts +1 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +154 -50
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/run-agent-messages/messages/buildAgentGoalChatPromptSection.d.ts +22 -4
- package/umd/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +3 -3
- package/umd/src/book-3.0/AgentMessageRunReport.d.ts +28 -0
- package/umd/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +94 -0
- package/umd/src/book-3.0/AgentPlannedMessagesSidecar.test.d.ts +1 -0
- package/umd/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
- package/umd/src/book-components/Chat/utils/agentProjectToolCall.d.ts +46 -0
- package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +24 -0
- package/umd/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +59 -0
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts +1 -0
- package/umd/src/version.d.ts +1 -1
- package/esm/apps/agents-server/src/utils/agentGoalChat/agentGoalChatConstants.d.ts +0 -12
- package/esm/apps/agents-server/src/utils/agentProjects/agentProjectRuntimeConstants.d.ts +0 -40
- package/umd/apps/agents-server/src/utils/agentGoalChat/agentGoalChatConstants.d.ts +0 -12
- package/umd/apps/agents-server/src/utils/agentProjects/agentProjectRuntimeConstants.d.ts +0 -40
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AgentPlannedMessageSnapshot } from '../../../src/book-3.0/AgentPlannedMessagesSidecar';
|
|
2
|
+
/**
|
|
3
|
+
* Planned-message sidecar information made visible to one coding-harness prompt.
|
|
4
|
+
*/
|
|
5
|
+
export type AgentPlannedMessagesPromptSidecar = {
|
|
6
|
+
/**
|
|
7
|
+
* Portable path of the sidecar inside the agent folder.
|
|
8
|
+
*/
|
|
9
|
+
readonly relativeSidecarPath: string;
|
|
10
|
+
/**
|
|
11
|
+
* Planned messages that are already waiting to wake the agent.
|
|
12
|
+
*/
|
|
13
|
+
readonly currentPlannedMessages: ReadonlyArray<AgentPlannedMessageSnapshot>;
|
|
14
|
+
};
|
|
2
15
|
/**
|
|
3
16
|
* Builds the planned-message instructions available to an Agents Server-managed coding agent.
|
|
4
17
|
*
|
|
5
|
-
* Planned messages always target the agent's singleton goal chat, regardless of the chat in which
|
|
6
|
-
*
|
|
18
|
+
* Planned messages always target the agent's singleton goal chat, regardless of the chat in which the
|
|
19
|
+
* wake-up is planned, and they repeat like `setInterval` until they are cancelled. The sidecar file is
|
|
20
|
+
* the only channel that changes them, so an answer that merely claims a follow-up was planned changes
|
|
21
|
+
* nothing — and an answer that changes nothing keeps the current plan running.
|
|
22
|
+
*
|
|
23
|
+
* @param sidecar - Sidecar prepared by the Agents Server for the answered message.
|
|
24
|
+
* @returns Prompt section, or an empty string outside Agents Server-managed runs.
|
|
7
25
|
*/
|
|
8
|
-
export declare function buildAgentGoalChatPromptSection(
|
|
26
|
+
export declare function buildAgentGoalChatPromptSection(sidecar: AgentPlannedMessagesPromptSidecar | undefined): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AgentServerRuntimePromptApi } from './AgentServerRuntimePromptApi';
|
|
2
1
|
import { type AgentProjectsPromptSectionOptions } from './buildAgentProjectsPromptSection';
|
|
2
|
+
import { type AgentPlannedMessagesPromptSidecar } from './buildAgentGoalChatPromptSection';
|
|
3
3
|
import { type AgentTeamPromptWorkspace } from './buildAgentTeamPromptSection';
|
|
4
4
|
/**
|
|
5
5
|
* Options adjusting the generated agent message prompt.
|
|
@@ -10,9 +10,9 @@ export type BuildAgentMessagePromptOptions = AgentProjectsPromptSectionOptions &
|
|
|
10
10
|
*/
|
|
11
11
|
teamWorkspace?: AgentTeamPromptWorkspace;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Planned-message sidecar prepared by the Agents Server for the agent's singleton goal chat.
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
plannedMessagesSidecar?: AgentPlannedMessagesPromptSidecar;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* Builds the prompt sent to the selected coding runner for one queued user-thread book.
|
|
@@ -9,6 +9,23 @@ import type { CodexLoginMethod } from './codexLoginMethod';
|
|
|
9
9
|
* @private internal constant of the agent folder convention
|
|
10
10
|
*/
|
|
11
11
|
export declare const AGENT_MESSAGE_RUN_REPORT_FILE_SUFFIX = ".report.json";
|
|
12
|
+
/**
|
|
13
|
+
* Exact wall-clock interval during which one harness processed an agent message.
|
|
14
|
+
*
|
|
15
|
+
* Note: [🚉] This is fully serializable as JSON
|
|
16
|
+
*
|
|
17
|
+
* @private internal type of the agent folder convention
|
|
18
|
+
*/
|
|
19
|
+
export type AgentMessageRunExecutionTiming = {
|
|
20
|
+
/**
|
|
21
|
+
* ISO 8601 timestamp captured immediately before the harness begins the message.
|
|
22
|
+
*/
|
|
23
|
+
readonly startedAt: string;
|
|
24
|
+
/**
|
|
25
|
+
* ISO 8601 timestamp captured when the harness finishes the message.
|
|
26
|
+
*/
|
|
27
|
+
readonly finishedAt: string;
|
|
28
|
+
};
|
|
12
29
|
/**
|
|
13
30
|
* Report describing how one queued agent message was answered by a CLI harness runner.
|
|
14
31
|
*
|
|
@@ -44,6 +61,17 @@ export type AgentMessageRunReport = {
|
|
|
44
61
|
* Usage statistics of the run (price, token counts, duration).
|
|
45
62
|
*/
|
|
46
63
|
readonly usage: Usage;
|
|
64
|
+
/**
|
|
65
|
+
* Measured wall-clock timing of the actual harness execution, excluding time spent waiting in the queue.
|
|
66
|
+
*/
|
|
67
|
+
readonly executionTiming?: AgentMessageRunExecutionTiming;
|
|
68
|
+
/**
|
|
69
|
+
* Directory names of the agent projects the harness worked with while answering the message.
|
|
70
|
+
*
|
|
71
|
+
* Reported by the runner from its live runtime log, which is deleted once the message is
|
|
72
|
+
* answered, so this is the only trace of the projects one answer viewed or edited.
|
|
73
|
+
*/
|
|
74
|
+
readonly touchedProjectNames?: ReadonlyArray<string>;
|
|
47
75
|
};
|
|
48
76
|
/**
|
|
49
77
|
* Builds the run-report sidecar path for one message book path.
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Relative directory holding the planned-message sidecar of each queued message.
|
|
3
|
+
*
|
|
4
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
5
|
+
*/
|
|
6
|
+
export declare const AGENT_PLANNED_MESSAGES_DIRECTORY_PATH: string;
|
|
7
|
+
/**
|
|
8
|
+
* Command actions an agent can request from its planned-message sidecar.
|
|
9
|
+
*
|
|
10
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
11
|
+
*/
|
|
12
|
+
export declare const AGENT_PLANNED_MESSAGE_COMMAND_ACTIONS: readonly ["set", "cancel"];
|
|
13
|
+
/**
|
|
14
|
+
* One planned-message command action.
|
|
15
|
+
*
|
|
16
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
17
|
+
*/
|
|
18
|
+
export type AgentPlannedMessageCommandAction = (typeof AGENT_PLANNED_MESSAGE_COMMAND_ACTIONS)[number];
|
|
19
|
+
/**
|
|
20
|
+
* One planned message that is already waiting to wake the agent.
|
|
21
|
+
*
|
|
22
|
+
* A planned message repeats like `setInterval`, so `intervalMs` is what the agent compares with its
|
|
23
|
+
* goal, while `dueAt` only says when the nearest repetition happens.
|
|
24
|
+
*
|
|
25
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
26
|
+
*/
|
|
27
|
+
export type AgentPlannedMessageSnapshot = {
|
|
28
|
+
readonly timeoutId: string;
|
|
29
|
+
readonly dueAt: string;
|
|
30
|
+
readonly message: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Repeat interval in milliseconds, or `null` for a planned message that wakes the agent only once.
|
|
33
|
+
*/
|
|
34
|
+
readonly intervalMs: number | null;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* One command written by the coding harness into its planned-message sidecar.
|
|
38
|
+
*
|
|
39
|
+
* The payload stays untyped on purpose: it is untrusted harness output and is validated by the very
|
|
40
|
+
* same shared planned-message actions that back the model tools and the internal runtime API.
|
|
41
|
+
*
|
|
42
|
+
* For a `set` command, `milliseconds` is the repeat interval of the planned message, not a one-shot delay.
|
|
43
|
+
*
|
|
44
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
45
|
+
*/
|
|
46
|
+
export type AgentPlannedMessageCommand = {
|
|
47
|
+
readonly action: AgentPlannedMessageCommandAction;
|
|
48
|
+
readonly milliseconds?: unknown;
|
|
49
|
+
readonly message?: unknown;
|
|
50
|
+
readonly timeoutId?: unknown;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Planned-message sidecar prepared for one queued message.
|
|
54
|
+
*
|
|
55
|
+
* `currentPlannedMessages` is written by the Agents Server and is read-only for the agent, while
|
|
56
|
+
* `commands` is the only channel through which a coding harness can plan or cancel a wake-up.
|
|
57
|
+
*
|
|
58
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
59
|
+
*/
|
|
60
|
+
export type AgentPlannedMessagesSidecar = {
|
|
61
|
+
readonly version: 1;
|
|
62
|
+
readonly agentPermanentId: string;
|
|
63
|
+
readonly currentPlannedMessages: ReadonlyArray<AgentPlannedMessageSnapshot>;
|
|
64
|
+
readonly commands: ReadonlyArray<AgentPlannedMessageCommand>;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Creates the relative planned-message sidecar path of one queued message.
|
|
68
|
+
*
|
|
69
|
+
* @param messageFileName - File name of the queued `.book` message.
|
|
70
|
+
* @returns Relative path of the sidecar inside the agent folder.
|
|
71
|
+
*
|
|
72
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
73
|
+
*/
|
|
74
|
+
export declare function createAgentPlannedMessagesSidecarPath(messageFileName: string): string;
|
|
75
|
+
/**
|
|
76
|
+
* Serializes one planned-message sidecar into its stored representation.
|
|
77
|
+
*
|
|
78
|
+
* @param sidecar - Sidecar prepared for one queued message.
|
|
79
|
+
* @returns Pretty-printed JSON the coding harness can edit by hand.
|
|
80
|
+
*
|
|
81
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
82
|
+
*/
|
|
83
|
+
export declare function createAgentPlannedMessagesSidecarContent(sidecar: AgentPlannedMessagesSidecar): string;
|
|
84
|
+
/**
|
|
85
|
+
* Parses one untrusted planned-message sidecar written back by a coding harness.
|
|
86
|
+
*
|
|
87
|
+
* A malformed sidecar never fails the already answered chat, so this returns `null` instead of throwing.
|
|
88
|
+
*
|
|
89
|
+
* @param sidecarContent - Raw file content read from the agent folder.
|
|
90
|
+
* @returns Normalized sidecar, or `null` when it cannot be used.
|
|
91
|
+
*
|
|
92
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
93
|
+
*/
|
|
94
|
+
export declare function parseAgentPlannedMessagesSidecar(sidecarContent: string): AgentPlannedMessagesSidecar | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates the stable file-system safe base name that belongs to one queued `.book` message.
|
|
3
|
+
*
|
|
4
|
+
* Every sidecar the Agents Server prepares next to a queued message (TEAM workspaces, planned-message
|
|
5
|
+
* files, ...) derives its own name from this one normalization, so a sidecar can always be found again
|
|
6
|
+
* from the message file name alone.
|
|
7
|
+
*
|
|
8
|
+
* @param messageFileName - File name of the queued message, with or without directories.
|
|
9
|
+
* @returns Normalized base name usable as a directory or file name.
|
|
10
|
+
*
|
|
11
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
12
|
+
*/
|
|
13
|
+
export declare function createAgentMessageSidecarBaseName(messageFileName: string): string;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Synthetic tool name used for agent-project chips in chat UI.
|
|
3
|
+
*
|
|
4
|
+
* The Agents Server emits one such tool call per project an answer viewed or edited, so the chat
|
|
5
|
+
* shows which projects the agent worked with below the message that touched them.
|
|
6
|
+
*
|
|
7
|
+
* @private internal chat-ui marker for touched agent projects
|
|
8
|
+
*/
|
|
9
|
+
export declare const AGENT_PROJECT_TOOL_CALL_NAME = "agent_project_touched";
|
|
10
|
+
/**
|
|
11
|
+
* Safe, user-facing metadata shown in agent-project chips.
|
|
12
|
+
*
|
|
13
|
+
* @private internal chat-ui type for touched agent projects
|
|
14
|
+
*/
|
|
15
|
+
export type AgentProjectToolCallResult = {
|
|
16
|
+
/**
|
|
17
|
+
* Directory name of the project.
|
|
18
|
+
*/
|
|
19
|
+
readonly projectName: string;
|
|
20
|
+
/**
|
|
21
|
+
* Human-readable project name shown in the chip.
|
|
22
|
+
*/
|
|
23
|
+
readonly displayName?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Link to the project page, when the chat knows where the project lives.
|
|
26
|
+
*/
|
|
27
|
+
readonly projectHref?: string;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Parses the project-chip payload from one tool result.
|
|
31
|
+
*
|
|
32
|
+
* @param result - Raw tool result payload.
|
|
33
|
+
* @returns Parsed project metadata, or `null` when the result describes no project.
|
|
34
|
+
*
|
|
35
|
+
* @private internal helper reused by chip and modal rendering
|
|
36
|
+
*/
|
|
37
|
+
export declare function parseAgentProjectToolCallResult(result: unknown): AgentProjectToolCallResult | null;
|
|
38
|
+
/**
|
|
39
|
+
* Resolves the chip label of one touched agent project.
|
|
40
|
+
*
|
|
41
|
+
* @param projectResult - Parsed project metadata.
|
|
42
|
+
* @returns Human-readable project name.
|
|
43
|
+
*
|
|
44
|
+
* @private internal helper reused by chip and modal rendering
|
|
45
|
+
*/
|
|
46
|
+
export declare function resolveAgentProjectToolCallLabel(projectResult: AgentProjectToolCallResult): string;
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import type { TODO_any } from '../../../utils/organization/TODO_any';
|
|
2
|
+
/**
|
|
3
|
+
* Tool name of one scheduled wake-up, used by every producer of timeout chips.
|
|
4
|
+
*
|
|
5
|
+
* @private internal timeout-chat constant
|
|
6
|
+
*/
|
|
7
|
+
export declare const SET_TIMEOUT_TOOL_CALL_NAME = "set_timeout";
|
|
8
|
+
/**
|
|
9
|
+
* Tool name of one cancelled wake-up, used by every producer of timeout chips.
|
|
10
|
+
*
|
|
11
|
+
* @private internal timeout-chat constant
|
|
12
|
+
*/
|
|
13
|
+
export declare const CANCEL_TIMEOUT_TOOL_CALL_NAME = "cancel_timeout";
|
|
2
14
|
/**
|
|
3
15
|
* Action performed by timeout tools.
|
|
4
16
|
*
|
|
@@ -140,4 +152,16 @@ export declare function buildTimeoutToolPrimarySentence(presentation: TimeoutToo
|
|
|
140
152
|
* @private internal utility of `<Chat/>`
|
|
141
153
|
*/
|
|
142
154
|
export declare function buildTimeoutToolScheduleSentence(presentation: TimeoutToolCallPresentation, translations?: TimeoutToolCallTranslations): string | null;
|
|
155
|
+
/**
|
|
156
|
+
* Converts timeout duration into natural language sentence fragments.
|
|
157
|
+
*
|
|
158
|
+
* Shared by every timeout surface: the chat chips, the goal-chat planned messages of the Agents
|
|
159
|
+
* Server, and the planned-message prompt section of the agent-folder runner.
|
|
160
|
+
*
|
|
161
|
+
* @param milliseconds - Duration or repeat interval in milliseconds.
|
|
162
|
+
* @returns Label such as `5 minutes` or `1 hour 30 minutes`.
|
|
163
|
+
*
|
|
164
|
+
* @private internal utility of `<Chat/>` and the Agents Server planned messages
|
|
165
|
+
*/
|
|
166
|
+
export declare function formatTimeoutDurationHuman(milliseconds: number): string;
|
|
143
167
|
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One string-keyed payload of a coding-harness tool invocation.
|
|
3
|
+
*
|
|
4
|
+
* @private internal type of agent-message runtime logs
|
|
5
|
+
*/
|
|
6
|
+
type RuntimeLogToolInput = Record<string, unknown>;
|
|
7
|
+
/**
|
|
8
|
+
* One content block of a Claude Code `stream-json` assistant event.
|
|
9
|
+
*
|
|
10
|
+
* @private internal type of agent-message runtime logs
|
|
11
|
+
*/
|
|
12
|
+
export type AgentMessageRuntimeLogContentBlock = {
|
|
13
|
+
readonly type?: string;
|
|
14
|
+
readonly text?: string;
|
|
15
|
+
readonly name?: string;
|
|
16
|
+
readonly input?: RuntimeLogToolInput;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* One file path touched by a Codex `file_change` item.
|
|
20
|
+
*
|
|
21
|
+
* @private internal type of agent-message runtime logs
|
|
22
|
+
*/
|
|
23
|
+
export type AgentMessageRuntimeLogFileChange = {
|
|
24
|
+
readonly path?: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Minimal shape of one coding-harness runtime log event.
|
|
28
|
+
*
|
|
29
|
+
* The runtime log mixes two harness formats — Claude Code `stream-json` (`type`/`message`) and
|
|
30
|
+
* Codex JSONL (`type`/`item`) — so both are described by one permissive structure and every
|
|
31
|
+
* consumer reads only the fields it understands.
|
|
32
|
+
*
|
|
33
|
+
* @private internal type of agent-message runtime logs
|
|
34
|
+
*/
|
|
35
|
+
export type AgentMessageRuntimeLogEvent = {
|
|
36
|
+
readonly type?: string;
|
|
37
|
+
readonly message?: {
|
|
38
|
+
readonly content?: ReadonlyArray<AgentMessageRuntimeLogContentBlock>;
|
|
39
|
+
};
|
|
40
|
+
readonly item?: {
|
|
41
|
+
readonly type?: string;
|
|
42
|
+
readonly command?: string;
|
|
43
|
+
readonly exit_code?: number | null;
|
|
44
|
+
readonly changes?: ReadonlyArray<AgentMessageRuntimeLogFileChange>;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Parses every structured event out of one coding-harness runtime log.
|
|
49
|
+
*
|
|
50
|
+
* The local agent runner streams the answering harness output into a live runtime log file, one
|
|
51
|
+
* JSON event per line, optionally prefixed by shell noise. Lines without a usable JSON object are
|
|
52
|
+
* skipped so a partially written or interleaved log never breaks its consumers.
|
|
53
|
+
*
|
|
54
|
+
* @param logText - Raw runtime log content.
|
|
55
|
+
* @returns Structured events in the order they were streamed.
|
|
56
|
+
* @private internal utility of the agent-message runtime
|
|
57
|
+
*/
|
|
58
|
+
export declare function parseAgentMessageRuntimeLogEvents(logText: string | null | undefined): ReadonlyArray<AgentMessageRuntimeLogEvent>;
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves which projects one coding harness touched while answering a single message.
|
|
3
|
+
*
|
|
4
|
+
* The runtime log streams what the harness really did, so a project counts as touched when the
|
|
5
|
+
* harness named it in a tool invocation — reading, searching, running, or editing files inside
|
|
6
|
+
* `projects/<project-name>/`. Only tool payloads are inspected: tool results and assistant
|
|
7
|
+
* narration are ignored so a project merely mentioned in the conversation is never reported.
|
|
8
|
+
*
|
|
9
|
+
* Every candidate is matched against the projects that really exist, which both filters prompt
|
|
10
|
+
* placeholders such as `projects/<project-name>/` and keeps the reported names canonical.
|
|
11
|
+
*
|
|
12
|
+
* @param options - Raw runtime log content and the project directory names of the agent.
|
|
13
|
+
* @returns Touched project names in the canonical spelling, ordered by first appearance.
|
|
14
|
+
* @private internal utility of the agent-message runtime
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolveAgentMessageTouchedProjectNames(options: {
|
|
17
|
+
readonly logText: string | null | undefined;
|
|
18
|
+
readonly knownProjectNames: ReadonlyArray<string>;
|
|
19
|
+
}): ReadonlyArray<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
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-12`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/node",
|
|
3
|
-
"version": "0.114.0-
|
|
3
|
+
"version": "0.114.0-13",
|
|
4
4
|
"description": "Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"types": "./esm/src/_packages/node.index.d.ts",
|
|
98
98
|
"typings": "./esm/src/_packages/node.index.d.ts",
|
|
99
99
|
"peerDependencies": {
|
|
100
|
-
"@promptbook/core": "0.114.0-
|
|
100
|
+
"@promptbook/core": "0.114.0-13"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
103
|
"@openai/agents": "0.4.15",
|