@invinite-org/chartlang-core 1.2.0 → 1.3.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/CHANGELOG.md +56 -0
- package/dist/index.d.ts +8 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/input/index.d.ts +1 -1
- package/dist/input/index.d.ts.map +1 -1
- package/dist/input/index.js.map +1 -1
- package/dist/input/input.d.ts +15 -1
- package/dist/input/input.d.ts.map +1 -1
- package/dist/input/input.js +14 -0
- package/dist/input/input.js.map +1 -1
- package/dist/input/inputDescriptor.d.ts +15 -2
- package/dist/input/inputDescriptor.d.ts.map +1 -1
- package/dist/input/inputDescriptor.js.map +1 -1
- package/dist/plot/plot.d.ts +60 -0
- package/dist/plot/plot.d.ts.map +1 -1
- package/dist/plot/plot.js +34 -0
- package/dist/plot/plot.js.map +1 -1
- package/dist/request/feedKey.d.ts +20 -0
- package/dist/request/feedKey.d.ts.map +1 -0
- package/dist/request/feedKey.js +29 -0
- package/dist/request/feedKey.js.map +1 -0
- package/dist/request/index.d.ts +2 -0
- package/dist/request/index.d.ts.map +1 -1
- package/dist/request/index.js +1 -0
- package/dist/request/index.js.map +1 -1
- package/dist/request/request.d.ts +30 -5
- package/dist/request/request.d.ts.map +1 -1
- package/dist/request/request.js.map +1 -1
- package/dist/state/arraySlot.d.ts +38 -0
- package/dist/state/arraySlot.d.ts.map +1 -0
- package/dist/state/arraySlot.js +4 -0
- package/dist/state/arraySlot.js.map +1 -0
- package/dist/state/index.d.ts +1 -0
- package/dist/state/index.d.ts.map +1 -1
- package/dist/state/index.js.map +1 -1
- package/dist/state/state.d.ts +19 -0
- package/dist/state/state.d.ts.map +1 -1
- package/dist/state/state.js +20 -0
- package/dist/state/state.js.map +1 -1
- package/dist/statefulPrimitives.d.ts +3 -3
- package/dist/statefulPrimitives.d.ts.map +1 -1
- package/dist/statefulPrimitives.js +23 -3
- package/dist/statefulPrimitives.js.map +1 -1
- package/dist/time-accessors/index.d.ts +5 -0
- package/dist/time-accessors/index.d.ts.map +1 -0
- package/dist/time-accessors/index.js +5 -0
- package/dist/time-accessors/index.js.map +1 -0
- package/dist/time-accessors/sessionAccessors.d.ts +43 -0
- package/dist/time-accessors/sessionAccessors.d.ts.map +1 -0
- package/dist/time-accessors/sessionAccessors.js +38 -0
- package/dist/time-accessors/sessionAccessors.js.map +1 -0
- package/dist/time-accessors/timeAccessors.d.ts +132 -0
- package/dist/time-accessors/timeAccessors.d.ts.map +1 -0
- package/dist/time-accessors/timeAccessors.js +143 -0
- package/dist/time-accessors/timeAccessors.js.map +1 -0
- package/dist/types.d.ts +53 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/time-accessors/index.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,+DAA+D;AAE/D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC","sourcesContent":["// Copyright (c) 2026 Invinite. Licensed under the MIT License.\n// See the LICENSE file in the repo root for full license text.\n\nexport { session } from \"./sessionAccessors.js\";\nexport type { SessionNamespace } from \"./sessionAccessors.js\";\nexport { time } from \"./timeAccessors.js\";\nexport type { TimeNamespace } from \"./timeAccessors.js\";\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { Time } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Session-window membership helpers over a `Time` epoch.
|
|
4
|
+
*
|
|
5
|
+
* The runtime replaces this compile-time callable hole with a real namespace
|
|
6
|
+
* through `ComputeContext.session`.
|
|
7
|
+
*
|
|
8
|
+
* @since 1.5
|
|
9
|
+
* @stable
|
|
10
|
+
* @example
|
|
11
|
+
* const ns: typeof session = session;
|
|
12
|
+
* void ns;
|
|
13
|
+
*/
|
|
14
|
+
export declare const session: Readonly<{
|
|
15
|
+
/**
|
|
16
|
+
* `true` when `t` falls inside the daily session window `spec`. `spec` is
|
|
17
|
+
* an `"HH:MM-HH:MM"` (or `"HHMM-HHMM"`) intraday window, e.g.
|
|
18
|
+
* `"0930-1600"`. The window is interpreted in `tz` (default
|
|
19
|
+
* `syminfo.timezone`, fallback `"UTC"`).
|
|
20
|
+
*
|
|
21
|
+
* v1 resolves UTC and fixed-offset zones only; a DST zone resolves to UTC
|
|
22
|
+
* plus a one-time diagnostic (see the determinism note in the docs).
|
|
23
|
+
*
|
|
24
|
+
* @since 1.5
|
|
25
|
+
* @stable
|
|
26
|
+
* @example
|
|
27
|
+
* const fn: typeof session.isOpen = session.isOpen;
|
|
28
|
+
* void fn;
|
|
29
|
+
*/
|
|
30
|
+
isOpen(_t: Time, _spec: string, _tz?: string): boolean;
|
|
31
|
+
}>;
|
|
32
|
+
/**
|
|
33
|
+
* Static type of the `session` namespace. Runtime implementations satisfy this
|
|
34
|
+
* shape structurally when installed on `ComputeContext.session`.
|
|
35
|
+
*
|
|
36
|
+
* @since 1.5
|
|
37
|
+
* @stable
|
|
38
|
+
* @example
|
|
39
|
+
* const ns: SessionNamespace = session;
|
|
40
|
+
* void ns;
|
|
41
|
+
*/
|
|
42
|
+
export type SessionNamespace = typeof session;
|
|
43
|
+
//# sourceMappingURL=sessionAccessors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessionAccessors.d.ts","sourceRoot":"","sources":["../../src/time-accessors/sessionAccessors.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAMxC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO;IAChB;;;;;;;;;;;;;;OAcG;eACQ,IAAI,SAAS,MAAM,QAAQ,MAAM,GAAG,OAAO;EAGxD,CAAC;AAEH;;;;;;;;;GASG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,OAAO,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Copyright (c) 2026 Invinite. Licensed under the MIT License.
|
|
2
|
+
// See the LICENSE file in the repo root for full license text.
|
|
3
|
+
const sentinel = (name) => {
|
|
4
|
+
throw new Error(`${name} called outside an active script step`);
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Session-window membership helpers over a `Time` epoch.
|
|
8
|
+
*
|
|
9
|
+
* The runtime replaces this compile-time callable hole with a real namespace
|
|
10
|
+
* through `ComputeContext.session`.
|
|
11
|
+
*
|
|
12
|
+
* @since 1.5
|
|
13
|
+
* @stable
|
|
14
|
+
* @example
|
|
15
|
+
* const ns: typeof session = session;
|
|
16
|
+
* void ns;
|
|
17
|
+
*/
|
|
18
|
+
export const session = Object.freeze({
|
|
19
|
+
/**
|
|
20
|
+
* `true` when `t` falls inside the daily session window `spec`. `spec` is
|
|
21
|
+
* an `"HH:MM-HH:MM"` (or `"HHMM-HHMM"`) intraday window, e.g.
|
|
22
|
+
* `"0930-1600"`. The window is interpreted in `tz` (default
|
|
23
|
+
* `syminfo.timezone`, fallback `"UTC"`).
|
|
24
|
+
*
|
|
25
|
+
* v1 resolves UTC and fixed-offset zones only; a DST zone resolves to UTC
|
|
26
|
+
* plus a one-time diagnostic (see the determinism note in the docs).
|
|
27
|
+
*
|
|
28
|
+
* @since 1.5
|
|
29
|
+
* @stable
|
|
30
|
+
* @example
|
|
31
|
+
* const fn: typeof session.isOpen = session.isOpen;
|
|
32
|
+
* void fn;
|
|
33
|
+
*/
|
|
34
|
+
isOpen(_t, _spec, _tz) {
|
|
35
|
+
return sentinel("session.isOpen");
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=sessionAccessors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessionAccessors.js","sourceRoot":"","sources":["../../src/time-accessors/sessionAccessors.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,+DAA+D;AAI/D,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAS,EAAE;IACrC,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,uCAAuC,CAAC,CAAC;AACpE,CAAC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC;IACjC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,EAAQ,EAAE,KAAa,EAAE,GAAY;QACxC,OAAO,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACtC,CAAC;CACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) 2026 Invinite. Licensed under the MIT License.\n// See the LICENSE file in the repo root for full license text.\n\nimport type { Time } from \"../types.js\";\n\nconst sentinel = (name: string): never => {\n throw new Error(`${name} called outside an active script step`);\n};\n\n/**\n * Session-window membership helpers over a `Time` epoch.\n *\n * The runtime replaces this compile-time callable hole with a real namespace\n * through `ComputeContext.session`.\n *\n * @since 1.5\n * @stable\n * @example\n * const ns: typeof session = session;\n * void ns;\n */\nexport const session = Object.freeze({\n /**\n * `true` when `t` falls inside the daily session window `spec`. `spec` is\n * an `\"HH:MM-HH:MM\"` (or `\"HHMM-HHMM\"`) intraday window, e.g.\n * `\"0930-1600\"`. The window is interpreted in `tz` (default\n * `syminfo.timezone`, fallback `\"UTC\"`).\n *\n * v1 resolves UTC and fixed-offset zones only; a DST zone resolves to UTC\n * plus a one-time diagnostic (see the determinism note in the docs).\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof session.isOpen = session.isOpen;\n * void fn;\n */\n isOpen(_t: Time, _spec: string, _tz?: string): boolean {\n return sentinel(\"session.isOpen\");\n },\n});\n\n/**\n * Static type of the `session` namespace. Runtime implementations satisfy this\n * shape structurally when installed on `ComputeContext.session`.\n *\n * @since 1.5\n * @stable\n * @example\n * const ns: SessionNamespace = session;\n * void ns;\n */\nexport type SessionNamespace = typeof session;\n"]}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import type { Time } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Calendar accessors over a `Time` epoch (UTC ms since epoch). Each accessor
|
|
4
|
+
* is a pure function of an explicit `Time` plus an optional IANA timezone
|
|
5
|
+
* string; the default `tz` is the active mount's `syminfo.timezone`, falling
|
|
6
|
+
* back to `"UTC"` when that is empty. Authors never touch `Date`/`Intl` (both
|
|
7
|
+
* are banned on the script path) — the runtime owns the epoch math.
|
|
8
|
+
*
|
|
9
|
+
* v1 resolves UTC and fixed-offset zones only; a DST zone resolves to UTC plus
|
|
10
|
+
* a one-time diagnostic (see the determinism note in the docs).
|
|
11
|
+
*
|
|
12
|
+
* The runtime replaces this compile-time callable hole with a real namespace
|
|
13
|
+
* through `ComputeContext.time`.
|
|
14
|
+
*
|
|
15
|
+
* @since 1.5
|
|
16
|
+
* @stable
|
|
17
|
+
* @example
|
|
18
|
+
* const ns: typeof time = time;
|
|
19
|
+
* void ns;
|
|
20
|
+
*/
|
|
21
|
+
export declare const time: Readonly<{
|
|
22
|
+
/**
|
|
23
|
+
* Calendar year of `t` (e.g. `2024`).
|
|
24
|
+
*
|
|
25
|
+
* @since 1.5
|
|
26
|
+
* @stable
|
|
27
|
+
* @example
|
|
28
|
+
* const fn: typeof time.year = time.year;
|
|
29
|
+
* void fn;
|
|
30
|
+
*/
|
|
31
|
+
year(_t: Time, _tz?: string): number;
|
|
32
|
+
/**
|
|
33
|
+
* Calendar month of `t`, `1..12`.
|
|
34
|
+
*
|
|
35
|
+
* @since 1.5
|
|
36
|
+
* @stable
|
|
37
|
+
* @example
|
|
38
|
+
* const fn: typeof time.month = time.month;
|
|
39
|
+
* void fn;
|
|
40
|
+
*/
|
|
41
|
+
month(_t: Time, _tz?: string): number;
|
|
42
|
+
/**
|
|
43
|
+
* Day of the month of `t`, `1..31`.
|
|
44
|
+
*
|
|
45
|
+
* @since 1.5
|
|
46
|
+
* @stable
|
|
47
|
+
* @example
|
|
48
|
+
* const fn: typeof time.dayofmonth = time.dayofmonth;
|
|
49
|
+
* void fn;
|
|
50
|
+
*/
|
|
51
|
+
dayofmonth(_t: Time, _tz?: string): number;
|
|
52
|
+
/**
|
|
53
|
+
* Day of the week of `t`, following Pine's convention `1=Sunday .. 7=Saturday`
|
|
54
|
+
* (note: NOT the ISO `1=Monday` convention).
|
|
55
|
+
*
|
|
56
|
+
* @since 1.5
|
|
57
|
+
* @stable
|
|
58
|
+
* @example
|
|
59
|
+
* const fn: typeof time.dayofweek = time.dayofweek;
|
|
60
|
+
* void fn;
|
|
61
|
+
*/
|
|
62
|
+
dayofweek(_t: Time, _tz?: string): number;
|
|
63
|
+
/**
|
|
64
|
+
* Hour-of-day of `t`, `0..23`.
|
|
65
|
+
*
|
|
66
|
+
* @since 1.5
|
|
67
|
+
* @stable
|
|
68
|
+
* @example
|
|
69
|
+
* const fn: typeof time.hour = time.hour;
|
|
70
|
+
* void fn;
|
|
71
|
+
*/
|
|
72
|
+
hour(_t: Time, _tz?: string): number;
|
|
73
|
+
/**
|
|
74
|
+
* Minute-of-hour of `t`, `0..59`.
|
|
75
|
+
*
|
|
76
|
+
* @since 1.5
|
|
77
|
+
* @stable
|
|
78
|
+
* @example
|
|
79
|
+
* const fn: typeof time.minute = time.minute;
|
|
80
|
+
* void fn;
|
|
81
|
+
*/
|
|
82
|
+
minute(_t: Time, _tz?: string): number;
|
|
83
|
+
/**
|
|
84
|
+
* Second-of-minute of `t`, `0..59`.
|
|
85
|
+
*
|
|
86
|
+
* @since 1.5
|
|
87
|
+
* @stable
|
|
88
|
+
* @example
|
|
89
|
+
* const fn: typeof time.second = time.second;
|
|
90
|
+
* void fn;
|
|
91
|
+
*/
|
|
92
|
+
second(_t: Time, _tz?: string): number;
|
|
93
|
+
/**
|
|
94
|
+
* Build a `Time` (UTC ms epoch) from calendar fields. `month` is `1..12`
|
|
95
|
+
* and `day` is `1..31`; `hour`/`minute`/`second` default to `0`. The
|
|
96
|
+
* fields are interpreted in `tz` (default `syminfo.timezone`, fallback
|
|
97
|
+
* `"UTC"`).
|
|
98
|
+
*
|
|
99
|
+
* @since 1.5
|
|
100
|
+
* @stable
|
|
101
|
+
* @example
|
|
102
|
+
* const fn: typeof time.timestamp = time.timestamp;
|
|
103
|
+
* void fn;
|
|
104
|
+
*/
|
|
105
|
+
timestamp(_year: number, _month: number, _day: number, _hour?: number, _minute?: number, _second?: number, _tz?: string): Time;
|
|
106
|
+
/**
|
|
107
|
+
* Close timestamp of the bar that starts at `t` — Pine's no-arg
|
|
108
|
+
* `time_close()`. Equals `t + interval`, where the interval is the active
|
|
109
|
+
* bar's `timeframe.inSeconds` the runtime reads internally (so this mirrors
|
|
110
|
+
* Pine's "current bar's interval" without an explicit interval argument).
|
|
111
|
+
* `tz` is accepted for surface symmetry with the other `time.*` accessors.
|
|
112
|
+
*
|
|
113
|
+
* @since 1.5
|
|
114
|
+
* @stable
|
|
115
|
+
* @example
|
|
116
|
+
* const fn: typeof time.timeClose = time.timeClose;
|
|
117
|
+
* void fn;
|
|
118
|
+
*/
|
|
119
|
+
timeClose(_t: Time, _tz?: string): Time;
|
|
120
|
+
}>;
|
|
121
|
+
/**
|
|
122
|
+
* Static type of the `time` namespace. Runtime implementations satisfy this
|
|
123
|
+
* shape structurally when installed on `ComputeContext.time`.
|
|
124
|
+
*
|
|
125
|
+
* @since 1.5
|
|
126
|
+
* @stable
|
|
127
|
+
* @example
|
|
128
|
+
* const ns: TimeNamespace = time;
|
|
129
|
+
* void ns;
|
|
130
|
+
*/
|
|
131
|
+
export type TimeNamespace = typeof time;
|
|
132
|
+
//# sourceMappingURL=timeAccessors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeAccessors.d.ts","sourceRoot":"","sources":["../../src/time-accessors/timeAccessors.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAMxC;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,IAAI;IACb;;;;;;;;OAQG;aACM,IAAI,QAAQ,MAAM,GAAG,MAAM;IAIpC;;;;;;;;OAQG;cACO,IAAI,QAAQ,MAAM,GAAG,MAAM;IAIrC;;;;;;;;OAQG;mBACY,IAAI,QAAQ,MAAM,GAAG,MAAM;IAI1C;;;;;;;;;OASG;kBACW,IAAI,QAAQ,MAAM,GAAG,MAAM;IAIzC;;;;;;;;OAQG;aACM,IAAI,QAAQ,MAAM,GAAG,MAAM;IAIpC;;;;;;;;OAQG;eACQ,IAAI,QAAQ,MAAM,GAAG,MAAM;IAItC;;;;;;;;OAQG;eACQ,IAAI,QAAQ,MAAM,GAAG,MAAM;IAItC;;;;;;;;;;;OAWG;qBAEQ,MAAM,UACL,MAAM,QACR,MAAM,UACJ,MAAM,YACJ,MAAM,YACN,MAAM,QACV,MAAM,GACb,IAAI;IAIP;;;;;;;;;;;;OAYG;kBACW,IAAI,QAAQ,MAAM,GAAG,IAAI;EAGzC,CAAC;AAEH;;;;;;;;;GASG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,IAAI,CAAC"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
// Copyright (c) 2026 Invinite. Licensed under the MIT License.
|
|
2
|
+
// See the LICENSE file in the repo root for full license text.
|
|
3
|
+
const sentinel = (name) => {
|
|
4
|
+
throw new Error(`${name} called outside an active script step`);
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Calendar accessors over a `Time` epoch (UTC ms since epoch). Each accessor
|
|
8
|
+
* is a pure function of an explicit `Time` plus an optional IANA timezone
|
|
9
|
+
* string; the default `tz` is the active mount's `syminfo.timezone`, falling
|
|
10
|
+
* back to `"UTC"` when that is empty. Authors never touch `Date`/`Intl` (both
|
|
11
|
+
* are banned on the script path) — the runtime owns the epoch math.
|
|
12
|
+
*
|
|
13
|
+
* v1 resolves UTC and fixed-offset zones only; a DST zone resolves to UTC plus
|
|
14
|
+
* a one-time diagnostic (see the determinism note in the docs).
|
|
15
|
+
*
|
|
16
|
+
* The runtime replaces this compile-time callable hole with a real namespace
|
|
17
|
+
* through `ComputeContext.time`.
|
|
18
|
+
*
|
|
19
|
+
* @since 1.5
|
|
20
|
+
* @stable
|
|
21
|
+
* @example
|
|
22
|
+
* const ns: typeof time = time;
|
|
23
|
+
* void ns;
|
|
24
|
+
*/
|
|
25
|
+
export const time = Object.freeze({
|
|
26
|
+
/**
|
|
27
|
+
* Calendar year of `t` (e.g. `2024`).
|
|
28
|
+
*
|
|
29
|
+
* @since 1.5
|
|
30
|
+
* @stable
|
|
31
|
+
* @example
|
|
32
|
+
* const fn: typeof time.year = time.year;
|
|
33
|
+
* void fn;
|
|
34
|
+
*/
|
|
35
|
+
year(_t, _tz) {
|
|
36
|
+
return sentinel("time.year");
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* Calendar month of `t`, `1..12`.
|
|
40
|
+
*
|
|
41
|
+
* @since 1.5
|
|
42
|
+
* @stable
|
|
43
|
+
* @example
|
|
44
|
+
* const fn: typeof time.month = time.month;
|
|
45
|
+
* void fn;
|
|
46
|
+
*/
|
|
47
|
+
month(_t, _tz) {
|
|
48
|
+
return sentinel("time.month");
|
|
49
|
+
},
|
|
50
|
+
/**
|
|
51
|
+
* Day of the month of `t`, `1..31`.
|
|
52
|
+
*
|
|
53
|
+
* @since 1.5
|
|
54
|
+
* @stable
|
|
55
|
+
* @example
|
|
56
|
+
* const fn: typeof time.dayofmonth = time.dayofmonth;
|
|
57
|
+
* void fn;
|
|
58
|
+
*/
|
|
59
|
+
dayofmonth(_t, _tz) {
|
|
60
|
+
return sentinel("time.dayofmonth");
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
* Day of the week of `t`, following Pine's convention `1=Sunday .. 7=Saturday`
|
|
64
|
+
* (note: NOT the ISO `1=Monday` convention).
|
|
65
|
+
*
|
|
66
|
+
* @since 1.5
|
|
67
|
+
* @stable
|
|
68
|
+
* @example
|
|
69
|
+
* const fn: typeof time.dayofweek = time.dayofweek;
|
|
70
|
+
* void fn;
|
|
71
|
+
*/
|
|
72
|
+
dayofweek(_t, _tz) {
|
|
73
|
+
return sentinel("time.dayofweek");
|
|
74
|
+
},
|
|
75
|
+
/**
|
|
76
|
+
* Hour-of-day of `t`, `0..23`.
|
|
77
|
+
*
|
|
78
|
+
* @since 1.5
|
|
79
|
+
* @stable
|
|
80
|
+
* @example
|
|
81
|
+
* const fn: typeof time.hour = time.hour;
|
|
82
|
+
* void fn;
|
|
83
|
+
*/
|
|
84
|
+
hour(_t, _tz) {
|
|
85
|
+
return sentinel("time.hour");
|
|
86
|
+
},
|
|
87
|
+
/**
|
|
88
|
+
* Minute-of-hour of `t`, `0..59`.
|
|
89
|
+
*
|
|
90
|
+
* @since 1.5
|
|
91
|
+
* @stable
|
|
92
|
+
* @example
|
|
93
|
+
* const fn: typeof time.minute = time.minute;
|
|
94
|
+
* void fn;
|
|
95
|
+
*/
|
|
96
|
+
minute(_t, _tz) {
|
|
97
|
+
return sentinel("time.minute");
|
|
98
|
+
},
|
|
99
|
+
/**
|
|
100
|
+
* Second-of-minute of `t`, `0..59`.
|
|
101
|
+
*
|
|
102
|
+
* @since 1.5
|
|
103
|
+
* @stable
|
|
104
|
+
* @example
|
|
105
|
+
* const fn: typeof time.second = time.second;
|
|
106
|
+
* void fn;
|
|
107
|
+
*/
|
|
108
|
+
second(_t, _tz) {
|
|
109
|
+
return sentinel("time.second");
|
|
110
|
+
},
|
|
111
|
+
/**
|
|
112
|
+
* Build a `Time` (UTC ms epoch) from calendar fields. `month` is `1..12`
|
|
113
|
+
* and `day` is `1..31`; `hour`/`minute`/`second` default to `0`. The
|
|
114
|
+
* fields are interpreted in `tz` (default `syminfo.timezone`, fallback
|
|
115
|
+
* `"UTC"`).
|
|
116
|
+
*
|
|
117
|
+
* @since 1.5
|
|
118
|
+
* @stable
|
|
119
|
+
* @example
|
|
120
|
+
* const fn: typeof time.timestamp = time.timestamp;
|
|
121
|
+
* void fn;
|
|
122
|
+
*/
|
|
123
|
+
timestamp(_year, _month, _day, _hour, _minute, _second, _tz) {
|
|
124
|
+
return sentinel("time.timestamp");
|
|
125
|
+
},
|
|
126
|
+
/**
|
|
127
|
+
* Close timestamp of the bar that starts at `t` — Pine's no-arg
|
|
128
|
+
* `time_close()`. Equals `t + interval`, where the interval is the active
|
|
129
|
+
* bar's `timeframe.inSeconds` the runtime reads internally (so this mirrors
|
|
130
|
+
* Pine's "current bar's interval" without an explicit interval argument).
|
|
131
|
+
* `tz` is accepted for surface symmetry with the other `time.*` accessors.
|
|
132
|
+
*
|
|
133
|
+
* @since 1.5
|
|
134
|
+
* @stable
|
|
135
|
+
* @example
|
|
136
|
+
* const fn: typeof time.timeClose = time.timeClose;
|
|
137
|
+
* void fn;
|
|
138
|
+
*/
|
|
139
|
+
timeClose(_t, _tz) {
|
|
140
|
+
return sentinel("time.timeClose");
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
//# sourceMappingURL=timeAccessors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeAccessors.js","sourceRoot":"","sources":["../../src/time-accessors/timeAccessors.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,+DAA+D;AAI/D,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAS,EAAE;IACrC,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,uCAAuC,CAAC,CAAC;AACpE,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9B;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAQ,EAAE,GAAY;QACvB,OAAO,QAAQ,CAAC,WAAW,CAAC,CAAC;IACjC,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAQ,EAAE,GAAY;QACxB,OAAO,QAAQ,CAAC,YAAY,CAAC,CAAC;IAClC,CAAC;IAED;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAQ,EAAE,GAAY;QAC7B,OAAO,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAED;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAQ,EAAE,GAAY;QAC5B,OAAO,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACtC,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAQ,EAAE,GAAY;QACvB,OAAO,QAAQ,CAAC,WAAW,CAAC,CAAC;IACjC,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAQ,EAAE,GAAY;QACzB,OAAO,QAAQ,CAAC,aAAa,CAAC,CAAC;IACnC,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAQ,EAAE,GAAY;QACzB,OAAO,QAAQ,CAAC,aAAa,CAAC,CAAC;IACnC,CAAC;IAED;;;;;;;;;;;OAWG;IACH,SAAS,CACL,KAAa,EACb,MAAc,EACd,IAAY,EACZ,KAAc,EACd,OAAgB,EAChB,OAAgB,EAChB,GAAY;QAEZ,OAAO,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACtC,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,EAAQ,EAAE,GAAY;QAC5B,OAAO,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACtC,CAAC;CACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) 2026 Invinite. Licensed under the MIT License.\n// See the LICENSE file in the repo root for full license text.\n\nimport type { Time } from \"../types.js\";\n\nconst sentinel = (name: string): never => {\n throw new Error(`${name} called outside an active script step`);\n};\n\n/**\n * Calendar accessors over a `Time` epoch (UTC ms since epoch). Each accessor\n * is a pure function of an explicit `Time` plus an optional IANA timezone\n * string; the default `tz` is the active mount's `syminfo.timezone`, falling\n * back to `\"UTC\"` when that is empty. Authors never touch `Date`/`Intl` (both\n * are banned on the script path) — the runtime owns the epoch math.\n *\n * v1 resolves UTC and fixed-offset zones only; a DST zone resolves to UTC plus\n * a one-time diagnostic (see the determinism note in the docs).\n *\n * The runtime replaces this compile-time callable hole with a real namespace\n * through `ComputeContext.time`.\n *\n * @since 1.5\n * @stable\n * @example\n * const ns: typeof time = time;\n * void ns;\n */\nexport const time = Object.freeze({\n /**\n * Calendar year of `t` (e.g. `2024`).\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof time.year = time.year;\n * void fn;\n */\n year(_t: Time, _tz?: string): number {\n return sentinel(\"time.year\");\n },\n\n /**\n * Calendar month of `t`, `1..12`.\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof time.month = time.month;\n * void fn;\n */\n month(_t: Time, _tz?: string): number {\n return sentinel(\"time.month\");\n },\n\n /**\n * Day of the month of `t`, `1..31`.\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof time.dayofmonth = time.dayofmonth;\n * void fn;\n */\n dayofmonth(_t: Time, _tz?: string): number {\n return sentinel(\"time.dayofmonth\");\n },\n\n /**\n * Day of the week of `t`, following Pine's convention `1=Sunday .. 7=Saturday`\n * (note: NOT the ISO `1=Monday` convention).\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof time.dayofweek = time.dayofweek;\n * void fn;\n */\n dayofweek(_t: Time, _tz?: string): number {\n return sentinel(\"time.dayofweek\");\n },\n\n /**\n * Hour-of-day of `t`, `0..23`.\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof time.hour = time.hour;\n * void fn;\n */\n hour(_t: Time, _tz?: string): number {\n return sentinel(\"time.hour\");\n },\n\n /**\n * Minute-of-hour of `t`, `0..59`.\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof time.minute = time.minute;\n * void fn;\n */\n minute(_t: Time, _tz?: string): number {\n return sentinel(\"time.minute\");\n },\n\n /**\n * Second-of-minute of `t`, `0..59`.\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof time.second = time.second;\n * void fn;\n */\n second(_t: Time, _tz?: string): number {\n return sentinel(\"time.second\");\n },\n\n /**\n * Build a `Time` (UTC ms epoch) from calendar fields. `month` is `1..12`\n * and `day` is `1..31`; `hour`/`minute`/`second` default to `0`. The\n * fields are interpreted in `tz` (default `syminfo.timezone`, fallback\n * `\"UTC\"`).\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof time.timestamp = time.timestamp;\n * void fn;\n */\n timestamp(\n _year: number,\n _month: number,\n _day: number,\n _hour?: number,\n _minute?: number,\n _second?: number,\n _tz?: string,\n ): Time {\n return sentinel(\"time.timestamp\");\n },\n\n /**\n * Close timestamp of the bar that starts at `t` — Pine's no-arg\n * `time_close()`. Equals `t + interval`, where the interval is the active\n * bar's `timeframe.inSeconds` the runtime reads internally (so this mirrors\n * Pine's \"current bar's interval\" without an explicit interval argument).\n * `tz` is accepted for surface symmetry with the other `time.*` accessors.\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof time.timeClose = time.timeClose;\n * void fn;\n */\n timeClose(_t: Time, _tz?: string): Time {\n return sentinel(\"time.timeClose\");\n },\n});\n\n/**\n * Static type of the `time` namespace. Runtime implementations satisfy this\n * shape structurally when installed on `ComputeContext.time`.\n *\n * @since 1.5\n * @stable\n * @example\n * const ns: TimeNamespace = time;\n * void ns;\n */\nexport type TimeNamespace = typeof time;\n"]}
|
package/dist/types.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import type { RuntimeNamespace } from "./runtime/index.js";
|
|
|
9
9
|
import type { MutableSlot } from "./state/mutableSlot.js";
|
|
10
10
|
import type { StateNamespace } from "./state/state.js";
|
|
11
11
|
import type { TaNamespace } from "./ta/ta.js";
|
|
12
|
+
import type { SessionNamespace, TimeNamespace } from "./time-accessors/index.js";
|
|
12
13
|
import type { BarStateView, SymInfoView, TimeframeView } from "./views/index.js";
|
|
13
14
|
/**
|
|
14
15
|
* UTC milliseconds since epoch — the only time representation the runtime
|
|
@@ -383,6 +384,7 @@ export type PlotSlotDescriptor = {
|
|
|
383
384
|
* @since 0.7
|
|
384
385
|
* @stable
|
|
385
386
|
* @example
|
|
387
|
+
* // symbol omitted ⇒ the chart's own symbol (the HTF-only back-compat case)
|
|
386
388
|
* const unit: SecurityExpressionDescriptor = {
|
|
387
389
|
* slotId: "trend.ts:8:21#0",
|
|
388
390
|
* interval: "1W",
|
|
@@ -392,9 +394,32 @@ export type PlotSlotDescriptor = {
|
|
|
392
394
|
*/
|
|
393
395
|
export type SecurityExpressionDescriptor = {
|
|
394
396
|
readonly slotId: string;
|
|
397
|
+
/**
|
|
398
|
+
* Requested symbol; omitted ⇒ the chart's own symbol.
|
|
399
|
+
*
|
|
400
|
+
* @since 1.3
|
|
401
|
+
*/
|
|
402
|
+
readonly symbol?: string;
|
|
395
403
|
readonly interval: string;
|
|
396
404
|
readonly paramName: string;
|
|
397
405
|
};
|
|
406
|
+
/**
|
|
407
|
+
* One requested secondary feed — a `(symbol, interval)` pair the script's
|
|
408
|
+
* `request.security` calls ask for. `symbol` omitted ⇒ the chart's own
|
|
409
|
+
* symbol (the higher-timeframe-only case). The compiler emits one entry per
|
|
410
|
+
* **distinct** feed; the runtime creates one secondary `StreamState` per
|
|
411
|
+
* entry, keyed by the shared `feedKey(symbol, interval)` composite.
|
|
412
|
+
*
|
|
413
|
+
* @since 1.3
|
|
414
|
+
* @stable
|
|
415
|
+
* @example
|
|
416
|
+
* const f: RequestedFeed = { symbol: "AMEX:SPY", interval: "1D" };
|
|
417
|
+
* void f;
|
|
418
|
+
*/
|
|
419
|
+
export type RequestedFeed = {
|
|
420
|
+
readonly symbol?: string;
|
|
421
|
+
readonly interval: string;
|
|
422
|
+
};
|
|
398
423
|
/**
|
|
399
424
|
* Host-supplied presentation override for a single plot slot, keyed by
|
|
400
425
|
* `PlotEmission.slotId`. Applied by the runtime at emit time; never
|
|
@@ -601,10 +626,30 @@ export type ScriptManifest = {
|
|
|
601
626
|
* @example
|
|
602
627
|
* const v: ScriptManifest["securityExpressions"] = [
|
|
603
628
|
* { slotId: "trend.ts:8:21#0", interval: "1W", paramName: "bar" },
|
|
629
|
+
* { slotId: "aapl.ts:9:21#0", symbol: "NASDAQ:AAPL", interval: "1W", paramName: "bar" },
|
|
604
630
|
* ];
|
|
605
631
|
* void v;
|
|
606
632
|
*/
|
|
607
633
|
readonly securityExpressions?: ReadonlyArray<SecurityExpressionDescriptor>;
|
|
634
|
+
/**
|
|
635
|
+
* Every distinct secondary feed the script's `request.security` calls
|
|
636
|
+
* request, as `(symbol?, interval)` pairs. Superset of
|
|
637
|
+
* {@link ScriptManifest.requestedIntervals}, which stays the
|
|
638
|
+
* **main-symbol** HTF projection (symbol-omitted feeds) for back-compat —
|
|
639
|
+
* adding this field is additive within `apiVersion: 1`, whereas reshaping
|
|
640
|
+
* `requestedIntervals` would not be. Absent on scripts with no
|
|
641
|
+
* `request.security` so existing manifest snapshots stay byte-identical.
|
|
642
|
+
*
|
|
643
|
+
* @since 1.3
|
|
644
|
+
* @stable
|
|
645
|
+
* @example
|
|
646
|
+
* const v: ScriptManifest["requestedFeeds"] = [
|
|
647
|
+
* { interval: "1W" },
|
|
648
|
+
* { symbol: "AMEX:SPY", interval: "1D" },
|
|
649
|
+
* ];
|
|
650
|
+
* void v;
|
|
651
|
+
*/
|
|
652
|
+
readonly requestedFeeds?: ReadonlyArray<RequestedFeed>;
|
|
608
653
|
/**
|
|
609
654
|
* The ES-module binding name this manifest was reached through.
|
|
610
655
|
* `"default"` for `export default defineIndicator(...)`; the
|
|
@@ -699,6 +744,10 @@ export type ComputeContext = {
|
|
|
699
744
|
readonly ta: TaNamespace;
|
|
700
745
|
readonly plot: typeof import("./plot/plot.js").plot;
|
|
701
746
|
readonly hline: typeof import("./plot/plot.js").hline;
|
|
747
|
+
/** Pane-background band alias (`bg-color` plot style). @since 1.4 */
|
|
748
|
+
readonly bgcolor: typeof import("./plot/plot.js").bgcolor;
|
|
749
|
+
/** Candle/bar tint alias (`bar-color` plot style). @since 1.4 */
|
|
750
|
+
readonly barcolor: typeof import("./plot/plot.js").barcolor;
|
|
702
751
|
readonly alert: typeof import("./alert/alert.js").alert;
|
|
703
752
|
/** Pine `var` / `varip` state slots. @since 0.4 */
|
|
704
753
|
readonly state: StateNamespace;
|
|
@@ -708,6 +757,10 @@ export type ComputeContext = {
|
|
|
708
757
|
readonly syminfo: SymInfoView;
|
|
709
758
|
/** Timeframe helper view derived for the active step. @since 0.4 */
|
|
710
759
|
readonly timeframe: TimeframeView;
|
|
760
|
+
/** Calendar accessors over a `Time` epoch (UTC-first). @since 1.5 */
|
|
761
|
+
readonly time: TimeNamespace;
|
|
762
|
+
/** Session-window membership helpers. @since 1.5 */
|
|
763
|
+
readonly session: SessionNamespace;
|
|
711
764
|
/** Secondary timeframe request namespace. @since 0.4 */
|
|
712
765
|
readonly request: RequestNamespace;
|
|
713
766
|
/** Runtime logging and fatal halt namespace. @since 0.5 */
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,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