@almadar/agent 1.6.1 → 1.6.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/dist/agent/index.d.ts +3 -731
- package/dist/agent/index.js +294 -2184
- package/dist/agent/index.js.map +1 -1
- package/dist/{firestore-checkpointer-BkFR-sZM.d.ts → firestore-checkpointer-CkNKXoun.d.ts} +1 -1
- package/dist/{index-DGdLGf-L.d.ts → index-CV-YHG_P.d.ts} +25 -21
- package/dist/{workflow-tool-wrapper-CXD0A7l3.d.ts → index-CmTX9IiH.d.ts} +4 -3
- package/dist/index.d.ts +9 -536
- package/dist/index.js +3191 -3560
- package/dist/index.js.map +1 -1
- package/dist/{orbital-subagent-CHEeQQr_.d.ts → orbital-subagent-B9lvv_NS.d.ts} +28 -26
- package/dist/persistence/index.d.ts +2 -2
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.js +283 -131
- package/dist/tools/index.js.map +1 -1
- package/dist/workspace/index.d.ts +355 -0
- package/dist/workspace/index.js +675 -0
- package/dist/workspace/index.js.map +1 -0
- package/package.json +10 -8
- package/dist/prompts/index.d.ts +0 -23
- package/dist/prompts/index.js +0 -126
- package/dist/prompts/index.js.map +0 -1
|
@@ -181,4 +181,4 @@ declare class FirestoreCheckpointer extends BaseCheckpointSaver {
|
|
|
181
181
|
deleteThread(threadId: string): Promise<void>;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
export {
|
|
184
|
+
export { FirestoreCheckpointer as F, type PersistenceMode as P, type SessionMetadata as S, type FirestoreCheckpointerOptions as a, type FirestoreDb as b, type FirestoreTimestamp as c, type Session as d, type SessionRecord as e };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SubagentEventCallback$1, O as OrbitalCompleteCallback,
|
|
1
|
+
import { S as SubagentEventCallback$1, O as OrbitalCompleteCallback, D as DomainOrbitalEventCallback, a as DomainOrbitalCompleteCallback } from './orbital-subagent-B9lvv_NS.js';
|
|
2
2
|
import * as _langchain_core_tools from '@langchain/core/tools';
|
|
3
3
|
import * as zod from 'zod';
|
|
4
4
|
import { z } from 'zod';
|
|
@@ -252,7 +252,7 @@ declare function createExecuteTool(workDir: string, auditLog?: AuditLog): _langc
|
|
|
252
252
|
}, string, "execute">;
|
|
253
253
|
|
|
254
254
|
/**
|
|
255
|
-
* Create a validate_schema tool that validates schema.
|
|
255
|
+
* Create a validate_schema tool that validates schema.orb in the workspace.
|
|
256
256
|
*
|
|
257
257
|
* Uses `npx @almadar/cli validate --json` for comprehensive Rust-based validation.
|
|
258
258
|
*
|
|
@@ -783,10 +783,14 @@ interface OrchestratedGenerationOptions {
|
|
|
783
783
|
skillContent: string;
|
|
784
784
|
/** Optional: Override verbosity */
|
|
785
785
|
verbose?: boolean;
|
|
786
|
+
/** Working directory for persisting schema and orbital files */
|
|
787
|
+
workDir?: string;
|
|
786
788
|
}
|
|
787
789
|
interface OrchestratedGenerationResult {
|
|
788
790
|
success: boolean;
|
|
789
|
-
|
|
791
|
+
summary?: string;
|
|
792
|
+
orbitalCount?: number;
|
|
793
|
+
schemaPath?: string;
|
|
790
794
|
complexity?: {
|
|
791
795
|
level: 'simple' | 'medium' | 'complex';
|
|
792
796
|
orbitalCount: number;
|
|
@@ -1481,8 +1485,8 @@ declare function createAgentTools(workDir: string): {
|
|
|
1481
1485
|
}[];
|
|
1482
1486
|
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1483
1487
|
}>;
|
|
1484
|
-
traits: zod.ZodArray<zod.ZodString, "many"
|
|
1485
|
-
patterns: zod.ZodArray<zod.ZodString, "many"
|
|
1488
|
+
traits: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
|
|
1489
|
+
patterns: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
1486
1490
|
pages: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
1487
1491
|
name: zod.ZodString;
|
|
1488
1492
|
path: zod.ZodString;
|
|
@@ -1583,7 +1587,6 @@ declare function createAgentTools(workDir: string): {
|
|
|
1583
1587
|
}[];
|
|
1584
1588
|
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1585
1589
|
};
|
|
1586
|
-
patterns: string[];
|
|
1587
1590
|
pages?: {
|
|
1588
1591
|
path: string;
|
|
1589
1592
|
name: string;
|
|
@@ -1594,6 +1597,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
1594
1597
|
cardinality: "many" | "one";
|
|
1595
1598
|
alias?: string | undefined;
|
|
1596
1599
|
}[] | undefined;
|
|
1600
|
+
patterns?: string[] | undefined;
|
|
1597
1601
|
domainContext?: {
|
|
1598
1602
|
request: string;
|
|
1599
1603
|
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
@@ -1615,7 +1619,6 @@ declare function createAgentTools(workDir: string): {
|
|
|
1615
1619
|
triggers: string;
|
|
1616
1620
|
}[] | undefined;
|
|
1617
1621
|
}, {
|
|
1618
|
-
traits: string[];
|
|
1619
1622
|
name: string;
|
|
1620
1623
|
entity: {
|
|
1621
1624
|
name: string;
|
|
@@ -1626,17 +1629,18 @@ declare function createAgentTools(workDir: string): {
|
|
|
1626
1629
|
}[];
|
|
1627
1630
|
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1628
1631
|
};
|
|
1629
|
-
patterns: string[];
|
|
1630
1632
|
pages?: {
|
|
1631
1633
|
path: string;
|
|
1632
1634
|
name: string;
|
|
1633
1635
|
viewType: string;
|
|
1634
1636
|
}[] | undefined;
|
|
1637
|
+
traits?: string[] | undefined;
|
|
1635
1638
|
relations?: {
|
|
1636
1639
|
entity: string;
|
|
1637
1640
|
cardinality: "many" | "one";
|
|
1638
1641
|
alias?: string | undefined;
|
|
1639
1642
|
}[] | undefined;
|
|
1643
|
+
patterns?: string[] | undefined;
|
|
1640
1644
|
domainContext?: {
|
|
1641
1645
|
request: string;
|
|
1642
1646
|
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
@@ -1673,7 +1677,6 @@ declare function createAgentTools(workDir: string): {
|
|
|
1673
1677
|
}[];
|
|
1674
1678
|
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1675
1679
|
};
|
|
1676
|
-
patterns: string[];
|
|
1677
1680
|
pages?: {
|
|
1678
1681
|
path: string;
|
|
1679
1682
|
name: string;
|
|
@@ -1684,6 +1687,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
1684
1687
|
cardinality: "many" | "one";
|
|
1685
1688
|
alias?: string | undefined;
|
|
1686
1689
|
}[] | undefined;
|
|
1690
|
+
patterns?: string[] | undefined;
|
|
1687
1691
|
domainContext?: {
|
|
1688
1692
|
request: string;
|
|
1689
1693
|
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
@@ -1709,7 +1713,6 @@ declare function createAgentTools(workDir: string): {
|
|
|
1709
1713
|
totalOrbitals?: number | undefined;
|
|
1710
1714
|
}, {
|
|
1711
1715
|
orbital: {
|
|
1712
|
-
traits: string[];
|
|
1713
1716
|
name: string;
|
|
1714
1717
|
entity: {
|
|
1715
1718
|
name: string;
|
|
@@ -1720,17 +1723,18 @@ declare function createAgentTools(workDir: string): {
|
|
|
1720
1723
|
}[];
|
|
1721
1724
|
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1722
1725
|
};
|
|
1723
|
-
patterns: string[];
|
|
1724
1726
|
pages?: {
|
|
1725
1727
|
path: string;
|
|
1726
1728
|
name: string;
|
|
1727
1729
|
viewType: string;
|
|
1728
1730
|
}[] | undefined;
|
|
1731
|
+
traits?: string[] | undefined;
|
|
1729
1732
|
relations?: {
|
|
1730
1733
|
entity: string;
|
|
1731
1734
|
cardinality: "many" | "one";
|
|
1732
1735
|
alias?: string | undefined;
|
|
1733
1736
|
}[] | undefined;
|
|
1737
|
+
patterns?: string[] | undefined;
|
|
1734
1738
|
domainContext?: {
|
|
1735
1739
|
request: string;
|
|
1736
1740
|
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
@@ -1767,7 +1771,6 @@ declare function createAgentTools(workDir: string): {
|
|
|
1767
1771
|
}[];
|
|
1768
1772
|
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1769
1773
|
};
|
|
1770
|
-
patterns: string[];
|
|
1771
1774
|
pages?: {
|
|
1772
1775
|
path: string;
|
|
1773
1776
|
name: string;
|
|
@@ -1778,6 +1781,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
1778
1781
|
cardinality: "many" | "one";
|
|
1779
1782
|
alias?: string | undefined;
|
|
1780
1783
|
}[] | undefined;
|
|
1784
|
+
patterns?: string[] | undefined;
|
|
1781
1785
|
domainContext?: {
|
|
1782
1786
|
request: string;
|
|
1783
1787
|
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
@@ -1803,7 +1807,6 @@ declare function createAgentTools(workDir: string): {
|
|
|
1803
1807
|
totalOrbitals?: number | undefined;
|
|
1804
1808
|
}, {
|
|
1805
1809
|
orbital: {
|
|
1806
|
-
traits: string[];
|
|
1807
1810
|
name: string;
|
|
1808
1811
|
entity: {
|
|
1809
1812
|
name: string;
|
|
@@ -1814,17 +1817,18 @@ declare function createAgentTools(workDir: string): {
|
|
|
1814
1817
|
}[];
|
|
1815
1818
|
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1816
1819
|
};
|
|
1817
|
-
patterns: string[];
|
|
1818
1820
|
pages?: {
|
|
1819
1821
|
path: string;
|
|
1820
1822
|
name: string;
|
|
1821
1823
|
viewType: string;
|
|
1822
1824
|
}[] | undefined;
|
|
1825
|
+
traits?: string[] | undefined;
|
|
1823
1826
|
relations?: {
|
|
1824
1827
|
entity: string;
|
|
1825
1828
|
cardinality: "many" | "one";
|
|
1826
1829
|
alias?: string | undefined;
|
|
1827
1830
|
}[] | undefined;
|
|
1831
|
+
patterns?: string[] | undefined;
|
|
1828
1832
|
domainContext?: {
|
|
1829
1833
|
request: string;
|
|
1830
1834
|
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
@@ -2066,7 +2070,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
2066
2070
|
isInitial?: boolean | undefined;
|
|
2067
2071
|
}>, "many">;
|
|
2068
2072
|
traits: zod.ZodArray<zod.ZodString, "many">;
|
|
2069
|
-
patterns: zod.ZodArray<zod.ZodString, "many"
|
|
2073
|
+
patterns: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
2070
2074
|
domainContext: zod.ZodOptional<zod.ZodObject<{
|
|
2071
2075
|
request: zod.ZodString;
|
|
2072
2076
|
requestFragment: zod.ZodOptional<zod.ZodString>;
|
|
@@ -2153,7 +2157,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
2153
2157
|
alias?: string | undefined;
|
|
2154
2158
|
}[] | undefined;
|
|
2155
2159
|
};
|
|
2156
|
-
patterns
|
|
2160
|
+
patterns?: string[] | undefined;
|
|
2157
2161
|
domainContext?: {
|
|
2158
2162
|
request: string;
|
|
2159
2163
|
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
@@ -2198,7 +2202,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
2198
2202
|
alias?: string | undefined;
|
|
2199
2203
|
}[] | undefined;
|
|
2200
2204
|
};
|
|
2201
|
-
patterns
|
|
2205
|
+
patterns?: string[] | undefined;
|
|
2202
2206
|
domainContext?: {
|
|
2203
2207
|
request: string;
|
|
2204
2208
|
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
@@ -2248,7 +2252,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
2248
2252
|
alias?: string | undefined;
|
|
2249
2253
|
}[] | undefined;
|
|
2250
2254
|
};
|
|
2251
|
-
patterns
|
|
2255
|
+
patterns?: string[] | undefined;
|
|
2252
2256
|
domainContext?: {
|
|
2253
2257
|
request: string;
|
|
2254
2258
|
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
@@ -2298,7 +2302,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
2298
2302
|
alias?: string | undefined;
|
|
2299
2303
|
}[] | undefined;
|
|
2300
2304
|
};
|
|
2301
|
-
patterns
|
|
2305
|
+
patterns?: string[] | undefined;
|
|
2302
2306
|
domainContext?: {
|
|
2303
2307
|
request: string;
|
|
2304
2308
|
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
@@ -2348,7 +2352,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
2348
2352
|
alias?: string | undefined;
|
|
2349
2353
|
}[] | undefined;
|
|
2350
2354
|
};
|
|
2351
|
-
patterns
|
|
2355
|
+
patterns?: string[] | undefined;
|
|
2352
2356
|
domainContext?: {
|
|
2353
2357
|
request: string;
|
|
2354
2358
|
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
@@ -2398,7 +2402,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
2398
2402
|
alias?: string | undefined;
|
|
2399
2403
|
}[] | undefined;
|
|
2400
2404
|
};
|
|
2401
|
-
patterns
|
|
2405
|
+
patterns?: string[] | undefined;
|
|
2402
2406
|
domainContext?: {
|
|
2403
2407
|
request: string;
|
|
2404
2408
|
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { LLMProvider } from '@almadar/llm';
|
|
2
|
-
import { S as SubagentEventCallback, O as OrbitalCompleteCallback,
|
|
2
|
+
import { S as SubagentEventCallback, O as OrbitalCompleteCallback, a as DomainOrbitalCompleteCallback } from './orbital-subagent-B9lvv_NS.js';
|
|
3
3
|
import { BaseCheckpointSaver } from '@langchain/langgraph-checkpoint';
|
|
4
|
-
import { P as PersistenceMode,
|
|
4
|
+
import { P as PersistenceMode, b as FirestoreDb$1, S as SessionMetadata, e as SessionRecord } from './firestore-checkpointer-CkNKXoun.js';
|
|
5
5
|
import { OrbitalSchema } from '@almadar/core';
|
|
6
6
|
import { BaseMessage } from '@langchain/core/messages';
|
|
7
|
+
import '@langchain/langgraph';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Context Compaction for DeepAgent
|
|
@@ -1010,4 +1011,4 @@ declare function createEvalWorkflowWrapper(options?: WorkflowToolWrapperOptions)
|
|
|
1010
1011
|
resetTelemetry(): void;
|
|
1011
1012
|
};
|
|
1012
1013
|
|
|
1013
|
-
export { type ActionGate as A,
|
|
1014
|
+
export { type ActionGate as A, resumeSkillAgent as B, CRITICAL_COMMAND_PATTERNS as C, DEFAULT_COMPACTION_CONFIG as D, EVENT_BUDGETS as E, type SkillAgent as F, type GenerationSession as G, type InterruptRecord as I, MemoryManager as M, type PatternAffinity as P, SessionManager as S, TOOL_GATES as T, type UserPreference as U, type WorkflowToolWrapper as W, type CheckpointRecord as a, type ContextCompactionConfig as b, type MemoryManagerOptions as c, MemoryOrbitalSchema as d, type ProjectContext as e, type SessionManagerOptions as f, type Skill as g, type SkillAgentOptions as h, type SkillAgentResult as i, type SkillLoader as j, type SkillMeta as k, type SkillRefLoader as l, type ToolApprovalPreference as m, type ToolTelemetry as n, type UserFeedback as o, type WorkflowToolWrapperOptions as p, classifyCommand as q, createEvalWorkflowWrapper as r, createSkillAgent as s, createSummaryPrompt as t, createWorkflowToolWrapper as u, estimateTokens as v, getBudgetWarningMessage as w, getEventBudget as x, getInterruptConfig as y, needsCompaction as z };
|