inferoa 0.1.0
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.
- package/LICENSE +176 -0
- package/README.md +154 -0
- package/dist/src/app.d.ts +16 -0
- package/dist/src/app.js +17 -0
- package/dist/src/app.js.map +1 -0
- package/dist/src/autoresearch/state.d.ts +106 -0
- package/dist/src/autoresearch/state.js +469 -0
- package/dist/src/autoresearch/state.js.map +1 -0
- package/dist/src/cli.d.ts +2 -0
- package/dist/src/cli.js +415 -0
- package/dist/src/cli.js.map +1 -0
- package/dist/src/code-intelligence/codegraph-engine.d.ts +55 -0
- package/dist/src/code-intelligence/codegraph-engine.js +593 -0
- package/dist/src/code-intelligence/codegraph-engine.js.map +1 -0
- package/dist/src/code-intelligence/hub.d.ts +37 -0
- package/dist/src/code-intelligence/hub.js +65 -0
- package/dist/src/code-intelligence/hub.js.map +1 -0
- package/dist/src/config/config.d.ts +12 -0
- package/dist/src/config/config.js +229 -0
- package/dist/src/config/config.js.map +1 -0
- package/dist/src/config/defaults.d.ts +2 -0
- package/dist/src/config/defaults.js +44 -0
- package/dist/src/config/defaults.js.map +1 -0
- package/dist/src/config/secret-vault.d.ts +3 -0
- package/dist/src/config/secret-vault.js +106 -0
- package/dist/src/config/secret-vault.js.map +1 -0
- package/dist/src/context/compressor.d.ts +33 -0
- package/dist/src/context/compressor.js +501 -0
- package/dist/src/context/compressor.js.map +1 -0
- package/dist/src/context/prompt.d.ts +26 -0
- package/dist/src/context/prompt.js +572 -0
- package/dist/src/context/prompt.js.map +1 -0
- package/dist/src/daemon/serve.d.ts +2 -0
- package/dist/src/daemon/serve.js +11 -0
- package/dist/src/daemon/serve.js.map +1 -0
- package/dist/src/daemon/supervisor.d.ts +33 -0
- package/dist/src/daemon/supervisor.js +252 -0
- package/dist/src/daemon/supervisor.js.map +1 -0
- package/dist/src/goals/state.d.ts +105 -0
- package/dist/src/goals/state.js +736 -0
- package/dist/src/goals/state.js.map +1 -0
- package/dist/src/model/endpoint-signals.d.ts +15 -0
- package/dist/src/model/endpoint-signals.js +186 -0
- package/dist/src/model/endpoint-signals.js.map +1 -0
- package/dist/src/model/gateway.d.ts +11 -0
- package/dist/src/model/gateway.js +455 -0
- package/dist/src/model/gateway.js.map +1 -0
- package/dist/src/plans/state.d.ts +28 -0
- package/dist/src/plans/state.js +123 -0
- package/dist/src/plans/state.js.map +1 -0
- package/dist/src/runtime.d.ts +92 -0
- package/dist/src/runtime.js +757 -0
- package/dist/src/runtime.js.map +1 -0
- package/dist/src/session/store.d.ts +84 -0
- package/dist/src/session/store.js +593 -0
- package/dist/src/session/store.js.map +1 -0
- package/dist/src/session/workspace.d.ts +2 -0
- package/dist/src/session/workspace.js +14 -0
- package/dist/src/session/workspace.js.map +1 -0
- package/dist/src/skills/registry.d.ts +24 -0
- package/dist/src/skills/registry.js +203 -0
- package/dist/src/skills/registry.js.map +1 -0
- package/dist/src/tools/autoresearch-tools.d.ts +6 -0
- package/dist/src/tools/autoresearch-tools.js +412 -0
- package/dist/src/tools/autoresearch-tools.js.map +1 -0
- package/dist/src/tools/clarify-tool.d.ts +3 -0
- package/dist/src/tools/clarify-tool.js +107 -0
- package/dist/src/tools/clarify-tool.js.map +1 -0
- package/dist/src/tools/code-intelligence.d.ts +15 -0
- package/dist/src/tools/code-intelligence.js +391 -0
- package/dist/src/tools/code-intelligence.js.map +1 -0
- package/dist/src/tools/context.d.ts +11 -0
- package/dist/src/tools/context.js +2 -0
- package/dist/src/tools/context.js.map +1 -0
- package/dist/src/tools/goal-tools.d.ts +3 -0
- package/dist/src/tools/goal-tools.js +279 -0
- package/dist/src/tools/goal-tools.js.map +1 -0
- package/dist/src/tools/omni-tools.d.ts +8 -0
- package/dist/src/tools/omni-tools.js +349 -0
- package/dist/src/tools/omni-tools.js.map +1 -0
- package/dist/src/tools/permissions.d.ts +11 -0
- package/dist/src/tools/permissions.js +74 -0
- package/dist/src/tools/permissions.js.map +1 -0
- package/dist/src/tools/plan-tools.d.ts +3 -0
- package/dist/src/tools/plan-tools.js +314 -0
- package/dist/src/tools/plan-tools.js.map +1 -0
- package/dist/src/tools/process-tools.d.ts +6 -0
- package/dist/src/tools/process-tools.js +199 -0
- package/dist/src/tools/process-tools.js.map +1 -0
- package/dist/src/tools/registry.d.ts +20 -0
- package/dist/src/tools/registry.js +187 -0
- package/dist/src/tools/registry.js.map +1 -0
- package/dist/src/tools/schemas.d.ts +3 -0
- package/dist/src/tools/schemas.js +500 -0
- package/dist/src/tools/schemas.js.map +1 -0
- package/dist/src/tools/skill-tools.d.ts +6 -0
- package/dist/src/tools/skill-tools.js +124 -0
- package/dist/src/tools/skill-tools.js.map +1 -0
- package/dist/src/tools/text-args.d.ts +5 -0
- package/dist/src/tools/text-args.js +22 -0
- package/dist/src/tools/text-args.js.map +1 -0
- package/dist/src/tools/web-search.d.ts +5 -0
- package/dist/src/tools/web-search.js +602 -0
- package/dist/src/tools/web-search.js.map +1 -0
- package/dist/src/tools/workspace-tools.d.ts +17 -0
- package/dist/src/tools/workspace-tools.js +561 -0
- package/dist/src/tools/workspace-tools.js.map +1 -0
- package/dist/src/tui/activity.d.ts +11 -0
- package/dist/src/tui/activity.js +75 -0
- package/dist/src/tui/activity.js.map +1 -0
- package/dist/src/tui/ansi.d.ts +24 -0
- package/dist/src/tui/ansi.js +131 -0
- package/dist/src/tui/ansi.js.map +1 -0
- package/dist/src/tui/app.d.ts +163 -0
- package/dist/src/tui/app.js +4204 -0
- package/dist/src/tui/app.js.map +1 -0
- package/dist/src/tui/cache-footer.d.ts +21 -0
- package/dist/src/tui/cache-footer.js +75 -0
- package/dist/src/tui/cache-footer.js.map +1 -0
- package/dist/src/tui/clarify.d.ts +14 -0
- package/dist/src/tui/clarify.js +187 -0
- package/dist/src/tui/clarify.js.map +1 -0
- package/dist/src/tui/composer.d.ts +79 -0
- package/dist/src/tui/composer.js +592 -0
- package/dist/src/tui/composer.js.map +1 -0
- package/dist/src/tui/event-view.d.ts +5 -0
- package/dist/src/tui/event-view.js +392 -0
- package/dist/src/tui/event-view.js.map +1 -0
- package/dist/src/tui/home.d.ts +7 -0
- package/dist/src/tui/home.js +92 -0
- package/dist/src/tui/home.js.map +1 -0
- package/dist/src/tui/markdown.d.ts +18 -0
- package/dist/src/tui/markdown.js +271 -0
- package/dist/src/tui/markdown.js.map +1 -0
- package/dist/src/tui/mode-footer.d.ts +9 -0
- package/dist/src/tui/mode-footer.js +62 -0
- package/dist/src/tui/mode-footer.js.map +1 -0
- package/dist/src/tui/plan-view.d.ts +8 -0
- package/dist/src/tui/plan-view.js +45 -0
- package/dist/src/tui/plan-view.js.map +1 -0
- package/dist/src/tui/prompt-queue.d.ts +18 -0
- package/dist/src/tui/prompt-queue.js +27 -0
- package/dist/src/tui/prompt-queue.js.map +1 -0
- package/dist/src/tui/resize.d.ts +7 -0
- package/dist/src/tui/resize.js +15 -0
- package/dist/src/tui/resize.js.map +1 -0
- package/dist/src/tui/session-picker.d.ts +10 -0
- package/dist/src/tui/session-picker.js +17 -0
- package/dist/src/tui/session-picker.js.map +1 -0
- package/dist/src/tui/session-transcript.d.ts +2 -0
- package/dist/src/tui/session-transcript.js +44 -0
- package/dist/src/tui/session-transcript.js.map +1 -0
- package/dist/src/tui/slash-notice.d.ts +2 -0
- package/dist/src/tui/slash-notice.js +9 -0
- package/dist/src/tui/slash-notice.js.map +1 -0
- package/dist/src/tui/slash.d.ts +21 -0
- package/dist/src/tui/slash.js +103 -0
- package/dist/src/tui/slash.js.map +1 -0
- package/dist/src/tui/splash.d.ts +4 -0
- package/dist/src/tui/splash.js +64 -0
- package/dist/src/tui/splash.js.map +1 -0
- package/dist/src/tui/tool-renderer.d.ts +6 -0
- package/dist/src/tui/tool-renderer.js +1024 -0
- package/dist/src/tui/tool-renderer.js.map +1 -0
- package/dist/src/tui/transcript-spacing.d.ts +1 -0
- package/dist/src/tui/transcript-spacing.js +4 -0
- package/dist/src/tui/transcript-spacing.js.map +1 -0
- package/dist/src/types.d.ts +220 -0
- package/dist/src/types.js +2 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/util/abort.d.ts +3 -0
- package/dist/src/util/abort.js +19 -0
- package/dist/src/util/abort.js.map +1 -0
- package/dist/src/util/clock.d.ts +2 -0
- package/dist/src/util/clock.js +7 -0
- package/dist/src/util/clock.js.map +1 -0
- package/dist/src/util/fs.d.ts +13 -0
- package/dist/src/util/fs.js +75 -0
- package/dist/src/util/fs.js.map +1 -0
- package/dist/src/util/hash.d.ts +6 -0
- package/dist/src/util/hash.js +50 -0
- package/dist/src/util/hash.js.map +1 -0
- package/dist/src/util/limit.d.ts +11 -0
- package/dist/src/util/limit.js +29 -0
- package/dist/src/util/limit.js.map +1 -0
- package/dist/src/util/types.d.ts +22 -0
- package/dist/src/util/types.js +33 -0
- package/dist/src/util/types.js.map +1 -0
- package/dist/src/validation/acceptance.d.ts +12 -0
- package/dist/src/validation/acceptance.js +251 -0
- package/dist/src/validation/acceptance.js.map +1 -0
- package/dist/src/validation/milestone.d.ts +2 -0
- package/dist/src/validation/milestone.js +141 -0
- package/dist/src/validation/milestone.js.map +1 -0
- package/docs/final-acceptance-task.md +193 -0
- package/docs/public-source-hygiene.md +21 -0
- package/docs/roadmap.md +265 -0
- package/docs/tui-product-design.md +270 -0
- package/package.json +67 -0
- package/skills/coding-workflow/SKILL.md +16 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
package/README.md
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="assets/inferoa-logo.svg" alt="Inferoa" width="420" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<strong>The Inference Optimized Agent Harness</strong>
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="https://github.com/agentic-in/inferoa">GitHub</a>
|
|
11
|
+
·
|
|
12
|
+
<a href="https://inferoa.agentic-in.ai/docs/intro">Docs</a>
|
|
13
|
+
·
|
|
14
|
+
<a href="website/blog/2026-06-08-announcing-inferoa.md">Blog</a>
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
Most agents call models as if inference were a **black box**. The agent loop,
|
|
18
|
+
router, serving engine, context system, and multimodal path are usually split
|
|
19
|
+
apart, so the agent does not follow the optimization rules that modern
|
|
20
|
+
inference systems make possible.
|
|
21
|
+
|
|
22
|
+
> Prefix cache stability is ignored. Routing is
|
|
23
|
+
bolted on later. Context is pasted until it fits. Users pay for that gap.
|
|
24
|
+
|
|
25
|
+
Inferoa is an **Inference Optimized Agent Harness** for long-horizon tasks. It
|
|
26
|
+
starts from the inference stack and designs the agent loop around it: goals,
|
|
27
|
+
plans, autoresearch, context optimization, intelligent routing, serving
|
|
28
|
+
signals, prefix-cache protection, multimodal capability, and verification all
|
|
29
|
+
belong to the same durable session.
|
|
30
|
+
|
|
31
|
+
## TUI Preview
|
|
32
|
+
|
|
33
|
+
<div align="center">
|
|
34
|
+
<table>
|
|
35
|
+
<tr>
|
|
36
|
+
<th>Welcome</th>
|
|
37
|
+
<th>Goal Mode</th>
|
|
38
|
+
</tr>
|
|
39
|
+
<tr>
|
|
40
|
+
<td align="center"><img src="website/static/img/screenshots/inferoa-welcome.png" alt="Inferoa welcome screen" width="420" /></td>
|
|
41
|
+
<td align="center"><img src="website/static/img/screenshots/inferoa-goal.png" alt="Inferoa goal mode" width="420" /></td>
|
|
42
|
+
</tr>
|
|
43
|
+
<tr>
|
|
44
|
+
<th>Prefix Cache Status</th>
|
|
45
|
+
<th>Prefix Cache Report</th>
|
|
46
|
+
</tr>
|
|
47
|
+
<tr>
|
|
48
|
+
<td align="center"><img src="website/static/img/screenshots/inferoa-prefix-cache-status.png" alt="Inferoa prefix cache response status" width="420" /></td>
|
|
49
|
+
<td align="center"><img src="website/static/img/screenshots/inferoa-prefix-cache-report.png" alt="Inferoa prefix cache report" width="420" /></td>
|
|
50
|
+
</tr>
|
|
51
|
+
<tr>
|
|
52
|
+
<th>Plan Scope</th>
|
|
53
|
+
<th>Plan Approval</th>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<td align="center"><img src="website/static/img/screenshots/inferoa-plan-clarify.png" alt="Inferoa plan mode scope selection" width="420" /></td>
|
|
57
|
+
<td align="center"><img src="website/static/img/screenshots/inferoa-plan-ready.png" alt="Inferoa plan approval screen" width="420" /></td>
|
|
58
|
+
</tr>
|
|
59
|
+
<tr>
|
|
60
|
+
<th>Autoresearch Setup</th>
|
|
61
|
+
<th>Autoresearch Iteration</th>
|
|
62
|
+
</tr>
|
|
63
|
+
<tr>
|
|
64
|
+
<td align="center"><img src="website/static/img/screenshots/inferoa-autoresearch-start.png" alt="Inferoa autoresearch setup" width="420" /></td>
|
|
65
|
+
<td align="center"><img src="website/static/img/screenshots/inferoa-autoresearch-iteration.png" alt="Inferoa autoresearch iteration" width="420" /></td>
|
|
66
|
+
</tr>
|
|
67
|
+
</table>
|
|
68
|
+
</div>
|
|
69
|
+
|
|
70
|
+
## Why Inferoa
|
|
71
|
+
|
|
72
|
+
Long-horizon agents are not one prompt. They are many turns of planning,
|
|
73
|
+
editing, tool use, retries, compaction, cache warmup, route selection, and
|
|
74
|
+
verification. If the harness treats every turn as generic chat traffic, it
|
|
75
|
+
throws away the optimization surface underneath it.
|
|
76
|
+
|
|
77
|
+
Inferoa makes those surfaces first-class:
|
|
78
|
+
|
|
79
|
+
- **Prefix cache is protected**, not merely reported after the turn.
|
|
80
|
+
- **Goals, plans, and autoresearch** are native long-horizon modes.
|
|
81
|
+
- **Context is optimized** through [CodeGraph](https://www.npmjs.com/package/@colbymchenry/codegraph),
|
|
82
|
+
[RTK](https://github.com/rtk-ai/rtk), and built-in harnesses that reduce token
|
|
83
|
+
waste while improving task accuracy.
|
|
84
|
+
- **Routing is part of the agent design**, so not every turn has to use the
|
|
85
|
+
same frontier model path.
|
|
86
|
+
- **Serving and endpoint signals** feed back into the loop instead of living in
|
|
87
|
+
logs.
|
|
88
|
+
- **Multimodal work** stays inside the same session contract instead of
|
|
89
|
+
becoming disconnected side calls.
|
|
90
|
+
|
|
91
|
+
## Optimized with Inference Stack
|
|
92
|
+
|
|
93
|
+
Inferoa is built on top of the vLLM Ecosystem and extends across the inference
|
|
94
|
+
stack:
|
|
95
|
+
|
|
96
|
+
| Layer | Substrate | Inferoa role | Optimization target |
|
|
97
|
+
| --- | --- | --- | --- |
|
|
98
|
+
| Agent Harness | [Inferoa](https://github.com/agentic-in/inferoa) | Goals, plans, autoresearch, sessions, tools, recovery, verification | Keep long-horizon work coherent and resumable |
|
|
99
|
+
| Context Optimization | [CodeGraph](https://www.npmjs.com/package/@colbymchenry/codegraph), [RTK](https://github.com/rtk-ai/rtk)... | Select repo evidence, symbols, summaries, resources, and tool results | Spend fewer tokens and improve coding accuracy |
|
|
100
|
+
| Intelligent Routing | [vLLM Semantic Router](https://github.com/vllm-project/semantic-router) | Choose model paths by cost, safety, privacy, capability, and session pressure | Avoid using one expensive path for every turn |
|
|
101
|
+
| Serving | [vLLM Engine](https://github.com/vllm-project/vllm) | Use high-performance OpenAI-compatible inference and endpoint signals | Protect prefix cache stability across the session |
|
|
102
|
+
| Multimodal | [vLLM Omni](https://github.com/vllm-project/vllm-omni) | Bring image, video, and audio understanding/generation into the same loop | Keep multimodal tasks durable and inspectable |
|
|
103
|
+
|
|
104
|
+
The product shape is:
|
|
105
|
+
|
|
106
|
+
```text
|
|
107
|
+
Agent Harness -> Context Optimization -> Intelligent Routing -> Serving -> Multimodal
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
The day-0 strategy is concrete: co-design with vLLM Engine, vLLM Semantic
|
|
111
|
+
Router, and vLLM Omni while keeping the product centered on the inference
|
|
112
|
+
optimized agent harness.
|
|
113
|
+
|
|
114
|
+
## Core Design
|
|
115
|
+
|
|
116
|
+
- **Long-horizon modes**: goal, plan, and autoresearch are native workflows,
|
|
117
|
+
not prompt templates.
|
|
118
|
+
- **Prefix-cache discipline**: stable prompt epochs, deterministic tool schemas,
|
|
119
|
+
bounded context sections, and cache reports protect reusable prefixes.
|
|
120
|
+
- **Context optimization**: [CodeGraph](https://www.npmjs.com/package/@colbymchenry/codegraph),
|
|
121
|
+
[RTK](https://github.com/rtk-ai/rtk), and built-in coding harnesses reduce
|
|
122
|
+
token consumption while preserving the evidence the model needs.
|
|
123
|
+
- **Intelligent routing**: model paths can respond to cost, safety, privacy,
|
|
124
|
+
capability, and session pressure.
|
|
125
|
+
- **Serving feedback**: usage, cache, model, endpoint, and request signals are
|
|
126
|
+
visible enough to influence the next agent action.
|
|
127
|
+
- **Durable multimodal loop**: image, video, and audio generation or
|
|
128
|
+
understanding are part of the same session history and artifact model.
|
|
129
|
+
|
|
130
|
+
## Installation
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
npm install -g inferoa
|
|
134
|
+
inferoa setup
|
|
135
|
+
inferoa
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
For one-shot print mode:
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
inferoa --print "Inspect this repository and summarize the test entrypoints."
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Inferoa stores local state under `~/.inferoa/`. Model endpoint credentials are
|
|
145
|
+
stored through the local vault; config files keep references rather than raw
|
|
146
|
+
secrets.
|
|
147
|
+
|
|
148
|
+
## Acknowledgements
|
|
149
|
+
|
|
150
|
+
Inferoa is built for and with the vLLM ecosystem:
|
|
151
|
+
|
|
152
|
+
- [vLLM Engine](https://github.com/vllm-project/vllm)
|
|
153
|
+
- [vLLM Semantic Router](https://github.com/vllm-project/semantic-router)
|
|
154
|
+
- [vLLM Omni](https://github.com/vllm-project/vllm-omni)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { loadConfig } from "./config/config.js";
|
|
2
|
+
import { resolveWorkspace } from "./session/workspace.js";
|
|
3
|
+
import { SessionStore } from "./session/store.js";
|
|
4
|
+
import { Runtime } from "./runtime.js";
|
|
5
|
+
export interface AppOptions {
|
|
6
|
+
config?: string;
|
|
7
|
+
workspace?: string;
|
|
8
|
+
stateDir?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function loadApp(options?: AppOptions): Promise<{
|
|
11
|
+
config: Awaited<ReturnType<typeof loadConfig>>["config"];
|
|
12
|
+
configFiles: string[];
|
|
13
|
+
workspace: Awaited<ReturnType<typeof resolveWorkspace>>;
|
|
14
|
+
store: SessionStore;
|
|
15
|
+
runtime: Runtime;
|
|
16
|
+
}>;
|
package/dist/src/app.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { loadConfig } from "./config/config.js";
|
|
2
|
+
import { resolveWorkspace } from "./session/workspace.js";
|
|
3
|
+
import { SessionStore } from "./session/store.js";
|
|
4
|
+
import { Runtime } from "./runtime.js";
|
|
5
|
+
export async function loadApp(options = {}) {
|
|
6
|
+
if (options.stateDir) {
|
|
7
|
+
process.env.INFEROA_STATE_DIR = options.stateDir;
|
|
8
|
+
}
|
|
9
|
+
const { config, files } = await loadConfig(process.cwd(), options.config);
|
|
10
|
+
const workspace = await resolveWorkspace(process.cwd(), config, options.workspace);
|
|
11
|
+
const store = await SessionStore.open(options.stateDir);
|
|
12
|
+
store.clearStaleLocks();
|
|
13
|
+
store.upsertWorkspace(workspace);
|
|
14
|
+
const runtime = new Runtime(config, workspace, store);
|
|
15
|
+
return { config, configFiles: files, workspace, store, runtime };
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=app.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAQvC,MAAM,CAAC,KAAK,UAAU,OAAO,CAAC,UAAsB,EAAE;IAOpD,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;QACrB,OAAO,CAAC,GAAG,CAAC,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC;IACnD,CAAC;IACD,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAC1E,MAAM,SAAS,GAAG,MAAM,gBAAgB,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACnF,MAAM,KAAK,GAAG,MAAM,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACxD,KAAK,CAAC,eAAe,EAAE,CAAC;IACxB,KAAK,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;IACjC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACtD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AACnE,CAAC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { JsonObject } from "../types.js";
|
|
2
|
+
import { SessionStore } from "../session/store.js";
|
|
3
|
+
export type AutoresearchMode = "on" | "off" | "clear";
|
|
4
|
+
export type MetricDirection = "lower" | "higher";
|
|
5
|
+
export type ExperimentStatus = "keep" | "discard" | "crash" | "checks_failed";
|
|
6
|
+
export interface AutoresearchRun {
|
|
7
|
+
id: number;
|
|
8
|
+
command: string;
|
|
9
|
+
exit_code: number | null;
|
|
10
|
+
duration_ms: number;
|
|
11
|
+
output_resource_uri?: string;
|
|
12
|
+
timed_out?: boolean;
|
|
13
|
+
output_truncated?: boolean;
|
|
14
|
+
parsed_metrics: Record<string, number>;
|
|
15
|
+
parsed_primary: number | null;
|
|
16
|
+
asi: JsonObject;
|
|
17
|
+
completed_at: string;
|
|
18
|
+
}
|
|
19
|
+
export interface HarnessValidation {
|
|
20
|
+
ok: boolean;
|
|
21
|
+
command: string;
|
|
22
|
+
exit_code: number | null;
|
|
23
|
+
duration_ms: number;
|
|
24
|
+
parsed_metrics: Record<string, number>;
|
|
25
|
+
parsed_primary: number | null;
|
|
26
|
+
output_resource_uri?: string;
|
|
27
|
+
timed_out?: boolean;
|
|
28
|
+
output_truncated?: boolean;
|
|
29
|
+
message: string;
|
|
30
|
+
validated_at: string;
|
|
31
|
+
}
|
|
32
|
+
export interface AutoresearchResult {
|
|
33
|
+
run_id: number;
|
|
34
|
+
status: ExperimentStatus;
|
|
35
|
+
metric: number | null;
|
|
36
|
+
metrics: Record<string, number>;
|
|
37
|
+
description: string;
|
|
38
|
+
asi: JsonObject;
|
|
39
|
+
logged_at: string;
|
|
40
|
+
}
|
|
41
|
+
export interface AutoresearchExperiment {
|
|
42
|
+
name: string;
|
|
43
|
+
goal?: string;
|
|
44
|
+
primary_metric: string;
|
|
45
|
+
metric_unit: string;
|
|
46
|
+
direction: MetricDirection;
|
|
47
|
+
scope_paths: string[];
|
|
48
|
+
off_limits: string[];
|
|
49
|
+
constraints: string[];
|
|
50
|
+
max_iterations?: number;
|
|
51
|
+
current_segment: number;
|
|
52
|
+
notes: string;
|
|
53
|
+
harness_status?: HarnessValidation;
|
|
54
|
+
next_run_id: number;
|
|
55
|
+
best_metric: number | null;
|
|
56
|
+
pending_run?: AutoresearchRun;
|
|
57
|
+
results: AutoresearchResult[];
|
|
58
|
+
}
|
|
59
|
+
export interface AutoresearchState {
|
|
60
|
+
enabled: boolean;
|
|
61
|
+
goal?: string;
|
|
62
|
+
experiment?: AutoresearchExperiment;
|
|
63
|
+
}
|
|
64
|
+
export interface AutoresearchProgress {
|
|
65
|
+
logged_runs: number;
|
|
66
|
+
total_runs: number;
|
|
67
|
+
pending_runs: number;
|
|
68
|
+
kept_runs: number;
|
|
69
|
+
discarded_runs: number;
|
|
70
|
+
crashed_runs: number;
|
|
71
|
+
checks_failed_runs: number;
|
|
72
|
+
keep_cap?: number;
|
|
73
|
+
keep_remaining?: number;
|
|
74
|
+
}
|
|
75
|
+
export interface SetAutoresearchModeInput {
|
|
76
|
+
mode: AutoresearchMode;
|
|
77
|
+
goal?: string | null;
|
|
78
|
+
}
|
|
79
|
+
export declare function readAutoresearchState(store: SessionStore, sessionId: string): AutoresearchState;
|
|
80
|
+
export declare function setAutoresearchMode(store: SessionStore, sessionId: string, input: SetAutoresearchModeInput, runId?: string): AutoresearchState;
|
|
81
|
+
export declare function writeAutoresearchState(store: SessionStore, sessionId: string, state: AutoresearchState, runId?: string): AutoresearchState;
|
|
82
|
+
export declare function createExperiment(input: {
|
|
83
|
+
name: string;
|
|
84
|
+
goal?: string;
|
|
85
|
+
primary_metric: string;
|
|
86
|
+
metric_unit?: string;
|
|
87
|
+
direction?: MetricDirection;
|
|
88
|
+
scope_paths?: string[];
|
|
89
|
+
off_limits?: string[];
|
|
90
|
+
constraints?: string[];
|
|
91
|
+
max_iterations?: number;
|
|
92
|
+
harness_status?: HarnessValidation;
|
|
93
|
+
}): AutoresearchExperiment;
|
|
94
|
+
export declare function recordRun(experiment: AutoresearchExperiment, run: Omit<AutoresearchRun, "id">): AutoresearchExperiment;
|
|
95
|
+
export declare function logPendingRun(experiment: AutoresearchExperiment, input: {
|
|
96
|
+
status: ExperimentStatus;
|
|
97
|
+
metric: number | null;
|
|
98
|
+
description: string;
|
|
99
|
+
metrics?: Record<string, number>;
|
|
100
|
+
asi?: JsonObject;
|
|
101
|
+
}): AutoresearchExperiment;
|
|
102
|
+
export declare function renderAutoresearchModeSection(state: AutoresearchState): string | undefined;
|
|
103
|
+
export declare function summarizeAutoresearchProgress(experiment: AutoresearchExperiment): AutoresearchProgress;
|
|
104
|
+
export declare function parseMetricLines(output: string): Record<string, number>;
|
|
105
|
+
export declare function parseAsiLines(output: string): JsonObject;
|
|
106
|
+
export declare function cloneAutoresearchState(state: AutoresearchState): AutoresearchState;
|