Skip to content

Commit

Permalink
Remove debug console.log statements from compiler and snapshot utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Joseph Petro committed Feb 24, 2025
1 parent 3dcfd36 commit b9a9435
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion smart-contexts/utils/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/

export async function compile_snapshot(context_snapshot, merged_opts) {
console.log('context_snapshot', context_snapshot);
const depths = Object.keys(context_snapshot.items)
.map(d => parseInt(d, 10))
.sort((a, b) => a - b);
Expand Down
3 changes: 0 additions & 3 deletions smart-contexts/utils/get_snapshot.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { strip_excluded_headings } from './respect_exclusions.js';
export async function get_snapshot(ctx_item, opts) {
console.log('opts', opts);
const snapshot = {
items: {},
truncated_items: [],
Expand Down Expand Up @@ -38,11 +37,9 @@ export async function get_snapshot(ctx_item, opts) {
...opts.items,
};
}
console.log('snapshot after', snapshot);
return snapshot;
}
async function process_depth(snapshot, curr_depth_keys, ctx_item, opts) {
console.log('curr_depth_keys', curr_depth_keys);
const curr_depth_items = (curr_depth_keys ?? []).map(key => ctx_item.get_ref(key)).filter(Boolean);
const curr_depth_non_item_keys = curr_depth_keys.filter(key => !ctx_item.get_ref(key));
// check if is folder
Expand Down
1 change: 0 additions & 1 deletion smart-contexts/utils/get_snapshot.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,6 @@ test('Codeblock referencing an external folder: subfiles are expanded with ignor
// Provide an example exclude to show hidden files are omitted or patterns are tested
excluded_headings: [],
});
console.log(snapshot);

// 5) Confirm expansions
t.truthy(snapshot.items[0]['myDoc.md'], 'Original doc is included');
Expand Down

0 comments on commit b9a9435

Please sign in to comment.