odant-work 1.0.115 → 1.0.117

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 (86) hide show
  1. package/$server/$folder/$file/$task/handlers/pages/form/file/$handler/ui/panel.js +11 -2
  2. package/$server/$folder/lib/consultant/consultant.js +1 -1
  3. package/$server/$folder/lib/node-explorer/node-explorer.js +3 -0
  4. package/.graphifyignore +6 -0
  5. package/.graphifyrc +4 -0
  6. package/.opencode/commands/graphify.md +5 -0
  7. package/.opencode/commands/grill-me.md +7 -0
  8. package/.opencode/opencode.jsonc +11 -0
  9. package/.opencode/plugins/graphify.js +62 -0
  10. package/.opencode/skills/graphify/.graphify_version +1 -0
  11. package/.opencode/skills/graphify/SKILL.md +863 -0
  12. package/.opencode/skills/graphify/references/add-watch.md +56 -0
  13. package/.opencode/skills/graphify/references/exports.md +91 -0
  14. package/.opencode/skills/graphify/references/extraction-spec.md +86 -0
  15. package/.opencode/skills/graphify/references/github-and-merge.md +46 -0
  16. package/.opencode/skills/graphify/references/hooks.md +48 -0
  17. package/.opencode/skills/graphify/references/query.md +319 -0
  18. package/.opencode/skills/graphify/references/transcribe.md +52 -0
  19. package/.opencode/skills/graphify/references/update.md +233 -0
  20. package/.opencode/skills/grill-me/SKILL.md +31 -0
  21. package/.opencode/skills/grilling/SKILL.md +30 -0
  22. package/.well-known/appspecific/com.chrome.devtools.json +1 -1
  23. package/AGENTS.md +14 -0
  24. package/graphify-out/.graphify_analysis.json +11093 -0
  25. package/graphify-out/.graphify_build.json +1 -0
  26. package/graphify-out/.graphify_build_state.json +1 -0
  27. package/graphify-out/.graphify_detect.json +1 -0
  28. package/graphify-out/.graphify_labels.json +1 -0
  29. package/graphify-out/.graphify_labels.json.sig +1 -0
  30. package/graphify-out/.graphify_labels.pending.json +785 -0
  31. package/graphify-out/.graphify_python +1 -0
  32. package/graphify-out/.graphify_root +1 -0
  33. package/graphify-out/GRAPH_REPORT.md +1466 -0
  34. package/graphify-out/cache/.gfy-replace-bak-gci0at1b.tmp +1 -0
  35. package/graphify-out/cache/.gfy-replace-bak-jzyyumxe.tmp +1 -0
  36. package/graphify-out/cache/.gfy-replace-bak-zdzf7c5s.tmp +1 -0
  37. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/0362f8d78d0065532bbf3c258155da406e5d639fd8ab8b36f32aaec824797834.json +1 -0
  38. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/1279dd107c5cc425aebc191663bd8f5c44e6053b525cd4f5e06abac0427837b1.json +1 -0
  39. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/244d428606dc285d4e32c5930cf8126bfe4fe5fda192f8b9b5b1d932cfc8daea.json +1 -0
  40. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/2573255306d9de54325f188793d7dc7d76199a6017942e0a79f8ca9822da27ab.json +1 -0
  41. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/270cb0d9ad25da63476322ac8ba9a6eba1fdb21cd7a8b80fe1c33e7d13119d94.json +1 -0
  42. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/28a975c1a8d50bf16faf7dfc6b521bbeee5789a5ef49231541145d13f06ff722.json +1 -0
  43. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/2d64ab31df06d57558b3a282d06158dc8df565b36c0727c384645800b1168ef8.json +1 -0
  44. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/3e75114e18fd75627a71d987a27f2579779bd26f5b157f1e9f261f2467800a48.json +1 -0
  45. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/420740aeef9e97428bf0d87c10eb9c0f7819f004cee96d7d0faa2d1a5407d6e1.json +1 -0
  46. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/4c6bb77a1a9434986f0aac8251d69e42f45ef4c31775f7237be4bd0cf1eb8d9e.json +1 -0
  47. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/776c646738b485c922e7d3e9d8a3560f26e2ed133b142619313be1fdae4ffd05.json +1 -0
  48. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/7938cb04be94e0d03fe46b4ed7288c3224af872a3563e7f0e331ed1ad04acfc2.json +1 -0
  49. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/7af0aa1c83bfce5b5f81f06c5f3852af9035307fe749781868bb27b75906c2b0.json +1 -0
  50. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/8def1210ca7df1c5adaa6d61bf71f2e11ca01ebc3ff94fabacf709003f200b8b.json +1 -0
  51. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/900d4cdb722e1902c4290e90a974086c4eba207a774b7587a38b0ede1f57c103.json +1 -0
  52. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/921ccbb389bc155c99e169a4e5f468d8806266fd0e53754da101785025fc9fce.json +1 -0
  53. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/99df5157a64d630b4ce57b0ab9f361d128badc17950233f51d584d8ab4e508f5.json +1 -0
  54. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/9a22abb0c6e8377b47387564ed38cf500e4269a5a1f0d195cd6c998aed9a7b61.json +1 -0
  55. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/9b81fc1dd7bb2dd1a55f0ed0662f596c1143d82952e2ac130304148201459ac5.json +1 -0
  56. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/9e6d299cbc85dee4ebdc75fd63622ddb880fea951e7ab042d65f130f67cd909c.json +1 -0
  57. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/b0a6be035aa7e3542e91cc04e9a603cb36a365f07226eab1866912cc3b9e774e.json +1 -0
  58. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/c37392ffea17fa391016c1d44db36169f3a6563de1d272e7e9a32c7d3814035f.json +1 -0
  59. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/c698a4e0df28e868bf3ce3547cd5144ff5336dbded6fb92646c517950c2b7a32.json +1 -0
  60. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/e49652b2c1c4921d955e7e22364f928c79ff9fbe332982acbdc9caf8921bed8b.json +1 -0
  61. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/f057a3e4987d66fa18b0868dad26158ee152e0ff06790be37ff4e6e22ffd9cff.json +1 -0
  62. package/graphify-out/cache/ast/v0.9.108-s45-g460503b3f2a4/fb385b3957c22c09f9f6c2dde66f28f3193b56209c50bd062fa8d52fd3e1196a.json +1 -0
  63. package/graphify-out/cache/last_query_stamp +1 -0
  64. package/graphify-out/cache/stat-index.json +1 -0
  65. package/graphify-out/graph.html +477 -0
  66. package/graphify-out/graph.json +1 -0
  67. package/graphify-out/manifest.json +8146 -0
  68. package/oda/components/layouts/app-layout/app-layout.js +1 -1
  69. package/package.json +1 -1
  70. package/sources/host/auto-updater.js +0 -1
  71. package/sources/modules/agent/extensions.js +2 -0
  72. package/sources/modules/agent/index.js +4 -2
  73. package/sources/modules/agent/loop.js +3 -3
  74. package/sources/modules/agent/mcp-pool.js +2 -0
  75. package/sources/modules/agent/node-rules.js +1 -2
  76. package/sources/modules/agent/permissions.js +5 -5
  77. package/sources/modules/agent/scheduler.js +13 -2
  78. package/sources/modules/agent/scope.js +2 -2
  79. package/sources/modules/agent/session.js +5 -2
  80. package/sources/modules/agent/taint.js +4 -0
  81. package/sources/modules/agent/tools/browser.js +2 -1
  82. package/sources/modules/agent/tools/tool-groups.js +9 -9
  83. package/sources/modules/agent/triggers.js +5 -3
  84. package/sources/page.html +12 -2
  85. package/#system/auto-update.json.4727984.tmp +0 -15
  86. package/#system/license-base-WORK-PAK-BED9C508.lic.json.4714304.tmp +0 -0
@@ -126,8 +126,17 @@ ODA({ is: 'microchat-panel',
126
126
  spokenText = shell._voice.speaker.spokenText;
127
127
  shell._voice.speaker.cancel('barge');
128
128
  }
129
- const attachments = files.length ? await this._upload(files) : [];
130
- await this.dispatch(text, attachments, { voice: voiceOn, interrupt: voiceOn, spokenText });
129
+ try {
130
+ const attachments = files.length ? await this._upload(files) : [];
131
+ await this.dispatch(text, attachments, { voice: voiceOn, interrupt: voiceOn, spokenText });
132
+ }
133
+ catch (err) {
134
+ if (!this.value && text)
135
+ this.value = text;
136
+ if (!this.files?.length && files.length)
137
+ this.files = files;
138
+ shell?.toast?.('Не удалось отправить: ' + (err?.message || err));
139
+ }
131
140
  this.focus();
132
141
  },
133
142
  /** Реплика голосом (голосовой режим): та же отправка, но с пометкой — агент ответит абзацем для озвучки. */
@@ -1197,7 +1197,7 @@ ODA({
1197
1197
  const includePaths = attachments.map(a => a.path);
1198
1198
  await cabinet.fetch('append_log_includes', { entryPath: path, includePaths }).catch(() => {});
1199
1199
  }
1200
- await createdTask.fetch('prompt', {}, JSON.stringify({ prompt: text, attachments, ...(voice ? { voice: true } : {}) })).catch(() => {});
1200
+ await createdTask.fetch('prompt', {}, JSON.stringify({ prompt: text, attachments, ...(voice ? { voice: true } : {}) }));
1201
1201
  }
1202
1202
  if (createdTask)
1203
1203
  this._bindTask(createdTask);
@@ -6,12 +6,15 @@ export default {
6
6
  justify-content: flex-start;
7
7
  @apply --horizontal;
8
8
  flex-wrap: wrap;
9
+ overflow: hidden;
10
+
9
11
  }
10
12
  item-node:not(:first-child){
11
13
  max-width: 200px;
12
14
  }
13
15
  div {
14
16
  opacity: .9;
17
+ overflow: hidden;
15
18
  }
16
19
  div:hover {
17
20
  opacity: 1;
@@ -0,0 +1,6 @@
1
+ # Минифицированные и сторонние вендорные бандлы
2
+ **/*.min.js
3
+ oda/components/editors/code-editor/src/
4
+ oda/components/editors/markdown/markdown-viewer/lib/
5
+ oda/components/editors/markdown/markdown-editor/lib/
6
+ oda/ext/
package/.graphifyrc ADDED
@@ -0,0 +1,4 @@
1
+ # Настройки Graphify для проекта WORK
2
+ viz_node_limit=15000
3
+ query_budget=4000
4
+ query_depth=3
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: Build or query the project knowledge graph with Graphify
3
+ ---
4
+
5
+ Load the `graphify` skill with the `skill` tool and execute `/graphify $ARGUMENTS`.
@@ -0,0 +1,7 @@
1
+ ---
2
+ description: A relentless interview to sharpen a plan or design (mattpocock/grill-me)
3
+ ---
4
+
5
+ Load the `grilling` skill with the `skill` tool and interview me relentlessly about the following plan, decision, or idea until every branch of the design tree is resolved:
6
+
7
+ $ARGUMENTS
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://opencode.ai/config.json",
3
+ "mcp": {
4
+ "servers": {
5
+ "graphify": {
6
+ "type": "local",
7
+ "command": ["graphify-mcp", "graphify-out/graph.json"]
8
+ }
9
+ }
10
+ }
11
+ }
@@ -0,0 +1,62 @@
1
+ // graphify OpenCode plugin
2
+ // Injects a knowledge graph reminder before the first shell command of a
3
+ // session when the graph exists.
4
+ //
5
+ // One file for both runtimes. OpenCode 2 reads `id` and `setup()` from the
6
+ // default export; OpenCode 1 (1.3.4 and later) reads `server()` from it. Each
7
+ // ignores the other's function. Nothing is imported from an opencode package:
8
+ // a plain file in .opencode/plugins/ cannot resolve one.
9
+ //
10
+ // IMPORTANT: keep the reminder string free of backticks and $(...) constructs.
11
+ // The hook prepends `echo "<reminder>" ; <cmd>` to the user's shell command;
12
+ // backticks inside the double-quoted echo trigger command substitution,
13
+ // which both corrupts tool output and silently executes the very graphify
14
+ // command we are only suggesting. Plain words render fine in opencode's TUI.
15
+ import { existsSync } from "fs";
16
+ import { join } from "path";
17
+
18
+ // ';' not '&&' — Windows PowerShell 5.1 rejects '&&' as a statement
19
+ // separator, breaking the first shell command of the session (#1646).
20
+ const REMINDER =
21
+ 'echo "[graphify] knowledge graph at graphify-out/. For focused questions, run graphify query with your question (scoped subgraph, usually much smaller than GRAPH_REPORT.md) instead of grepping raw files. Read GRAPH_REPORT.md only for broad architecture context." ; ';
22
+
23
+ const hasGraph = (directory) => existsSync(join(directory, "graphify-out", "graph.json"));
24
+
25
+ // A project and a directory above it (often ~) can each hold a copy of this
26
+ // file, and OpenCode loads both. OpenCode 2 fails the second plugin with the
27
+ // same id ("Duplicate plugin ID"), so the id carries this file's location. The
28
+ // copies share one record of who was reminded, so a command gets one reminder.
29
+ const location = [...import.meta.url].reduce((hash, ch) => (Math.imul(hash, 31) + ch.charCodeAt(0)) >>> 0, 7);
30
+ const reminded = (globalThis.__graphifyReminded ??= new Set());
31
+
32
+ export default {
33
+ id: `graphify-${location.toString(16)}`,
34
+
35
+ // OpenCode 2: the command tool is "shell", and one server outlives many
36
+ // sessions, so the reminder is tracked per session.
37
+ async setup(ctx) {
38
+ await ctx.tool.hook("execute.before", (event) => {
39
+ if (event.tool !== "shell" || typeof event.input?.command !== "string") return;
40
+ if (reminded.has(event.sessionID)) return;
41
+ if (!hasGraph(ctx.location.directory)) return;
42
+
43
+ event.input = { ...event.input, command: REMINDER + event.input.command };
44
+ reminded.add(event.sessionID);
45
+ });
46
+ },
47
+
48
+ // OpenCode 1: the command tool is "bash", and the server lives as long as
49
+ // the session, so the reminder is tracked per project directory.
50
+ async server({ directory }) {
51
+ return {
52
+ "tool.execute.before": async (input, output) => {
53
+ if (input.tool !== "bash" || typeof output.args?.command !== "string") return;
54
+ if (reminded.has(directory)) return;
55
+ if (!hasGraph(directory)) return;
56
+
57
+ output.args.command = REMINDER + output.args.command;
58
+ reminded.add(directory);
59
+ },
60
+ };
61
+ },
62
+ };
@@ -0,0 +1 @@
1
+ 0.9.108