@codex-ultra/cxu 0.2.12 → 0.2.13

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.
@@ -8,7 +8,7 @@ export type SaVmNetCapability = {
8
8
  url: string;
9
9
  methods?: string[];
10
10
  };
11
- export type SaVmActionType = "read" | "read_file" | "read_lines" | "read_file_tail" | "tail_file" | "tail" | "read_many" | "read_files" | "find" | "find_files" | "list_files" | "write" | "write_file" | "edit" | "edit_file" | "apply_patch" | "patch" | "delete" | "delete_file" | "remove_file" | "safe_delete" | "move" | "move_file" | "rename" | "rename_file" | "copy" | "copy_file" | "stat" | "file_info" | "test_path" | "file_exists" | "exists" | "ensure_dir" | "mkdir" | "vm-read" | "vm_read" | "count_lines" | "line_count" | "list_dir" | "grep" | "grep_search" | "grep_async" | "grep_search_async" | "async_grep" | "http_fetch" | "fetch" | "run_js" | "exec_js" | "run_py" | "run_python" | "exec_py" | "clear_tool_history" | "prune_tool_history" | "find_references" | "find_all_references" | "find_implementations" | "find_impl" | "implementations" | "file_outline" | "outline" | "workspace_outline" | "outline_many" | "project_outline" | "rename_symbol" | "symbol_rename" | "move_file_with_imports" | "move_with_imports" | "find_definition" | "goto_definition" | "def" | "extract_to_file" | "extract_file" | "extract_module" | "add_import" | "insert_import" | "get_diagnostics" | "diagnostics" | "check_syntax" | "workspace_diagnostics" | "project_diagnostics" | "all_diagnostics" | "organize_imports" | "clean_unused_imports" | "sort_imports" | "analyze_scope" | "scope_analysis" | "run_bun" | "run_bun_profile" | "run_project_check" | "project_check" | "run_host" | "exec_host" | "host";
11
+ export type SaVmActionType = "read" | "read_file" | "read_lines" | "read_file_tail" | "tail_file" | "tail" | "read_many" | "read_files" | "find" | "find_files" | "list_files" | "write" | "write_file" | "edit" | "edit_file" | "apply_patch" | "patch" | "delete" | "delete_file" | "remove_file" | "safe_delete" | "move" | "move_file" | "rename" | "rename_file" | "copy" | "copy_file" | "stat" | "file_info" | "test_path" | "file_exists" | "exists" | "ensure_dir" | "mkdir" | "vm-read" | "vm_read" | "count_lines" | "line_count" | "list_dir" | "grep" | "grep_search" | "grep_async" | "grep_search_async" | "async_grep" | "http_fetch" | "fetch" | "run_js" | "exec_js" | "run_py" | "run_python" | "exec_py" | "clear_tool_history" | "prune_tool_history" | "find_references" | "find_all_references" | "find_implementations" | "find_impl" | "implementations" | "file_outline" | "outline" | "workspace_outline" | "outline_many" | "project_outline" | "repo_map" | "repo-map" | "rename_symbol" | "symbol_rename" | "move_file_with_imports" | "move_with_imports" | "find_definition" | "goto_definition" | "def" | "extract_to_file" | "extract_file" | "extract_module" | "add_import" | "insert_import" | "get_diagnostics" | "diagnostics" | "check_syntax" | "workspace_diagnostics" | "project_diagnostics" | "all_diagnostics" | "organize_imports" | "clean_unused_imports" | "sort_imports" | "analyze_scope" | "scope_analysis" | "verify_loop" | "verify-loop" | "verify_changed" | "run_bun" | "run_bun_profile" | "run_project_check" | "project_check" | "run_host" | "exec_host" | "host" | "save_note" | "add_note" | "read_notes" | "read_note" | "list_notes" | "delete_note" | "remove_note" | "clear_notes";
12
12
  export declare const SA_VM_BUN_PROFILES: readonly SaVmBunProfile[];
13
13
  export type { SaVmBunProfile };
14
14
  export type SaVmRunInput = {
@@ -26,6 +26,11 @@ export type SaVmRunInput = {
26
26
  keep_last_n_turns?: number;
27
27
  filter_tools?: string[];
28
28
  reason?: string;
29
+ key?: string;
30
+ all?: boolean;
31
+ fact?: string;
32
+ level?: NotePriorityLevel | string;
33
+ priority?: NotePriorityLevel | string;
29
34
  symbol?: string;
30
35
  old_name?: string;
31
36
  new_name?: string;
@@ -101,6 +106,7 @@ export type SaVmRunInput = {
101
106
  body?: string;
102
107
  timeout_ms?: number;
103
108
  timeout?: number;
109
+ format?: string;
104
110
  source?: string;
105
111
  language?: "js" | "javascript" | "bun" | "ts" | "typescript" | "node" | "py" | "python" | "sa" | "sla";
106
112
  exe?: string;
@@ -257,6 +263,7 @@ export declare function nativeFindImplementations(rawSymbol: string | undefined,
257
263
  timeout_ms?: number;
258
264
  timeout?: number;
259
265
  }, policy: SaVmPolicyConfig | undefined, cwd: string, startedAt: number): Promise<SaVmRunResult>;
266
+ export declare function collectWorkspaceSourceFiles(baseDir: string, maxFiles?: number, timeoutMs?: number, startedAt?: number): Promise<string[]>;
260
267
  export declare function nativeFileOutline(rawPath: string, options: {
261
268
  detail?: boolean;
262
269
  max_tokens?: number;
@@ -276,6 +283,45 @@ export declare function nativeWorkspaceOutline(rawDir: string, options: {
276
283
  timeout_ms?: number;
277
284
  timeout?: number;
278
285
  }, policy: SaVmPolicyConfig | undefined, cwd: string, startedAt: number): Promise<SaVmRunResult>;
286
+ export declare function nativeRepoMap(rawDir: string, options: {
287
+ pattern?: string;
288
+ path_pattern?: string;
289
+ is_regex?: boolean;
290
+ regex?: boolean;
291
+ max_files?: number;
292
+ max_symbols_per_file?: number;
293
+ max_tokens?: number;
294
+ max_file_bytes?: number;
295
+ exclude_dirs?: string[];
296
+ include_used_by?: boolean;
297
+ timeout_ms?: number;
298
+ timeout?: number;
299
+ }, policy: SaVmPolicyConfig | undefined, cwd: string, startedAt: number): Promise<SaVmRunResult>;
300
+ export declare function nativeVerifyLoop(rawTarget: string, options: {
301
+ files?: string[];
302
+ pattern?: string;
303
+ max_files?: number;
304
+ max_errors?: number;
305
+ max_tokens?: number;
306
+ timeout_ms?: number;
307
+ timeout?: number;
308
+ }, policy: SaVmPolicyConfig | undefined, cwd: string, startedAt: number): Promise<SaVmRunResult>;
309
+ export type NotePriorityLevel = "low" | "normal" | "important" | "critical";
310
+ export type WorkspaceNoteItem = {
311
+ key: string;
312
+ content: string;
313
+ level: NotePriorityLevel;
314
+ updated_at: number;
315
+ };
316
+ export type WorkspaceNotesDocument = {
317
+ workspace: string;
318
+ updated_at: number;
319
+ notes: WorkspaceNoteItem[];
320
+ };
321
+ export declare function resolveWorkspaceMemoryFilePath(workspaceDir: string): string;
322
+ export declare function nativeSaveNote(keyInput: string | undefined, contentInput: string | undefined, levelInput: string | undefined, policy: SaVmPolicyConfig | undefined, cwd: string, startedAt: number): Promise<SaVmRunResult>;
323
+ export declare function nativeReadNotes(keyInput: string | undefined, maxTokensInput: number | undefined, remainingTokensInput: number | undefined, policy: SaVmPolicyConfig | undefined, cwd: string, startedAt: number): Promise<SaVmRunResult>;
324
+ export declare function nativeDeleteNote(keyInput: string | undefined, all: boolean | undefined, policy: SaVmPolicyConfig | undefined, cwd: string, startedAt: number): Promise<SaVmRunResult>;
279
325
  export declare function nativeReadMany(files: string[], options: {
280
326
  start_line?: number;
281
327
  end_line?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codex-ultra/cxu",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "description": "codex-ultra workbench launcher: server compiled locally with Bun + web UI (cxu starts it all).",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",