portos-ai-toolkit 0.6.0 → 0.8.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portos-ai-toolkit",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "Shared AI provider, model, and prompt template patterns for PortOS-style applications",
5
5
  "author": "Adam Eivy <adam@eivy.com> (https://atomantic.com)",
6
6
  "license": "MIT",
@@ -33,15 +33,15 @@
33
33
  "prepublishOnly": "npm test"
34
34
  },
35
35
  "dependencies": {
36
- "zod": "^3.24.1",
37
- "uuid": "^11.0.3"
36
+ "uuid": "^13.0.0",
37
+ "zod": "^4.3.6"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "express": "^4.21.2 || ^5.2.1",
41
- "socket.io": "^4.8.3",
42
- "socket.io-client": "^4.8.3",
43
41
  "react": "^18.3.1",
44
- "react-dom": "^18.3.1"
42
+ "react-dom": "^18.3.1",
43
+ "socket.io": "^4.8.3",
44
+ "socket.io-client": "^4.8.3"
45
45
  },
46
46
  "peerDependenciesMeta": {
47
47
  "express": {
@@ -63,7 +63,7 @@
63
63
  "devDependencies": {
64
64
  "@vitest/coverage-v8": "^4.0.16",
65
65
  "supertest": "^7.1.4",
66
- "vitest": "^4.0.16"
66
+ "vitest": "^4.0.18"
67
67
  },
68
68
  "keywords": [
69
69
  "ai",
@@ -15,7 +15,8 @@
15
15
  "timeout": 300000,
16
16
  "enabled": true,
17
17
  "envVars": {},
18
- "secretEnvVars": []
18
+ "secretEnvVars": [],
19
+ "headlessArgs": ["--no-session-persistence", "--disable-slash-commands", "--tools", ""]
19
20
  },
20
21
  "claude-code-bedrock": {
21
22
  "id": "claude-code-bedrock",
@@ -34,7 +35,8 @@
34
35
  "CLAUDE_CODE_USE_BEDROCK": "1",
35
36
  "AWS_BEARER_TOKEN_BEDROCK": ""
36
37
  },
37
- "secretEnvVars": ["AWS_BEARER_TOKEN_BEDROCK"]
38
+ "secretEnvVars": ["AWS_BEARER_TOKEN_BEDROCK"],
39
+ "headlessArgs": ["--no-session-persistence", "--disable-slash-commands", "--tools", ""]
38
40
  },
39
41
  "codex": {
40
42
  "id": "codex",
@@ -122,7 +122,8 @@ export function createProviderService(config = {}) {
122
122
  timeout: providerData.timeout || 300000,
123
123
  enabled: providerData.enabled !== false,
124
124
  envVars: providerData.envVars || {},
125
- secretEnvVars: providerData.secretEnvVars || []
125
+ secretEnvVars: providerData.secretEnvVars || [],
126
+ headlessArgs: providerData.headlessArgs || []
126
127
  };
127
128
 
128
129
  data.providers[id] = provider;
@@ -15,7 +15,8 @@ export const providerSchema = z.object({
15
15
  timeout: z.number().int().min(1000).max(600000).optional(),
16
16
  enabled: z.boolean().optional(),
17
17
  envVars: z.record(z.string()).optional(),
18
- secretEnvVars: z.array(z.string()).optional()
18
+ secretEnvVars: z.array(z.string()).optional(),
19
+ headlessArgs: z.array(z.string()).optional()
19
20
  });
20
21
 
21
22
  /**