@kedge/plugin-sdk 0.0.0-stage → 0.10.0
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/LICENSE +21 -0
- package/package.json +28 -3
- package/src/index.ts +85 -0
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 The Kedge Authors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,6 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kedge/plugin-sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.10.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/chandeldivyam/Kedge.git",
|
|
8
|
+
"directory": "packages/plugin-sdk"
|
|
9
|
+
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=24"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"description": "The public API for plugins and kedge.config.ts: define*, sql, and the generated SQL every plugin installs.",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": "./src/index.ts"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"src"
|
|
20
|
+
],
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@kedge/core": "0.10.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/node": "24.19.2"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"typecheck": "tsc --noEmit -p .",
|
|
29
|
+
"test": "vitest run --passWithNoTests"
|
|
30
|
+
}
|
|
6
31
|
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// What a plugin author, or a coding agent, builds against (docs/07). Everything
|
|
2
|
+
// here is semver-covered; nothing in @kedge/core's internals is.
|
|
3
|
+
export {
|
|
4
|
+
ACQUIRE_KEYS,
|
|
5
|
+
type AcquireKey,
|
|
6
|
+
type Actor,
|
|
7
|
+
type AdjustmentOutput,
|
|
8
|
+
type Calendar,
|
|
9
|
+
type ChargeClass,
|
|
10
|
+
type CheckoutContribution,
|
|
11
|
+
type Condition,
|
|
12
|
+
type CredentialMode,
|
|
13
|
+
calendarReads,
|
|
14
|
+
defineConfig,
|
|
15
|
+
defineEntity,
|
|
16
|
+
defineLineKind,
|
|
17
|
+
definePlugin,
|
|
18
|
+
// P0.6a–P0.6b: ports, subscribers, timers and the calendar, which plugins declare.
|
|
19
|
+
definePort,
|
|
20
|
+
defineTrack,
|
|
21
|
+
type EffectOperation,
|
|
22
|
+
type EntityColumns,
|
|
23
|
+
type EntityDefinition,
|
|
24
|
+
type EntityField,
|
|
25
|
+
type EntityInput,
|
|
26
|
+
type EntityRecord,
|
|
27
|
+
type EntitySteps,
|
|
28
|
+
type EntityView,
|
|
29
|
+
type ErrorMapEntry,
|
|
30
|
+
ExtensionConfigError,
|
|
31
|
+
evaluate as evaluateCondition,
|
|
32
|
+
FACT_LINK_COLUMN,
|
|
33
|
+
type FactDeclaration,
|
|
34
|
+
type FactRef,
|
|
35
|
+
type FailMode,
|
|
36
|
+
type FeeOutput,
|
|
37
|
+
type FieldDeclaration,
|
|
38
|
+
type FieldDeclarations,
|
|
39
|
+
type FulfillmentClass,
|
|
40
|
+
HOOKS,
|
|
41
|
+
type HookContext,
|
|
42
|
+
type HookName,
|
|
43
|
+
type HookRegistration,
|
|
44
|
+
type Json,
|
|
45
|
+
type JsonRecord,
|
|
46
|
+
type KedgeConfig,
|
|
47
|
+
KedgeError,
|
|
48
|
+
KedgeProviderError,
|
|
49
|
+
type KindLine,
|
|
50
|
+
type KindPrice,
|
|
51
|
+
type LineKindDefinition,
|
|
52
|
+
type ObservationOperation,
|
|
53
|
+
type OperationCall,
|
|
54
|
+
type Overrides,
|
|
55
|
+
type PluginDefinition,
|
|
56
|
+
type PluginInstance,
|
|
57
|
+
type PluginMigration,
|
|
58
|
+
type PortDefinition,
|
|
59
|
+
type PricedLine,
|
|
60
|
+
type PricingCart,
|
|
61
|
+
RELEASE_KEYS,
|
|
62
|
+
type ReadInput,
|
|
63
|
+
type ReleaseHandler,
|
|
64
|
+
type ReleaseKey,
|
|
65
|
+
type Row,
|
|
66
|
+
type SqlStatement,
|
|
67
|
+
type StatementContext,
|
|
68
|
+
type StoreOrder,
|
|
69
|
+
// P0.8 (§7): the ejectable units' types.
|
|
70
|
+
type StoreProduct,
|
|
71
|
+
type SubscriberContext,
|
|
72
|
+
type SubscriberDefinition,
|
|
73
|
+
sql,
|
|
74
|
+
type TimerContext,
|
|
75
|
+
type TimerDefinition,
|
|
76
|
+
type TrackDefinition,
|
|
77
|
+
type TrackGuard,
|
|
78
|
+
type TrackSteps,
|
|
79
|
+
type TrackStepView,
|
|
80
|
+
type TransitionContext,
|
|
81
|
+
type TransitionDefinition,
|
|
82
|
+
type TransitionRef,
|
|
83
|
+
type ValidationFailure,
|
|
84
|
+
type ViewOutput,
|
|
85
|
+
} from "@kedge/core";
|
package/README.md
DELETED