@rowan-agent/agent 0.9.18 → 0.9.20

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/index.d.ts CHANGED
@@ -1610,7 +1610,7 @@ type AgentConfig = Readonly<{
1610
1610
  identity: string;
1611
1611
  definition: AgentDefinition;
1612
1612
  resources: AgentResources;
1613
- /** Host-owned Contexts are rendered as durable user messages for a Run. */
1613
+ /** Host-owned Contexts rendered in the System Prompt with the selected Contexts. */
1614
1614
  additionalContexts?: readonly ContextCandidate[];
1615
1615
  cwd?: string;
1616
1616
  maxAttempts?: number;
package/dist/index.js CHANGED
@@ -1861,7 +1861,10 @@ async function loadPhaseCode(codePath) {
1861
1861
  const jiti = createJiti2(import.meta.url, {
1862
1862
  fsCache: false,
1863
1863
  moduleCache: false,
1864
- tryNative: false
1864
+ // Phase code ships as authored, including TypeScript. Native loading lets a
1865
+ // host that supports it run that code without a transpile step, and jiti
1866
+ // still transforms whatever the host cannot load itself.
1867
+ tryNative: true
1865
1868
  });
1866
1869
  const mod = await jiti.import(codePath);
1867
1870
  const namespace = mod && typeof mod === "object" ? mod : {};
@@ -5069,7 +5072,10 @@ function getJiti() {
5069
5072
  sharedJiti ??= createJiti(import.meta.url || process.cwd(), {
5070
5073
  fsCache: false,
5071
5074
  moduleCache: false,
5072
- tryNative: false,
5075
+ // Extensions ship as authored, including TypeScript. Native loading lets a
5076
+ // host that supports it run them without a transpile step; an import that
5077
+ // only the alias map can resolve still falls back to jiti's transform.
5078
+ tryNative: true,
5073
5079
  alias: jitiAliases()
5074
5080
  });
5075
5081
  return sharedJiti;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rowan-agent/agent",
3
- "version": "0.9.18",
3
+ "version": "0.9.20",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",