@c4a/context 0.6.4 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -61,14 +61,18 @@ llmsPackage({
|
|
|
61
61
|
|
|
62
62
|
Use Git raw delivery when resources are published from a Git repository.
|
|
63
63
|
Without `urlPrefix`, the Context workspace must be inside Git; GitHub remotes
|
|
64
|
-
are derived automatically and pinned to the current commit. Other hosts
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
the
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
64
|
+
are derived automatically and pinned to the current commit. Other hosts accept
|
|
65
|
+
an explicit HTTPS prefix. `{commit}` is replaced only when the workspace is
|
|
66
|
+
inside Git, because Context must resolve the current commit. A workspace outside
|
|
67
|
+
Git must use a literal, already-published prefix without `{commit}`. Context
|
|
68
|
+
appends the project-relative `knowledge/assets/...` path.
|
|
69
|
+
|
|
70
|
+
The resolved commit and raw URL participate in package freshness, so changing
|
|
71
|
+
Git HEAD or the selected remote makes an existing package stale. Context does
|
|
72
|
+
not check whether resources are committed, pushed, or remotely readable;
|
|
73
|
+
publishing them is the package author's responsibility. A literal branch in the
|
|
74
|
+
prefix is allowed but intentionally follows that mutable branch. The configured
|
|
75
|
+
raw host must be reachable by the eventual package consumers.
|
|
72
76
|
|
|
73
77
|
```ts
|
|
74
78
|
assets: {
|
|
@@ -77,8 +81,15 @@ assets: {
|
|
|
77
81
|
}
|
|
78
82
|
```
|
|
79
83
|
|
|
80
|
-
|
|
81
|
-
|
|
84
|
+
Outside Git, use a literal published prefix or choose bundled delivery or
|
|
85
|
+
explicit omission:
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
assets: {
|
|
89
|
+
delivery: "git-raw",
|
|
90
|
+
urlPrefix: "https://code.example.com/team/knowledge/raw/published-assets",
|
|
91
|
+
}
|
|
92
|
+
```
|
|
82
93
|
|
|
83
94
|
```ts
|
|
84
95
|
assets: { delivery: "bundle" }
|