@letta-ai/letta-agent-sdk 0.8.20 → 0.8.21
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/dist/app-server-session.d.ts.map +1 -1
- package/dist/client-base.d.ts.map +1 -1
- package/dist/client-entry.js +14 -2
- package/dist/client-entry.js.map +5 -5
- package/dist/client.d.ts.map +1 -1
- package/dist/index.js +16 -3
- package/dist/index.js.map +6 -6
- package/dist/query-types.d.ts +2 -0
- package/dist/query-types.d.ts.map +1 -1
- package/dist/remote-session-protocol.d.ts +1 -0
- package/dist/remote-session-protocol.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/app-server-session.ts +10 -0
- package/src/client-base.ts +9 -0
- package/src/client.ts +3 -0
- package/src/query-types.ts +2 -0
- package/src/remote-session-protocol.ts +1 -0
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG3D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,OAAO,KAAK,EACV,kBAAkB,EAClB,6BAA6B,EAE7B,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB,qBAAa,gBAAiB,SAAQ,oBAAoB;cACrC,gBAAgB,IAAI,gBAAgB;cAIpC,8BAA8B,IAAI,mBAAmB;cAwB/C,gBAAgB,CACvC,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,MAAM,CAAC;cAiBC,kBAAkB,CACnC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,6BAA6B,GACrC,gBAAgB;cAaA,2BAA2B,CAC5C,YAAY,EAAE,qBAAqB,EACnC,cAAc,EAAE,6BAA6B,GAC5C,gBAAgB;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG3D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,OAAO,KAAK,EACV,kBAAkB,EAClB,6BAA6B,EAE7B,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB,qBAAa,gBAAiB,SAAQ,oBAAoB;cACrC,gBAAgB,IAAI,gBAAgB;cAIpC,8BAA8B,IAAI,mBAAmB;cAwB/C,gBAAgB,CACvC,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,MAAM,CAAC;cAiBC,kBAAkB,CACnC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,6BAA6B,GACrC,gBAAgB;cAaA,2BAA2B,CAC5C,YAAY,EAAE,qBAAqB,EACnC,cAAc,EAAE,6BAA6B,GAC5C,gBAAgB;cAwCA,kBAAkB,CACnC,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,6BAA6B,GACrC,gBAAgB;CAsBpB"}
|
package/dist/index.js
CHANGED
|
@@ -15074,6 +15074,13 @@ class AppServerSession extends RemoteClientSessionCore {
|
|
|
15074
15074
|
const mode = mapPermissionMode(options.permissionMode);
|
|
15075
15075
|
if (mode)
|
|
15076
15076
|
command.mode = mode;
|
|
15077
|
+
if (this.mode.kind === "agent-free" && this.mode.disableMemoryGuard === true) {
|
|
15078
|
+
command.execution_settings = {
|
|
15079
|
+
allowed_tools: [],
|
|
15080
|
+
disallowed_tools: [],
|
|
15081
|
+
disable_memory_guard: true
|
|
15082
|
+
};
|
|
15083
|
+
}
|
|
15077
15084
|
if (options.cwd !== undefined)
|
|
15078
15085
|
command.cwd = options.cwd;
|
|
15079
15086
|
if (this.mode.kind === "session" && this.mode.options.stateless === true) {
|
|
@@ -16931,6 +16938,7 @@ function agentFreeSessionOptions(options) {
|
|
|
16931
16938
|
modelSettings: _modelSettings,
|
|
16932
16939
|
contextWindowLimit: _contextWindowLimit,
|
|
16933
16940
|
conversationId: _conversationId,
|
|
16941
|
+
disableMemoryGuard: _disableMemoryGuard,
|
|
16934
16942
|
...sessionOptions
|
|
16935
16943
|
} = options;
|
|
16936
16944
|
return sessionOptions;
|
|
@@ -17130,6 +17138,9 @@ class LettaAgentClientBase {
|
|
|
17130
17138
|
validateAgentFreeQueryOptions(options);
|
|
17131
17139
|
const sessionOptions = agentFreeSessionOptions(options);
|
|
17132
17140
|
this.assertSessionBackend("query", sessionOptions);
|
|
17141
|
+
if (options.disableMemoryGuard === true && this.backend === "cloud") {
|
|
17142
|
+
throw new Error('query() disableMemoryGuard is only supported with backend: "local" or "remote".');
|
|
17143
|
+
}
|
|
17133
17144
|
if (this.backend === "remote") {
|
|
17134
17145
|
return new AppServerSession(this.appServerSessionOptions(), {
|
|
17135
17146
|
kind: "agent-free",
|
|
@@ -17144,7 +17155,8 @@ class LettaAgentClientBase {
|
|
|
17144
17155
|
...options.contextWindowLimit !== undefined ? { contextWindowLimit: options.contextWindowLimit } : {}
|
|
17145
17156
|
}
|
|
17146
17157
|
},
|
|
17147
|
-
options: sessionOptions
|
|
17158
|
+
options: sessionOptions,
|
|
17159
|
+
...options.disableMemoryGuard === true ? { disableMemoryGuard: true } : {}
|
|
17148
17160
|
});
|
|
17149
17161
|
}
|
|
17150
17162
|
if (this.backend === "cloud") {
|
|
@@ -18028,7 +18040,8 @@ class LettaAgentClient extends LettaAgentClientBase {
|
|
|
18028
18040
|
...queryOptions.contextWindowLimit !== undefined ? { contextWindowLimit: queryOptions.contextWindowLimit } : {}
|
|
18029
18041
|
}
|
|
18030
18042
|
},
|
|
18031
|
-
options: sessionOptions
|
|
18043
|
+
options: sessionOptions,
|
|
18044
|
+
...queryOptions.disableMemoryGuard === true ? { disableMemoryGuard: true } : {}
|
|
18032
18045
|
});
|
|
18033
18046
|
}
|
|
18034
18047
|
resumeLocalSession(id, options) {
|
|
@@ -35620,4 +35633,4 @@ export {
|
|
|
35620
35633
|
CloudManagedSandboxExpiredError
|
|
35621
35634
|
};
|
|
35622
35635
|
|
|
35623
|
-
//# debugId=
|
|
35636
|
+
//# debugId=2F69CD53ED6E55BD64756E2164756E21
|