swarmauri_vectorstore_workspace 0.1.0__py3-none-any.whl
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.
- swarmauri_vectorstore_workspace/WorkspaceVectorStore.py +266 -0
- swarmauri_vectorstore_workspace/__init__.py +10 -0
- swarmauri_vectorstore_workspace-0.1.0.dist-info/METADATA +331 -0
- swarmauri_vectorstore_workspace-0.1.0.dist-info/RECORD +8 -0
- swarmauri_vectorstore_workspace-0.1.0.dist-info/WHEEL +4 -0
- swarmauri_vectorstore_workspace-0.1.0.dist-info/entry_points.txt +3 -0
- swarmauri_vectorstore_workspace-0.1.0.dist-info/licenses/LICENSE +201 -0
- swarmauri_vectorstore_workspace-0.1.0.dist-info/licenses/NOTICE +4 -0
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
from hashlib import sha256
|
|
2
|
+
import json
|
|
3
|
+
from threading import RLock
|
|
4
|
+
from typing import Literal, Sequence
|
|
5
|
+
|
|
6
|
+
from pydantic import ConfigDict, Field, PrivateAttr
|
|
7
|
+
from swarmauri_base.ComponentBase import ComponentBase
|
|
8
|
+
from swarmauri_base.documents.DocumentBase import DocumentBase
|
|
9
|
+
from swarmauri_base.vector_stores.VectorStoreBase import VectorStoreBase
|
|
10
|
+
from swarmauri_base.vectors.VectorBase import VectorBase
|
|
11
|
+
from swarmauri_core.documents.IDocument import IDocument
|
|
12
|
+
from swarmauri_core.vector_stores.IVectorStore import IVectorStore
|
|
13
|
+
from swarmauri_embedding_workspace.WorkspaceEmbedding import (
|
|
14
|
+
WorkspaceChunk,
|
|
15
|
+
WorkspaceEmbedding,
|
|
16
|
+
WorkspaceQuery,
|
|
17
|
+
workspace_path,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def _digest(value: str) -> str:
|
|
22
|
+
return sha256(value.encode()).hexdigest()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@ComponentBase.register_type(VectorStoreBase, "WorkspaceVectorStore")
|
|
26
|
+
class WorkspaceVectorStore(VectorStoreBase):
|
|
27
|
+
"""Index workspace chunks over a backend that accepts supplied vectors."""
|
|
28
|
+
|
|
29
|
+
model_config = ConfigDict(arbitrary_types_allowed=True)
|
|
30
|
+
type: Literal["WorkspaceVectorStore"] = "WorkspaceVectorStore"
|
|
31
|
+
backend: IVectorStore = Field(exclude=True, repr=False, frozen=True)
|
|
32
|
+
workspace: str = Field(min_length=1, frozen=True)
|
|
33
|
+
embedding: WorkspaceEmbedding = Field(
|
|
34
|
+
exclude=True, repr=False, frozen=True
|
|
35
|
+
)
|
|
36
|
+
_lock: RLock = PrivateAttr(default_factory=RLock)
|
|
37
|
+
|
|
38
|
+
@property
|
|
39
|
+
def _manifest_id(self) -> str:
|
|
40
|
+
return "workspace-" + _digest(self.workspace)
|
|
41
|
+
|
|
42
|
+
@property
|
|
43
|
+
def _schema(self) -> dict:
|
|
44
|
+
return self.embedding.model_dump(
|
|
45
|
+
include={
|
|
46
|
+
"encoder_revision",
|
|
47
|
+
"content_dimensions",
|
|
48
|
+
"path_dimensions",
|
|
49
|
+
"path_weight",
|
|
50
|
+
"ordinal_weight",
|
|
51
|
+
"content_weight",
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
def _manifest(self) -> tuple[IDocument | None, dict[str, list[str]]]:
|
|
56
|
+
document = self.backend.get_document(self._manifest_id)
|
|
57
|
+
if document is None:
|
|
58
|
+
return None, {}
|
|
59
|
+
if document.metadata["schema"] != self._schema:
|
|
60
|
+
raise ValueError(
|
|
61
|
+
"workspace embedding configuration changed; rebuild the index"
|
|
62
|
+
)
|
|
63
|
+
return document, dict(document.metadata["files"])
|
|
64
|
+
|
|
65
|
+
def _commit(
|
|
66
|
+
self, previous: IDocument | None, files: dict[str, list[str]]
|
|
67
|
+
) -> None:
|
|
68
|
+
marker = DocumentBase(
|
|
69
|
+
id=self._manifest_id,
|
|
70
|
+
content="Workspace index manifest",
|
|
71
|
+
metadata={"schema": self._schema, "files": files},
|
|
72
|
+
embedding=VectorBase(
|
|
73
|
+
value=[1.0] + [0.0] * (self.embedding.dimensions - 1)
|
|
74
|
+
),
|
|
75
|
+
)
|
|
76
|
+
if previous is None:
|
|
77
|
+
self.backend.add_document(marker)
|
|
78
|
+
else:
|
|
79
|
+
self.backend.update_document(marker.id, marker)
|
|
80
|
+
|
|
81
|
+
def replace_file(
|
|
82
|
+
self,
|
|
83
|
+
path: str,
|
|
84
|
+
revision: str,
|
|
85
|
+
chunks: Sequence[WorkspaceChunk],
|
|
86
|
+
*,
|
|
87
|
+
previous_path: str | None = None,
|
|
88
|
+
) -> None:
|
|
89
|
+
"""Replace a file's chunks and optionally commit a rename."""
|
|
90
|
+
path = workspace_path(path)
|
|
91
|
+
old_path = (
|
|
92
|
+
workspace_path(previous_path)
|
|
93
|
+
if previous_path is not None
|
|
94
|
+
else path
|
|
95
|
+
)
|
|
96
|
+
if not revision:
|
|
97
|
+
raise ValueError("file revision must not be empty")
|
|
98
|
+
if any(
|
|
99
|
+
chunk.path != path
|
|
100
|
+
or chunk.ordinal != i
|
|
101
|
+
or chunk.total_chunks != len(chunks)
|
|
102
|
+
for i, chunk in enumerate(chunks)
|
|
103
|
+
):
|
|
104
|
+
raise ValueError(
|
|
105
|
+
"chunks must cover this file in consecutive ordinal order"
|
|
106
|
+
)
|
|
107
|
+
with self._lock:
|
|
108
|
+
previous, files = self._manifest()
|
|
109
|
+
documents = []
|
|
110
|
+
for chunk in chunks:
|
|
111
|
+
metadata = {
|
|
112
|
+
"workspace": self.workspace,
|
|
113
|
+
"path": path,
|
|
114
|
+
"revision": revision,
|
|
115
|
+
"ordinal": chunk.ordinal,
|
|
116
|
+
"total_chunks": chunk.total_chunks,
|
|
117
|
+
"start_line": chunk.start_line,
|
|
118
|
+
"end_line": chunk.end_line,
|
|
119
|
+
}
|
|
120
|
+
identity = _digest(
|
|
121
|
+
json.dumps([metadata, chunk.content], sort_keys=True)
|
|
122
|
+
)
|
|
123
|
+
documents.append(
|
|
124
|
+
DocumentBase(
|
|
125
|
+
id=identity,
|
|
126
|
+
content=chunk.content,
|
|
127
|
+
metadata=metadata,
|
|
128
|
+
embedding=self.embedding.infer_vector(chunk),
|
|
129
|
+
)
|
|
130
|
+
)
|
|
131
|
+
ids = [doc.id for doc in documents]
|
|
132
|
+
previous_ids = set(files.pop(old_path, [])) | set(
|
|
133
|
+
files.pop(path, [])
|
|
134
|
+
)
|
|
135
|
+
if ids:
|
|
136
|
+
files[path] = ids
|
|
137
|
+
for doc in documents:
|
|
138
|
+
if self.backend.get_document(doc.id) is None:
|
|
139
|
+
self.backend.add_document(doc)
|
|
140
|
+
self._commit(previous, files)
|
|
141
|
+
for stale_id in previous_ids.difference(ids):
|
|
142
|
+
self.backend.delete_document(stale_id)
|
|
143
|
+
|
|
144
|
+
def search(
|
|
145
|
+
self,
|
|
146
|
+
query: WorkspaceQuery | str,
|
|
147
|
+
top_k: int = 5,
|
|
148
|
+
*,
|
|
149
|
+
path_scope: str | None = None,
|
|
150
|
+
) -> list[IDocument]:
|
|
151
|
+
if top_k < 0:
|
|
152
|
+
raise ValueError("top_k must be non-negative")
|
|
153
|
+
if not top_k:
|
|
154
|
+
return []
|
|
155
|
+
vector = self.embedding.infer_vector(query)
|
|
156
|
+
with self._lock:
|
|
157
|
+
_, files = self._manifest()
|
|
158
|
+
if path_scope is not None:
|
|
159
|
+
scope = workspace_path(path_scope)
|
|
160
|
+
files = {
|
|
161
|
+
path: ids
|
|
162
|
+
for path, ids in files.items()
|
|
163
|
+
if path == scope or path.startswith(scope + "/")
|
|
164
|
+
}
|
|
165
|
+
docs = [
|
|
166
|
+
self.backend.get_document(identity)
|
|
167
|
+
for ids in files.values()
|
|
168
|
+
for identity in ids
|
|
169
|
+
]
|
|
170
|
+
return sorted(
|
|
171
|
+
(doc for doc in docs if doc is not None),
|
|
172
|
+
key=lambda doc: (-float(vector.dot(doc.embedding)), doc.id),
|
|
173
|
+
)[:top_k]
|
|
174
|
+
|
|
175
|
+
def get_document(self, doc_id: str) -> IDocument | None:
|
|
176
|
+
with self._lock:
|
|
177
|
+
_, files = self._manifest()
|
|
178
|
+
if any(doc_id in ids for ids in files.values()):
|
|
179
|
+
return self.backend.get_document(doc_id)
|
|
180
|
+
return None
|
|
181
|
+
|
|
182
|
+
def get_all_documents(self) -> list[IDocument]:
|
|
183
|
+
with self._lock:
|
|
184
|
+
_, files = self._manifest()
|
|
185
|
+
docs = [
|
|
186
|
+
self.backend.get_document(identity)
|
|
187
|
+
for ids in files.values()
|
|
188
|
+
for identity in ids
|
|
189
|
+
]
|
|
190
|
+
return [doc for doc in docs if doc is not None]
|
|
191
|
+
|
|
192
|
+
def add_document(self, document: IDocument) -> None:
|
|
193
|
+
self.add_documents([document])
|
|
194
|
+
|
|
195
|
+
def add_documents(self, documents: list[IDocument]) -> None:
|
|
196
|
+
if not documents:
|
|
197
|
+
return
|
|
198
|
+
chunks = [
|
|
199
|
+
WorkspaceChunk(
|
|
200
|
+
doc.metadata["path"],
|
|
201
|
+
doc.metadata["ordinal"],
|
|
202
|
+
doc.metadata["total_chunks"],
|
|
203
|
+
doc.content,
|
|
204
|
+
doc.metadata["start_line"],
|
|
205
|
+
doc.metadata["end_line"],
|
|
206
|
+
)
|
|
207
|
+
for doc in documents
|
|
208
|
+
]
|
|
209
|
+
revision = documents[0].metadata["revision"]
|
|
210
|
+
if any(doc.metadata["revision"] != revision for doc in documents):
|
|
211
|
+
raise ValueError("a batch must contain one complete file revision")
|
|
212
|
+
self.replace_file(chunks[0].path, revision, chunks)
|
|
213
|
+
|
|
214
|
+
def update_document(
|
|
215
|
+
self, doc_id: str, updated_document: IDocument
|
|
216
|
+
) -> None:
|
|
217
|
+
with self._lock:
|
|
218
|
+
doc = self.get_document(doc_id)
|
|
219
|
+
if doc is None:
|
|
220
|
+
raise KeyError(doc_id)
|
|
221
|
+
if doc.metadata["total_chunks"] != 1:
|
|
222
|
+
raise ValueError(
|
|
223
|
+
"use replace_file to update a multi-chunk file"
|
|
224
|
+
)
|
|
225
|
+
data = updated_document.metadata
|
|
226
|
+
chunk = WorkspaceChunk(
|
|
227
|
+
data["path"],
|
|
228
|
+
0,
|
|
229
|
+
1,
|
|
230
|
+
updated_document.content,
|
|
231
|
+
data["start_line"],
|
|
232
|
+
data["end_line"],
|
|
233
|
+
)
|
|
234
|
+
self.replace_file(
|
|
235
|
+
chunk.path,
|
|
236
|
+
data["revision"],
|
|
237
|
+
[chunk],
|
|
238
|
+
previous_path=doc.metadata["path"],
|
|
239
|
+
)
|
|
240
|
+
|
|
241
|
+
def delete_document(self, doc_id: str) -> None:
|
|
242
|
+
with self._lock:
|
|
243
|
+
doc = self.get_document(doc_id)
|
|
244
|
+
if doc is None:
|
|
245
|
+
return
|
|
246
|
+
if doc.metadata["total_chunks"] != 1:
|
|
247
|
+
raise ValueError(
|
|
248
|
+
"use replace_file to remove or rewrite a multi-chunk file"
|
|
249
|
+
)
|
|
250
|
+
self.replace_file(
|
|
251
|
+
doc.metadata["path"], doc.metadata["revision"], []
|
|
252
|
+
)
|
|
253
|
+
|
|
254
|
+
def clear_documents(self) -> None:
|
|
255
|
+
with self._lock:
|
|
256
|
+
previous, files = self._manifest()
|
|
257
|
+
if previous is not None:
|
|
258
|
+
self._commit(previous, {})
|
|
259
|
+
for ids in files.values():
|
|
260
|
+
for identity in ids:
|
|
261
|
+
self.backend.delete_document(identity)
|
|
262
|
+
|
|
263
|
+
def document_count(self) -> int:
|
|
264
|
+
with self._lock:
|
|
265
|
+
_, files = self._manifest()
|
|
266
|
+
return sum(len(ids) for ids in files.values())
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
2
|
+
|
|
3
|
+
from .WorkspaceVectorStore import WorkspaceVectorStore
|
|
4
|
+
|
|
5
|
+
try:
|
|
6
|
+
__version__ = version("swarmauri_vectorstore_workspace")
|
|
7
|
+
except PackageNotFoundError:
|
|
8
|
+
__version__ = "0.1.0"
|
|
9
|
+
|
|
10
|
+
__all__ = ["WorkspaceVectorStore"]
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: swarmauri_vectorstore_workspace
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Workspace file revisions and source-aware vector retrieval.
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
License-File: NOTICE
|
|
8
|
+
Keywords: swarmauri,workspace,vectorstore,code-search
|
|
9
|
+
Author: Jacob Stewart
|
|
10
|
+
Author-email: jacob@swarmauri.com
|
|
11
|
+
Requires-Python: >=3.10,<3.15
|
|
12
|
+
Classifier: Development Status :: 1 - Planning
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
18
|
+
Requires-Dist: swarmauri_base (>=0.11.1,<0.12)
|
|
19
|
+
Requires-Dist: swarmauri_core (>=0.11.2,<0.12)
|
|
20
|
+
Requires-Dist: swarmauri_embedding_workspace (>=0.1.0,<0.2)
|
|
21
|
+
Project-URL: Repository, https://github.com/swarmauri/swarmauri-sdk
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
|
|
24
|
+
# swarmauri_vectorstore_workspace
|
|
25
|
+
|
|
26
|
+
<!-- readme-standards:begin branding -->
|
|
27
|
+
<p align="center"><a href="https://github.com/swarmauri/swarmauri-sdk"><img src="https://raw.githubusercontent.com/swarmauri/swarmauri-sdk/master/assets/swarmauri.brand.theme.svg" alt="Swarmauri SDK" width="300"></a></p>
|
|
28
|
+
<p align="center"><strong>swarmauri_vectorstore_workspace</strong></p>
|
|
29
|
+
<p align="center">Workspace file revisions and source-aware vector retrieval.</p>
|
|
30
|
+
<p align="center">
|
|
31
|
+
<a href="https://pypi.org/project/swarmauri_vectorstore_workspace/"><img alt="pypi: swarmauri_vectorstore_workspace unpublished" src="https://img.shields.io/static/v1?label=pypi&message=swarmauri_vectorstore_workspace%20unpublished&labelColor=292421&color=805500"></a>
|
|
32
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_workspace/pyproject.toml"><img alt="Source version: 0.1.0" src="https://img.shields.io/static/v1?label=Source%20version&message=0.1.0&labelColor=292421&color=994525"></a>
|
|
33
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_workspace/pyproject.toml"><img alt="Python: >=3.10,<3.15" src="https://img.shields.io/static/v1?label=Python&message=%3E%3D3.10%2C%3C3.15&labelColor=292421&color=994525"></a>
|
|
34
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_workspace/pyproject.toml"><img alt="Layer: standards" src="https://img.shields.io/static/v1?label=Layer&message=standards&labelColor=292421&color=994525"></a>
|
|
35
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_workspace/README.md#lifecycle-and-migration"><img alt="Lifecycle: active" src="https://img.shields.io/static/v1?label=Lifecycle&message=active&labelColor=292421&color=24654A"></a>
|
|
36
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_workspace/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/static/v1?label=License&message=Apache-2.0&labelColor=292421&color=994525"></a>
|
|
37
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_workspace/NOTICE"><img alt="Notice: attribution" src="https://img.shields.io/static/v1?label=Notice&message=attribution&labelColor=292421&color=994525"></a>
|
|
38
|
+
</p>
|
|
39
|
+
<p align="center">
|
|
40
|
+
<a href="https://pypi.org/project/swarmauri_vectorstore_workspace/"><img alt="pypi downloads: swarmauri_vectorstore_workspace: unpublished" src="https://img.shields.io/static/v1?label=pypi%20downloads&message=swarmauri_vectorstore_workspace%3A%20unpublished&labelColor=292421&color=805500"></a>
|
|
41
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_workspace/README.md"><img alt="README hits: swarmauri_vectorstore_workspace" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/pkgs/40-standards/swarmauri_vectorstore_workspace/README.md.svg?label=README%20hits&labelColor=292421&color=08704E"></a>
|
|
42
|
+
</p>
|
|
43
|
+
<p align="center">
|
|
44
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"><img alt="README standards: CI gate" src="https://img.shields.io/static/v1?label=README%20standards&message=CI%20gate&labelColor=292421&color=67437E"></a>
|
|
45
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_workspace/tests/unit/test_readme_sources.py"><img alt="Tests: example source" src="https://img.shields.io/static/v1?label=Tests&message=example%20source&labelColor=292421&color=67437E"></a>
|
|
46
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_workspace/README.md#certification-status"><img alt="Certification: not certified" src="https://img.shields.io/static/v1?label=Certification&message=not%20certified&labelColor=292421&color=805500"></a>
|
|
47
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/tools/readme/POLICY.md"><img alt="Governance: repository policy" src="https://img.shields.io/static/v1?label=Governance&message=repository%20policy&labelColor=292421&color=67437E"></a>
|
|
48
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"><img alt="Evidence: source and CI" src="https://img.shields.io/static/v1?label=Evidence&message=source%20and%20CI&labelColor=292421&color=67437E"></a>
|
|
49
|
+
</p>
|
|
50
|
+
<p align="center"><a href="#overview">Overview</a> · <a href="#installation">Installation</a> · <a href="#quick-start">Quick Start</a> · <a href="#usage">Usage</a> · <a href="#public-api-and-import-surfaces">API</a> · <a href="#contributing">Contributing</a> · <a href="#governance">Governance</a> · <a href="#license">License</a></p>
|
|
51
|
+
<!-- readme-standards:end branding -->
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Overview
|
|
56
|
+
|
|
57
|
+
### Summary
|
|
58
|
+
|
|
59
|
+
Workspace file revisions and source-aware vector retrieval.
|
|
60
|
+
|
|
61
|
+
### Why This Package
|
|
62
|
+
|
|
63
|
+
`WorkspaceVectorStore` provides a separately installable implementation for Swarmauri callers.
|
|
64
|
+
|
|
65
|
+
### When to Use
|
|
66
|
+
|
|
67
|
+
Use a backend that preserves supplied vectors, keys, metadata, and replacements. Use one writer per workspace and serialize update calls through that store instance. The SDK filesystem vector store can back the workspace index and persist it through its explicit save and load methods.
|
|
68
|
+
|
|
69
|
+
### Features
|
|
70
|
+
|
|
71
|
+
- Workspace file revisions and source-aware vector retrieval.
|
|
72
|
+
- Use `WorkspaceVectorStore` directly from Python.
|
|
73
|
+
|
|
74
|
+
### Non-Goals
|
|
75
|
+
|
|
76
|
+
The public surface is the component and its documented options.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Getting Started
|
|
81
|
+
|
|
82
|
+
### Prerequisites
|
|
83
|
+
|
|
84
|
+
Use Python 3.10 through 3.14. The source example runs in the SDK workspace.
|
|
85
|
+
|
|
86
|
+
### Installation
|
|
87
|
+
|
|
88
|
+
#### Install with uv
|
|
89
|
+
|
|
90
|
+
<!-- readme-standards:begin installation.uv -->
|
|
91
|
+
`swarmauri_vectorstore_workspace` is not declared published. From the source checkout:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
uv pip install .
|
|
95
|
+
```
|
|
96
|
+
<!-- readme-standards:end installation.uv -->
|
|
97
|
+
|
|
98
|
+
#### Install with pip
|
|
99
|
+
|
|
100
|
+
<!-- readme-standards:begin installation.pip -->
|
|
101
|
+
`swarmauri_vectorstore_workspace` is not declared published. From the source checkout:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
python -m pip install .
|
|
105
|
+
```
|
|
106
|
+
<!-- readme-standards:end installation.pip -->
|
|
107
|
+
|
|
108
|
+
#### Install with Poetry
|
|
109
|
+
|
|
110
|
+
<!-- readme-standards:begin installation.poetry -->
|
|
111
|
+
`swarmauri_vectorstore_workspace` is not declared published. From a separate Poetry project, replace the path with your checkout:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
poetry add /path/to/swarmauri_vectorstore_workspace
|
|
115
|
+
```
|
|
116
|
+
<!-- readme-standards:end installation.poetry -->
|
|
117
|
+
|
|
118
|
+
### Quick Start
|
|
119
|
+
|
|
120
|
+
#### Example
|
|
121
|
+
|
|
122
|
+
<!-- readme-standards:begin example.quick-start -->
|
|
123
|
+
Source: [docs/readme/quick_start.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_workspace/docs/readme/quick_start.py).
|
|
124
|
+
|
|
125
|
+
```python
|
|
126
|
+
from swarmauri_embedding_workspace.WorkspaceEmbedding import WorkspaceChunk
|
|
127
|
+
from swarmauri_vectorstore_workspace import WorkspaceVectorStore
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def index_example(store: WorkspaceVectorStore):
|
|
131
|
+
store.replace_file(
|
|
132
|
+
"src/retries.py",
|
|
133
|
+
"rev1",
|
|
134
|
+
[WorkspaceChunk("src/retries.py", 0, 1, "retry", 4, 6)],
|
|
135
|
+
)
|
|
136
|
+
return store.search("retry", path_scope="src")
|
|
137
|
+
```
|
|
138
|
+
<!-- readme-standards:end example.quick-start -->
|
|
139
|
+
|
|
140
|
+
#### Expected Result
|
|
141
|
+
|
|
142
|
+
The example demonstrates the documented `swarmauri_vectorstore_workspace` source boundary or workflow. Complete its required configuration first. README CI checks the maintained source’s syntax and declarations; it does not claim that external services or the application workflow were exercised.
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## Usage
|
|
147
|
+
|
|
148
|
+
### Common Workflows
|
|
149
|
+
|
|
150
|
+
<!-- readme-standards:begin example.usage -->
|
|
151
|
+
Source: [docs/readme/usage.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_workspace/docs/readme/usage.py).
|
|
152
|
+
|
|
153
|
+
```python
|
|
154
|
+
from swarmauri_embedding_workspace.WorkspaceEmbedding import WorkspaceChunk
|
|
155
|
+
from swarmauri_vectorstore_workspace import WorkspaceVectorStore
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
def index_example(store: WorkspaceVectorStore):
|
|
159
|
+
store.replace_file(
|
|
160
|
+
"src/retries.py",
|
|
161
|
+
"rev1",
|
|
162
|
+
[WorkspaceChunk("src/retries.py", 0, 1, "retry", 4, 6)],
|
|
163
|
+
)
|
|
164
|
+
return store.search("retry", path_scope="src")
|
|
165
|
+
```
|
|
166
|
+
<!-- readme-standards:end example.usage -->
|
|
167
|
+
|
|
168
|
+
Pass the store to `AgentRunner` to persist a conversation. Use `runner.load(run_id)`
|
|
169
|
+
to read the typed run state.
|
|
170
|
+
|
|
171
|
+
### Configuration
|
|
172
|
+
|
|
173
|
+
Configure the component at construction. See [the source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_workspace/swarmauri_vectorstore_workspace/WorkspaceVectorStore.py) for supported inputs.
|
|
174
|
+
|
|
175
|
+
### Error Handling
|
|
176
|
+
|
|
177
|
+
Invalid inputs raise an exception before a result is returned. See the API and package regression tests for concrete cases.
|
|
178
|
+
|
|
179
|
+
### Best Practices
|
|
180
|
+
|
|
181
|
+
Use the provided example to exercise the component with your configuration before depending on it.
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
## Package Boundary
|
|
186
|
+
|
|
187
|
+
### What It Owns
|
|
188
|
+
|
|
189
|
+
Workspace file revisions and source-aware vector retrieval.
|
|
190
|
+
|
|
191
|
+
### Public API and Import Surfaces
|
|
192
|
+
|
|
193
|
+
Import `WorkspaceVectorStore` from `swarmauri_vectorstore_workspace`.
|
|
194
|
+
|
|
195
|
+
### Entry Points
|
|
196
|
+
|
|
197
|
+
<!-- readme-standards:begin entry-points -->
|
|
198
|
+
- `swarmauri.vector_stores` → `WorkspaceVectorStore` → `swarmauri_vectorstore_workspace:WorkspaceVectorStore`
|
|
199
|
+
<!-- readme-standards:end entry-points -->
|
|
200
|
+
|
|
201
|
+
### Injected Dependencies
|
|
202
|
+
|
|
203
|
+
The package manifest declares the Swarmauri collaborators used by this component.
|
|
204
|
+
|
|
205
|
+
### Protocol Consumers
|
|
206
|
+
|
|
207
|
+
Applications can construct the component directly using the import shown above.
|
|
208
|
+
|
|
209
|
+
### Extensions
|
|
210
|
+
|
|
211
|
+
Use the corresponding SDK interface when adding another implementation.
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
## Operations and Readiness
|
|
216
|
+
|
|
217
|
+
### Operational Requirements
|
|
218
|
+
|
|
219
|
+
Configure the component as shown in the example. Match the lifetime of stored records and injected collaborators to the application.
|
|
220
|
+
|
|
221
|
+
### Health and Observability
|
|
222
|
+
|
|
223
|
+
Use package tests and inspect exceptions from component calls.
|
|
224
|
+
|
|
225
|
+
### Security and Resource Limits
|
|
226
|
+
|
|
227
|
+
Supply application-appropriate input sizes and access controls for your use case.
|
|
228
|
+
|
|
229
|
+
### Compatibility
|
|
230
|
+
|
|
231
|
+
Version 0.1.0 declares Python 3.10 through 3.14.
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Verification
|
|
236
|
+
|
|
237
|
+
### Tests
|
|
238
|
+
|
|
239
|
+
Run `uv run --package swarmauri_vectorstore_workspace pytest` from the package directory.
|
|
240
|
+
|
|
241
|
+
### Certification Status
|
|
242
|
+
|
|
243
|
+
Planning release.
|
|
244
|
+
|
|
245
|
+
### Evidence
|
|
246
|
+
|
|
247
|
+
The source examples and package tests document the supported behavior.
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
|
|
251
|
+
## FAQ
|
|
252
|
+
|
|
253
|
+
### Why
|
|
254
|
+
|
|
255
|
+
Workspace file revisions and source-aware vector retrieval.
|
|
256
|
+
|
|
257
|
+
### How
|
|
258
|
+
|
|
259
|
+
Run the source example under Getting Started.
|
|
260
|
+
|
|
261
|
+
### When
|
|
262
|
+
|
|
263
|
+
Re-run the package tests after changing the backend, distance model, or embedding configuration used by your application.
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
## Documentation and Related Packages
|
|
268
|
+
|
|
269
|
+
### More Documentation
|
|
270
|
+
|
|
271
|
+
See the [component source](https://github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/40-standards/swarmauri_vectorstore_workspace).
|
|
272
|
+
|
|
273
|
+
### Related Packages
|
|
274
|
+
|
|
275
|
+
See [swarmauri-core](https://github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/10-interfaces/swarmauri_core) for interfaces and shared types.
|
|
276
|
+
|
|
277
|
+
### Project Links
|
|
278
|
+
|
|
279
|
+
<!-- readme-standards:begin project-links -->
|
|
280
|
+
- [Repository](https://github.com/swarmauri/swarmauri-sdk)
|
|
281
|
+
- [pypi: swarmauri_vectorstore_workspace](https://pypi.org/project/swarmauri_vectorstore_workspace/)
|
|
282
|
+
<!-- readme-standards:end project-links -->
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## Contributing
|
|
287
|
+
|
|
288
|
+
### How to Contribute
|
|
289
|
+
|
|
290
|
+
See the [contribution guide](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md).
|
|
291
|
+
|
|
292
|
+
### Development Setup
|
|
293
|
+
|
|
294
|
+
Use the SDK workspace to run package tests and the README examples.
|
|
295
|
+
|
|
296
|
+
### Notes for Maintainers
|
|
297
|
+
|
|
298
|
+
Update both maintained examples when changing the public API.
|
|
299
|
+
|
|
300
|
+
---
|
|
301
|
+
|
|
302
|
+
## Governance
|
|
303
|
+
|
|
304
|
+
### Ownership and Decision Making
|
|
305
|
+
|
|
306
|
+
The SDK maintainer review process applies.
|
|
307
|
+
|
|
308
|
+
### Standards and Policies
|
|
309
|
+
|
|
310
|
+
See the [README policy](https://github.com/swarmauri/swarmauri-sdk/blob/master/tools/readme/POLICY.md).
|
|
311
|
+
|
|
312
|
+
### Lifecycle and Migration
|
|
313
|
+
|
|
314
|
+
Planning version 0.1.0. Install from a checkout while the package is unpublished.
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
318
|
+
## License and Attribution
|
|
319
|
+
|
|
320
|
+
### License
|
|
321
|
+
|
|
322
|
+
<!-- readme-standards:begin license -->
|
|
323
|
+
Licensed under `Apache-2.0`. See [LICENSE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_workspace/LICENSE).
|
|
324
|
+
<!-- readme-standards:end license -->
|
|
325
|
+
|
|
326
|
+
### Notices
|
|
327
|
+
|
|
328
|
+
<!-- readme-standards:begin notices -->
|
|
329
|
+
See [NOTICE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_workspace/NOTICE) for attribution.
|
|
330
|
+
<!-- readme-standards:end notices -->
|
|
331
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
swarmauri_vectorstore_workspace/WorkspaceVectorStore.py,sha256=G2ERvdExpxEuSyXwQsWIMWoYN48V3sY2GgNqWmmP0AE,9379
|
|
2
|
+
swarmauri_vectorstore_workspace/__init__.py,sha256=GFyXGs5vD2EywY9ZKRP36leek37OMzjEdkUMXf4sHlA,275
|
|
3
|
+
swarmauri_vectorstore_workspace-0.1.0.dist-info/METADATA,sha256=p8gKfXRDa__7nl9Do0KxnOYYZL9KfwW2VYrhu-phjr4,13462
|
|
4
|
+
swarmauri_vectorstore_workspace-0.1.0.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
|
|
5
|
+
swarmauri_vectorstore_workspace-0.1.0.dist-info/entry_points.txt,sha256=9WYfQi27ivDYubPffXTQxbl8Ff8Qq9GLr7hL0o0TvBg,101
|
|
6
|
+
swarmauri_vectorstore_workspace-0.1.0.dist-info/licenses/LICENSE,sha256=djUXOlCxLVszShEpZXshZ7v33G-2qIC_j9KXpWKZSzQ,11359
|
|
7
|
+
swarmauri_vectorstore_workspace-0.1.0.dist-info/licenses/NOTICE,sha256=VfAL5X7ziNvo-D3n5KC0OJscjJ6cHcF5CwRHzM3S9cc,150
|
|
8
|
+
swarmauri_vectorstore_workspace-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,201 @@
|
|
|
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 any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [2025] [Jacob Stewart @ Swarmauri]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|