@prosdevlab/dev-agent 0.8.5

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 (50) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +138 -0
  3. package/dist/cli.js +74721 -0
  4. package/dist/cli.js.map +1 -0
  5. package/dist/mcp.js +61445 -0
  6. package/dist/mcp.js.map +1 -0
  7. package/dist/vendor/web-tree-sitter/lib/alloc.c +48 -0
  8. package/dist/vendor/web-tree-sitter/lib/alloc.h +41 -0
  9. package/dist/vendor/web-tree-sitter/lib/array.h +291 -0
  10. package/dist/vendor/web-tree-sitter/lib/atomic.h +68 -0
  11. package/dist/vendor/web-tree-sitter/lib/clock.h +146 -0
  12. package/dist/vendor/web-tree-sitter/lib/error_costs.h +11 -0
  13. package/dist/vendor/web-tree-sitter/lib/get_changed_ranges.c +523 -0
  14. package/dist/vendor/web-tree-sitter/lib/get_changed_ranges.h +36 -0
  15. package/dist/vendor/web-tree-sitter/lib/host.h +21 -0
  16. package/dist/vendor/web-tree-sitter/lib/language.c +293 -0
  17. package/dist/vendor/web-tree-sitter/lib/language.h +293 -0
  18. package/dist/vendor/web-tree-sitter/lib/length.h +52 -0
  19. package/dist/vendor/web-tree-sitter/lib/lexer.c +483 -0
  20. package/dist/vendor/web-tree-sitter/lib/lexer.h +54 -0
  21. package/dist/vendor/web-tree-sitter/lib/lib.c +12 -0
  22. package/dist/vendor/web-tree-sitter/lib/node.c +875 -0
  23. package/dist/vendor/web-tree-sitter/lib/parser.c +2297 -0
  24. package/dist/vendor/web-tree-sitter/lib/parser.h +286 -0
  25. package/dist/vendor/web-tree-sitter/lib/point.h +48 -0
  26. package/dist/vendor/web-tree-sitter/lib/query.c +4347 -0
  27. package/dist/vendor/web-tree-sitter/lib/reduce_action.h +34 -0
  28. package/dist/vendor/web-tree-sitter/lib/reusable_node.h +95 -0
  29. package/dist/vendor/web-tree-sitter/lib/stack.c +912 -0
  30. package/dist/vendor/web-tree-sitter/lib/stack.h +133 -0
  31. package/dist/vendor/web-tree-sitter/lib/subtree.c +1034 -0
  32. package/dist/vendor/web-tree-sitter/lib/subtree.h +399 -0
  33. package/dist/vendor/web-tree-sitter/lib/tree-sitter.c +987 -0
  34. package/dist/vendor/web-tree-sitter/lib/tree-sitter.cjs +2988 -0
  35. package/dist/vendor/web-tree-sitter/lib/tree-sitter.wasm +0 -0
  36. package/dist/vendor/web-tree-sitter/lib/tree-sitter.wasm.map +1 -0
  37. package/dist/vendor/web-tree-sitter/lib/tree.c +170 -0
  38. package/dist/vendor/web-tree-sitter/lib/tree.h +31 -0
  39. package/dist/vendor/web-tree-sitter/lib/tree_cursor.c +716 -0
  40. package/dist/vendor/web-tree-sitter/lib/tree_cursor.h +48 -0
  41. package/dist/vendor/web-tree-sitter/lib/ts_assert.h +11 -0
  42. package/dist/vendor/web-tree-sitter/lib/unicode.h +75 -0
  43. package/dist/vendor/web-tree-sitter/lib/wasm_store.c +1937 -0
  44. package/dist/vendor/web-tree-sitter/lib/wasm_store.h +31 -0
  45. package/dist/vendor/web-tree-sitter/package.json +98 -0
  46. package/dist/vendor/web-tree-sitter/tree-sitter.cjs +4031 -0
  47. package/dist/vendor/web-tree-sitter/tree-sitter.wasm +0 -0
  48. package/dist/wasm/tree-sitter-go.wasm +0 -0
  49. package/dist/wasm/tree-sitter.wasm +0 -0
  50. package/package.json +65 -0
@@ -0,0 +1,48 @@
1
+ #ifndef TREE_SITTER_TREE_CURSOR_H_
2
+ #define TREE_SITTER_TREE_CURSOR_H_
3
+
4
+ #include "./subtree.h"
5
+
6
+ typedef struct {
7
+ const Subtree *subtree;
8
+ Length position;
9
+ uint32_t child_index;
10
+ uint32_t structural_child_index;
11
+ uint32_t descendant_index;
12
+ } TreeCursorEntry;
13
+
14
+ typedef struct {
15
+ const TSTree *tree;
16
+ Array(TreeCursorEntry) stack;
17
+ TSSymbol root_alias_symbol;
18
+ } TreeCursor;
19
+
20
+ typedef enum {
21
+ TreeCursorStepNone,
22
+ TreeCursorStepHidden,
23
+ TreeCursorStepVisible,
24
+ } TreeCursorStep;
25
+
26
+ void ts_tree_cursor_init(TreeCursor *self, TSNode node);
27
+ void ts_tree_cursor_current_status(
28
+ const TSTreeCursor *_self,
29
+ TSFieldId *field_id,
30
+ bool *has_later_siblings,
31
+ bool *has_later_named_siblings,
32
+ bool *can_have_later_siblings_with_this_field,
33
+ TSSymbol *supertypes,
34
+ unsigned *supertype_count
35
+ );
36
+
37
+ TreeCursorStep ts_tree_cursor_goto_first_child_internal(TSTreeCursor *_self);
38
+ TreeCursorStep ts_tree_cursor_goto_next_sibling_internal(TSTreeCursor *_self);
39
+
40
+ static inline Subtree ts_tree_cursor_current_subtree(const TSTreeCursor *_self) {
41
+ const TreeCursor *self = (const TreeCursor *)_self;
42
+ TreeCursorEntry *last_entry = array_back(&self->stack);
43
+ return *last_entry->subtree;
44
+ }
45
+
46
+ TSNode ts_tree_cursor_parent_node(const TSTreeCursor *_self);
47
+
48
+ #endif // TREE_SITTER_TREE_CURSOR_H_
@@ -0,0 +1,11 @@
1
+ #ifndef TREE_SITTER_ASSERT_H_
2
+ #define TREE_SITTER_ASSERT_H_
3
+
4
+ #ifdef NDEBUG
5
+ #define ts_assert(e) ((void)(e))
6
+ #else
7
+ #include <assert.h>
8
+ #define ts_assert(e) assert(e)
9
+ #endif
10
+
11
+ #endif // TREE_SITTER_ASSERT_H_
@@ -0,0 +1,75 @@
1
+ #ifndef TREE_SITTER_UNICODE_H_
2
+ #define TREE_SITTER_UNICODE_H_
3
+
4
+ #ifdef __cplusplus
5
+ extern "C" {
6
+ #endif
7
+
8
+ #include <limits.h>
9
+ #include <stdint.h>
10
+
11
+ #define U_EXPORT
12
+ #define U_EXPORT2
13
+ #include "unicode/utf8.h"
14
+ #include "unicode/utf16.h"
15
+ #include "portable/endian.h"
16
+
17
+ #define U16_NEXT_LE(s, i, length, c) UPRV_BLOCK_MACRO_BEGIN { \
18
+ (c)=le16toh((s)[(i)++]); \
19
+ if(U16_IS_LEAD(c)) { \
20
+ uint16_t __c2; \
21
+ if((i)!=(length) && U16_IS_TRAIL(__c2=(s)[(i)])) { \
22
+ ++(i); \
23
+ (c)=U16_GET_SUPPLEMENTARY((c), __c2); \
24
+ } \
25
+ } \
26
+ } UPRV_BLOCK_MACRO_END
27
+
28
+ #define U16_NEXT_BE(s, i, length, c) UPRV_BLOCK_MACRO_BEGIN { \
29
+ (c)=be16toh((s)[(i)++]); \
30
+ if(U16_IS_LEAD(c)) { \
31
+ uint16_t __c2; \
32
+ if((i)!=(length) && U16_IS_TRAIL(__c2=(s)[(i)])) { \
33
+ ++(i); \
34
+ (c)=U16_GET_SUPPLEMENTARY((c), __c2); \
35
+ } \
36
+ } \
37
+ } UPRV_BLOCK_MACRO_END
38
+
39
+ static const int32_t TS_DECODE_ERROR = U_SENTINEL;
40
+
41
+ static inline uint32_t ts_decode_utf8(
42
+ const uint8_t *string,
43
+ uint32_t length,
44
+ int32_t *code_point
45
+ ) {
46
+ uint32_t i = 0;
47
+ U8_NEXT(string, i, length, *code_point);
48
+ return i;
49
+ }
50
+
51
+ static inline uint32_t ts_decode_utf16_le(
52
+ const uint8_t *string,
53
+ uint32_t length,
54
+ int32_t *code_point
55
+ ) {
56
+ uint32_t i = 0;
57
+ U16_NEXT_LE(((uint16_t *)string), i, length, *code_point);
58
+ return i * 2;
59
+ }
60
+
61
+ static inline uint32_t ts_decode_utf16_be(
62
+ const uint8_t *string,
63
+ uint32_t length,
64
+ int32_t *code_point
65
+ ) {
66
+ uint32_t i = 0;
67
+ U16_NEXT_BE(((uint16_t *)string), i, length, *code_point);
68
+ return i * 2;
69
+ }
70
+
71
+ #ifdef __cplusplus
72
+ }
73
+ #endif
74
+
75
+ #endif // TREE_SITTER_UNICODE_H_