@harness-reins/linux-x64 0.13.1 → 0.14.0-alpha.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 (36) hide show
  1. package/dist/reins/ZELLIJ-LICENSE.md +21 -0
  2. package/dist/reins/_internal/harness_reins/_build.txt +1 -1
  3. package/dist/reins/_internal/harness_reins/assets/skills/claude/SKILL.md +13 -11
  4. package/dist/reins/_internal/harness_reins/assets/skills/codex/SKILL.md +1 -1
  5. package/dist/reins/_internal/harness_reins/assets/skills/dsh/SKILL.md +1 -1
  6. package/dist/reins/_internal/harness_reins/assets/skills/pi/SKILL.md +1 -1
  7. package/dist/reins/_internal/lib-dynload/_asyncio.cpython-312-x86_64-linux-gnu.so +0 -0
  8. package/dist/reins/_internal/lib-dynload/_multiprocessing.cpython-312-x86_64-linux-gnu.so +0 -0
  9. package/dist/reins/_internal/lib-dynload/_posixshmem.cpython-312-x86_64-linux-gnu.so +0 -0
  10. package/dist/reins/_internal/lib-dynload/_queue.cpython-312-x86_64-linux-gnu.so +0 -0
  11. package/dist/reins/_internal/lib-dynload/mmap.cpython-312-x86_64-linux-gnu.so +0 -0
  12. package/dist/reins/_internal/textual/py.typed +0 -0
  13. package/dist/reins/_internal/textual/tree-sitter/highlights/bash.scm +56 -0
  14. package/dist/reins/_internal/textual/tree-sitter/highlights/css.scm +91 -0
  15. package/dist/reins/_internal/textual/tree-sitter/highlights/go.scm +123 -0
  16. package/dist/reins/_internal/textual/tree-sitter/highlights/html.scm +25 -0
  17. package/dist/reins/_internal/textual/tree-sitter/highlights/java.scm +142 -0
  18. package/dist/reins/_internal/textual/tree-sitter/highlights/javascript.scm +204 -0
  19. package/dist/reins/_internal/textual/tree-sitter/highlights/json.scm +32 -0
  20. package/dist/reins/_internal/textual/tree-sitter/highlights/markdown.scm +51 -0
  21. package/dist/reins/_internal/textual/tree-sitter/highlights/python.scm +313 -0
  22. package/dist/reins/_internal/textual/tree-sitter/highlights/regex.scm +50 -0
  23. package/dist/reins/_internal/textual/tree-sitter/highlights/rust.scm +155 -0
  24. package/dist/reins/_internal/textual/tree-sitter/highlights/sql.scm +444 -0
  25. package/dist/reins/_internal/textual/tree-sitter/highlights/toml.scm +36 -0
  26. package/dist/reins/_internal/textual/tree-sitter/highlights/xml.scm +168 -0
  27. package/dist/reins/_internal/textual/tree-sitter/highlights/yaml.scm +53 -0
  28. package/dist/reins/_internal/textual/widgets/__init__.pyi +43 -0
  29. package/dist/reins/_internal/textual-8.2.8.dist-info/INSTALLER +1 -0
  30. package/dist/reins/_internal/textual-8.2.8.dist-info/METADATA +266 -0
  31. package/dist/reins/_internal/textual-8.2.8.dist-info/RECORD +516 -0
  32. package/dist/reins/_internal/textual-8.2.8.dist-info/WHEEL +4 -0
  33. package/dist/reins/_internal/textual-8.2.8.dist-info/licenses/LICENSE +21 -0
  34. package/dist/reins/reins +0 -0
  35. package/dist/reins/zellij +4 -0
  36. package/package.json +1 -1
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Zellij contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1 +1 @@
1
- 326bcaec0574
1
+ 5af57b825b4d
@@ -1,14 +1,16 @@
1
1
  ---
2
2
  name: harness-reins
3
- description: Run long jobs (training, benchmarks, builds, test suites, deployments, data jobs, child agents) under Harness Reins (reins) so they outlive this turn, and get woken in this same Claude Code session when they finish via a background `reins wait`. Use instead of sleeping, polling logs, or leaving a job owned by the Bash tool whenever a command may take about a minute or longer. Also covers handling an `[reins-status]` repair block and acknowledging `[reins]` results.
3
+ description: Run long jobs (training, benchmarks, builds, test suites, deployments, data jobs, child agents) under Harness Reins (reins) so they outlive this turn, and get the result back in this same Claude Code session when they finish. Use instead of sleeping, polling logs, or leaving a job owned by the Bash tool whenever a command may take about a minute or longer. For work of several steps (train then evaluate, a sweep of runs, build then test then publish) or work left running unattended, start a Reins goal before the first job; it reminds this session if everything goes quiet. Also covers handling an `[reins-status]` repair block and acknowledging `[reins]` results.
4
4
  ---
5
5
 
6
6
  # Harness Reins for Claude Code
7
7
 
8
8
  Reins hands a long command to an independent OS task owner (launchd on macOS, systemd on Linux,
9
9
  Task Scheduler on Windows) and queues a callback when it exits. In Claude Code you receive that
10
- callback **in this live session** by running `reins wait` as a background Bash command: Claude Code
11
- wakes you when a background command exits, and `reins wait` exits as soon as the callback is ready.
10
+ callback **in this live session**. Where `reins setup` installed its hook, the hook delivers it and
11
+ you start nothing. Otherwise run `reins wait` as a background Bash command: Claude Code wakes you
12
+ when a background command exits, and `reins wait` exits as soon as the callback is ready. The
13
+ output of `reins run` says which applies.
12
14
 
13
15
  The full reference (all flags, platforms, recovery and goals) is in [REFERENCE.md](REFERENCE.md).
14
16
  Read it only when you need details beyond this page. It is shared with other agents; where it
@@ -34,19 +36,19 @@ differs from this page about callback delivery, this page applies to Claude Code
34
36
  reins run --cwd "$PWD" --task "train model" -- python train.py --config configs/exp.yaml
35
37
  ```
36
38
 
37
- stderr prints the task id, backend, log path, and a ready-made line:
38
- `reins: Claude Code live callback: run in the background (run_in_background): .../reins wait --queue-dir ... --task <id>`
39
+ stderr prints the task id, backend, log path, and how the callback will arrive:
39
40
 
40
- If it instead says the callback `arrives through the reins channel`, this session was started with
41
- `reins claude`: skip step 2. The callback is pushed into this session as a
42
- `<channel source="reins">` event; handle it as in step 3.
41
+ - `arrives through the Reins hook`: skip step 2. The callback appears in this window when it is idle
42
+ or its turn ends; handle it as in step 3.
43
+ - `run in the background (run_in_background): .../reins wait --queue-dir ... --task <id>`: do step 2.
44
+ - `arrives through the reins channel`: this session was started with `reins claude`, so skip step 2.
45
+ The callback is pushed in as a `<channel source="reins">` event; handle it as in step 3.
43
46
 
44
47
  2. **Wait** — run exactly that `reins wait ... --task <id>` command with the Bash tool's
45
48
  `run_in_background: true`. Do not run it in the foreground (it blocks until the job ends), and do
46
49
  not poll its output. Then tell the user what is running and end your turn, or carry on with other
47
- work. If `reins run` says the callback arrives through the Reins hook, there is nothing to start.
48
- While this window is open the daemon never resumes the session beside it; it does so only after
49
- the window closes.
50
+ work. While this window is open the daemon never resumes the session beside it; it does so only
51
+ after the window closes.
50
52
 
51
53
  If the Bash tool has no `run_in_background` (background tasks are disabled; `reins run` then says
52
54
  so instead of printing a wait command), skip the wait: tell the user what is running and end your
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: harness-reins
3
- description: Run long jobs (training, benchmarks, builds, test suites, deployments, data jobs, child agents) under Harness Reins (reins) so they outlive this turn, then end the turn; Reins starts a new turn in this same Codex thread with the result. Use instead of sleeping, polling logs, waiting on a running exec session, or blocking a tool call whenever a command or a wait for time to pass may take about a minute or longer. Also covers handling an `[reins-status]` repair block and acknowledging `[reins]` results.
3
+ description: Run long jobs (training, benchmarks, builds, test suites, deployments, data jobs, child agents) under Harness Reins (reins) so they outlive this turn, then end the turn; Reins starts a new turn in this same Codex thread with the result. Use instead of sleeping, polling logs, waiting on a running exec session, or blocking a tool call whenever a command or a wait for time to pass may take about a minute or longer. For work of several steps (train then evaluate, a sweep of runs, build then test then publish) or work left running unattended, start a Reins goal before the first job; it reminds this thread if everything goes quiet. Also covers handling an `[reins-status]` repair block and acknowledging `[reins]` results.
4
4
  ---
5
5
 
6
6
  # Harness Reins for Codex
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: harness-reins
3
- description: Run long jobs (training, benchmarks, builds, test suites, deployments, data jobs, child agents) under Harness Reins (reins) so they outlive this turn, and get woken in this same DeepSeek Harness session when they finish through a background `reins wait` job. Use instead of sleeping, polling logs, or leaving a job owned by the foreground shell whenever a command may take about a minute or longer. Also covers handling an `[reins-status]` repair block and acknowledging `[reins]` results.
3
+ description: Run long jobs (training, benchmarks, builds, test suites, deployments, data jobs, child agents) under Harness Reins (reins) so they outlive this turn, and get woken in this same DeepSeek Harness session when they finish through a background `reins wait` job. Use instead of sleeping, polling logs, or leaving a job owned by the foreground shell whenever a command may take about a minute or longer. For work of several steps (train then evaluate, a sweep of runs, build then test then publish) or work left running unattended, start a Reins goal before the first job; it reminds this session if everything goes quiet. Also covers handling an `[reins-status]` repair block and acknowledging `[reins]` results.
4
4
  ---
5
5
 
6
6
  # Harness Reins for DeepSeek Harness
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: harness-reins
3
- description: Run long jobs (training, benchmarks, builds, test suites, deployments, data jobs, child agents) under Harness Reins (reins) so they outlive this run, and get the result steered back into this same Pi session when they finish. Use instead of sleeping, polling logs, or blocking a tool call whenever a command or a wait for time to pass may take about a minute or longer. Also covers handling an `[reins-status]` repair block and acknowledging `[reins]` results.
3
+ description: Run long jobs (training, benchmarks, builds, test suites, deployments, data jobs, child agents) under Harness Reins (reins) so they outlive this run, and get the result steered back into this same Pi session when they finish. Use instead of sleeping, polling logs, or blocking a tool call whenever a command or a wait for time to pass may take about a minute or longer. For work of several steps (train then evaluate, a sweep of runs, build then test then publish) or work left running unattended, start a Reins goal before the first job; it reminds this session if everything goes quiet. Also covers handling an `[reins-status]` repair block and acknowledging `[reins]` results.
4
4
  ---
5
5
 
6
6
  # Harness Reins for Pi
File without changes
@@ -0,0 +1,56 @@
1
+ [
2
+ (string)
3
+ (raw_string)
4
+ (heredoc_body)
5
+ (heredoc_start)
6
+ ] @string
7
+
8
+ (command_name) @function
9
+
10
+ (variable_name) @property
11
+
12
+ [
13
+ "case"
14
+ "do"
15
+ "done"
16
+ "elif"
17
+ "else"
18
+ "esac"
19
+ "export"
20
+ "fi"
21
+ "for"
22
+ "function"
23
+ "if"
24
+ "in"
25
+ "select"
26
+ "then"
27
+ "unset"
28
+ "until"
29
+ "while"
30
+ ] @keyword
31
+
32
+ (comment) @comment
33
+
34
+ (function_definition name: (word) @function)
35
+
36
+ (file_descriptor) @number
37
+
38
+ [
39
+ (command_substitution)
40
+ (process_substitution)
41
+ (expansion)
42
+ ]@embedded
43
+
44
+ [
45
+ "$"
46
+ "&&"
47
+ ">"
48
+ ">>"
49
+ "<"
50
+ "|"
51
+ ] @operator
52
+
53
+ (
54
+ (command (_) @constant)
55
+ (#match? @constant "^-")
56
+ )
@@ -0,0 +1,91 @@
1
+ [
2
+ "@media"
3
+ "@charset"
4
+ "@namespace"
5
+ "@supports"
6
+ "@keyframes"
7
+ (at_keyword)
8
+ (to)
9
+ (from)
10
+ ] @keyword
11
+
12
+ "@import" @include
13
+
14
+ (comment) @comment @spell
15
+
16
+ [
17
+ (tag_name)
18
+ (nesting_selector)
19
+ (universal_selector)
20
+ ] @type
21
+
22
+ (function_name) @function
23
+
24
+ [
25
+ "~"
26
+ ">"
27
+ "+"
28
+ "-"
29
+ "*"
30
+ "/"
31
+ "="
32
+ "^="
33
+ "|="
34
+ "~="
35
+ "$="
36
+ "*="
37
+ "and"
38
+ "or"
39
+ "not"
40
+ "only"
41
+ ] @operator
42
+
43
+ (important) @type.qualifier
44
+
45
+ (attribute_selector (plain_value) @string)
46
+ (pseudo_element_selector "::" (tag_name) @property)
47
+ (pseudo_class_selector (class_name) @property)
48
+
49
+ [
50
+ (class_name)
51
+ (id_name)
52
+ (property_name)
53
+ (feature_name)
54
+ (attribute_name)
55
+ ] @css.property
56
+
57
+ (namespace_name) @namespace
58
+
59
+ ((property_name) @type.definition
60
+ (#match? @type.definition "^[-][-]"))
61
+ ((plain_value) @type
62
+ (#match? @type "^[-][-]"))
63
+
64
+ [
65
+ (string_value)
66
+ (color_value)
67
+ (unit)
68
+ ] @string
69
+
70
+ [
71
+ (integer_value)
72
+ (float_value)
73
+ ] @number
74
+
75
+ [
76
+ "#"
77
+ ","
78
+ "."
79
+ ":"
80
+ "::"
81
+ ";"
82
+ ] @punctuation.delimiter
83
+
84
+ [
85
+ "{"
86
+ ")"
87
+ "("
88
+ "}"
89
+ ] @punctuation.bracket
90
+
91
+ (ERROR) @error
@@ -0,0 +1,123 @@
1
+ ; Function calls
2
+
3
+ (call_expression
4
+ function: (identifier) @function.builtin
5
+ (.match? @function.builtin "^(append|cap|close|complex|copy|delete|imag|len|make|new|panic|print|println|real|recover)$"))
6
+
7
+ (call_expression
8
+ function: (identifier) @function)
9
+
10
+ (call_expression
11
+ function: (selector_expression
12
+ field: (field_identifier) @function.method))
13
+
14
+ ; Function definitions
15
+
16
+ (function_declaration
17
+ name: (identifier) @function)
18
+
19
+ (method_declaration
20
+ name: (field_identifier) @function.method)
21
+
22
+ ; Identifiers
23
+
24
+ (type_identifier) @type
25
+ (field_identifier) @property
26
+ (identifier) @variable
27
+
28
+ ; Operators
29
+
30
+ [
31
+ "--"
32
+ "-"
33
+ "-="
34
+ ":="
35
+ "!"
36
+ "!="
37
+ "..."
38
+ "*"
39
+ "*"
40
+ "*="
41
+ "/"
42
+ "/="
43
+ "&"
44
+ "&&"
45
+ "&="
46
+ "%"
47
+ "%="
48
+ "^"
49
+ "^="
50
+ "+"
51
+ "++"
52
+ "+="
53
+ "<-"
54
+ "<"
55
+ "<<"
56
+ "<<="
57
+ "<="
58
+ "="
59
+ "=="
60
+ ">"
61
+ ">="
62
+ ">>"
63
+ ">>="
64
+ "|"
65
+ "|="
66
+ "||"
67
+ "~"
68
+ ] @operator
69
+
70
+ ; Keywords
71
+
72
+ [
73
+ "break"
74
+ "case"
75
+ "chan"
76
+ "const"
77
+ "continue"
78
+ "default"
79
+ "defer"
80
+ "else"
81
+ "fallthrough"
82
+ "for"
83
+ "func"
84
+ "go"
85
+ "goto"
86
+ "if"
87
+ "import"
88
+ "interface"
89
+ "map"
90
+ "package"
91
+ "range"
92
+ "return"
93
+ "select"
94
+ "struct"
95
+ "switch"
96
+ "type"
97
+ "var"
98
+ ] @keyword
99
+
100
+ ; Literals
101
+
102
+ [
103
+ (interpreted_string_literal)
104
+ (raw_string_literal)
105
+ (rune_literal)
106
+ ] @string
107
+
108
+ (escape_sequence) @escape
109
+
110
+ [
111
+ (int_literal)
112
+ (float_literal)
113
+ (imaginary_literal)
114
+ ] @number
115
+
116
+ [
117
+ (true)
118
+ (false)
119
+ (nil)
120
+ (iota)
121
+ ] @constant.builtin
122
+
123
+ (comment) @comment
@@ -0,0 +1,25 @@
1
+ (tag_name) @tag
2
+ (erroneous_end_tag_name) @html.end_tag_error
3
+ (comment) @comment
4
+ (attribute_name) @tag.attribute
5
+ (attribute
6
+ (quoted_attribute_value) @string)
7
+ (text) @text @spell
8
+
9
+ ((attribute
10
+ (attribute_name) @_attr
11
+ (quoted_attribute_value (attribute_value) @text.uri))
12
+ (#any-of? @_attr "href" "src"))
13
+
14
+ [
15
+ "<"
16
+ ">"
17
+ "</"
18
+ "/>"
19
+ ] @tag.delimiter
20
+
21
+ "=" @operator
22
+
23
+ (doctype) @constant
24
+
25
+ "<!" @tag.delimiter
@@ -0,0 +1,142 @@
1
+ ; Methods
2
+
3
+ (method_declaration
4
+ name: (identifier) @function.method)
5
+ (method_invocation
6
+ name: (identifier) @function.method)
7
+ (super) @function.builtin
8
+
9
+ ; Annotations
10
+
11
+ (annotation
12
+ name: (identifier) @attribute)
13
+ (marker_annotation
14
+ name: (identifier) @attribute)
15
+
16
+ "@" @operator
17
+
18
+ ; Types
19
+
20
+ (type_identifier) @type
21
+
22
+ (interface_declaration
23
+ name: (identifier) @type)
24
+ (class_declaration
25
+ name: (identifier) @type)
26
+ (enum_declaration
27
+ name: (identifier) @type)
28
+
29
+ ((field_access
30
+ object: (identifier) @type)
31
+ (#match? @type "^[A-Z]"))
32
+ ((scoped_identifier
33
+ scope: (identifier) @type)
34
+ (#match? @type "^[A-Z]"))
35
+ ((method_invocation
36
+ object: (identifier) @type)
37
+ (#match? @type "^[A-Z]"))
38
+ ((method_reference
39
+ . (identifier) @type)
40
+ (#match? @type "^[A-Z]"))
41
+
42
+ (constructor_declaration
43
+ name: (identifier) @type)
44
+
45
+ [
46
+ (boolean_type)
47
+ (integral_type)
48
+ (floating_point_type)
49
+ (floating_point_type)
50
+ (void_type)
51
+ ] @type.builtin
52
+
53
+ ; Variables
54
+
55
+ ((identifier) @constant
56
+ (#match? @constant "^_*[A-Z][A-Z\\d_]+$"))
57
+
58
+ (identifier) @variable
59
+
60
+ (this) @variable.builtin
61
+
62
+ ; Literals
63
+
64
+ [
65
+ (hex_integer_literal)
66
+ (decimal_integer_literal)
67
+ (octal_integer_literal)
68
+ (decimal_floating_point_literal)
69
+ (hex_floating_point_literal)
70
+ ] @number
71
+
72
+ [
73
+ (character_literal)
74
+ (string_literal)
75
+ ] @string
76
+ (escape_sequence) @string.escape
77
+
78
+ [
79
+ (true)
80
+ (false)
81
+ (null_literal)
82
+ ] @constant.builtin
83
+
84
+ [
85
+ (line_comment)
86
+ (block_comment)
87
+ ] @comment
88
+
89
+ ; Keywords
90
+
91
+ [
92
+ "abstract"
93
+ "assert"
94
+ "break"
95
+ "case"
96
+ "catch"
97
+ "class"
98
+ "continue"
99
+ "default"
100
+ "do"
101
+ "else"
102
+ "enum"
103
+ "exports"
104
+ "extends"
105
+ "final"
106
+ "finally"
107
+ "for"
108
+ "if"
109
+ "implements"
110
+ "import"
111
+ "instanceof"
112
+ "interface"
113
+ "module"
114
+ "native"
115
+ "new"
116
+ "non-sealed"
117
+ "open"
118
+ "opens"
119
+ "package"
120
+ "private"
121
+ "protected"
122
+ "provides"
123
+ "public"
124
+ "requires"
125
+ "record"
126
+ "return"
127
+ "sealed"
128
+ "static"
129
+ "strictfp"
130
+ "switch"
131
+ "synchronized"
132
+ "throw"
133
+ "throws"
134
+ "to"
135
+ "transient"
136
+ "transitive"
137
+ "try"
138
+ "uses"
139
+ "volatile"
140
+ "while"
141
+ "with"
142
+ ] @keyword