@promptbook/node 0.112.0-139 → 0.112.0-140
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 +1 -1
- package/esm/index.es.js +14 -5
- package/esm/index.es.js.map +1 -1
- package/esm/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +10 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +14 -5
- package/umd/index.umd.js.map +1 -1
- package/umd/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +10 -0
- package/umd/src/version.d.ts +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ToolCall } from '../../../types/ToolCall';
|
|
2
|
+
/**
|
|
3
|
+
* Returns true when one tool call represents a user-facing action.
|
|
4
|
+
*
|
|
5
|
+
* @param toolCall - Tool call candidate.
|
|
6
|
+
* @returns Whether the tool call should be visible in chat progress and chips.
|
|
7
|
+
*
|
|
8
|
+
* @private internal utility of `<Chat/>`
|
|
9
|
+
*/
|
|
10
|
+
export declare function isVisibleChatToolCall(toolCall: Pick<ToolCall, 'name'>): boolean;
|
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.112.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.112.0-139`).
|
|
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.112.0-
|
|
3
|
+
"version": "0.112.0-140",
|
|
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.112.0-
|
|
100
|
+
"@promptbook/core": "0.112.0-140"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
103
|
"@mozilla/readability": "0.6.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
* @generated
|
|
52
52
|
* @see https://github.com/webgptorg/promptbook
|
|
53
53
|
*/
|
|
54
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
54
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-140';
|
|
55
55
|
/**
|
|
56
56
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
57
57
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -3609,6 +3609,18 @@
|
|
|
3609
3609
|
settleOnce(handler);
|
|
3610
3610
|
});
|
|
3611
3611
|
};
|
|
3612
|
+
/**
|
|
3613
|
+
* Finishes a marker-completed run and then asks bash to stop.
|
|
3614
|
+
*/
|
|
3615
|
+
const finishAfterIdleTimeout = () => {
|
|
3616
|
+
settleWithLog('completed after idle timeout', () => resolve(fullOutput));
|
|
3617
|
+
try {
|
|
3618
|
+
commandProcess.kill();
|
|
3619
|
+
}
|
|
3620
|
+
catch (_a) {
|
|
3621
|
+
// Windows can report EPERM when bash exits before the idle timer fires.
|
|
3622
|
+
}
|
|
3623
|
+
};
|
|
3612
3624
|
/**
|
|
3613
3625
|
* Resets the idle timer that triggers termination after inactivity.
|
|
3614
3626
|
*/
|
|
@@ -3616,10 +3628,7 @@
|
|
|
3616
3628
|
if (idleTimer) {
|
|
3617
3629
|
clearTimeout(idleTimer);
|
|
3618
3630
|
}
|
|
3619
|
-
idleTimer = setTimeout(
|
|
3620
|
-
commandProcess.kill();
|
|
3621
|
-
settleWithLog('completed after idle timeout', () => resolve(fullOutput));
|
|
3622
|
-
}, idleTimeoutMs);
|
|
3631
|
+
idleTimer = setTimeout(finishAfterIdleTimeout, idleTimeoutMs);
|
|
3623
3632
|
};
|
|
3624
3633
|
/**
|
|
3625
3634
|
* Processes completed output lines to detect completion markers.
|