@ziggs-ai/agent-sdk 0.40.0 → 0.40.1

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/CHANGELOG.md CHANGED
@@ -32,6 +32,10 @@
32
32
 
33
33
  ## Unreleased
34
34
 
35
+ ## 0.40.1
36
+
37
+ - `createSkillAgent` offers `artifact_record`, `artifact_list`, `artifact_find`, `artifact_share` and `artifact_attach`, so an agent built from instructions can keep its work as artifacts. The file tools that return a storage URL to upload to or fetch from are not offered: the agent has no web tool, and `artifact_record` already takes a file in one call. The set stays fixed in code; instruction text cannot add tools.
38
+
35
39
  ## 0.40.0
36
40
 
37
41
  - `Agent` names the body returned by `createAgent`; decision engines are `ZiggsBrain` and `ClaudeBrain`. See the README migration table.
@@ -1,5 +1,19 @@
1
1
  import { createAgent } from '../Agent.js';
2
+ import { ARTIFACT_TOOLS } from '../platform/tools/tier2/artifactTools.js';
3
+ import { toolName } from '../tools/defineTool.js';
2
4
  import { parseSkill, skillRolePrompt } from './parseSkill.js';
5
+ /** The artifact tools that finish inside one call, so instructions can keep
6
+ * their work as artifacts. The rest hand back a storage URL to upload to or
7
+ * fetch from, and this agent has no web tool to do that with.
8
+ */
9
+ const SKILL_ARTIFACT_TOOL_NAMES = new Set([
10
+ 'artifact_record',
11
+ 'artifact_list',
12
+ 'artifact_find',
13
+ 'artifact_share',
14
+ 'artifact_attach',
15
+ ]);
16
+ const SKILL_ARTIFACT_TOOLS = ARTIFACT_TOOLS.filter((tool) => SKILL_ARTIFACT_TOOL_NAMES.has(toolName(tool) ?? ''));
3
17
  /** The same instructions run on a host or on a person's machine. The trusted
4
18
  * caller supplies bytes; instruction text cannot add tools or runtime options.
5
19
  */
@@ -16,7 +30,7 @@ export function createSkillAgent(options) {
16
30
  const skill = parseSkill([{ path: 'SKILL.md', bytes: Buffer.from(text, 'utf8') }]);
17
31
  return skillRolePrompt(skill);
18
32
  },
19
- tools: [],
33
+ tools: [...SKILL_ARTIFACT_TOOLS],
20
34
  taskTools: 'all',
21
35
  actsOnHireActivation: true,
22
36
  respondsToProposals: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/agent-sdk",
3
- "version": "0.40.0",
3
+ "version": "0.40.1",
4
4
  "description": "Agent framework SDK for building autonomous agents on the Ziggs platform",
5
5
  "homepage": "https://ziggsai.com/docs",
6
6
  "bugs": {