managed-deepagents 0.0.1 → 0.0.2

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 ADDED
@@ -0,0 +1,39 @@
1
+ # managed-deepagents (npm)
2
+
3
+ Managed Deep Agents for the Node.js ecosystem: the `defineDeepAgent` authoring
4
+ interface plus the `mda` CLI.
5
+
6
+ ```bash
7
+ npm install managed-deepagents
8
+ ```
9
+
10
+ ## Authoring interface
11
+
12
+ ```ts
13
+ import { defineDeepAgent } from "managed-deepagents";
14
+ import instructions from "./instructions.md" with { type: "text" };
15
+ import { queryDB } from "./tools/query-db";
16
+
17
+ export const agent = defineDeepAgent({
18
+ model: "openai:gpt-5.5",
19
+ systemPrompt: instructions,
20
+ tools: [queryDB],
21
+ });
22
+ ```
23
+
24
+ `defineDeepAgent` accepts the full `createDeepAgent` surface minus the managed
25
+ keys (`backend`, `store`, `checkpointer`) and returns a pre-runtime spec. The
26
+ `managed-deepagents/runtime` subpath exports `compileManagedAgent`, used by the
27
+ entry module that `mda deploy` generates.
28
+
29
+ ## CLI
30
+
31
+ ```bash
32
+ mda deploy --root ./my-agent
33
+ ```
34
+
35
+ The package ships a thin launcher (`bin/mda.mjs`) that runs the prebuilt,
36
+ cross-compiled `mda` binary for your platform. The binary is delivered through
37
+ per-platform optional dependencies, so installing this package only downloads
38
+ the binary for your OS and CPU architecture. The CLI is a single Rust binary
39
+ built once and distributed to both npm and PyPI.
package/bin/mda.mjs ADDED
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env node
2
+
3
+ // Thin launcher that forwards all arguments to the prebuilt `mda` binary for
4
+ // the current platform. The binary is distributed via per-platform packages
5
+ // (see src/resolve.ts, compiled to dist/resolve.js).
6
+
7
+ import { spawnSync } from "node:child_process";
8
+
9
+ import { resolveBinary } from "../dist/resolve.js";
10
+
11
+ function main() {
12
+ let binary;
13
+ try {
14
+ binary = resolveBinary();
15
+ } catch (error) {
16
+ process.stderr.write(`${error.message}\n`);
17
+ process.exit(1);
18
+ }
19
+
20
+ const result = spawnSync(binary, process.argv.slice(2), { stdio: "inherit" });
21
+
22
+ if (result.error) {
23
+ process.stderr.write(`failed to launch mda: ${result.error.message}\n`);
24
+ process.exit(1);
25
+ }
26
+
27
+ process.exit(result.status === null ? 1 : result.status);
28
+ }
29
+
30
+ main();
@@ -0,0 +1,27 @@
1
+ import type { DeepAgentDefinition, DefineDeepAgentConfig } from "./types.js";
2
+ /**
3
+ * Define a Managed Deep Agent.
4
+ *
5
+ * `defineDeepAgent` is the v0 authoring contract for MDA. It accepts the full
6
+ * `createDeepAgent` surface except the managed keys (`backend`, `store`,
7
+ * `checkpointer`) and returns a pre-runtime spec — not a compiled graph.
8
+ *
9
+ * At deploy time, `mda` generates an entry module that hands this definition to
10
+ * the managed runtime, which injects the platform-owned backend/store/
11
+ * checkpointer and compiles it into a Deep Agent.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * import { defineDeepAgent } from "managed-deepagents";
16
+ * import instructions from "./instructions.md" with { type: "markdown" };
17
+ * import { queryDB } from "./tools/query-db";
18
+ *
19
+ * export const agent = defineDeepAgent({
20
+ * model: "openai:gpt-5.5",
21
+ * systemPrompt: instructions,
22
+ * tools: [queryDB],
23
+ * });
24
+ * ```
25
+ */
26
+ export declare function defineDeepAgent(config: DefineDeepAgentConfig): DeepAgentDefinition;
27
+ //# sourceMappingURL=define-deep-agent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define-deep-agent.d.ts","sourceRoot":"","sources":["../src/define-deep-agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,qBAAqB,GAAG,mBAAmB,CAKlF"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Define a Managed Deep Agent.
3
+ *
4
+ * `defineDeepAgent` is the v0 authoring contract for MDA. It accepts the full
5
+ * `createDeepAgent` surface except the managed keys (`backend`, `store`,
6
+ * `checkpointer`) and returns a pre-runtime spec — not a compiled graph.
7
+ *
8
+ * At deploy time, `mda` generates an entry module that hands this definition to
9
+ * the managed runtime, which injects the platform-owned backend/store/
10
+ * checkpointer and compiles it into a Deep Agent.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * import { defineDeepAgent } from "managed-deepagents";
15
+ * import instructions from "./instructions.md" with { type: "markdown" };
16
+ * import { queryDB } from "./tools/query-db";
17
+ *
18
+ * export const agent = defineDeepAgent({
19
+ * model: "openai:gpt-5.5",
20
+ * systemPrompt: instructions,
21
+ * tools: [queryDB],
22
+ * });
23
+ * ```
24
+ */
25
+ export function defineDeepAgent(config) {
26
+ return {
27
+ kind: "deep-agent",
28
+ config: config,
29
+ };
30
+ }
31
+ //# sourceMappingURL=define-deep-agent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define-deep-agent.js","sourceRoot":"","sources":["../src/define-deep-agent.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,eAAe,CAAC,MAA6B;IAC3D,OAAO;QACL,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,MAAuC;KAChD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { defineDeepAgent } from "./define-deep-agent.js";
2
+ export type { ChannelAttachment, ChannelDestination, ChannelEvent, ChannelMessage, ChannelPostOptions, DeepAgentDefinition, DefineDeepAgentConfig, ManagedDeepAgentKey, PostedChannelMessage, Runtime, RuntimeChannel, } from "./types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,OAAO,EACP,cAAc,GACf,MAAM,YAAY,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { defineDeepAgent } from "./define-deep-agent.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,11 @@
1
+ interface PlatformPackage {
2
+ pkg: string;
3
+ bin: string;
4
+ }
5
+ export declare const PLATFORM_PACKAGES: Record<string, PlatformPackage>;
6
+ /**
7
+ * Resolve the absolute path to the platform-specific `mda` binary.
8
+ */
9
+ export declare function resolveBinary(): string;
10
+ export {};
11
+ //# sourceMappingURL=resolve.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../src/resolve.ts"],"names":[],"mappings":"AASA,UAAU,eAAe;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAM7D,CAAC;AAEF;;GAEG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAqBtC"}
@@ -0,0 +1,33 @@
1
+ // Maps Node's process.platform/process.arch to the per-platform npm package
2
+ // that ships the matching prebuilt `mda` binary. These packages are published
3
+ // as optionalDependencies of the main `managed-deepagents` package, so npm only
4
+ // installs the one relevant to the host.
5
+ import { createRequire } from "node:module";
6
+ const require = createRequire(import.meta.url);
7
+ export const PLATFORM_PACKAGES = {
8
+ "darwin arm64": { pkg: "@langchain/managed-deepagents-darwin-arm64", bin: "mda" },
9
+ "darwin x64": { pkg: "@langchain/managed-deepagents-darwin-x64", bin: "mda" },
10
+ "linux arm64": { pkg: "@langchain/managed-deepagents-linux-arm64", bin: "mda" },
11
+ "linux x64": { pkg: "@langchain/managed-deepagents-linux-x64", bin: "mda" },
12
+ "win32 x64": { pkg: "@langchain/managed-deepagents-win32-x64", bin: "mda.exe" },
13
+ };
14
+ /**
15
+ * Resolve the absolute path to the platform-specific `mda` binary.
16
+ */
17
+ export function resolveBinary() {
18
+ const key = `${process.platform} ${process.arch}`;
19
+ const entry = PLATFORM_PACKAGES[key];
20
+ if (!entry) {
21
+ throw new Error(`managed-deepagents does not ship a prebuilt binary for ${key}.\n` +
22
+ `Supported platforms: ${Object.keys(PLATFORM_PACKAGES).join(", ")}.`);
23
+ }
24
+ try {
25
+ return require.resolve(`${entry.pkg}/bin/${entry.bin}`);
26
+ }
27
+ catch (cause) {
28
+ throw new Error(`The platform package "${entry.pkg}" is not installed.\n` +
29
+ `This usually means optional dependencies were skipped during install.\n` +
30
+ `Reinstall with optional dependencies enabled (e.g. \`npm install managed-deepagents\`).`, { cause });
31
+ }
32
+ }
33
+ //# sourceMappingURL=resolve.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve.js","sourceRoot":"","sources":["../src/resolve.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,8EAA8E;AAC9E,gFAAgF;AAChF,yCAAyC;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAO/C,MAAM,CAAC,MAAM,iBAAiB,GAAoC;IAChE,cAAc,EAAE,EAAE,GAAG,EAAE,4CAA4C,EAAE,GAAG,EAAE,KAAK,EAAE;IACjF,YAAY,EAAE,EAAE,GAAG,EAAE,0CAA0C,EAAE,GAAG,EAAE,KAAK,EAAE;IAC7E,aAAa,EAAE,EAAE,GAAG,EAAE,2CAA2C,EAAE,GAAG,EAAE,KAAK,EAAE;IAC/E,WAAW,EAAE,EAAE,GAAG,EAAE,yCAAyC,EAAE,GAAG,EAAE,KAAK,EAAE;IAC3E,WAAW,EAAE,EAAE,GAAG,EAAE,yCAAyC,EAAE,GAAG,EAAE,SAAS,EAAE;CAChF,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,aAAa;IAC3B,MAAM,GAAG,GAAG,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;IAClD,MAAM,KAAK,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC;IAErC,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CACb,0DAA0D,GAAG,KAAK;YAChE,wBAAwB,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CACvE,CAAC;IACJ,CAAC;IAED,IAAI,CAAC;QACH,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,GAAG,QAAQ,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1D,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,yBAAyB,KAAK,CAAC,GAAG,uBAAuB;YACvD,yEAAyE;YACzE,yFAAyF,EAC3F,EAAE,KAAK,EAAE,CACV,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { DeepAgentDefinition } from "./types.js";
2
+ /**
3
+ * The LangGraph runnable config passed to a graph factory at invocation time.
4
+ *
5
+ * Kept loose for v0; the managed runtime reads identity and thread metadata
6
+ * from here to scope the store/sandbox in a later milestone.
7
+ */
8
+ export interface ManagedRunConfig {
9
+ configurable?: Record<string, unknown>;
10
+ [key: string]: unknown;
11
+ }
12
+ /**
13
+ * Compile a {@link DeepAgentDefinition} into a runnable Deep Agent.
14
+ *
15
+ * This is the seam where MDA injects the platform-owned backend, store, and
16
+ * checkpointer. It is consumed only by the entry module that `mda deploy`
17
+ * generates — agent authors never call it directly.
18
+ *
19
+ * v0: the managed backend/store/checkpointer wiring is not yet attached, so the
20
+ * authored definition is compiled straight through. The managed wiring lands in
21
+ * a follow-up milestone; this signature is the stable injection point.
22
+ */
23
+ export declare function compileManagedAgent(definition: DeepAgentDefinition, config?: ManagedRunConfig): unknown;
24
+ //# sourceMappingURL=runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,mBAAmB,EAE/B,MAAM,CAAC,EAAE,gBAAgB,WAK1B"}
@@ -0,0 +1,20 @@
1
+ import { createDeepAgent } from "deepagents";
2
+ /**
3
+ * Compile a {@link DeepAgentDefinition} into a runnable Deep Agent.
4
+ *
5
+ * This is the seam where MDA injects the platform-owned backend, store, and
6
+ * checkpointer. It is consumed only by the entry module that `mda deploy`
7
+ * generates — agent authors never call it directly.
8
+ *
9
+ * v0: the managed backend/store/checkpointer wiring is not yet attached, so the
10
+ * authored definition is compiled straight through. The managed wiring lands in
11
+ * a follow-up milestone; this signature is the stable injection point.
12
+ */
13
+ export function compileManagedAgent(definition,
14
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
15
+ config) {
16
+ // TODO(mda): inject managed { backend, store, checkpointer } here, scoped by
17
+ // `config.configurable.identity` / `thread_id`.
18
+ return createDeepAgent({ ...definition.config });
19
+ }
20
+ //# sourceMappingURL=runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAe7C;;;;;;;;;;GAUG;AACH,MAAM,UAAU,mBAAmB,CACjC,UAA+B;AAC/B,6DAA6D;AAC7D,MAAyB;IAEzB,6EAA6E;IAC7E,gDAAgD;IAChD,OAAO,eAAe,CAAC,EAAE,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;AACnD,CAAC"}
@@ -0,0 +1,96 @@
1
+ import type { CreateDeepAgentParams } from "deepagents";
2
+ /**
3
+ * Properties the managed runtime owns. Agent authors never set these — MDA
4
+ * wires the backend, store, and checkpointer at deploy time.
5
+ */
6
+ export type ManagedDeepAgentKey = "backend" | "store" | "checkpointer";
7
+ /**
8
+ * Configuration accepted by {@link defineDeepAgent}.
9
+ *
10
+ * This is the full `createDeepAgent` parameter surface minus the managed keys.
11
+ * Setting a managed key is a compile-time error, pointing authors at the
12
+ * managed `sandbox/`, store, and checkpointer wiring instead.
13
+ */
14
+ export type DefineDeepAgentConfig = Omit<CreateDeepAgentParams, ManagedDeepAgentKey> & {
15
+ /** Managed: the runtime owns the backend. Configure it under `sandbox/`. */
16
+ backend?: never;
17
+ /** Managed: the runtime owns the durable store. */
18
+ store?: never;
19
+ /** Managed: the runtime owns the checkpointer. */
20
+ checkpointer?: never;
21
+ };
22
+ /**
23
+ * The pre-runtime spec returned by {@link defineDeepAgent}.
24
+ *
25
+ * It is intentionally *not* a compiled graph: the CLI generates an entry module
26
+ * that hands this definition to the managed runtime, which injects the managed
27
+ * backend/store/checkpointer and compiles it into a Deep Agent.
28
+ */
29
+ export interface DeepAgentDefinition {
30
+ readonly kind: "deep-agent";
31
+ readonly config: Omit<CreateDeepAgentParams, ManagedDeepAgentKey>;
32
+ }
33
+ /**
34
+ * Metadata about the inbound channel event that created or resumed a run.
35
+ */
36
+ export interface ChannelEvent {
37
+ id?: string;
38
+ type: string;
39
+ timestamp?: string;
40
+ }
41
+ export type ChannelDestination = {
42
+ type: "current_thread";
43
+ } | {
44
+ type: "provider_thread";
45
+ providerChannelId: string;
46
+ providerThreadId: string;
47
+ } | {
48
+ type: "provider_channel";
49
+ providerChannelId: string;
50
+ };
51
+ export interface ChannelAttachment {
52
+ name: string;
53
+ contentType?: string;
54
+ data: Uint8Array | string;
55
+ }
56
+ export interface ChannelMessage {
57
+ text: string;
58
+ blocks?: unknown[];
59
+ attachments?: ChannelAttachment[];
60
+ to?: ChannelDestination;
61
+ providerOptions?: Record<string, unknown>;
62
+ }
63
+ export interface ChannelPostOptions {
64
+ /**
65
+ * Mark this post as the final agent message for the channel, used when
66
+ * `autoReply` is enabled.
67
+ */
68
+ final?: boolean;
69
+ }
70
+ export interface PostedChannelMessage {
71
+ id: string;
72
+ providerMessageId?: string;
73
+ url?: string;
74
+ }
75
+ /**
76
+ * The channel that triggered the current run, available on `runtime.channel`.
77
+ *
78
+ * Tools and middleware can post back without knowing any provider specifics —
79
+ * the originating channel and thread ride along on the run.
80
+ */
81
+ export interface RuntimeChannel {
82
+ name: string;
83
+ provider: "slack" | "discord" | "email" | "webhook" | "http" | "schedule";
84
+ event: ChannelEvent;
85
+ post(message: ChannelMessage, options?: ChannelPostOptions): Promise<PostedChannelMessage>;
86
+ }
87
+ /**
88
+ * The managed runtime surface available to tools and middleware.
89
+ *
90
+ * This is intentionally narrow for v0; channels, identity, and connections grow
91
+ * as those parts of the spec land.
92
+ */
93
+ export interface Runtime {
94
+ channel: RuntimeChannel;
95
+ }
96
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,OAAO,GAAG,cAAc,CAAC;AAEvE;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,qBAAqB,EAAE,mBAAmB,CAAC,GAAG;IACrF,4EAA4E;IAC5E,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,mDAAmD;IACnD,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,kDAAkD;IAClD,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,qBAAqB,EAAE,mBAAmB,CAAC,CAAC;CACnE;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,kBAAkB,GAC1B;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,GAC1B;IACE,IAAI,EAAE,iBAAiB,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;CAC1B,GACD;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5D,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,UAAU,GAAG,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAClC,EAAE,CAAC,EAAE,kBAAkB,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC3C;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC;IAC1E,KAAK,EAAE,YAAY,CAAC;IACpB,IAAI,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAC5F;AAED;;;;;GAKG;AACH,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,cAAc,CAAC;CACzB"}
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,12 +1,65 @@
1
1
  {
2
2
  "name": "managed-deepagents",
3
- "version": "0.0.1",
4
- "description": "Something amazing based on LangGraph",
5
- "main": "index.js",
6
- "keywords": [],
7
- "author": "",
3
+ "version": "0.0.2",
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
+ "keywords": [
6
+ "langchain",
7
+ "langgraph",
8
+ "deepagents",
9
+ "agents",
10
+ "cli"
11
+ ],
12
+ "homepage": "https://github.com/langchain-ai/managed-deepagents-sdk",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/langchain-ai/managed-deepagents-sdk.git"
16
+ },
8
17
  "license": "MIT",
18
+ "type": "module",
19
+ "main": "./dist/index.js",
20
+ "types": "./dist/index.d.ts",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.ts",
24
+ "default": "./dist/index.js"
25
+ },
26
+ "./runtime": {
27
+ "types": "./dist/runtime.d.ts",
28
+ "default": "./dist/runtime.js"
29
+ }
30
+ },
31
+ "bin": {
32
+ "mda": "bin/mda.mjs"
33
+ },
34
+ "files": [
35
+ "dist",
36
+ "bin/mda.mjs"
37
+ ],
9
38
  "scripts": {
10
- "test": "echo \"Error: no test specified\" && exit 1"
39
+ "build": "tsc -p tsconfig.json",
40
+ "clean": "rm -rf dist",
41
+ "typecheck": "tsc -p tsconfig.json --noEmit"
42
+ },
43
+ "engines": {
44
+ "node": ">=18"
45
+ },
46
+ "peerDependencies": {
47
+ "deepagents": ">=0.1.0"
48
+ },
49
+ "peerDependenciesMeta": {
50
+ "deepagents": {
51
+ "optional": true
52
+ }
53
+ },
54
+ "optionalDependencies": {
55
+ "@langchain/managed-deepagents-darwin-arm64": "0.0.1",
56
+ "@langchain/managed-deepagents-darwin-x64": "0.0.1",
57
+ "@langchain/managed-deepagents-linux-arm64": "0.0.1",
58
+ "@langchain/managed-deepagents-linux-x64": "0.0.1",
59
+ "@langchain/managed-deepagents-win32-x64": "0.0.1"
60
+ },
61
+ "devDependencies": {
62
+ "@types/node": "^20.0.0",
63
+ "typescript": "^5.6.0"
11
64
  }
12
65
  }
package/index.js DELETED
@@ -1 +0,0 @@
1
- console.log("Nothing to see yet, come back later!");