fuli-context 0.25.0 → 0.25.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.
Files changed (42) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/dist/web/assets/{CopyFixPrompt-CErC3Paj.js → CopyFixPrompt-CVFYWDSt.js} +1 -1
  4. package/dist/web/assets/{OverviewPage-DFW3Ua0Z.js → OverviewPage-_9e2idJR.js} +1 -1
  5. package/dist/web/assets/{SettingsPage-BVIU7iFS.js → SettingsPage-bLssMIz6.js} +1 -1
  6. package/dist/web/assets/{index-C7IVLf_v.js → index-C2VDC1uO.js} +3 -3
  7. package/dist/web/assets/{version-1lwoVj6f.js → version-lXtOG8uf.js} +1 -1
  8. package/dist/web/index.html +3 -3
  9. package/docs/agent-roundtable.md +8 -1
  10. package/docs/client-connections.md +4 -0
  11. package/graph-provider/pyproject.toml +1 -1
  12. package/native/win32/fuli-win-helper.exe +0 -0
  13. package/npm-shrinkwrap.json +2 -2
  14. package/package.json +1 -1
  15. package/packages/roundtable/src/roundtable/delivery-state.js +1 -1
  16. package/packages/roundtable/src/roundtable/service.js +15 -2
  17. package/packages/roundtable/src/roundtable/store.js +33 -4
  18. package/packages/roundtable/src/roundtable/wake-claim-release.js +88 -0
  19. package/packages/roundtable/src/roundtable/wake.js +3 -1
  20. package/skills/capturing-session-knowledge/SKILL.md +4 -4
  21. package/skills/operating-fuli/SKILL.md +1 -1
  22. package/src/agent-tools/graph-handlers.js +5 -3
  23. package/src/agent-tools/project-agent-tool-definitions.js +1 -1
  24. package/src/agents/call-source.js +11 -0
  25. package/src/agents/claude-desktop/code-tab-token-source.js +26 -0
  26. package/src/agents/lifecycle-failure.js +6 -5
  27. package/src/agents/lifecycle-message.js +15 -4
  28. package/src/agents/token-usage-resolver.js +8 -0
  29. package/src/conversations/current-task-lookup.js +2 -3
  30. package/src/graphiti/checkpoint-provider-outage.js +23 -0
  31. package/src/graphiti/local-runtimes.js +4 -1
  32. package/src/graphiti/provider-outage.js +20 -0
  33. package/src/graphiti/task-context-entry.js +9 -1
  34. package/src/graphiti/task-entry-preferences.js +1 -1
  35. package/src/graphiti/task-entry-provider-outage.js +25 -0
  36. package/src/graphiti/task-knowledge-checkpoint.js +1 -1
  37. package/src/graphiti/task-scene.js +1 -1
  38. package/src/judgment/backend.js +8 -2
  39. package/src/mcp/create-mcp-server.js +7 -4
  40. package/src/presence/windows-helper-pin.js +1 -1
  41. package/src/whats-new/lines/0.25.1.json +13 -0
  42. package/src/whats-new/lines/0.25.2.json +13 -0
@@ -49,7 +49,7 @@ export function beginTaskEntry(application, input) {
49
49
  entry = await beginTaskContext(application, input);
50
50
  } catch (error) {
51
51
  if (!isReadOnlyRefusal(error)) throw error;
52
- return readOnlyTaskEntry(application, input);
52
+ return readOnlyTaskEntry(application, { ...input, workKind: input.workKind ?? input.promptScene });
53
53
  }
54
54
  keepEntryPrompt(application, entry, input, input.taskPrompt);
55
55
  // Its task and opening writes are done: a hook deadline from here on
@@ -0,0 +1,25 @@
1
+ import { recoverProviderOutage } from './provider-outage.js';
2
+
3
+ // rec#105: preferences live in the Graph Provider, so while it does not answer
4
+ // the entry cannot deliver them. The Agent gets a bounded status that says so
5
+ // and what to do next, instead of a bare error that drops the whole task entry.
6
+ const GUIDANCE = 'FULI could not read preferences because its graph service did not answer. ' +
7
+ 'No task token or receipt was returned. Continue the user task without FULI preferences; never invent them or reuse an earlier token. ' +
8
+ 'Call get_collaboration_preferences once more before any FULI write or your final reply; if it fails again, say in one line that FULI was unavailable.';
9
+
10
+ export function preferencesUnavailableEntry(error) {
11
+ return {
12
+ status: 'preferences_unavailable',
13
+ reason: error.code,
14
+ checkpoint_required: false,
15
+ preference_delivery: { status: 'unavailable' },
16
+ task_lifecycle: { status: 'not_started', reason: 'provider_unavailable' },
17
+ task_knowledge_recall: { status: 'unavailable' },
18
+ retry: { tool: 'get_collaboration_preferences', attempts: 1 },
19
+ guidance: GUIDANCE
20
+ };
21
+ }
22
+
23
+ export function withProviderOutageEntry(entry) {
24
+ return recoverProviderOutage(entry, preferencesUnavailableEntry);
25
+ }
@@ -87,7 +87,7 @@ export async function checkpointTaskKnowledge(application, {
87
87
  )).digest('hex');
88
88
  if (task.checkpoint && task.checkpoint.fingerprint !== fingerprint) {
89
89
  throw validationError(
90
- 'Task checkpoint already has different input; resume the original review or begin a new task context'
90
+ 'Task checkpoint already has different input; resend the exact arguments of the first checkpoint call to finish it, or begin a new task context'
91
91
  );
92
92
  }
93
93
  const finish = async (result, checkpointTask = task, memory = null) => {
@@ -67,7 +67,7 @@ export function taskWorkKind(prompt) {
67
67
  // begin_task_context arguments from a hook: an unclassified prompt sends none.
68
68
  export function taskSceneInput(prompt) {
69
69
  const workKind = taskWorkKind(prompt);
70
- return workKind ? { workKind } : {};
70
+ return workKind ? { promptScene: workKind } : {};
71
71
  }
72
72
 
73
73
  // The work kinds an item's tasteDomain names: undefined when it states none,
@@ -69,6 +69,7 @@ export function failureProvenance(error) {
69
69
  // Why a judgment failed, for the Agent that asked (rec#83): the step, a fixed
70
70
  // category and what to do next. Only fixed words and the HTTP status, never
71
71
  // the error's own message, which may carry Provider or model text.
72
+ const MODEL_STOP = Object.freeze({ stopped: 'model_stopped', paused: 'model_paused' });
72
73
  const UNREACHABLE = new Set(['provider_unavailable', 'provider_timeout', 'provider_http_5xx']);
73
74
  const FAILURE_RECOVERY = Object.freeze({
74
75
  provider_unreachable: 'The graph service did not answer; try again once it is back.',
@@ -76,14 +77,19 @@ const FAILURE_RECOVERY = Object.freeze({
76
77
  not_allowed: 'This Agent may not read what the judgment needs; ask from the project of the task.',
77
78
  provider_refused: 'The graph service refused the read; check the input and ask again.',
78
79
  model: 'The Tonborg model failed; see modelReceipt, then try again or check the model settings.',
80
+ // A refusal, permission or egress stop (model-backends/failures.js) is not retried anywhere.
81
+ model_stopped: 'The model call was stopped (modelReceipt.reason, e.g. egress not approved or permission denied). '
82
+ + 'Do not retry it or judge it again with another model, endpoint or session; ask again only after the person grants what was refused.',
83
+ model_paused: 'The Tonborg budget is used up; ask again after it resets or the person raises it.',
79
84
  invalid_answer: 'The answer did not match the eligible executors or conversations; ask again.',
80
85
  unknown: 'Try again; if it repeats, report the error code and step.'
81
86
  });
82
87
  export const FAILED_JUDGMENT_GUIDANCE = 'The judgment failed: nothing was selected or run, and this is no execution receipt. '
83
- + 'What the person already chose stands; continue on their word, or ask them.';
88
+ + 'Do not make this judgment in its place. What the person already chose stands for the work it covers; '
89
+ + 'record that work with its own run evidence, or ask them.';
84
90
 
85
91
  function failureCategory(error) {
86
- if (error.modelReceipt) return 'model';
92
+ if (error.modelReceipt) return MODEL_STOP[error.modelReceipt.status] ?? 'model';
87
93
  if (error instanceof TypeError || error.name === 'ZodError') return 'invalid_answer';
88
94
  if (UNREACHABLE.has(error.code)) return 'provider_unreachable';
89
95
  if (error.code !== 'provider_error') return 'unknown';
@@ -35,6 +35,7 @@ import {
35
35
  import { jsonSchemaToZod, openObjectSchema } from './tool-schema.js';
36
36
  import { assertToolInputWithinBudget, createToolInputValidator } from './tool-input-budget.js';
37
37
  import { nativeSessionFromEnv } from '../agents/native-session-env.js';
38
+ import { callSourceApplication } from '../agents/call-source.js';
38
39
  import {
39
40
  isFuliProcessSession,
40
41
  mcpHostSessionId,
@@ -285,12 +286,14 @@ function createToolMap(
285
286
  requestContext
286
287
  );
287
288
 
288
- function invokeAsHost() {
289
- const normalized = normalizeAgentSessionInput(definition.name, prepareToolInput(definition.name, input),
290
- requestNative, requestHost, clock, sourceApplication);
289
+ async function invokeAsHost() {
290
+ const prepared = prepareToolInput(definition.name, input);
291
+ const callSource = await callSourceApplication(app, sourceApplication, prepared);
292
+ const normalized = normalizeAgentSessionInput(definition.name, prepared,
293
+ requestNative, requestHost, clock, callSource);
291
294
  onSession(callingSession(definition.name, normalized, requestNative));
292
295
  return invokeAgentTool(app, definition.name, normalized, projectActionPreviews, commonKnowledgePreviews,
293
- agentHostRequestContext({ ...requestContext, testToolsEnabled: includeTestTools }, requestHost, sourceApplication));
296
+ agentHostRequestContext({ ...requestContext, testToolsEnabled: includeTestTools }, requestHost, callSource));
294
297
  }
295
298
  }
296
299
  }]));
@@ -3,4 +3,4 @@
3
3
  // and writes its digest here before publishing (scripts/pin-win-helper.js); a
4
4
  // source checkout has no helper and no pin, so Windows Hello is unavailable there.
5
5
  // The helper is not Authenticode-signed: this digest is its only integrity check.
6
- export const WIN_HELPER_SHA256 = '66da65701659ea99c17337ee71a5fda227fcd85af8b5f6bda853f3b099877a24';
6
+ export const WIN_HELPER_SHA256 = '7b33c593a701f78b84d9459ca3345a10dafc37b674badd34eebd7e93b28cb7d8';
@@ -0,0 +1,13 @@
1
+ {
2
+ "version": "0.25.1",
3
+ "zh": [
4
+ "一个小修版:FLA 之间喊人更靠谱了,喊不醒的不会再一直占着位子。",
5
+ "图谱服务打个盹时,任务照常开始,记录也能原样补存。",
6
+ "Claude 桌面版的 Code 标签页里,圆桌回复和记录不再报错。"
7
+ ],
8
+ "en": [
9
+ "A small fix release: FLAs reach each other, and a stuck wake no longer blocks one forever.",
10
+ "When the graph service naps, tasks still start and a checkpoint can be finished by sending it again.",
11
+ "In Claude Desktop's Code tab, roundtable replies and checkpoints work again."
12
+ ]
13
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "version": "0.25.2",
3
+ "zh": [
4
+ "又一个小修版:叫不醒的同事,FULI 先看看它的进程还在不在,再决定让不让位。",
5
+ "Tonborg 的模型被拒或没额度时,直接说停下,不再劝你重试。",
6
+ "钩子出错时会说是哪条规则拦的、自己是哪个版本,排查快多了。"
7
+ ],
8
+ "en": [
9
+ "Another small fix: before freeing a stuck wake, FULI checks whether its process still runs.",
10
+ "When Tonborg's model is refused or out of budget, it says stop, not try again.",
11
+ "A failed hook now names the rule that stopped it and its own version."
12
+ ]
13
+ }