@botlearn-course/daemon 0.0.28-beta.1 → 0.0.28-beta.2

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.
@@ -47,7 +47,8 @@ export async function prepareManagedPi(opts) {
47
47
  || contract.max_output_tokens_limit > contract.context_window) {
48
48
  throw new Error("pi-agent managed model selection is invalid");
49
49
  }
50
- writeFileSync(path.join(agentDir, "models.json"), JSON.stringify({ providers: {
50
+ const modelsFile = path.join(agentDir, "models.json");
51
+ writeFileSync(modelsFile, JSON.stringify({ providers: {
51
52
  botlearn: {
52
53
  baseUrl: source.BOTLEARN_MODEL_BASE_URL, api: "openai-completions",
53
54
  // Pi resolves a named environment variable; no credential bytes are written.
@@ -59,6 +60,9 @@ export async function prepareManagedPi(opts) {
59
60
  thinkingFormat: "deepseek", requiresReasoningContentOnAssistantMessages: true } }],
60
61
  },
61
62
  } }), { mode: 0o640 });
63
+ // The supervisor inherits umask 0077 in veFaaS. Restore group-read after
64
+ // creation so the separate runtime UID can load the immutable model contract.
65
+ chmodSync(modelsFile, 0o640);
62
66
  let skillsDir;
63
67
  if (opts.skillProvider) {
64
68
  const materialized = await materializeCourseSkills({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botlearn-course/daemon",
3
- "version": "0.0.28-beta.1",
3
+ "version": "0.0.28-beta.2",
4
4
  "description": "Lightweight BotLearn Course daemon: run course tasks on your own machine with your own agent runtime (BYOA).",
5
5
  "type": "module",
6
6
  "bin": {