managed-deepagents 0.8.3-dev.2 → 0.8.3-dev.4

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 +1 @@
1
- {"version":3,"file":"define-deep-agent.d.ts","sourceRoot":"","sources":["../src/define-deep-agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EAEtB,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,eAAe,CAAC,KAAK,CAAC,OAAO,SAAS,qBAAqB,EACzE,MAAM,EAAE,OAAO,GACd,mBAAmB,CAAC,OAAO,CAAC,CAoD9B"}
1
+ {"version":3,"file":"define-deep-agent.d.ts","sourceRoot":"","sources":["../src/define-deep-agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EAEtB,MAAM,YAAY,CAAC;AAYpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,eAAe,CAAC,KAAK,CAAC,OAAO,SAAS,qBAAqB,EACzE,MAAM,EAAE,OAAO,GACd,mBAAmB,CAAC,OAAO,CAAC,CAwC9B"}
@@ -1,3 +1,11 @@
1
+ const DEFINE_DEEP_AGENT_UNSUPPORTED_KEYS = {
2
+ backend: "Configure the sandbox in sandbox/.",
3
+ store: "MDA provides the store automatically.",
4
+ checkpointer: "MDA provides the checkpointer automatically.",
5
+ memory: "Declare memory in memory.ts.",
6
+ skills: "Put skills in skills/.",
7
+ systemPrompt: "Put the system prompt in instructions.md.",
8
+ };
1
9
  /**
2
10
  * Define a Managed Deep Agent.
3
11
  *
@@ -29,20 +37,17 @@
29
37
  * ```
30
38
  */
31
39
  export function defineDeepAgent(config) {
32
- // Runtime enforcement of the managed-key contract. The types forbid these keys
33
- // at compile time, but JS callers and untyped config can bypass that. Python
34
- // rejects the same knobs via an explicit keyword-only signature (no catch-all
35
- // kwargs), so this object-shape check is TypeScript-specific.
40
+ // JavaScript callers do not get the TypeScript checks for managed keys.
36
41
  const provided = config;
37
42
  if (typeof provided.name !== "string" || provided.name.trim() === "") {
38
43
  throw new Error("name is required in defineDeepAgent(...). Pass a static string " +
39
44
  '(e.g. name: "research-assistant"); MDA uses it as the LangGraph ' +
40
45
  "assistant id and the default LangSmith deployment name.");
41
46
  }
42
- if ("systemPrompt" in provided) {
43
- throw new Error("systemPrompt is managed by MDA and cannot be set in defineDeepAgent(...). " +
44
- "Write your agent's system prompt in instructions.md next to agent.ts; " +
45
- "the CLI embeds it at deploy time.");
47
+ for (const [key, guidance] of Object.entries(DEFINE_DEEP_AGENT_UNSUPPORTED_KEYS)) {
48
+ if (key in provided) {
49
+ throw new Error(`Remove \`${key}\` from defineDeepAgent(...). ${guidance}`);
50
+ }
46
51
  }
47
52
  // Memory is no longer a knob on the agent definition: it is declared once, in
48
53
  // `memory.ts`. Rejecting the old flag outright (rather than treating it as a
@@ -54,12 +59,6 @@ export function defineDeepAgent(config) {
54
59
  '`defineMemory({ scope: "agent" })` or `scope: "user"` to enable it, or leave the file out ' +
55
60
  "to keep no memory (the default). Remove `disableMemory` here.");
56
61
  }
57
- const managed = ["backend", "store", "checkpointer", "memory", "skills"].filter((key) => key in provided);
58
- if (managed.length > 0) {
59
- throw new Error(`${managed.join(", ")} ${managed.length === 1 ? "is" : "are"} owned by the ` +
60
- "managed runtime and cannot be set in defineDeepAgent(...). Configure the " +
61
- "sandbox under sandbox/; the store and checkpointer are wired automatically.");
62
- }
63
62
  // Brands are type-only; runtime value is still the pre-compile definition.
64
63
  return {
65
64
  kind: "deep-agent",
@@ -1 +1 @@
1
- {"version":3,"file":"define-deep-agent.js","sourceRoot":"","sources":["../src/define-deep-agent.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,UAAU,eAAe,CAC7B,MAAe;IAEf,+EAA+E;IAC/E,6EAA6E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mappings":"AAMA,MAAM,kCAAkC,GACtC;IACE,OAAO,EAAE,oCAAoC;IAC7C,KAAK,EAAE,uCAAuC;IAC9C,YAAY,EAAE,8CAA8C;IAC5D,MAAM,EAAE,8BAA8B;IACtC,MAAM,EAAE,wBAAwB;IAChC,YAAY,EAAE,2CAA2C;CAC1D,CAAC;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,UAAU,eAAe,CAC7B,MAAe;IAEf,wEAAwE;IACxE,MAAM,QAAQ,GAAG,MAAiC,CAAC;IAEnD,IAAI,OAAO,QAAQ,CAAC,IAAI,KAAK,QAAQ,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACrE,MAAM,IAAI,KAAK,CACb,iEAAiE;YAC/D,kEAAkE;YAClE,yDAAyD,CAC5D,CAAC;IACJ,CAAC;IAED,KAAK,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAC1C,kCAAkC,CACnC,EAAE,CAAC;QACF,IAAI,GAAG,IAAI,QAAQ,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CACb,YAAY,GAAG,iCAAiC,QAAQ,EAAE,CAC3D,CAAC;QACJ,CAAC;IACH,CAAC;IAED,8EAA8E;IAC9E,6EAA6E;IAC7E,0EAA0E;IAC1E,+BAA+B;IAC/B,IAAI,eAAe,IAAI,QAAQ,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,wEAAwE;YACtE,mEAAmE;YACnE,4FAA4F;YAC5F,+DAA+D,CAClE,CAAC;IACJ,CAAC;IAED,2EAA2E;IAC3E,OAAO;QACL,IAAI,EAAE,YAAY;QAClB,MAAM;KACyB,CAAC;AACpC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "managed-deepagents",
3
- "version": "0.8.3-dev.2",
3
+ "version": "0.8.3-dev.4",
4
4
  "description": "Managed Deep Agents — the `defineDeepAgent` authoring interface plus the CLI that compiles and deploys a code-first Deep Agent repository to a managed LangGraph runtime.",
5
5
  "keywords": [
6
6
  "langchain",
@@ -66,12 +66,12 @@
66
66
  "zod": "^4.6.2"
67
67
  },
68
68
  "optionalDependencies": {
69
- "@langchain/managed-deepagents-darwin-arm64": "0.8.3-dev.2",
70
- "@langchain/managed-deepagents-darwin-x64": "0.8.3-dev.2",
71
- "@langchain/managed-deepagents-linux-arm64": "0.8.3-dev.2",
72
- "@langchain/managed-deepagents-linux-x64": "0.8.3-dev.2",
73
- "@langchain/managed-deepagents-win32-arm64": "0.8.3-dev.2",
74
- "@langchain/managed-deepagents-win32-x64": "0.8.3-dev.2"
69
+ "@langchain/managed-deepagents-darwin-arm64": "0.8.3-dev.4",
70
+ "@langchain/managed-deepagents-darwin-x64": "0.8.3-dev.4",
71
+ "@langchain/managed-deepagents-linux-arm64": "0.8.3-dev.4",
72
+ "@langchain/managed-deepagents-linux-x64": "0.8.3-dev.4",
73
+ "@langchain/managed-deepagents-win32-arm64": "0.8.3-dev.4",
74
+ "@langchain/managed-deepagents-win32-x64": "0.8.3-dev.4"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@types/node": "^26.5.1",