@shapeshift-labs/frontier-lang-java 0.1.0 → 0.1.1
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 +8 -4
- package/dist/index.d.ts +12 -3
- package/dist/index.js +14 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -36,8 +36,8 @@ The published Frontier package family is generated from one shared package catal
|
|
|
36
36
|
- [`@shapeshift-labs/frontier-workflow`](https://www.npmjs.com/package/@shapeshift-labs/frontier-workflow): Serializable durable workflow/process manifests for Frontier apps, including steps, waits, approvals, timers, retries, expected patches, compensation, records, timelines, and registry graph output.
|
|
37
37
|
- [`@shapeshift-labs/frontier-worker`](https://www.npmjs.com/package/@shapeshift-labs/frontier-worker): Serializable worker and edge task descriptors for Frontier apps, including queues, idempotency keys, retry and timeout policy, declared reads/writes/effects, snapshots, patch outputs, produced assets, execution records, logs, trace links, proof hashes, dedupe indexes, and registry graph output.
|
|
38
38
|
- [`@shapeshift-labs/frontier-queue`](https://www.npmjs.com/package/@shapeshift-labs/frontier-queue): Serializable durable queue state, leases, retries, dedupe keys, patch-carrying jobs, dead-letter records, replay evidence, and queue inspection for Frontier apps.
|
|
39
|
-
- [`@shapeshift-labs/frontier-swarm`](https://www.npmjs.com/package/@shapeshift-labs/frontier-swarm): Hierarchical swarm plans, lanes, compute profiles, ownership policy, semantic ownership regions, task queues, event streams, run records, merge bundles, merge indexes, queue overlays, merge admission, changed-path checks, and proof artifacts for Frontier agent work.
|
|
40
|
-
- [`@shapeshift-labs/frontier-swarm-codex`](https://www.npmjs.com/package/@shapeshift-labs/frontier-swarm-codex): Node Codex CLI adapter for Frontier swarm plans, including prompt rendering, worktree and snapshot workspaces, Codex argument compatibility, browser resource allocation, JSONL capture, verification commands, pid-backed stop, collect/apply workflows, merge indexes, queue overlays, merge bundles, and result artifacts.
|
|
39
|
+
- [`@shapeshift-labs/frontier-swarm`](https://www.npmjs.com/package/@shapeshift-labs/frontier-swarm): Hierarchical swarm plans, lanes, compute profiles, ownership policy, semantic ownership regions, task queues, event streams, run records, merge bundles, merge indexes, queue overlays, merge admission, coordinator dashboards, changed-path checks, and proof artifacts for Frontier agent work.
|
|
40
|
+
- [`@shapeshift-labs/frontier-swarm-codex`](https://www.npmjs.com/package/@shapeshift-labs/frontier-swarm-codex): Node Codex CLI adapter for Frontier swarm plans, including prompt rendering, worktree and snapshot workspaces, Codex argument compatibility, browser resource allocation, JSONL capture, verification commands, pid-backed stop, collect/apply workflows, merge indexes, queue overlays, merge bundles, normalized job evidence, coordinator query artifacts, and result artifacts.
|
|
41
41
|
- [`@shapeshift-labs/frontier-lang-kernel`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-kernel): Runtime-neutral semantic source graph, type/lattice/extern declarations, patch bundles, replay, hashing, evidence records, and merge-admission kernel for Frontier Lang.
|
|
42
42
|
- [`@shapeshift-labs/frontier-lang-parser`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-parser): Dependency-light Frontier Lang parser for modules, entities, state, actions, effects, types, externs, targets, and lattice declarations.
|
|
43
43
|
- [`@shapeshift-labs/frontier-lang-checker`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-checker): Checker and diagnostics for Frontier Lang semantic documents, including type symbols, effects, regions, lattice laws, CRDT metadata, and patch evidence.
|
|
@@ -46,12 +46,14 @@ The published Frontier package family is generated from one shared package catal
|
|
|
46
46
|
- [`@shapeshift-labs/frontier-lang-rust`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-rust): Rust projection adapter for Frontier Lang semantic documents, including structs, aliases, and action stubs.
|
|
47
47
|
- [`@shapeshift-labs/frontier-lang-python`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-python): Python projection adapter for Frontier Lang semantic documents, including dataclasses, typed patch records, and action stubs.
|
|
48
48
|
- [`@shapeshift-labs/frontier-lang-c`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-c): C header projection adapter for Frontier Lang semantic documents, including structs and action prototypes.
|
|
49
|
-
- [`@shapeshift-labs/frontier-lang-compiler`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-compiler): Compiler facade for Frontier Lang source documents, including parse, check, hash, diagnostics,
|
|
49
|
+
- [`@shapeshift-labs/frontier-lang-compiler`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-compiler): Compiler facade for Frontier Lang source documents, including parse, check, hash, diagnostics, universal AST envelopes, proof/paradigm semantic summaries, projection to TypeScript, JavaScript, Rust, Python, and C, and native source-import adapters for semantic merge evidence.
|
|
50
|
+
- [`@shapeshift-labs/frontier-lang-swift`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-swift): Swift source-language importer package for Frontier Lang semantic documents, including package-level metadata, SwiftSyntax adapter helpers, native import results, and semantic sidecar generation for SwiftSyntax/SwiftParser-shaped syntax trees.
|
|
51
|
+
- [`@shapeshift-labs/frontier-lang-kotlin`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-kotlin): Kotlin PSI source-language importer package for Frontier Lang semantic documents, including package-level metadata, Kotlin PSI adapter helpers, native import results, and semantic sidecar generation for Kotlin PSI/KtFile-shaped syntax trees.
|
|
50
52
|
- [`@shapeshift-labs/frontier-lang-go`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-go): Go source-language importer package for Frontier Lang semantic documents, including package-level metadata, Go AST adapter helpers, native import results, and semantic sidecar generation for go/ast File or Package trees.
|
|
51
53
|
- [`@shapeshift-labs/frontier-lang-csharp`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-csharp): C# Roslyn source-language importer package for Frontier Lang semantic documents, including package-level metadata, Roslyn adapter helpers, native import results, and semantic sidecar generation for SyntaxTree/SyntaxNode-shaped ASTs.
|
|
52
54
|
- [`@shapeshift-labs/frontier-lang-clang`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-clang): Clang AST source-language importer package for Frontier Lang semantic documents, including package-level metadata, Clang AST JSON adapter helpers, native import results, and semantic sidecar generation for C/C++ translation units.
|
|
53
55
|
- [`@shapeshift-labs/frontier-lang-cli`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-cli): Command line interface for parsing, checking, hashing, and emitting Frontier Lang projects.
|
|
54
|
-
- [`@shapeshift-labs/frontier-lang`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang): Umbrella package for Frontier Lang kernel, parser, checker, and projection adapters.
|
|
56
|
+
- [`@shapeshift-labs/frontier-lang`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang): Umbrella package for Frontier Lang kernel, parser, checker, compiler facade, universal AST helpers, and projection adapters.
|
|
55
57
|
- [`@shapeshift-labs/frontier-kv`](https://www.npmjs.com/package/@shapeshift-labs/frontier-kv): Serializable in-memory key/value state for Frontier apps, including TTL, versioned compare-and-set, batched patch mutations, scans, watchers, snapshots, JSONL event evidence, and replay verification.
|
|
56
58
|
- [`@shapeshift-labs/frontier-kv-locks`](https://www.npmjs.com/package/@shapeshift-labs/frontier-kv-locks): Lease-style lock records on top of Frontier KV, including acquire, renew, release, fencing tokens, expiration, owner evidence, and replayable lock events.
|
|
57
59
|
- [`@shapeshift-labs/frontier-kv-rate-limit`](https://www.npmjs.com/package/@shapeshift-labs/frontier-kv-rate-limit): Patch-native rate limit buckets for Frontier KV, including fixed windows, sliding windows, token buckets, deterministic refill, consume evidence, and reset records.
|
|
@@ -137,6 +139,8 @@ Package source repositories:
|
|
|
137
139
|
- [`siliconjungle/-shapeshift-labs-frontier-lang-python`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-python)
|
|
138
140
|
- [`siliconjungle/-shapeshift-labs-frontier-lang-c`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-c)
|
|
139
141
|
- [`siliconjungle/-shapeshift-labs-frontier-lang-compiler`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-compiler)
|
|
142
|
+
- [`siliconjungle/-shapeshift-labs-frontier-lang-swift`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-swift)
|
|
143
|
+
- [`siliconjungle/-shapeshift-labs-frontier-lang-kotlin`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-kotlin)
|
|
140
144
|
- [`siliconjungle/-shapeshift-labs-frontier-lang-java`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-java)
|
|
141
145
|
- [`siliconjungle/-shapeshift-labs-frontier-lang-go`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-go)
|
|
142
146
|
- [`siliconjungle/-shapeshift-labs-frontier-lang-csharp`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-csharp)
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,11 @@ import type {
|
|
|
2
2
|
JavaAstNativeImporterAdapterOptions,
|
|
3
3
|
NativeImporterAdapter,
|
|
4
4
|
NativeImporterAdapterImportResult,
|
|
5
|
+
NativeImportLanguageProfile,
|
|
5
6
|
SemanticImportSidecar,
|
|
6
|
-
SemanticImportSidecarOptions
|
|
7
|
+
SemanticImportSidecarOptions,
|
|
8
|
+
UniversalCapabilityMatrix,
|
|
9
|
+
UniversalCapabilityMatrixOptions
|
|
7
10
|
} from '@shapeshift-labs/frontier-lang-compiler';
|
|
8
11
|
|
|
9
12
|
export declare const JavaSourceLanguage: 'java';
|
|
@@ -13,16 +16,17 @@ export declare const JavaSupportedExtensions: readonly string[];
|
|
|
13
16
|
|
|
14
17
|
export interface JavaLanguagePackageMetadata {
|
|
15
18
|
readonly packageName: '@shapeshift-labs/frontier-lang-java';
|
|
16
|
-
readonly version: '0.1.
|
|
19
|
+
readonly version: '0.1.1';
|
|
17
20
|
readonly sourceLanguage: 'java';
|
|
18
21
|
readonly parser: 'javac';
|
|
19
22
|
readonly parserAstFormat: 'java-ast';
|
|
20
23
|
readonly supportedExtensions: readonly string[];
|
|
21
24
|
readonly compilerPackage: '@shapeshift-labs/frontier-lang-compiler';
|
|
22
|
-
readonly compilerVersion: '0.2.
|
|
25
|
+
readonly compilerVersion: '0.2.39';
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
export declare const JavaLanguagePackage: JavaLanguagePackageMetadata;
|
|
29
|
+
export declare const JavaCapabilityLanguageProfiles: readonly NativeImportLanguageProfile[];
|
|
26
30
|
|
|
27
31
|
export { createJavaAstNativeImporterAdapter } from '@shapeshift-labs/frontier-lang-compiler';
|
|
28
32
|
|
|
@@ -61,6 +65,11 @@ export interface JavaSemanticImportSidecarOptions extends JavaSourceImportOption
|
|
|
61
65
|
readonly regionPrefix?: string;
|
|
62
66
|
}
|
|
63
67
|
|
|
68
|
+
export interface JavaLanguageCapabilityMatrixOptions extends UniversalCapabilityMatrixOptions {
|
|
69
|
+
readonly importerOptions?: JavaAstNativeImporterAdapterOptions;
|
|
70
|
+
}
|
|
71
|
+
|
|
64
72
|
export declare function createJavaNativeImporterAdapter(options?: JavaAstNativeImporterAdapterOptions): NativeImporterAdapter;
|
|
73
|
+
export declare function createJavaLanguageCapabilityMatrix(options?: JavaLanguageCapabilityMatrixOptions): UniversalCapabilityMatrix;
|
|
65
74
|
export declare function importJavaSource(input?: JavaSourceImportInput, options?: JavaSourceImportOptions): Promise<NativeImporterAdapterImportResult>;
|
|
66
75
|
export declare function createJavaSemanticImportSidecar(input?: JavaSourceImportInput, options?: JavaSemanticImportSidecarOptions): Promise<SemanticImportSidecar>;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
+
NativeImportLanguageProfiles,
|
|
2
3
|
createJavaAstNativeImporterAdapter,
|
|
3
4
|
createSemanticImportSidecar,
|
|
5
|
+
createUniversalCapabilityMatrix,
|
|
4
6
|
runNativeImporterAdapter
|
|
5
7
|
} from '@shapeshift-labs/frontier-lang-compiler';
|
|
6
8
|
|
|
@@ -11,21 +13,31 @@ export const JavaSupportedExtensions = Object.freeze(['.java']);
|
|
|
11
13
|
|
|
12
14
|
export const JavaLanguagePackage = Object.freeze({
|
|
13
15
|
packageName: '@shapeshift-labs/frontier-lang-java',
|
|
14
|
-
version: '0.1.
|
|
16
|
+
version: '0.1.1',
|
|
15
17
|
sourceLanguage: JavaSourceLanguage,
|
|
16
18
|
parser: JavaParser,
|
|
17
19
|
parserAstFormat: JavaParserAstFormat,
|
|
18
20
|
supportedExtensions: JavaSupportedExtensions,
|
|
19
21
|
compilerPackage: '@shapeshift-labs/frontier-lang-compiler',
|
|
20
|
-
compilerVersion: '0.2.
|
|
22
|
+
compilerVersion: '0.2.39'
|
|
21
23
|
});
|
|
22
24
|
|
|
25
|
+
export const JavaCapabilityLanguageProfiles = Object.freeze(
|
|
26
|
+
NativeImportLanguageProfiles.filter((profile) => profile.language === JavaSourceLanguage)
|
|
27
|
+
);
|
|
28
|
+
|
|
23
29
|
export { createJavaAstNativeImporterAdapter } from '@shapeshift-labs/frontier-lang-compiler';
|
|
24
30
|
|
|
25
31
|
export function createJavaNativeImporterAdapter(options = {}) {
|
|
26
32
|
return createJavaAstNativeImporterAdapter(options);
|
|
27
33
|
}
|
|
28
34
|
|
|
35
|
+
export function createJavaLanguageCapabilityMatrix(options = {}) {
|
|
36
|
+
const languages = options.languages ?? JavaCapabilityLanguageProfiles;
|
|
37
|
+
const adapters = options.adapters ?? [createJavaNativeImporterAdapter(options.importerOptions ?? {})];
|
|
38
|
+
return createUniversalCapabilityMatrix({ ...options, languages, adapters });
|
|
39
|
+
}
|
|
40
|
+
|
|
29
41
|
function mergeAdapterOptions(input = {}, options = {}) {
|
|
30
42
|
const adapterOptions = {
|
|
31
43
|
...(options.adapterOptions ?? {}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapeshift-labs/frontier-lang-java",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Java source-language importer package for Frontier Lang semantic source documents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@shapeshift-labs/frontier-lang-compiler": "0.2.
|
|
55
|
+
"@shapeshift-labs/frontier-lang-compiler": "0.2.39"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"typescript": "^5.9.3"
|