@yeaft/webchat-agent 1.0.533 → 1.0.535
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/local-runtime/server/db/yeaft-project-db.js +17 -0
- package/local-runtime/server/handlers/agent-output.js +24 -0
- package/local-runtime/version.json +1 -1
- package/local-runtime/web/app.bundle.js +154 -166
- package/local-runtime/web/app.bundle.js.gz +0 -0
- package/local-runtime/web/index.html +2 -2
- package/local-runtime/web/style.bundle.css +1 -1
- package/local-runtime/web/style.bundle.css.gz +0 -0
- package/package.json +1 -1
- package/yeaft/sessions/session-crud.js +2 -2
- package/yeaft/web-bridge.js +1 -1
|
Binary file
|
package/package.json
CHANGED
|
@@ -601,8 +601,8 @@ export function createSessionFromSpec(yeaftDir, spec, options = {}) {
|
|
|
601
601
|
|
|
602
602
|
/**
|
|
603
603
|
* Create an independent Session from an existing Session's durable state.
|
|
604
|
-
* Project membership
|
|
605
|
-
* their
|
|
604
|
+
* The Server inherits Project membership when it receives the copy result.
|
|
605
|
+
* Server-owned assets retain their original ownership; message references are preserved.
|
|
606
606
|
*/
|
|
607
607
|
export function copySession(yeaftDir, sourceSessionId, options = {}) {
|
|
608
608
|
const sourceYeaftDir = resolveSessionYeaftDir(yeaftDir, sourceSessionId);
|
package/yeaft/web-bridge.js
CHANGED
|
@@ -3664,7 +3664,7 @@ export function handleYeaftCopySession(msg) {
|
|
|
3664
3664
|
});
|
|
3665
3665
|
recordAgentSessionCreated();
|
|
3666
3666
|
session.config = loadSessionConfig(yeaftDir, session.id);
|
|
3667
|
-
sendSessionCrudResult({ op: 'copy', requestId, ok: true, session });
|
|
3667
|
+
sendSessionCrudResult({ op: 'copy', requestId, ok: true, sourceSessionId: sessionId, session });
|
|
3668
3668
|
sendSessionSnapshotBroadcast();
|
|
3669
3669
|
} catch (err) {
|
|
3670
3670
|
sendSessionCrudResult({ op: 'copy', requestId, ok: false, error: sessionErrorPayload(err) });
|