@n8r/surface 0.1.0-experimental.2 → 0.1.0-experimental.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.
- package/README.md +30 -4
- package/dist/cli.js +174 -22
- package/dist/codec.d.ts +2 -0
- package/dist/codec.js +22 -7
- package/dist/codex.d.ts +1 -1
- package/dist/codex.js +26 -10
- package/dist/contracts.d.ts +108 -2
- package/dist/cyclonedx-schemas/bom-1.7.schema.json +6700 -0
- package/dist/cyclonedx-schemas/cryptography-defs.schema.json +576 -0
- package/dist/cyclonedx-schemas/jsf-0.82.schema.json +240 -0
- package/dist/cyclonedx-schemas/spdx.schema.json +786 -0
- package/dist/cyclonedx-validation.d.ts +1 -0
- package/dist/cyclonedx-validation.js +45 -0
- package/dist/html.js +27 -3
- package/dist/recent.d.ts +9 -0
- package/dist/recent.js +71 -0
- package/dist/revisions.js +42 -0
- package/dist/skill-artifacts-cli.d.ts +1 -0
- package/dist/skill-artifacts-cli.js +13 -0
- package/dist/skill-artifacts.d.ts +15 -0
- package/dist/skill-artifacts.js +184 -0
- package/dist/skill-cyclonedx.d.ts +26 -0
- package/dist/skill-cyclonedx.js +214 -0
- package/dist/skill-presentation.d.ts +10 -0
- package/dist/skill-presentation.js +108 -0
- package/dist/skill-surface-cli.d.ts +1 -0
- package/dist/skill-surface-cli.js +37 -0
- package/dist/skill-surface-store.d.ts +7 -0
- package/dist/skill-surface-store.js +126 -0
- package/dist/surface-bom.d.ts +73 -0
- package/dist/surface-bom.js +139 -0
- package/dist/surface-draft.d.ts +6 -3
- package/dist/surface-draft.js +20 -3
- package/dist/surface-instructions.d.ts +2 -1
- package/dist/surface-instructions.js +10 -1
- package/dist/surface-overview.d.ts +15 -0
- package/dist/surface-overview.js +86 -0
- package/dist/surface-store.d.ts +5 -7
- package/dist/surface-store.js +34 -2
- package/dist/surface-view.d.ts +3 -0
- package/dist/surface-view.js +50 -0
- package/dist/validate.js +298 -0
- package/docs/n8r-surface/cli-bundles.md +72 -0
- package/docs/n8r-surface/command-outcomes.md +151 -4
- package/docs/n8r-surface/contracts.md +10 -0
- package/docs/n8r-surface/critical-path.md +21 -0
- package/docs/n8r-surface/first-use-access.md +143 -0
- package/docs/n8r-surface/first-use-overview.md +262 -0
- package/docs/n8r-surface/getting-started.md +55 -88
- package/docs/n8r-surface/guided-journey-verification.md +137 -0
- package/docs/n8r-surface/implementation-decisions.md +14 -14
- package/docs/n8r-surface/instance-first-research.md +209 -0
- package/docs/n8r-surface/npm-distribution.md +39 -69
- package/docs/n8r-surface/npm-release.md +141 -14
- package/docs/n8r-surface/product-direction.md +327 -0
- package/docs/n8r-surface/researcher-skill.md +105 -51
- package/docs/n8r-surface/security-assurance-strategy.md +267 -0
- package/docs/n8r-surface/skill-bom-verification.md +142 -0
- package/docs/n8r-surface/skill-cyclonedx-verification.md +144 -0
- package/docs/n8r-surface/skill-cyclonedx.md +85 -0
- package/docs/n8r-surface/skill-manual.md +129 -0
- package/docs/n8r-surface/skill-surface-artifacts.md +234 -0
- package/docs/n8r-surface/skill-usefulness-verification.md +135 -0
- package/docs/n8r-surface/skill-workspace-automation.md +359 -0
- package/docs/n8r-surface/surface-description-contract.md +224 -0
- package/docs/n8r-surface/surface-descriptions.md +173 -0
- package/docs/n8r-surface/surface-relationships.md +231 -0
- package/docs/n8r-surface/tester-candidate.md +158 -0
- package/docs/n8r-surface/versioning.md +55 -66
- package/docs/n8r-surface/workspace-human-check.md +101 -0
- package/docs/n8r-surface/workspace-installation.md +68 -0
- package/docs/n8r-surface/workspace-verification.md +350 -0
- package/docs/n8r-surface/workspace.md +83 -0
- package/examples/researcher/README.md +8 -0
- package/examples/researcher/cyclonedx/configured/README.md +7 -0
- package/examples/researcher/cyclonedx/configured/manifest.json +10 -0
- package/examples/researcher/cyclonedx/configured/mapping.json +323 -0
- package/examples/researcher/cyclonedx/configured/surface-records.json +1275 -0
- package/examples/researcher/cyclonedx/configured/surface.cdx.json +79 -0
- package/examples/researcher/descriptions/README.md +29 -0
- package/examples/researcher/descriptions/bound-r1.json +141 -0
- package/examples/researcher/descriptions/bound-r2.json +153 -0
- package/examples/researcher/descriptions/capability.json +167 -0
- package/examples/researcher/descriptions/research-r1.json +153 -0
- package/examples/researcher/descriptions/research-r2.json +157 -0
- package/examples/researcher/descriptions/sources.md +24 -0
- package/examples/researcher/relationships/README.md +34 -0
- package/examples/researcher/relationships/bound-r1.json +346 -0
- package/examples/researcher/relationships/bound-r2.json +358 -0
- package/examples/researcher/relationships/capability.json +325 -0
- package/examples/researcher/relationships/config/assistant.env.example +4 -0
- package/examples/researcher/relationships/research-r1.json +300 -0
- package/examples/researcher/relationships/research-r2.json +304 -0
- package/examples/researcher/relationships/sources.md +38 -0
- package/examples/researcher/surface-bom/README.md +17 -0
- package/examples/researcher/surface-bom/initial.cdx.json +188 -0
- package/package.json +1 -1
- package/plugins/n8r-surface/.codex-plugin/plugin.json +2 -2
- package/plugins/n8r-surface/LICENSING.md +3 -0
- package/plugins/n8r-surface/plugin.json +2 -2
- package/plugins/n8r-surface/skills/research/SKILL.md +79 -38
- package/plugins/n8r-surface/skills/research/references/artifacts.md +152 -0
- package/plugins/n8r-surface/skills/research/references/cyclonedx.md +207 -0
- package/plugins/n8r-surface/skills/research/references/discovery-map.md +20 -2
- package/plugins/n8r-surface/skills/research/references/examples/bound-r1.json +346 -0
- package/plugins/n8r-surface/skills/research/references/examples/capability.json +325 -0
- package/plugins/n8r-surface/skills/research/references/examples/research-r1.json +300 -0
- package/plugins/n8r-surface/skills/research/references/examples/surface.cdx.json +188 -0
- package/plugins/n8r-surface/skills/research/references/first-use-access.md +97 -0
- package/plugins/n8r-surface/skills/research/references/first-use-overview.md +101 -0
- package/plugins/n8r-surface/skills/research/references/instance-first.md +125 -0
- package/plugins/n8r-surface/skills/research/references/working-notes.md +6 -1
- package/plugins/n8r-surface/skills/research/references/workspace.md +89 -0
- package/plugins/n8r-surface/skills/research/scripts/THIRD-PARTY-NOTICES.txt +273 -0
- package/plugins/n8r-surface/skills/research/scripts/artifacts.mjs +8348 -0
- package/plugins/n8r-surface/skills/research/scripts/cyclonedx.mjs +28113 -0
- package/plugins/n8r-surface/skills/research/scripts/surface.mjs +27800 -0
- package/plugins/n8r-surface/skills/research/scripts/workspace.mjs +120 -0
package/dist/contracts.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Experimental
|
|
1
|
+
/** Experimental bounded contracts, not a universal AI Surface Model schema. */
|
|
2
2
|
export type Value = null | boolean | number | string | Value[] | {
|
|
3
3
|
[key: string]: Value;
|
|
4
4
|
};
|
|
@@ -126,4 +126,110 @@ export interface SurfaceDefinition extends Envelope {
|
|
|
126
126
|
coverage: string[];
|
|
127
127
|
gaps: string[];
|
|
128
128
|
}
|
|
129
|
-
|
|
129
|
+
/** JSON-only descriptions; no settings values or opaque extensions in this profile. */
|
|
130
|
+
export interface DescriptionNode {
|
|
131
|
+
id: string;
|
|
132
|
+
label: string;
|
|
133
|
+
type: {
|
|
134
|
+
vocabulary: string;
|
|
135
|
+
term: string;
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
export interface DescriptionEnvelope extends Envelope {
|
|
139
|
+
contract: 'n8r.surface/0.2';
|
|
140
|
+
records: RevisionRef[];
|
|
141
|
+
vocabularies: {
|
|
142
|
+
id: string;
|
|
143
|
+
version: string;
|
|
144
|
+
}[];
|
|
145
|
+
nodes: DescriptionNode[];
|
|
146
|
+
coverage: string[];
|
|
147
|
+
gaps: string[];
|
|
148
|
+
}
|
|
149
|
+
export interface CapabilitySurface extends DescriptionEnvelope {
|
|
150
|
+
kind: 'capability';
|
|
151
|
+
capabilities: {
|
|
152
|
+
id: string;
|
|
153
|
+
from: string;
|
|
154
|
+
to: string;
|
|
155
|
+
type: {
|
|
156
|
+
vocabulary: string;
|
|
157
|
+
term: string;
|
|
158
|
+
};
|
|
159
|
+
state: 'possible' | Exclude<State, 'known'> | 'conflicting';
|
|
160
|
+
basis: Basis[];
|
|
161
|
+
conditions: string[];
|
|
162
|
+
note: string;
|
|
163
|
+
}[];
|
|
164
|
+
exclusiveGroups: {
|
|
165
|
+
id: string;
|
|
166
|
+
members: string[];
|
|
167
|
+
}[];
|
|
168
|
+
}
|
|
169
|
+
export interface BoundSurface extends DescriptionEnvelope {
|
|
170
|
+
kind: 'bound';
|
|
171
|
+
capability: RevisionRef;
|
|
172
|
+
instance: {
|
|
173
|
+
id: string;
|
|
174
|
+
label: string;
|
|
175
|
+
};
|
|
176
|
+
bindings: {
|
|
177
|
+
id: string;
|
|
178
|
+
capability: string;
|
|
179
|
+
state: 'configured' | Exclude<State, 'known' | 'absent'> | 'conflicting';
|
|
180
|
+
claims: {
|
|
181
|
+
target: string;
|
|
182
|
+
basis: Basis[];
|
|
183
|
+
}[];
|
|
184
|
+
decisions: Basis[];
|
|
185
|
+
note: string;
|
|
186
|
+
}[];
|
|
187
|
+
}
|
|
188
|
+
export type SurfaceDescription = CapabilitySurface | BoundSurface;
|
|
189
|
+
/** Shared node/edge contract; setting names and safe locations, never values. */
|
|
190
|
+
export interface ConfigurationReference {
|
|
191
|
+
owner: string;
|
|
192
|
+
mechanism: 'environment-variable' | 'file-key' | 'argument' | 'admin-setting' | 'code';
|
|
193
|
+
key: string;
|
|
194
|
+
location: string;
|
|
195
|
+
}
|
|
196
|
+
export interface RelationshipDetail<T> {
|
|
197
|
+
state: State | 'conflicting';
|
|
198
|
+
claims: {
|
|
199
|
+
value: T;
|
|
200
|
+
basis: Basis[];
|
|
201
|
+
}[];
|
|
202
|
+
note: string;
|
|
203
|
+
}
|
|
204
|
+
export interface DescriptionRelationship {
|
|
205
|
+
id: string;
|
|
206
|
+
from: string;
|
|
207
|
+
to: string;
|
|
208
|
+
type: DescriptionNode['type'];
|
|
209
|
+
purpose: RelationshipDetail<string>;
|
|
210
|
+
integration: RelationshipDetail<string>;
|
|
211
|
+
configuration: RelationshipDetail<ConfigurationReference[]>;
|
|
212
|
+
basis: Basis[];
|
|
213
|
+
conditions: string[];
|
|
214
|
+
note: string;
|
|
215
|
+
}
|
|
216
|
+
export interface GraphEnvelope extends Omit<DescriptionEnvelope, 'contract'> {
|
|
217
|
+
contract: 'n8r.surface/0.3';
|
|
218
|
+
}
|
|
219
|
+
export interface CapabilityGraph extends GraphEnvelope {
|
|
220
|
+
kind: 'capability';
|
|
221
|
+
relationships: (DescriptionRelationship & {
|
|
222
|
+
state: CapabilitySurface['capabilities'][number]['state'];
|
|
223
|
+
})[];
|
|
224
|
+
exclusiveGroups: CapabilitySurface['exclusiveGroups'];
|
|
225
|
+
}
|
|
226
|
+
export interface BoundGraph extends GraphEnvelope {
|
|
227
|
+
kind: 'bound';
|
|
228
|
+
capability: RevisionRef;
|
|
229
|
+
instance: BoundSurface['instance'];
|
|
230
|
+
relationships: (DescriptionRelationship & {
|
|
231
|
+
binding: Omit<BoundSurface['bindings'][number], 'id' | 'capability'>;
|
|
232
|
+
})[];
|
|
233
|
+
}
|
|
234
|
+
export type SurfaceGraph = CapabilityGraph | BoundGraph;
|
|
235
|
+
export type Artefact = ResearchRecord | SurfaceDefinition | SurfaceDescription | SurfaceGraph;
|