@nexface/agent 0.1.15-alpha.3 → 0.1.15-alpha.4

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.
Files changed (2) hide show
  1. package/dist/agent.js +17 -1
  2. package/package.json +2 -2
package/dist/agent.js CHANGED
@@ -1953,7 +1953,23 @@ class Nexface {
1953
1953
  if (canDelegate)
1954
1954
  nativeToolNames.add("nxf_delegatePageTask");
1955
1955
  const tools = [
1956
- callApplicationTool,
1956
+ ...(applicationDefinitions.length
1957
+ ? [
1958
+ {
1959
+ ...callApplicationTool,
1960
+ inputSchema: {
1961
+ ...callApplicationTool.inputSchema,
1962
+ properties: {
1963
+ ...callApplicationTool.inputSchema.properties,
1964
+ name: {
1965
+ type: "string",
1966
+ enum: applicationDefinitions.map(({ name }) => name),
1967
+ },
1968
+ },
1969
+ },
1970
+ },
1971
+ ]
1972
+ : [callApplicationTool]),
1957
1973
  ...(this.#skills.length ? [createLoadSkillTool(this.#skills)] : []),
1958
1974
  ...(canDelegate ? [delegatePageTaskTool] : []),
1959
1975
  ...nativeDefinitions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexface/agent",
3
- "version": "0.1.15-alpha.3",
3
+ "version": "0.1.15-alpha.4",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=22.19.0"
@@ -43,7 +43,7 @@
43
43
  "@ag-ui/core": "0.0.59"
44
44
  },
45
45
  "peerDependencies": {
46
- "@nexface/tools": "0.1.15-alpha.3"
46
+ "@nexface/tools": "0.1.15-alpha.4"
47
47
  },
48
48
  "repository": {
49
49
  "type": "git",