@rowan-agent/agent 0.9.19 → 0.9.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/index.d.ts CHANGED
@@ -1637,7 +1637,7 @@ type AgentRecord = Readonly<{
1637
1637
  type AgentDeletionRequest = Readonly<{
1638
1638
  agentId: AgentId;
1639
1639
  expectedRunIds: readonly RunId[];
1640
- confirmation: "conversation-delete-v1";
1640
+ confirmation: "agent-delete-v1";
1641
1641
  }>;
1642
1642
  type ExecutionToken = Readonly<{
1643
1643
  runId: RunId;
package/dist/index.js CHANGED
@@ -5072,7 +5072,10 @@ function getJiti() {
5072
5072
  sharedJiti ??= createJiti(import.meta.url || process.cwd(), {
5073
5073
  fsCache: false,
5074
5074
  moduleCache: false,
5075
- 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,
5076
5079
  alias: jitiAliases()
5077
5080
  });
5078
5081
  return sharedJiti;
@@ -5909,7 +5912,7 @@ var AgentRuntime = class _AgentRuntime {
5909
5912
  const runs = await this.owned.listRuns({ agentId: input.agentId });
5910
5913
  for (const run of runs) {
5911
5914
  if (["queued", "running", "input_required"].includes(run.state)) {
5912
- await this.cancel(run.id, "Conversation deleted.");
5915
+ await this.cancel(run.id, "Agent deleted.");
5913
5916
  }
5914
5917
  }
5915
5918
  await this.owned.deleteAgent(input);
@@ -7006,8 +7009,8 @@ var InMemoryStore = class _InMemoryStore {
7006
7009
  }
7007
7010
  deleteAgent(lease, input) {
7008
7011
  this.assertOwner(lease);
7009
- if (input.confirmation !== "conversation-delete-v1") {
7010
- throw new TypeError("Agent deletion requires the conversation deletion confirmation token");
7012
+ if (input.confirmation !== "agent-delete-v1") {
7013
+ throw new TypeError("Agent deletion requires the agent-delete-v1 confirmation token");
7011
7014
  }
7012
7015
  const agent = this.requireAgent(input.agentId);
7013
7016
  const runs = [...this.runs.values()].filter((run) => run.agentId === agent.id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rowan-agent/agent",
3
- "version": "0.9.19",
3
+ "version": "0.9.21",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",