@saturn-universe/runtime-host 0.1.0 → 0.1.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.
@@ -171,10 +171,10 @@ function matchesScopeFilters(item, categorySet, idSet) {
171
171
 
172
172
  export default {
173
173
  id: 'ctf',
174
- version: '0.1.0',
174
+ version: '0.1.1',
175
175
  kind: 'saturn-registrar',
176
176
  apiVersion: 1,
177
- sdkVersion: '0.1.0',
177
+ sdkVersion: '0.1.1',
178
178
  async setup(api, config = {}) {
179
179
  const { boardToken, boardPublicHost, ...boardSettings } = settingsFor(config);
180
180
  if (boardToken) api.registerSecret?.(boardToken);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saturn-plugin-ctf",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "license": "AGPL-3.0-only",
5
5
  "type": "module",
6
6
  "main": "./index.mjs",
@@ -26,10 +26,10 @@ export const capabilities = z.strictObject({
26
26
  responses: responseCapabilities,
27
27
  });
28
28
  export const defaultCapabilities = {
29
- contextWindow: 32000,
30
- maxOutputTokens: 1024,
29
+ contextWindow: 128000,
30
+ maxOutputTokens: 16384,
31
31
  tools: true,
32
- parallelToolCalls: false,
32
+ parallelToolCalls: true,
33
33
  structuredOutput: false,
34
34
  streaming: true,
35
35
  images: false,
package/dist/modes.js CHANGED
@@ -20,6 +20,7 @@ export const BUILTIN_MODES = [
20
20
  description: '通用编程与工程任务模式(标准系统提示词与工具层,不加载安全插件)',
21
21
  builtin: true,
22
22
  tools: {
23
+ workspaceTools: true,
23
24
  builtinAgentTools: true,
24
25
  },
25
26
  plugins: [],
@@ -439,6 +440,11 @@ export function resolveActiveMode(catalog, requested) {
439
440
  definition.ref,
440
441
  { definition, budget: definition.limits ? { defaults: definition.limits } : {} },
441
442
  ]));
443
+ // The global setting overrides the built-in default; an explicit mode setting still takes precedence.
444
+ if (catalog?.workspaceTools !== undefined) {
445
+ const defaultMode = registry.get(DEFAULT_MODE_REF);
446
+ registry.set(DEFAULT_MODE_REF, configureMode(DEFAULT_MODE_REF, { tools: { workspace_tools: catalog.workspaceTools } }, defaultMode));
447
+ }
442
448
  for (const [ref, raw] of Object.entries(catalog?.modes ?? {})) {
443
449
  registry.set(ref, configureMode(ref, raw, registry.get(ref)));
444
450
  }
@@ -234,7 +234,8 @@ function expandProfile(providerId, modelId, value) {
234
234
  : undefined;
235
235
  const reasoningModel = override?.reasoning_model ?? model?.reasoningModel ?? Boolean(override?.reasoning_efforts?.length);
236
236
  const tools = override?.tools ?? model?.tools ?? defaultCapabilities.tools;
237
- const parallelToolCalls = override?.parallel_tool_calls ?? (tools && (model?.parallelToolCalls ?? false));
237
+ const parallelToolCalls = override?.parallel_tool_calls ??
238
+ (tools && (model?.parallelToolCalls ?? defaultCapabilities.parallelToolCalls));
238
239
  const protocol = value.protocol ?? 'openai-responses';
239
240
  const input = override?.pricing?.input_per_million ?? model?.pricing.inputPerMillion;
240
241
  const output = override?.pricing?.output_per_million ?? model?.pricing.outputPerMillion;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saturn-universe/runtime-host",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "license": "AGPL-3.0-only",
5
5
  "type": "module",
6
6
  "files": [
@@ -8,14 +8,14 @@
8
8
  ],
9
9
  "dependencies": {
10
10
  "@deepseek-ai/cordis": "4.1.0",
11
- "@saturn-universe/context": "0.1.0",
12
- "@saturn-universe/core": "0.1.0",
13
- "@saturn-universe/model": "0.1.0",
14
- "@saturn-universe/plugin-sdk": "0.1.0",
15
- "@saturn-universe/protocol": "0.1.0",
16
- "@saturn-universe/runtime": "0.1.0",
17
- "@saturn-universe/storage": "0.1.0",
18
- "@saturn-universe/tools": "0.1.0",
11
+ "@saturn-universe/context": "0.1.1",
12
+ "@saturn-universe/core": "0.1.1",
13
+ "@saturn-universe/model": "0.1.1",
14
+ "@saturn-universe/plugin-sdk": "0.1.1",
15
+ "@saturn-universe/protocol": "0.1.1",
16
+ "@saturn-universe/runtime": "0.1.1",
17
+ "@saturn-universe/storage": "0.1.1",
18
+ "@saturn-universe/tools": "0.1.1",
19
19
  "import-meta-resolve": "4.2.0",
20
20
  "pino": "10.4.0",
21
21
  "semver": "7.7.4",