@atrib/annotate 0.2.1 → 0.2.3

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 (3) hide show
  1. package/LICENSE +63 -37
  2. package/dist/index.js +1 -1
  3. package/package.json +12 -7
package/LICENSE CHANGED
@@ -1,3 +1,4 @@
1
+
1
2
  Apache License
2
3
  Version 2.0, January 2004
3
4
  http://www.apache.org/licenses/
@@ -32,9 +33,10 @@
32
33
  not limited to compiled object code, generated documentation,
33
34
  and conversions to other media types.
34
35
 
35
- "Work" shall mean the work of authorship made available under
36
- the License, as indicated by a copyright notice that is included in
37
- or attached to the work (an example is provided in the Appendix below).
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
38
40
 
39
41
  "Derivative Works" shall mean any work, whether in Source or Object
40
42
  form, that is based on (or derived from) the Work and for which the
@@ -44,21 +46,23 @@
44
46
  separable from, or merely link (or bind by name) to the interfaces of,
45
47
  the Work and Derivative Works thereof.
46
48
 
47
- "Contribution" shall mean, as submitted to the Licensor for inclusion
48
- in the Work by the copyright owner or by an individual or Legal Entity
49
- authorized to submit on behalf of the copyright owner. For the purposes
50
- of this definition, "submitted" means any form of electronic, verbal,
51
- or written communication sent to the Licensor or its representatives,
52
- including but not limited to communication on electronic mailing lists,
53
- source code control systems, and issue tracking systems that are managed
54
- by, or on behalf of, the Licensor for the purpose of discussing and
55
- improving the Work, but excluding communication that is conspicuously
56
- marked or otherwise designated in writing by the copyright owner as
57
- "Not a Contribution."
58
-
59
- "Contributor" shall mean Licensor and any Legal Entity on behalf of
60
- whom a Contribution has been received by the Licensor and subsequently
61
- incorporated within the Work.
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
62
66
 
63
67
  2. Grant of Copyright License. Subject to the terms and conditions of
64
68
  this License, each Contributor hereby grants to You a perpetual,
@@ -76,19 +80,20 @@
76
80
  by such Contributor that are necessarily infringed by their
77
81
  Contribution(s) alone or by combination of their Contribution(s)
78
82
  with the Work to which such Contribution(s) was submitted. If You
79
- institute patent litigation against any entity (including a cross-claim
80
- or counterclaim in a lawsuit) alleging that the Work or a Contribution
81
- incorporated within the Work constitutes direct or contributory patent
82
- infringement, then any patent licenses granted to You under this License
83
- for that Work shall terminate as of the date such litigation is filed.
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
84
89
 
85
90
  4. Redistribution. You may reproduce and distribute copies of the
86
91
  Work or Derivative Works thereof in any medium, with or without
87
92
  modifications, and in Source or Object form, provided that You
88
93
  meet the following conditions:
89
94
 
90
- (a) You must give any other recipients of the Work or Derivative Works
91
- a copy of this License; and
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
92
97
 
93
98
  (b) You must cause any modified files to carry prominent notices
94
99
  stating that You changed the files; and
@@ -100,8 +105,10 @@
100
105
  the Derivative Works; and
101
106
 
102
107
  (d) If the Work includes a "NOTICE" text file as part of its
103
- distribution, You must include a readable copy of the attribution
104
- notices contained within such NOTICE file, in at least one
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
105
112
  of the following places: within a NOTICE text file distributed
106
113
  as part of the Derivative Works; within the Source form or
107
114
  documentation, if provided along with the Derivative Works; or,
@@ -114,9 +121,12 @@
114
121
  that such additional attribution notices cannot be construed
115
122
  as modifying the License.
116
123
 
117
- You may add Your own license statement for Your modifications and
118
- may provide additional grant of rights to use, modify, or distribute
119
- those modifications in accordance with this License.
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
120
130
 
121
131
  5. Submission of Contributions. Unless You explicitly state otherwise,
122
132
  any Contribution intentionally submitted for inclusion in the Work
@@ -138,7 +148,7 @@
138
148
  implied, including, without limitation, any warranties or conditions
139
149
  of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
140
150
  PARTICULAR PURPOSE. You are solely responsible for determining the
141
- appropriateness of using or reproducing the Work and assume any
151
+ appropriateness of using or redistributing the Work and assume any
142
152
  risks associated with Your exercise of permissions under this License.
143
153
 
144
154
  8. Limitation of Liability. In no event and under no legal theory,
@@ -146,12 +156,12 @@
146
156
  unless required by applicable law (such as deliberate and grossly
147
157
  negligent acts) or agreed to in writing, shall any Contributor be
148
158
  liable to You for damages, including any direct, indirect, special,
149
- incidental, or exemplary damages of any character arising as a
159
+ incidental, or consequential damages of any character arising as a
150
160
  result of this License or out of the use or inability to use the
151
161
  Work (including but not limited to damages for loss of goodwill,
152
- work stoppage, computer failure or malfunction, or all other
153
- commercial damages or losses), even if such Contributor has been
154
- advised of the possibility of such damages.
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
155
165
 
156
166
  9. Accepting Warranty or Additional Liability. While redistributing
157
167
  the Work or Derivative Works thereof, You may choose to offer,
@@ -172,8 +182,24 @@
172
182
  boilerplate notice, with the fields enclosed by brackets "[]"
173
183
  replaced with your own identifying information. (Don't include
174
184
  the brackets!) The text should be enclosed in the appropriate
175
- comment syntax for the file format in question. Also, an optional
176
- "Statement of Purpose" appears after the copyright notice.
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
177
203
 
178
204
  Copyright 2025-2026 Atrib contributors
179
205
 
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ export const AnnotateInput = z.object({
32
32
  "'noise' (deliberately deprioritized for recall)."),
33
33
  summary: z.string().min(1).max(2048).describe('One-line semantic gist of the annotation. The recall pipeline reads this verbatim ' +
34
34
  'for snippet display; keep it under ~120 chars when possible. ' +
35
- 'Distinct from the annotated record\'s own content this summary captures what ' +
35
+ 'Distinct from the annotated record\'s own content, this summary captures what ' +
36
36
  'future-you should know about why this record matters.'),
37
37
  topics: z.array(z.string().min(1).max(128)).max(16).optional().describe('Optional topic tags. Used by recall_my_attribution_history\'s topics filter. ' +
38
38
  'Lowercase-hyphenated convention (e.g. "bug-fix", "design-decision").'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atrib/annotate",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "MCP server for atrib. Lets agents mark a past record's importance and meaning. Adds an ANNOTATES graph edge so recall surfaces weighted annotations ahead of flat scans.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -11,14 +11,14 @@
11
11
  "dependencies": {
12
12
  "@modelcontextprotocol/sdk": "^1.29.0",
13
13
  "zod": "^3.25.76",
14
- "@atrib/emit": "0.9.0",
15
- "@atrib/mcp": "0.6.2"
14
+ "@atrib/emit": "0.11.0",
15
+ "@atrib/mcp": "0.7.0"
16
16
  },
17
17
  "devDependencies": {
18
- "@types/node": "^22.19.17",
19
- "tsx": "^4.21.0",
20
- "typescript": "^5.9.3",
21
- "vitest": "^3.2.4"
18
+ "@types/node": "^25.8.0",
19
+ "tsx": "^4.22.1",
20
+ "typescript": "^6.0.3",
21
+ "vitest": "^4.1.6"
22
22
  },
23
23
  "files": [
24
24
  "dist"
@@ -26,6 +26,11 @@
26
26
  "publishConfig": {
27
27
  "access": "public"
28
28
  },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/creatornader/atrib.git",
32
+ "directory": "services/atrib-annotate"
33
+ },
29
34
  "scripts": {
30
35
  "build": "rm -rf dist && tsc",
31
36
  "start": "node dist/main.js",